/* ══════════════════════════════════════════════
   FONT
   ══════════════════════════════════════════════ */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

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

:root {
    --color-bg: #f8f9fc;
    --color-bg-alt: #f0f2f7;
    --color-bg-dark: #1a1a2e;
    --color-text: #1e2028;
    --color-text-light: #5a5d6e;
    --color-primary: #D4700A;
    --color-primary-light: #F5922A;
    --color-primary-bg: rgba(212,112,10,.07);
    --color-accent: #FFB830;
    --color-accent-light: #FFD166;
    --color-border: #e2e5ed;
    --color-card-bg: #ffffff;
    --color-card-shadow: rgba(0,0,0,.06);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
    --container: 1200px;
    --header-h: 64px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-light); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow .3s;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: all .2s;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(0,0,0,.05);
    color: var(--color-text);
}

.nav-link.active {
    background: rgba(0,0,0,.05);
    color: var(--color-text);
    font-weight: 600;
}

.nav-icon {
    width: 18px;
    height: 18px;
    opacity: .7;
    filter: brightness(0) saturate(100%);
    transition: filter .2s;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    filter: brightness(0);
    opacity: 1;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all .3s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
    padding: calc(var(--header-h) + 60px) 0 80px;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef0f7 50%, #e8ecf5 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,112,10,.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232,163,23,.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text);
    max-width: 900px;
    margin: 0 auto 20px;
    letter-spacing: -.02em;
}

.hero-subtitle {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--color-text-light);
    max-width: 720px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 120px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -.03em;
}

.stat-number::after { content: '+'; font-size: .6em; }

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(212,112,10,.3);
    transition: all .25s;
}

.hero-cta:hover {
    background: var(--color-primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212,112,10,.35);
}

/* ══════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════ */
.section {
    padding: 80px 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section--dark {
    background: var(--color-bg-dark);
    color: #d4d0c8;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.section-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    padding: 6px;
    background: var(--color-primary-bg);
    border-radius: 10px;
}

.section--dark .section-icon {
    filter: invert(1) brightness(2);
    background: rgba(255,255,255,.1);
}

.section-header h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.section-lead {
    font-size: 17px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 700px;
}
#demo-slots .section-lead {
    max-width: 100%;
    white-space: nowrap;
}
@media (max-width: 900px) {
    #demo-slots .section-lead {
        white-space: normal;
    }
}

/* ══════════════════════════════════════════════
   CONTENT BLOCKS
   ══════════════════════════════════════════════ */
.content-block p {
    margin-bottom: 20px;
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.8;
}

.content-block h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 40px;
    margin-bottom: 16px;
}

/* ══════════════════════════════════════════════
   SLOT BOX (dark panel)
   ══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   SLOT PLAYER BOX — light theme
   ══════════════════════════════════════════════ */
.main-container {
    display: flex;
    width: 100%;
    height: 580px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

/* ── Left: iframe panel ── */
.iframe-panel {
    flex: 1;
    background: var(--color-bg-alt);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.iframe-header {
    padding: 0 16px;
    height: 44px;
    background: var(--color-card-bg);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.game-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.release-badge {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 4px 10px 4px 8px;
    background: var(--color-primary-bg);
    border: 1px solid rgba(212,112,10,.2);
    border-radius: 20px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    animation: badgePop .25s ease;
}
.release-badge.visible { display: flex; }
.release-badge-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--color-primary);
    filter: brightness(0) saturate(100%) invert(42%) sepia(74%) saturate(800%) hue-rotate(10deg) brightness(90%);
}
@keyframes badgePop {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}

.iframe-wrapper { flex: 1; position: relative; background: var(--color-bg-alt); }
.iframe-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }

.iframe-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(245,146,42,0.11) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 65%, rgba(212,112,10,0.07) 0%, transparent 55%),
        linear-gradient(145deg, #f8f9fc 0%, #f0f2f7 100%);
    transition: background .25s ease;
}
.iframe-placeholder:hover {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(245,146,42,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 65%, rgba(212,112,10,0.12) 0%, transparent 55%),
        linear-gradient(145deg, #f8f9fc 0%, #f0f2f7 100%);
}

/* Content */
.placeholder-card {
    display: flex; flex-direction: column;
    align-items: center; gap: 0;
    text-align: center;
    pointer-events: none; /* клики идут на родителя */
}

/* Play icon — outline circle, no fill, flat */
.placeholder-play-btn {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(212,112,10,0.45);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.iframe-placeholder:hover .placeholder-play-btn {
    border-color: var(--color-primary);
    background: rgba(212,112,10,0.06);
    transform: scale(1.06);
}
.iframe-placeholder:active .placeholder-play-btn {
    transform: scale(0.97);
}

/* Pulse ring */
.placeholder-play-btn::before {
    content: '';
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(212,112,10,0.18);
    animation: playPulse 3s ease-out infinite;
}
@keyframes playPulse {
    0%   { transform: scale(1);    opacity: 1; }
    75%  { transform: scale(1.30); opacity: 0; }
    100% { transform: scale(1.30); opacity: 0; }
}

.placeholder-play-btn svg {
    width: 24px; height: 24px;
    color: var(--color-primary);
    margin-left: 3px;
    opacity: 0.85;
    transition: opacity .2s ease, transform .2s ease;
}
.iframe-placeholder:hover .placeholder-play-btn svg {
    opacity: 1;
    transform: scale(1.05);
}

.placeholder-title {
    font-size: 16px; font-weight: 600;
    color: var(--color-text);
    margin: 22px 0 0; line-height: 1.2;
}
.placeholder-sub {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 7px 0 0; line-height: 1.5;
}

@media (max-width: 768px) {
    .placeholder-play-btn {
        width: 56px; height: 56px;
    }
    .placeholder-play-btn svg {
        width: 19px; height: 19px;
    }
    .placeholder-title { font-size: 14px; margin-top: 16px; }
    .placeholder-sub   { font-size: 12px; }
}

/* Overlay control buttons — stay dark so they're readable over the game */
.iframe-btn {
    position: absolute; z-index: 10;
    width: 34px; height: 34px;
    border: none; border-radius: 8px;
    background: rgba(0,0,0,.5);
    color: rgba(255,255,255,.75);
    cursor: pointer; display: none;
    align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .2s, color .2s, opacity .2s;
    opacity: 0; padding: 0;
}
.iframe-btn svg { width: 16px; height: 16px; pointer-events: none; }
.iframe-btn:hover { background: rgba(0,0,0,.72); color: #fff; }
.iframe-wrapper.has-game .iframe-btn { display: flex; }
.iframe-wrapper.has-game:hover .iframe-btn { opacity: 1; }
.btn-close-slot { top: 10px; right: 10px; }
.btn-fullscreen { bottom: 10px; right: 10px; }
.iframe-wrapper.is-fullscreen { background: #000; }
.iframe-wrapper.is-fullscreen .btn-fullscreen { bottom: 16px; right: 16px; }
.iframe-wrapper.is-fullscreen .btn-close-slot { top: 16px; right: 16px; }

/* ── Right: slots panel ── */
.slots-panel {
    width: 320px; min-width: 320px;
    background: var(--color-card-bg);
    display: flex; flex-direction: column;
    border-left: 1px solid var(--color-border);
}

.slots-toolbar {
    padding: 0 10px; height: 44px;
    display: flex; align-items: center; gap: 6px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-card-bg);
    position: relative; flex-shrink: 0;
}

/* Search bar */
.search-wrap {
    display: flex; align-items: center; flex: 1;
    min-width: 0; height: 28px;
    border: 1px solid var(--color-border);
    border-radius: 7px; background: var(--color-bg-alt);
    cursor: pointer; padding: 0 8px; gap: 6px;
    transition: all .2s; position: relative; z-index: 5;
}
.search-wrap:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
}

.search-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer;
    color: var(--color-text-light); padding: 0; flex-shrink: 0;
    transition: color .2s;
}
.search-wrap:hover .search-toggle { color: var(--color-primary); }
.search-toggle svg { width: 13px; height: 13px; }

.search-count-label {
    font-size: 10px; color: var(--color-text-light);
    white-space: nowrap; pointer-events: none; line-height: 1;
    overflow: hidden; text-overflow: ellipsis;
}

.search-wrap input {
    position: absolute; left: 0; top: 0;
    width: 100%; height: 100%;
    padding: 0 28px 0 28px;
    border: none; background: transparent;
    color: var(--color-text); font-size: 12px;
    outline: none; opacity: 0; pointer-events: none;
    border-radius: 7px; font-family: inherit;
}
.search-wrap input::placeholder { color: var(--color-text-light); }

.search-wrap.open {
    position: absolute; left: 10px; right: 10px;
    top: 50%; transform: translateY(-50%); z-index: 10;
    background: var(--color-card-bg);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-bg);
}
.search-wrap.open .search-count-label { display: none; }
.search-wrap.open input { opacity: 1; pointer-events: auto; }

.search-close {
    display: none; width: 16px; height: 16px;
    align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: var(--color-text-light); padding: 0; flex-shrink: 0;
    transition: color .2s; margin-left: auto; position: relative; z-index: 6;
}
.search-close:hover { color: var(--color-text); }
.search-close svg { width: 11px; height: 11px; }
.search-wrap.open .search-close { display: flex; }

/* Sort buttons */
.sort-btn {
    display: inline-flex; align-items: center; gap: 3px;
    height: 28px; padding: 0 8px;
    border: 1px solid var(--color-border);
    border-radius: 7px; background: var(--color-bg-alt);
    cursor: pointer; transition: all .2s; flex-shrink: 0; user-select: none;
}
.sort-btn:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary);
}
.sort-btn.active {
    background: var(--color-primary-bg);
    border-color: var(--color-primary);
}
.sort-btn .sort-icon {
    width: 13px; height: 13px;
    color: var(--color-text-light); transition: color .2s; flex-shrink: 0;
}
.sort-btn.active .sort-icon { color: var(--color-primary); }
.sort-btn .sort-label {
    font-size: 10px; font-weight: 600;
    color: var(--color-text-light); letter-spacing: .3px; line-height: 1; transition: color .2s;
}
.sort-btn.active .sort-label { color: var(--color-primary); }
.sort-btn .sort-arrow {
    width: 8px; height: 8px;
    color: var(--color-primary); opacity: 0;
    transition: opacity .15s, transform .15s; flex-shrink: 0;
}
.sort-btn.asc .sort-arrow { opacity: 1; transform: rotate(0deg); }
.sort-btn.desc .sort-arrow { opacity: 1; transform: rotate(180deg); }

/* Slots list */
.slots-list-wrap { flex: 1; position: relative; overflow: hidden; }
.slots-list {
    position: absolute; inset: 0;
    overflow-y: auto; padding: 8px; padding-right: 14px;
    scrollbar-width: none;
}
.slots-list::-webkit-scrollbar { display: none; }

.custom-scrollbar {
    position: absolute; top: 4px; bottom: 4px; right: 3px;
    width: 4px; border-radius: 3px;
    background: var(--color-border);
    z-index: 2; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.slots-list-wrap:hover .custom-scrollbar,
.custom-scrollbar.dragging { opacity: 1; pointer-events: auto; }

.custom-scrollbar-thumb {
    position: absolute; top: 0; left: 0;
    width: 100%; border-radius: 3px;
    background: rgba(0,0,0,.18);
    cursor: pointer; transition: background .15s; min-height: 20px;
}
.custom-scrollbar-thumb:hover,
.custom-scrollbar-thumb.active { background: var(--color-primary); }

/* Slot cards */
.slot-card {
    display: flex; align-items: center;
    gap: 12px; padding: 8px 10px;
    border-radius: 10px; cursor: pointer;
    transition: background .18s, transform .15s;
    margin-bottom: 3px; border: 1px solid transparent;
}
.slot-card:hover { background: var(--color-primary-bg); }
.slot-card.active {
    background: var(--color-primary-bg);
    border-color: var(--color-primary);
}
.slot-card:active { transform: scale(.98); }

.slot-card img {
    width: 80px; height: 45px;
    border-radius: 6px; object-fit: cover; flex-shrink: 0;
    border: 1px solid var(--color-border);
}
.slot-info { min-width: 0; flex: 1; }
.slot-info .name {
    font-size: 13px; font-weight: 600; color: var(--color-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slot-info .meta {
    font-size: 11px; color: var(--color-text-light);
    margin-top: 3px; display: flex; gap: 10px;
}
.no-results { padding: 30px 16px; text-align: center; color: var(--color-text-light); font-size: 14px; }

.btn-back-to-list {
    display: none; align-items: center; gap: 6px;
    background: none; border: none; color: var(--color-text);
    font-size: 14px; font-weight: 500; cursor: pointer;
    padding: 0; font-family: inherit; transition: color .2s;
}
.btn-back-to-list:hover { color: var(--color-primary); }
.btn-back-to-list svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   INFO CARDS GRID
   ══════════════════════════════════════════════ */
.info-grid {
    display: grid;
    gap: 20px;
    margin: 32px 0;
}
.info-grid--2 { grid-template-columns: repeat(2, 1fr); }
.info-grid--3 { grid-template-columns: repeat(3, 1fr); }
.info-grid--4 { grid-template-columns: repeat(4, 1fr); }

.info-card {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.info-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    line-height: 1;
}
.info-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}
.info-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0;
}
.info-card--compact {
    padding: 20px;
}
.info-card--compact h3 {
    font-size: 15px;
}

/* ══════════════════════════════════════════════
   STEPS ROW
   ══════════════════════════════════════════════ */
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.step-card {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--color-border);
    text-align: center;
    position: relative;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 14px;
}

.step-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.step-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════
   TABS (Mechanics)
   ══════════════════════════════════════════════ */
.tabs { margin: 32px 0; }

.tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 10px 18px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--color-primary); }
.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

.tab-panel {
    display: none;
    animation: fadeIn .3s ease;
}
.tab-panel.active { display: block; }

.tab-panel h3 {
    margin-top: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

/* ══════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-card-bg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: var(--color-bg-alt);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-text-light);
    border-bottom: 2px solid var(--color-border);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

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

.data-table tbody tr:hover {
    background: var(--color-primary-bg);
}

.data-table--highlight td strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* ══════════════════════════════════════════════
   FRANCHISE CARDS
   ══════════════════════════════════════════════ */
.franchise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.franchise-card {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.franchise-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.franchise-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
}

.franchise-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 0;
    color: var(--color-text);
}

.franchise-card > p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}

.franchise-entries {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.franchise-entries span {
    padding: 3px 10px;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
}

/* ══════════════════════════════════════════════
   VOLATILITY CHART
   ══════════════════════════════════════════════ */
.volatility-chart {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    height: 260px;
    margin: 32px 0;
    padding: 24px;
    background: var(--color-card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.vol-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 10px;
    cursor: default;
}

.vol-fill {
    width: 100%;
    max-width: 80px;
    height: var(--vol-height);
    border-radius: 8px 8px 4px 4px;
    transition: height .6s cubic-bezier(.4,0,.2,1), opacity .6s;
    opacity: 0;
}

.vol-fill.animated { opacity: 1; }

.vol-bar[data-level="1"] .vol-fill { background: linear-gradient(180deg, #6ee7b7, #34d399); }
.vol-bar[data-level="2"] .vol-fill { background: linear-gradient(180deg, #93c5fd, #3b82f6); }
.vol-bar[data-level="3"] .vol-fill { background: linear-gradient(180deg, #c4b5fd, #8b5cf6); }
.vol-bar[data-level="4"] .vol-fill { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.vol-bar[data-level="5"] .vol-fill { background: linear-gradient(180deg, #f87171, #ef4444); }

.vol-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

.vol-desc {
    font-size: 11px;
    color: var(--color-text-light);
    text-align: center;
    max-width: 120px;
    line-height: 1.3;
}

/* ══════════════════════════════════════════════
   THEME CARDS
   ══════════════════════════════════════════════ */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.theme-card {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.theme-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.theme-emoji {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}
.theme-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}
.theme-card p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════
   TIPS
   ══════════════════════════════════════════════ */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.tip-card {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--color-border);
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tip-num {
    font-size: 42px;
    font-weight: 800;
    position: absolute;
    top: 10px;
    right: 16px;
    line-height: 1;
    color: var(--color-primary);
    opacity: .15;
}

.tip-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    display: block;
    filter: brightness(0) saturate(100%) invert(45%) sepia(80%) saturate(600%) hue-rotate(10deg) brightness(90%);
}

.tip-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.tip-card p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════
   CALLOUT
   ══════════════════════════════════════════════ */
.callout {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 28px;
    margin: 28px 0;
    border-left: 4px solid var(--color-primary);
}
.callout--warning {
    border-left-color: var(--color-accent);
    background: rgba(232,163,23,.04);
}
.callout h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-text);
}

.styled-list {
    list-style: none;
    padding: 0;
}
.styled-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
}
.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ══════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--color-card-bg);
    overflow: hidden;
    transition: box-shadow .2s;
}
.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    line-height: 1.5;
    transition: background .2s;
}
.faq-question:hover {
    background: var(--color-primary-bg);
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform .3s;
}

.faq-item.open .faq-question::after {
    content: '\2212';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    padding: 60px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.footer-logo {
    height: 36px;
    width: auto;
    flex-shrink: 0;
    opacity: 1;
}

.footer-disclaimer {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-light);
}

.age-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(17%) sepia(90%) saturate(3000%) hue-rotate(350deg) brightness(95%);
}

/* ── Scroll to top button ── */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-card-bg);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s, transform .25s, background .2s, border-color .2s;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--color-primary-bg);
    border-color: var(--color-primary);
}

.scroll-top-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(42%) sepia(74%) saturate(800%) hue-rotate(10deg) brightness(85%);
    transition: filter .2s;
}

.scroll-top:hover .scroll-top-icon {
    filter: brightness(0) saturate(100%) invert(35%) sepia(90%) saturate(900%) hue-rotate(10deg) brightness(80%);
}

/* ══════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET (< 1024px)
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .info-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .info-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .franchise-grid { grid-template-columns: 1fr; }
    .theme-grid { grid-template-columns: repeat(2, 1fr); }

    .nav-link span { display: none; }
    .nav-link { padding: 8px; }
    .nav-icon { width: 22px; height: 22px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE (< 768px)
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --header-h: 56px; }

    .burger { display: flex; }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        z-index: 999;
    }
    .main-nav.open {
        transform: translateY(0);
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 10px;
    }
    .nav-link span { display: inline; }
    .nav-icon { width: 20px; height: 20px; }

    .hero { padding: calc(var(--header-h) + 40px) 0 60px; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 32px; }
    .stat-card { min-width: 80px; }

    .section { padding: 60px 0; }

    /* Slot box */
    .main-container {
        flex-direction: column;
        height: auto;
        border-radius: var(--radius);
    }
    .slots-panel {
        width: 100%; min-width: 0;
        border-left: none;
        border-top: 1px solid var(--color-border);
        height: 400px;
    }
    .iframe-panel {
        height: 300px;
    }

    /* Grids */
    .info-grid--2,
    .info-grid--3,
    .info-grid--4 { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; }
    .theme-grid { grid-template-columns: 1fr; }
    .franchise-grid { grid-template-columns: 1fr; }
    .tips-grid { grid-template-columns: 1fr; }

    /* Tables — vertical cards on mobile */
    .table-wrap {
        border: none;
        background: none;
    }
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
    }
    .data-table tr {
        background: var(--color-card-bg);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        padding: 16px;
        margin-bottom: 12px;
    }
    .data-table td {
        padding: 6px 0;
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
    }
    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--color-text-light);
        margin-right: 12px;
        flex-shrink: 0;
    }

    /* Volatility chart */
    .volatility-chart {
        height: 200px;
        padding: 16px 12px;
        gap: 8px;
    }
    .vol-desc { display: none; }
    .vol-label { font-size: 11px; }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ══════════════════════════════════════════════
   SMALL MOBILE (< 400px)
   ══════════════════════════════════════════════ */
@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 24px; }
    .stat-number { font-size: 28px; }
    .hero-cta { padding: 14px 28px; font-size: 14px; }
    .section-header h2 { font-size: 20px; }
    .faq-question { padding: 14px 16px; font-size: 14px; }
}
