/* Onest and Unbounded (SIL Open Font License), self-hosted variable fonts downloaded from Google Fonts. */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/onest-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/onest-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/onest-math.woff2) format('woff2'); unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/onest-symbols.woff2) format('woff2'); unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/onest-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/onest-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/onest-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/unbounded-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/unbounded-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/unbounded-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/unbounded-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/unbounded-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== PrediktGame Homepage ===== */

/* --- Custom Properties --- */
:root {
    --bg-deep: #06070b;
    --bg-surface: #0d0f17;
    --bg-card: rgba(16, 19, 32, 0.65);
    --bg-card-hover: rgba(22, 26, 44, 0.75);
    --accent: #00e5c7;
    --accent-glow: rgba(0, 229, 199, 0.25);
    --accent-dim: rgba(0, 229, 199, 0.08);
    --gold: #f5b731;
    --gold-glow: rgba(245, 183, 49, 0.2);
    --text-primary: #e8eaf0;
    --text-secondary: #8a8fa8;
    --text-muted: #565b73;
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(0, 229, 199, 0.15);
    --font-display: 'Clash Display', 'Inter', sans-serif;
    --font-body: 'Satoshi', 'Inter', sans-serif;
    --max-width: 1140px;
    --section-pad: 5rem 1.25rem;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* --- Noise Texture Overlay --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* --- Layout Utility --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.25rem 6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 199, 0.08) 0%, transparent 65%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 183, 49, 0.05) 0%, transparent 65%);
    bottom: -100px;
    right: -200px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating geometric decorations */
.geo {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.geo-1 {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    transform: rotate(45deg);
    top: 20%;
    left: 8%;
    animation: float 8s ease-in-out infinite;
}

.geo-2 {
    width: 50px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    top: 30%;
    right: 10%;
    animation: float 6s ease-in-out infinite 1s;
}

.geo-3 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(0, 229, 199, 0.2);
    bottom: 25%;
    left: 12%;
    animation: float 10s ease-in-out infinite 2s;
}

.geo-4 {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(245, 183, 49, 0.3);
    border-radius: 8px;
    bottom: 20%;
    right: 8%;
    transform: rotate(30deg);
    animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

.geo-2 {
    animation-name: float-circle;
}

@keyframes float-circle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Section Common --- */
.section {
    position: relative;
    z-index: 1;
    padding: var(--section-pad);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .section-label {
    justify-content: center;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* --- How It Works --- */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s, background 0.3s;
}

.step-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.step-content h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Connector line between steps (desktop) --- */
.steps-connector {
    display: none;
}

/* --- Features --- */
.features-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 229, 199, 0.015) 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s, transform 0.2s, background 0.3s;
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.1rem;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    color: var(--accent);
}

.feature-icon.gold {
    background: rgba(245, 183, 49, 0.08);
    border-color: rgba(245, 183, 49, 0.15);
    color: var(--gold);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- Premium / Pricing --- */
.premium-section {
    background: linear-gradient(180deg, transparent 0%, rgba(245, 183, 49, 0.01) 50%, transparent 100%);
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 780px;
    margin: 0 auto;
}

.pricing-card {
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: rgba(245, 183, 49, 0.25);
    background: linear-gradient(135deg, rgba(245, 183, 49, 0.04) 0%, rgba(16, 19, 32, 0.65) 100%);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.pricing-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.pricing-card:not(.featured) .pricing-badge {
    background: rgba(138, 143, 168, 0.1);
    color: var(--text-secondary);
}

.pricing-card.featured .pricing-badge {
    background: var(--gold-glow);
    color: var(--gold);
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pricing-price .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-card.featured .pricing-price .amount {
    color: var(--gold);
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.pricing-features .check {
    color: var(--accent);
}

.pricing-features .cross {
    color: var(--text-muted);
}

.pricing-save {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(245, 183, 49, 0.12);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.4rem;
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-note svg {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    margin-right: 0.3rem;
}

/* --- Footer --- */
/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.7s ease-out both;
}

.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.3s; }
.fade-in-d4 { animation-delay: 0.4s; }
.fade-in-d5 { animation-delay: 0.5s; }
.fade-in-d6 { animation-delay: 0.6s; }

/* --- Responsive --- */
@media (min-width: 640px) {
    .steps {
        grid-template-columns: 1fr 1fr;
    }

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

    .pricing-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    :root {
        --section-pad: 6rem 2rem;
    }

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

@media (min-width: 1024px) {
    :root {
        --section-pad: 7rem 2rem;
    }

    .hero {
        padding: 10rem 2rem 8rem;
    }

    .steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* --- Selection color --- */
::selection {
    background: rgba(0, 229, 199, 0.2);
    color: var(--text-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* --- FAQ Section --- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--border-accent);
}

.faq-item[open] {
    border-color: var(--border-accent);
}

.faq-item summary {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Shared public-site navigation, buttons and footer. */
body { background: #080d11; color: #f0f5f4; }
body::before { display: none; }

.site-container,
.site-header-inner {
    width: min(100%, 1248px);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 3vw, 2rem);
}

.site-skip {
    position: fixed;
    top: -4rem;
    left: 1.5rem;
    z-index: 200;
    padding: .6rem 1rem;
    background: #00e5c7;
    color: #062321;
    font-weight: 700;
}

.site-skip:focus { top: 1rem; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    padding: 1rem 0;
    background: #0d171b;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #f0f5f4;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.site-brand img { width: 28px; height: 28px; }

.site-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.2vw, 2rem);
    list-style: none;
}

.site-nav-links a {
    color: #afc0bd;
    font-size: .875rem;
    white-space: nowrap;
    text-decoration: none;
}

.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] { color: #f0f5f4; }

.site-header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: none;
    margin-inline-start: auto;
}

.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .65rem 1.2rem;
    border: 0;
    border-radius: 7px;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.site-button:hover { transform: translateY(-2px); }
.site-button:active { transform: translateY(1px); }
.site-button--primary { background: #00e5c7; color: #062321; }
.site-button--primary:hover { background: #55f3dc; }
.site-button--secondary { background: #183237; color: #f0f5f4; }
.site-button--secondary:hover { background: #275059; }
.site-header-cta { inline-size: 190px; min-height: 44px; padding: .55rem 1.15rem; font-size: .82rem; }
.site-cta-short { display: none; }

.site-language { position: relative; flex: none; }
.site-language summary {
    display: flex; align-items: center; justify-content: center; inline-size: 74px; min-height: 44px;
    gap: .3rem; padding: .5rem .65rem; border: 1px solid #315156; border-radius: 7px;
    color: #f0f5f4; font-size: .82rem; font-weight: 700; cursor: pointer; list-style: none;
}
.site-language summary::-webkit-details-marker { display: none; }
.site-language summary::after {
    content: ''; width: 6px; height: 6px; flex-shrink: 0;
    border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.site-language ul {
    position: absolute; inset-block-start: calc(100% + .5rem); inset-inline-end: 0;
    width: max-content; max-width: min(85vw, 15rem); padding: .35rem; margin: 0;
    border: 1px solid #315156; border-radius: 10px; background: #102126;
    list-style: none; box-shadow: 0 12px 28px #0007;
}
.site-language li a { display: block; padding: .55rem .75rem; border-radius: 6px; color: #f0f5f4; text-decoration: none; }
.site-language-flag { display: inline-block; width: 1.8em; font-size: 1.05em; line-height: 1; }
.site-language li a:hover, .site-language li a[aria-current="page"] { background: #1d4145; }
.site-language summary:focus-visible, .site-language a:focus-visible { outline: 3px solid #f5b731; outline-offset: 2px; }

/* Mobile hamburger menu; hidden on desktop where the links are inline. */
.site-menu { display: none; flex: none; }
.site-menu summary {
    display: flex; align-items: center; justify-content: center; inline-size: 44px; min-height: 44px;
    border: 1px solid #315156; border-radius: 7px; cursor: pointer; list-style: none;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu-icon,
.site-menu-icon::before,
.site-menu-icon::after {
    display: block; width: 18px; height: 2px; border-radius: 1px; background: #f0f5f4;
    transition: transform .2s ease, background-color .2s ease;
}
.site-menu-icon { position: relative; }
.site-menu-icon::before,
.site-menu-icon::after { content: ''; position: absolute; inset-inline-start: 0; }
.site-menu-icon::before { top: -6px; }
.site-menu-icon::after { top: 6px; }
.site-menu[open] .site-menu-icon { background: transparent; }
.site-menu[open] .site-menu-icon::before { transform: translateY(6px) rotate(45deg); }
.site-menu[open] .site-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.site-menu-panel {
    position: absolute; inset-block-start: 100%; inset-inline: 0;
    max-block-size: calc(100dvh - 100%); overflow-y: auto;
    padding: .5rem clamp(1.25rem, 3vw, 2rem) 1.25rem;
    border-block-end: 1px solid #315156; background: #0d171b;
    box-shadow: 0 16px 28px #0007;
}
.site-menu-panel ul { margin: 0; padding: 0; list-style: none; }
.site-menu-links a {
    display: block; padding: .85rem 0; border-block-end: 1px solid #1b2c31;
    color: #f0f5f4; font-size: 1rem; font-weight: 600; text-decoration: none;
}
.site-menu-links a:hover, .site-menu-links a[aria-current="page"] { color: #00e5c7; }
.site-menu-heading {
    margin: 1.1rem 0 .5rem; color: #afc0bd;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.site-menu-panel .site-menu-languages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; margin-inline: -.5rem; }
.site-menu-languages a {
    display: block; padding: .6rem .5rem; border-radius: 6px;
    color: #f0f5f4; font-size: .9rem; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-menu-languages a:hover, .site-menu-languages a[aria-current="page"] { background: #1d4145; }
.site-menu a:focus-visible { outline: 3px solid #f5b731; outline-offset: 2px; }
.site-menu summary:focus-visible { outline: 3px solid #f5b731; outline-offset: 2px; }

.site-footer {
    position: relative;
    z-index: 1;
    background: #071014;
    padding: 4.5rem 0 3rem;
}

.site-footer .site-container { display: grid; gap: 1.5rem; }
.site-footer .site-brand { font-size: clamp(2rem, 6vw, 5rem); line-height: 1.1; }
.site-footer .site-brand img { width: clamp(32px, 5vw, 62px); height: auto; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; list-style: none; }
.site-footer nav a { color: #f0f5f4; font-size: .95rem; text-decoration: none; }
.site-footer nav a:hover { color: #00e5c7; }
.site-footer p { color: #afc0bd; font-size: .9rem; margin: 0; }

.site-header a:focus-visible,
.site-footer a:focus-visible,
.site-button:focus-visible {
    outline: 3px solid #f5b731;
    outline-offset: 4px;
}

/* The six links need ~1,100px in ru/es; below 1200px they move into the hamburger menu. */
@media (max-width: 1199px) {
    .site-nav-links { display: none; }
    .site-menu { display: block; }
    .site-language { display: none; }
    .site-header-inner { gap: .5rem; }
    .site-header-actions { gap: .5rem; }
    .site-header-cta { inline-size: 82px; }
    .site-cta-long { display: none; }
    .site-cta-short { display: inline; }
}

@media (max-width: 380px) {
    .site-brand { font-size: .8rem; gap: .35rem; }
    .site-brand img { width: 24px; height: 24px; }
    .site-header-cta { padding-inline: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .site-button,
    .site-menu-icon,
    .site-menu-icon::before,
    .site-menu-icon::after { transition: none; }
}

/* The topics are choices first; public question previews are secondary. */

/* Breadcrumb shared by /quiz and topic pages, in flow so the H1 sits at the same height on both. */
.site-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.25rem;
    color: #8fa6a3;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
}

.site-breadcrumb a { color: #00e5c7; text-decoration: none; }
.site-breadcrumb a:hover { text-decoration: underline; text-underline-offset: .2em; }
.site-breadcrumb a:focus-visible { outline: 3px solid #f5b731; outline-offset: 2px; }
.site-breadcrumb [aria-current] { color: #d4e0df; }
.quiz-index-page .page {
    max-width: 1248px;
    padding-inline: clamp(1.25rem, 3vw, 2rem);
}

.quiz-index-page .page h1 {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    max-width: 16ch;
}

.quiz-index-page .page .lead {
    color: #d4e0df;
    max-width: 45ch;
    margin-bottom: 2.5rem;
}

.quiz-directory {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
}

.quiz-directory li {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #14272c;
}

.quiz-directory li:first-child { background: #00e5c7; }
.quiz-directory li:nth-child(3n) { background: #1a3035; }

.quiz-directory-choice {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 124px;
    padding: 1.5rem;
    color: #f0f5f4;
    text-decoration: none;
    transition: background-color .18s ease;
}

.quiz-directory-choice:hover,
.quiz-directory-choice:focus-visible { background: #244147; }
.quiz-directory li:first-child .quiz-directory-choice { color: #06332e; }
.quiz-directory li:first-child .quiz-directory-choice:hover,
.quiz-directory li:first-child .quiz-directory-choice:focus-visible { background: #56f0da; }

.quiz-directory-choice:focus-visible,
.quiz-directory-preview:focus-visible {
    outline: 3px solid #f5b731;
    outline-offset: -3px;
}

.quiz-directory-title {
    display: block;
    max-width: min(12ch, 100%);
    overflow-wrap: anywhere;
    -webkit-hyphens: auto;
    hyphens: auto; /* split long words at syllables (lang attribute) before breaking them anywhere */
    font-family: var(--font-body);
    font-size: clamp(1.55rem, 2.8vw, 2.25rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.025em;
}

.quiz-directory-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    line-height: 1;
    color: #00e5c7;
    transition: transform .18s ease;
}

.quiz-directory li:first-child .quiz-directory-arrow { color: #06332e; }
.quiz-directory-choice:hover .quiz-directory-arrow,
.quiz-directory-choice:focus-visible .quiz-directory-arrow { transform: translate(3px, -3px); }

.quiz-directory-description {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    -webkit-hyphens: auto;
    hyphens: auto; /* split long words at syllables (lang attribute) before breaking them anywhere */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-.5rem);
    color: #c3d2d0;
    font-size: .95rem;
    line-height: 1.4;
    transition: max-height .28s ease, margin-top .28s ease, opacity .2s ease, transform .28s ease;
}

.quiz-directory li:first-child .quiz-directory-description { color: #06332e; }

.quiz-directory-choice:hover .quiz-directory-description,
.quiz-directory-choice:focus-visible .quiz-directory-description {
    max-height: 6rem;
    margin-top: .65rem;
    opacity: 1;
    transform: translateY(0);
}

/* The three fandom topics have artwork; the other choices keep their plain panels. */
.quiz-directory-choice--illustrated { isolation: isolate; }
.quiz-directory-choice--illustrated::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(90deg, rgba(8, 21, 29, .86), rgba(8, 21, 29, .32)), var(--topic-art);
    background-size: cover;
    background-position: center;
}
.quiz-directory-choice--illustrated[data-topic="minecraft"] { --topic-art: url('/images/topics/minecraft.webp'); }
.quiz-directory-choice--illustrated[data-topic="naruto"] { --topic-art: url('/images/topics/naruto.webp'); }
.quiz-directory-choice--illustrated[data-topic="harry_potter"] { --topic-art: url('/images/topics/harry-potter.webp'); }
.quiz-directory-choice--illustrated:hover::before,
.quiz-directory-choice--illustrated:focus-visible::before {
    background-image: linear-gradient(90deg, rgba(8, 21, 29, .94), rgba(8, 21, 29, .6)), var(--topic-art);
}
.quiz-directory-choice--illustrated .quiz-directory-description { color: #e0e9ec; }

/* Secondary action: one preview link in the active language, as a footer strip of the tile. */
.quiz-directory-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.5rem;
    border-top: 1px solid rgba(240, 245, 244, .1);
    color: #b0eee4;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.quiz-directory-preview span[aria-hidden] { transition: transform .18s ease; }
.quiz-directory-preview:hover,
.quiz-directory-preview:focus-visible { background: #244147; color: #fff; }
.quiz-directory-preview:hover span[aria-hidden],
.quiz-directory-preview:focus-visible span[aria-hidden] { transform: translateX(3px); }

.quiz-directory li:first-child .quiz-directory-preview { color: #06332e; border-top-color: rgba(6, 51, 46, .2); }
.quiz-directory li:first-child .quiz-directory-preview:hover,
.quiz-directory li:first-child .quiz-directory-preview:focus-visible { background: #56f0da; color: #06332e; }

.quiz-index-browser-sample {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 3.5rem;
    padding: 1.25rem 1.5rem;
    background: #102025;
}

.quiz-index-browser-sample p { margin: 0; font-weight: 600; }

@media (max-width: 900px) {
    .quiz-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .quiz-index-page .page .lead { margin-bottom: 2rem; }
    .quiz-directory { gap: .6rem; }
    .quiz-directory-choice { min-height: 108px; padding: 1rem; }
    .quiz-directory-title { font-size: clamp(1.15rem, 5vw, 1.5rem); }
    .quiz-directory-arrow { top: 1rem; right: 1rem; font-size: 1.25rem; }
    .quiz-directory-preview { padding: .75rem 1rem; font-size: .85rem; }
    .quiz-index-browser-sample { margin-bottom: 3rem; padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .quiz-directory-choice,
    .quiz-directory-preview,
    .quiz-directory-preview span[aria-hidden],
    .quiz-directory-arrow,
    .quiz-directory-description { transition: none; }
}
