/* ===== CSS VARIABLES ===== */
:root {
    --emerald: #00c853;
    --emerald-light: #69f0ae;
    --emerald-dark: #00701f;
    --gold: #ffd700;
    --gold-light: #ffe566;
    --gold-dark: #cc8800;
    --bg: #050f07;
    --bg-card: #071a0a;
    --bg-card2: #0a2010;
    --text: #e8f5e9;
    --text-muted: #81a685;
    --border: rgba(0, 200, 83, 0.2);
    --border-gold: rgba(255, 215, 0, 0.25);
    --shadow-green: 0 0 40px rgba(0, 200, 83, 0.2);
    --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.25);
    --radius: 16px;
    --radius-sm: 8px;
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--emerald);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--emerald-light);
}

ul {
    list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--emerald-dark);
    border-radius: 3px;
}

/* ===== UTILITY ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.accent {
    color: var(--gold);
}

.accent-green {
    color: var(--emerald);
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold), #ffbc02, var(--emerald-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    color: #0a1a00;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    color: #0a1a00;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--emerald);
    font-weight: 600;
    font-size: 1rem;
    padding: 13px 30px;
    border-radius: 50px;
    border: 2px solid var(--emerald);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--emerald);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
}

/* ===== HEADER / NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 15, 7, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.nav-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #0a1a00 !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
}

.nav-cta:hover {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.95) !important;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 60% 50%, rgba(0, 200, 83, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        url('bg.png') center/cover no-repeat;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 15, 7, 0.92) 0%, rgba(5, 15, 7, 0.7) 50%, rgba(5, 15, 7, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 200, 83, 0.12);
    border: 1px solid var(--emerald);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--emerald);
    margin-bottom: 20px;
    animation: pulse-border 2s ease infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 200, 83, 0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--gold);
    text-shadow: 0 0 60px rgba(255, 215, 0, 0.4);
    margin-bottom: 8px;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    color: var(--emerald-light);
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(0, 200, 83, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

.hero-image {
    position: relative;
    z-index: 1;
    border-radius: var(--radius);
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 200, 83, 0.2), 0 0 0 1px rgba(0, 200, 83, 0.1);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* coins-particle removed */



@keyframes coin-fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}

.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 16px;
}

.stat-item-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.stat-item-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.stat-item-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== CARD ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-dark), var(--emerald), var(--gold));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--emerald);
    transform: translateY(-4px);
    box-shadow: var(--shadow-green);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== RTP TABLE ===== */
.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: linear-gradient(135deg, var(--emerald-dark), rgba(0, 200, 83, 0.15));
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 200, 83, 0.07);
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover td {
    background: rgba(0, 200, 83, 0.05);
    color: var(--emerald-light);
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-gold {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-green {
    background: rgba(0, 200, 83, 0.15);
    color: var(--emerald);
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.badge-red {
    background: rgba(255, 80, 80, 0.15);
    color: #ff5555;
    border: 1px solid rgba(255, 80, 80, 0.3);
}

/* ===== CHART ===== */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.chart-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    word-break: break-word;
    min-width: 0;
}

.chart-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--emerald);
    border-radius: 2px;
}

/* ===== PROGRESS BARS ===== */
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.progress-item {
    display: block;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.progress-name {
    color: var(--text);
    font-weight: 500;
}

.progress-val {
    color: var(--gold);
    font-weight: 600;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--emerald-dark), var(--emerald), var(--emerald-light));
    position: relative;
    animation: grow 1.5s ease-out forwards;
    transform-origin: left;
}

@keyframes grow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ===== PAYLINES ===== */
.paylines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    max-width: 320px;
    margin: 0 auto;
}

.payline-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 200, 83, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.payline-cell.active {
    background: rgba(0, 200, 83, 0.2);
    border-color: var(--emerald);
    color: var(--emerald-light);
}

/* ===== DEMO GAME ===== */
.demo-section {
    padding: 100px 0;
}

.demo-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-gold), inset 0 0 80px rgba(0, 200, 83, 0.03);
}

.demo-header {
    background: linear-gradient(135deg, var(--bg-card2), #041208);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.demo-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.demo-balance {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.demo-val-box {
    text-align: center;
    background: rgba(0, 200, 83, 0.07);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 10px;
}

.demo-val-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.demo-val {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 700;
}

.demo-body {
    padding: 32px;
}

/* Slot reels */
.slot-machine {
    background: linear-gradient(135deg, #041208, #071a0a);
    border: 2px solid var(--emerald-dark);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.reels-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 16px;
    max-width: 100%;
}

.reel {
    background: #020c04;
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 10px;
    /* Intrinsic 3:1 height using padding trick:
       padding-bottom: 300% means height = 3 × width
       The reel expands to show exactly 3 square symbols. */
    position: relative;
    width: 100%;
    padding-bottom: 300%;
    height: 0;
    overflow: hidden;
}

.reel-window {
    /* Fill the full intrinsic box */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* No height – grows with content, clipped by .reel overflow:hidden */
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.reel-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* each symbol is square */
    border-bottom: 1px solid rgba(0, 200, 83, 0.1);
    position: relative;
    cursor: default;
    user-select: none;
    padding: 3px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.reel-symbol img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transition: transform 0.2s;
}

.reel-symbol.winning img {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
    transform: scale(1.08);
}

.reel-symbol:last-child {
    border-bottom: none;
}

.reel-symbol.winning {
    background: rgba(255, 215, 0, 0.15) !important;
    animation: win-pulse 0.5s ease infinite alternate;
}

@keyframes win-pulse {
    from {
        background: rgba(255, 215, 0, 0.1);
    }

    to {
        background: rgba(255, 215, 0, 0.3);
        box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2);
    }
}

/* Reel glow during spinning */
.reel.reel-active {
    border-color: rgba(0, 200, 83, 0.7);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Removed: old spin-blur replaced by Web Animations API scroll */

.payline-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.payline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    opacity: 0.5;
}

.payline-dot.active {
    opacity: 1;
    box-shadow: 0 0 8px var(--emerald);
}

/* Controls */
.slot-controls {
    display: grid;
    grid-template-columns: 1fr 1fr auto 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.control-input {
    background: rgba(0, 200, 83, 0.07);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    outline: none;
    transition: var(--transition);
}

.control-input:focus {
    border-color: var(--emerald);
}

.control-btn {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--emerald);
    font-size: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--emerald);
    color: var(--bg);
}

.spin-btn {
    grid-column: 3;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    border: none;
    color: #0a1a00;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    align-self: center;
}

.spin-btn:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.7);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spin-btn.spinning {
    animation: spin-btn-anim 0.5s ease infinite;
}

@keyframes spin-btn-anim {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Win display */
.win-display {
    text-align: center;
    margin-top: 16px;
    min-height: 36px;
}

.win-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    animation: win-pop 0.4s ease;
}

@keyframes win-pop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.win-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* History */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.history-table th {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.history-table td {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 200, 83, 0.05);
}

.history-win {
    color: var(--gold);
    font-weight: 600;
}

.history-loss {
    color: var(--text-muted);
}

/* Autoplay bar */
.autoplay-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    background: rgba(0, 200, 83, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    flex-wrap: wrap;
}

.autoplay-select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 6px 12px;
    font-size: 0.85rem;
    outline: none;
}

.autoplay-select:focus {
    border-color: var(--emerald);
}

/* ===== SYMBOLS SHOWCASE ===== */
.symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.symbol-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
}

.symbol-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
}

.symbol-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.symbol-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 4px;
}

.symbol-mult {
    font-size: 0.75rem;
    color: var(--emerald);
}

/* ===== COMPARISON TABLE ===== */
.comparison-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table thead th {
    background: linear-gradient(135deg, var(--bg-card2), #041208);
    padding: 20px;
    text-align: center;
    font-family: var(--font-display);
    border-bottom: 2px solid var(--emerald-dark);
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table thead th.highlight-col {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.05));
    border-left: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
}

.comparison-table tbody td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 200, 83, 0.07);
    font-size: 0.9rem;
}

.comparison-table tbody td:first-child {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover td {
    background: rgba(0, 200, 83, 0.04);
}

.comparison-table .highlight-col {
    background: rgba(255, 215, 0, 0.05);
    border-left: 2px solid rgba(255, 215, 0, 0.2);
    border-right: 2px solid rgba(255, 215, 0, 0.2);
    color: var(--gold) !important;
    font-weight: 600;
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--gold);
}

.faq-question.open {
    color: var(--gold);
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-question.open .faq-icon {
    background: var(--emerald);
    color: var(--bg);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== STRATEGY SECTION ===== */
.strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    overflow: hidden;
}

.strategy-grid>* {
    min-width: 0;
    overflow: hidden;
}

.strategy-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    width: 100%;
}

.strategy-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.strategy-step:hover {
    border-color: var(--emerald);
}

.step-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--bg);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}


.step-title {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 4px;
}

.step-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== PAYTABLE GRID ===== */
.paytable-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .paytable-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== RTP PAGE GRIDS ===== */
.rtp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    margin-bottom: 48px;
}

.rtp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Prevent grid children from overflowing parent */
.rtp-hero-grid>*,
.rtp-cards-grid>* {
    min-width: 0;
}

/* ===== RTP METER ===== */

.rtp-meter {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.rtp-circle {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    position: relative;
}

.rtp-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.rtp-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 12;
}

.rtp-fill {
    fill: none;
    stroke: url(#rtp-gradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    animation: rtp-draw 2s ease-out 0.5s forwards;
}

@keyframes rtp-draw {
    to {
        stroke-dashoffset: 66;
    }

    /* 440 * (1 - 0.85) = 66 */
}

.rtp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.rtp-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    display: block;
}

.rtp-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== VOLATILITY BADGE ===== */
.volatility-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 60px;
}

.vol-bar {
    width: 18px;
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

.vol-bar.active {
    background: linear-gradient(0deg, var(--emerald-dark), var(--emerald));
}

.vol-bar.inactive {
    background: rgba(255, 255, 255, 0.08);
}

/* ===== CASINO BONOS ===== */
.casinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.casino-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.casino-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.casino-logo-box {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    font-size: 2rem;
}

.casino-name {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1rem;
    font-weight: 700;
}

.casino-bonus {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--emerald-light);
}

.casino-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.casino-features {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.casino-chip {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    background: rgba(0, 200, 83, 0.1);
    color: var(--emerald);
    border: 1px solid var(--border);
}

/* ===== RESPONSIBLE GAMING ===== */
.rg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.rg-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.rg-card:hover {
    border-color: var(--emerald);
}

.rg-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.rg-title {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.rg-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-about-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-about-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-about-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-disclaimer {
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.75rem;
    color: #ff9999;
    line-height: 1.5;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--emerald-light);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-dev-link {
    color: var(--emerald);
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-dev-link:hover {
    color: var(--emerald-light);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 80, 80, 0.15);
    border: 2px solid #ff5555;
    color: #ff5555;
    font-weight: 800;
    font-size: 0.8rem;
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card2);
    border: 1px solid var(--emerald);
    border-radius: var(--radius);
    padding: 16px 20px;
    color: var(--text);
    font-size: 0.875rem;
    z-index: 9999;
    transform: translateX(150%);
    transition: var(--transition);
    max-width: 300px;
    box-shadow: var(--shadow-green);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.notification.show {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.notification strong {
    color: var(--gold);
}

/* ===== PAYTABLE SPLIT ===== */
.paytable-split {
    grid-template-columns: 1fr 1fr;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rg-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .strategy-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Nav: shrink for tablets */
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .nav-cta {
        padding: 7px 14px !important;
        font-size: 0.8rem !important;
    }

    .nav-logo {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {

    /* ===== RTP PAGE RESPONSIVE ===== */
    .rtp-hero-grid {
        grid-template-columns: 1fr !important;
    }

    .rtp-cards-grid {
        grid-template-columns: 1fr !important;
    }

    /* ===== GLOBAL OVERFLOW PROTECTION ===== */
    .container {
        max-width: 100%;
        overflow: visible;
    }

    .section,
    .card,
    .comparison-wrap {
        max-width: 100%;
        overflow-x: auto;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* Grid columns must collapse properly */
    .strategy-grid>*,
    .footer-grid>* {
        min-width: 0;
    }

    .section {
        padding: 60px 0;
    }

    .demo-section {
        padding: 60px 0;
    }

    /* ---- HERO ---- */
    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 24px 0;
    }

    .hero-image-wrap {
        display: none;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* ---- STATS BAR ---- */
    .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .stat-item {
        border: 1px solid rgba(0, 200, 83, 0.08);
    }

    /* ---- NAV ---- */
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(5, 15, 7, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 12px 0 16px;
        gap: 2px;
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-burger {
        display: flex;
        background: transparent;
        border: none;
    }

    .nav-link {
        padding: 12px 20px;
        border-radius: 0;
        width: 100%;
        font-size: 0.95rem;
    }

    .nav-cta {
        margin: 8px 20px 0;
        width: calc(100% - 40px) !important;
        text-align: center;
        justify-content: center;
        border-radius: 50px !important;
    }

    /* ---- SLOT CONTROLS ---- */
    .slot-controls {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .spin-btn {
        order: -1;
        width: 100%;
        height: 56px;
        border-radius: 12px;
        font-size: 1.3rem;
    }

    .control-group {
        width: 100%;
    }

    /* ---- DEMO HEADER ---- */
    .demo-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-balance {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr auto;
        gap: 8px;
    }

    .demo-val-box {
        padding: 8px;
    }

    .demo-body {
        padding: 16px;
    }

    /* ---- PAYTABLE ---- */
    .paytable-split {
        grid-template-columns: 1fr !important;
    }

    /* ---- LAYOUT ---- */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .rg-grid {
        grid-template-columns: 1fr 1fr;
    }

    .strategy-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .card {
        padding: 20px;
    }

    .chart-container {
        padding: 20px 16px;
    }

    .demo-section {
        padding: 60px 0;
    }

    /* ---- TABLES ---- */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-wrap {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {

    .rtp-hero-grid,
    .rtp-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .container {
        padding: 0 14px;
        overflow: visible;
    }


    /* Fix strategy steps overflow */
    .strategy-step {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .strategy-steps {
        width: 100%;
        overflow: hidden;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-stat {
        min-width: 72px;
    }

    .hero-stat-value {
        font-size: 1.4rem;
    }

    .stats-bar-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .stat-item-value {
        font-size: 1.3rem;
    }

    .stat-item-label {
        font-size: 0.75rem;
    }

    .symbols-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rg-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reels-container {
        gap: 3px;
    }

    .reel-symbol {
        font-size: 1rem;
    }

    .spin-btn {
        height: 50px;
        font-size: 1.1rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.875rem;
        padding: 11px 18px;
    }

    .demo-balance {
        grid-template-columns: 1fr 1fr;
    }

    .demo-val-box {
        padding: 6px 8px;
    }

    .demo-val {
        font-size: 1rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .casinos-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .rtp-circle {
        width: 140px;
        height: 140px;
    }

    .rtp-num {
        font-size: 1.8rem;
    }

    .autoplay-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-logo {
        font-size: 0.95rem;
    }

    .nav-logo img {
        width: 30px;
        height: 30px;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 7vw, 2.4rem);
    }

    .strategy-step {
        padding: 14px;
    }

    .footer-about-text {
        font-size: 0.8rem;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scatter star animation */
@keyframes sparkle {

    0%,
    100% {
        filter: drop-shadow(0 0 4px var(--gold));
    }

    50% {
        filter: drop-shadow(0 0 12px var(--gold)) brightness(1.3);
    }
}

.sparkle-icon {
    animation: sparkle 2s ease infinite;
}