/* 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; }
}

/* PrediktGame landing: a board assembled from the quiz, its choices and its score. */
:root {
    --font-display: 'Unbounded', 'Onest', sans-serif;
    --font-body: 'Onest', system-ui, sans-serif;
    --lp-ground: #080d11;
    --lp-ink: #f0f5f4;
    --lp-muted: #afc0bd;
    --lp-teal: #00e5c7;
    --lp-gold: #f5b731;
    --lp-panel: #111d24;
    --lp-panel-2: #1a2b32;
}

html { scroll-behavior: auto; }
.lp { background: var(--lp-ground); color: var(--lp-ink); font: 400 1.0625rem/1.58 var(--font-body); }
.lp::before { display: none; }
.lp ::selection { background: var(--lp-teal); color: var(--lp-ground); }
.lp main, .lp-footer { position: relative; z-index: 1; }
.lp h1, .lp h2, .lp h3 { font-family: var(--font-display); color: var(--lp-ink); letter-spacing: -0.03em; }
.lp h2 { font-size: clamp(2rem, 4vw, 3.45rem); font-weight: 600; line-height: 1.1; margin-bottom: 2rem; text-wrap: balance; }
.lp h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 600; margin-bottom: .8rem; }
.lp p { color: var(--lp-ink); max-width: 65ch; }
.lp [hidden] { display: none !important; }
.lp main a:not(.site-button) { color: var(--lp-teal); text-decoration: underline; text-underline-offset: .23em; }
.lp code { font: inherit; font-weight: 600; color: var(--lp-teal); }
.lp :focus-visible { outline: 3px solid var(--lp-gold); outline-offset: 4px; }
.lp button { font: inherit; cursor: pointer; }
.lp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lp-wrap { width: min(100%, 1248px); margin-inline: auto; padding-inline: clamp(1.25rem, 3vw, 2rem); }

/* In-page controls. */
.lp-btn-lg { font-size: 1rem; padding: .9rem 1.45rem; min-height: 52px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* Hero: an interactive group chat, beside a direct explanation. */
.lp-hero { position: relative; isolation: isolate; background: #0c1519; padding: clamp(8rem, 12vw, 10rem) 0 clamp(6rem, 9vw, 8rem); }
.lp-hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lp-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.lp-hero-copy { align-self: start; padding-top: clamp(2rem, 6.5vw, 6rem); }
.lp-hero h1 { max-width: 17ch; font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; margin-bottom: 2rem; text-wrap: balance; }
.lp-lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 47ch; margin-bottom: 2.25rem; }
.lp-fineprint { font-size: .875rem; color: var(--lp-muted) !important; margin-top: .9rem; }
.lp-chat { width: 100%; max-width: 520px; justify-self: end; background: #10232c; border-radius: 12px; overflow: hidden; scroll-margin-top: 5rem; box-shadow: 0 24px 55px rgba(0, 0, 0, .22); }
.lp-chat-head { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 68px; padding: .65rem 1rem; border: 0; background: #1c3440; color: var(--lp-ink); text-align: left; }
.lp-chat-head:hover { background: #24434f; }
.lp-chat-identity { min-width: 0; line-height: 1.25; }
.lp-chat-head strong { display: block; font-size: .98rem; }
.lp-chat-head small { display: block; font-size: .78rem; color: #b8d0d4; }
.lp-group-avatar { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; background: #2f7f7a; color: white; border-radius: 50%; font-weight: 750; font-size: .73rem; }
.lp-chat-chevron { flex: 0 0 20px; width: 20px; height: 20px; margin-left: auto; color: #b8d0d4; transition: transform .2s ease; }
.lp-chat-head[aria-expanded="false"] .lp-chat-chevron { transform: rotate(-90deg); }
.lp-chat-body { height: 540px; overflow-y: auto; padding: 1rem .85rem 1.2rem; background: #10252d; scrollbar-color: #52747b transparent; scrollbar-width: thin; }
.lp-chat-history { display: flex; flex-direction: column; gap: .65rem; }
.lp-chat-day { align-self: center; padding: .18rem .65rem; border-radius: 10px; background: #2d4b53; color: #d7e8e8; font-size: .68rem; font-weight: 700; }
.lp-chat-row { display: flex; align-items: flex-end; gap: .45rem; min-width: 0; }
.lp-sender-avatar { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; font-size: .57rem; font-weight: 800; }
.lp-bot-avatar { background: #1fae9b; color: #022a26; }
.lp-member-avatar { background: #aa704c; color: white; }
.lp-member-avatar-alt { background: #6066a9; }
.lp-message { width: max-content; max-width: calc(100% - 36px); padding: .55rem .75rem .35rem; background: #23404b; border-radius: 10px 10px 10px 3px; font-size: .83rem; line-height: 1.4; }
.lp-message .lp-sender { display: block; margin-bottom: .2rem; color: #5ce0d0; font-size: .76rem; }
.lp-member-message .lp-sender { color: #fac18d; }
.lp-member-avatar-alt + .lp-member-message .lp-sender { color: #c3bcff; }
.lp-message p { font-size: inherit; line-height: inherit; }
.lp-message time { display: block; margin-top: .2rem; text-align: right; color: #bdd0d1; font-size: .65rem; font-variant-numeric: tabular-nums; }
.lp-intro-message { max-width: 88%; }
.lp-intro-message p { white-space: pre-line; }
.lp-poll-message, .lp-result-message { width: min(100%, 420px); padding: .7rem .78rem .4rem; }
.lp-poll-kind { display: block; margin: .45rem 0 .15rem; color: #b8cdd1; font-size: .73rem; }
.lp .lp-poll-q { margin-bottom: .75rem; font-size: .98rem; font-weight: 700; line-height: 1.38; }
.lp-options { display: grid; gap: .3rem; }
.lp-options button { position: relative; isolation: isolate; display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 44px; padding: .45rem .55rem; overflow: hidden; border: 0; border-radius: 4px; background: #2f5360; color: white; text-align: left; font-size: .8rem; line-height: 1.25; transition: background .18s; }
.lp-options button::before { content: ''; flex: 0 0 16px; width: 16px; height: 16px; border: 2px solid #c1d4d6; border-radius: 50%; }
.lp-options button::after { content: ''; position: absolute; z-index: -1; inset: 0; background: #3e7180; transform: scaleX(var(--vote-scale, 0)); transform-origin: left; transition: transform .35s ease-out; }
.lp-options button:hover:not(:disabled) { background: #3b6975; }
.lp-options button:disabled { cursor: default; }
.lp-options button.is-selected::before { border-color: var(--lp-teal); background: var(--lp-teal); box-shadow: inset 0 0 0 3px #2f5360; }
.lp-options button.is-correct::after { background: #297564; }
.lp-options button.is-wrong::after { background: #8a5658; }
.lp-option-percent { margin-left: auto; color: #e7f4f3; font-size: .72rem; font-variant-numeric: tabular-nums; }
.lp-poll-feedback { margin-top: .7rem; padding-top: .6rem; border-top: 1px solid #4c6971; color: #e4f3f0; }
.lp-poll-votes { display: block; margin-top: .55rem; color: #c3d8d7; font-size: .72rem; }
.lp-result-title { font-weight: 700; }
.lp-standings { display: grid; gap: .2rem; margin: .65rem 0; padding: 0; list-style: none; }
.lp-standings li { display: grid; grid-template-columns: 1.5rem 1fr auto; gap: .2rem; }
.lp-standings .is-you { color: #78e8d4; }
.lp-result-note { color: #d0e1de !important; }
.lp-result-response { margin-top: .6rem; }
.lp-chat-composer { display: flex; align-items: center; gap: .85rem; height: 45px; padding: 0 .9rem; background: #203b46; color: #a9c1c5; font-size: .78rem; }
.lp-chat-composer span { flex: 1; }
.lp-chat-composer svg { width: 20px; height: 20px; }
.lp-chat-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; min-height: 58px; padding: .5rem .75rem; background: #1c3440; }
.lp-demo-label { margin-right: auto; color: #c7dbda; font-size: .7rem; }
.lp-chat-controls button, .lp main .lp-chat-controls a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: .35rem .7rem; border: 0; border-radius: 5px; background: #31535e; color: #f0f5f4; text-decoration: none; font-size: .75rem; font-weight: 700; }
.lp-chat-controls button:hover, .lp main .lp-chat-controls a:hover { background: #41727b; }
.lp-chat-controls [data-quiz-next], .lp-chat-controls [data-quiz-restart], .lp main .lp-chat-controls [data-quiz-telegram] { background: var(--lp-teal); color: #06322d; }
.lp-chat-noscript { padding: .75rem; font-size: .8rem; }

/* A sequence made from four related fields. */
.lp-section { padding: clamp(5.5rem, 8vw, 8.5rem) 0; scroll-margin-top: 5rem; }
#how-it-works { background: #0e1b20; }
.lp-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.lp-steps li { min-height: 275px; padding: 1.6rem; background: #1a3036; }
.lp-steps li:nth-child(2) { background: #213b40; }
.lp-steps li:nth-child(3) { background: #294649; }
.lp-steps li:nth-child(4) { background: #31504f; }
.lp-steps li p { font-size: .98rem; line-height: 1.55; color: #e4eeeb; }
.lp-steps li h3 { max-width: 12ch; }

/* Premium custom quizzes lead as a full-width card; the other three modes share one card shape. */
.lp-modes { background: #0a1115; }
.lp-mode-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.lp-mode-list article { padding: clamp(1.5rem, 3vw, 2.4rem); background: #182a30; display: flex; flex-direction: column; align-items: flex-start; }
.lp-mode-list article:nth-child(3) { background: #203b40; }
.lp-mode-list article:nth-child(4) { background: #24343b; }
.lp-mode-list article p { max-width: 46ch; }
.lp-mode-list article a { margin-top: auto; padding-top: 1.2rem; font-weight: 700; }
.lp-mode-list article.lp-mode-premium { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; border-top: 3px solid #f0bb4d; background: #13232a; scroll-margin-top: 6.5rem; }
.lp-mode-copy { position: sticky; top: 6.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.lp-mode-list article.lp-mode-premium h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin-bottom: 1rem; color: var(--lp-ink); }
.lp-mode-list article.lp-mode-premium p { color: #d3e5e0; }
.lp-tag { display: inline-block; margin-bottom: 1rem; padding: .25rem .65rem; border-radius: 999px; background: #f0bb4d; color: #211800; font: 700 .72rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.lp-mode-list article.lp-mode-premium .lp-mode-price { margin-top: 1.1rem; font-weight: 700; color: #f0bb4d; }
.lp-mode-list article.lp-mode-premium a.lp-mode-cta { margin-top: 1.4rem; padding: .8rem 1.25rem; border-radius: 6px; background: #f0bb4d; color: #211800; text-decoration: none; }
.lp-mode-list article.lp-mode-premium a.lp-mode-cta:hover { background: #ffd27a; }
.lp-mode-ui { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; width: 100%; padding: clamp(1.25rem, 2.5vw, 1.75rem); border: 1px solid #24383f; border-radius: 8px; background: #0c171c; color: var(--lp-ink); }
.lp-mode-ui small { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #f0bb4d; }
.lp-mode-ui strong { font: 600 1.3rem/1.3 var(--font-display); color: var(--lp-ink); }

/* Fixed text-to-quiz example: native disclosure controls, no live generation form. */
.lp-mode-ui { min-width: 0; }
.lp-mode-ui > strong { overflow-wrap: anywhere; }
.lp-custom-source { width: 100%; margin: .6rem 0; padding: 1rem; border: 1px solid #24383f; border-radius: 6px; }
.lp-custom-label { font-size: .82rem; font-weight: 700; color: #f0bb4d; }
.lp-mode-list article.lp-mode-premium .lp-custom-source p,
.lp-mode-list article.lp-mode-premium .lp-custom-explanation { max-width: none; margin: .45rem 0 0; color: #afc0bd; font-size: .9rem; line-height: 1.55; }
.lp-custom-questions { width: 100%; }
.lp-custom-question { margin-top: .6rem; border: 1px solid #24383f; border-radius: 6px; overflow: hidden; }
.lp-custom-question summary { overflow-wrap: anywhere; display: flex; align-items: flex-start; gap: .65rem; min-height: 48px; padding: .85rem; color: var(--lp-ink); font-size: .95rem; font-weight: 600; line-height: 1.45; cursor: pointer; list-style: none; }
.lp-custom-question summary::-webkit-details-marker { display: none; }
.lp-custom-question summary::after { content: '+'; margin-left: auto; flex-shrink: 0; color: #f0bb4d; }
.lp-custom-question[open] summary::after { content: '−'; }
.lp-custom-question summary:hover { background: #172a31; }
.lp-custom-question summary:focus-visible { outline: 2px solid #f0bb4d; outline-offset: -3px; }
.lp-custom-number { flex-shrink: 0; color: #f0bb4d; }
.lp-custom-options { list-style: none; display: grid; gap: .4rem; margin: 0; padding: 0 .85rem; }
.lp-custom-options li { display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem; border-radius: 4px; background: #172a31; color: var(--lp-ink); font-size: .9rem; line-height: 1.45; }
.lp-custom-options li > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.lp-custom-options li > span:first-child { flex-shrink: 0; color: #afc0bd; }
.lp-custom-options li.is-correct { background: #1f5148; color: #effff8; }
.lp-custom-options li.is-correct > span:first-child { color: #effff8; }
.lp-custom-check { margin-left: auto; flex-shrink: 0; }
.lp-mode-list article.lp-mode-premium p.lp-custom-explanation { margin: .75rem .85rem 1rem; }
.lp-custom-explanation > span { font-weight: 700; }

/* Card hover: movement uses `translate`, not `transform`, because the reveal animation keeps `transform: none` filled. */
.lp-mode-list article, .lp-steps li, .lp-points div, .lp-faq details { transition: translate .25s ease, box-shadow .25s ease, filter .25s ease; }
@media (hover: hover) {
    .lp-mode-list article:hover, .lp-steps li:hover { filter: brightness(1.08); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
    .lp-mode-list article.lp-mode-premium:hover { filter: none; box-shadow: 0 16px 40px rgba(240, 187, 77, .14); }
    .lp-points div:hover, .lp-faq details:hover { filter: brightness(1.12); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .lp-mode-list article:hover, .lp-steps li:hover { translate: 0 -4px; }
    .lp-points div:hover { translate: 4px 0; }
    .lp-faq details:hover { translate: 0 -2px; }
}

/* Subjects and scores have their own surfaces. */
#topics { background: #101e23; }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.lp-split p { margin-bottom: 1.5rem; }
#topics .lp-split { display: block; }
#topics .lp-split > div { max-width: 65ch; margin-bottom: 2.5rem; }
#topics .lp-split h2 { margin-bottom: 1rem; }
.lp main a.quiz-directory-choice { color: #f0f5f4; text-decoration: none; }
.lp main .quiz-directory li:first-child a.quiz-directory-choice { color: #06332e; }
.lp main a.quiz-directory-preview { color: #b0eee4; text-decoration: none; }
.lp main a.quiz-directory-preview:hover,
.lp main a.quiz-directory-preview:focus-visible { color: #fff; }

#predictions { background: #174047; }
.lp-points { display: grid; gap: .65rem; }
.lp-points div { display: flex; gap: 1.2rem; align-items: center; background: #22525a; padding: .85rem 1.2rem; }
.lp-points dt { min-width: 3ch; font: 700 clamp(2rem, 3vw, 3rem) var(--font-display); color: var(--lp-gold); font-variant-numeric: tabular-nums; }
.lp-points dd { color: var(--lp-ink); }

/* The comparison is a real table; its lines clarify the data. */
#pricing { background: #0b1519; }
.lp-section-lead { margin-bottom: 2.5rem; }
.lp-table-wrap { overflow-x: auto; }
.lp-pricing { width: 100%; border-collapse: collapse; font-size: .96rem; }
.lp-pricing th, .lp-pricing td { text-align: left; vertical-align: top; padding: 1.05rem 1rem; border-bottom: 1px solid #345057; }
.lp-pricing tbody th { width: 34%; font-weight: 600; }
.lp-pricing tbody td { width: 33%; }
.lp-pricing th:last-child, .lp-pricing td:last-child { background: #173439; }
.lp-pricing thead th { font: 600 1.3rem var(--font-display); }
.lp-pricing thead th span { display: block; font: 400 .85rem var(--font-body); color: #c8dbd7; margin-top: .35rem; }
.lp-pricing thead th:last-child { color: var(--lp-gold); }
.lp-pricing tfoot td { border: 0; padding-block: 1.4rem; }
.lp-pricing tfoot .site-button { width: max-content; max-width: 100%; text-align: center; }

/* FAQ as openable answer fields. */
#faq { background: #101e23; }
.lp-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; }
.lp-faq details { background: #20353a; margin-bottom: .6rem; }
.lp-faq summary { cursor: pointer; list-style: none; position: relative; padding: 1.15rem 3rem 1.15rem 1.25rem; font-weight: 700; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 1.2rem; top: .8rem; font-size: 1.5rem; color: var(--lp-teal); }
.lp-faq details[open] summary::after { content: '−'; }
.lp-faq details p { padding: 0 1.25rem 1.25rem; }

/* The final tile closes the board in the action colour. */
.lp-final { background: var(--lp-teal); padding: clamp(5rem, 8vw, 8rem) 0; }
.lp-final .lp-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.lp-final h2 { max-width: 17ch; margin: 0; color: #062c28; }
.lp-final .site-button--primary { background: #062c28; color: white; }
.lp-final .site-button--primary:hover { background: #124741; }
.lp-final .site-button--secondary { background: #a6f2e7; color: #062c28; }
.lp-final .site-button--secondary:hover { background: white; }

@media (max-width: 1023px) {
    .lp-hero-grid { grid-template-columns: 1fr; }
    .lp-hero-copy { padding-top: 0; }
    .lp-chat { justify-self: start; max-width: 570px; }
    .lp-steps { grid-template-columns: repeat(2, 1fr); }
    .lp-faq { grid-template-columns: 1fr; gap: 0; }
    .lp-final .lp-wrap { grid-template-columns: 1fr; }
    .lp-mode-list { grid-template-columns: 1fr; }
    .lp-mode-list article.lp-mode-premium { grid-template-columns: 1fr; }
    .lp-mode-copy { position: static; }
}
@media (max-width: 639px) {
    .lp-hero { padding-top: 7.5rem; padding-bottom: 5rem; }
    .lp-hero h1 { font-size: clamp(2.15rem, 8.6vw, 2.75rem); max-width: 16ch; line-height: 1.08; margin-bottom: 1.5rem; }
    .lp-lead { font-size: 1.05rem; margin-bottom: 1.7rem; }
    .lp-actions { gap: .55rem; }
    .lp-hero .lp-actions .site-button { flex: 1 1 auto; justify-content: center; padding-inline: .8rem; }
    .lp-chat-body { height: 540px; padding: .75rem .5rem 1rem; }
    .lp-message { font-size: .8rem; }
    .lp-steps, .lp-mode-list, .lp-split { grid-template-columns: 1fr; }
    .lp-steps li { min-height: 0; }
    .lp-steps li, .lp-steps li:nth-child(n) { padding: 1.1rem 0; background: transparent; }
    .lp-steps li:hover { translate: none; filter: none; box-shadow: none; }
    .lp-mode-list article { padding: 1.6rem; }
    .lp-mode-list article a { margin-top: .7rem; }
    .lp-pricing { font-size: .84rem; }
    .lp-pricing th, .lp-pricing td { padding: .75rem .45rem; }
    .lp-pricing th, .lp-pricing td { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
    .lp-pricing thead th { font-size: .97rem; }
    .lp-pricing thead th span { font-size: .85rem; }
    .lp-pricing tbody th { width: 34%; }
    .lp-pricing tfoot .site-button { padding: .65rem .5rem; width: 100%; justify-content: center; }
    .lp-final .lp-actions { flex-direction: column; align-items: stretch; }
    .lp-final .lp-actions .site-button { justify-content: center; text-align: center; }
    .lp-footer .nav-logo { font-size: clamp(1.9rem, 8vw, 3rem); }
}

/* Content is readable without script; enhancement adds entrance motion. */
@media (prefers-reduced-motion: no-preference) {
    .lp-chat { animation: lp-shutter .9s cubic-bezier(.2,.8,.2,1) .1s both; }
    .lp-reveal.is-visible { animation: lp-arrive .55s cubic-bezier(.2,.8,.2,1) both; }
    @keyframes lp-arrive { from { opacity: .7; transform: translateY(16px); } to { opacity: 1; transform: none; } }
    @keyframes lp-shutter { from { clip-path: inset(0 100% 0 0); transform: scale(1.035); } to { clip-path: inset(0 0 0 0); transform: none; } }
}
