/* ═══ GRUNGER (display font — DA) ═══ */
@font-face {
    font-family: 'Grunger';
    src: url('../assets/fonts/Grunger-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Grunger Swash';
    src: url('../assets/fonts/Grunger-Swash.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}

:root {
    --bg: #06060c;
    --bg1: #0a0a14;
    --bg2: #10101c;
    --border: rgba(255,255,255,.06);
    --border-l: rgba(255,255,255,.10);
    --t0: #eeeef2;
    --t1: #9898ac;
    --t2: #5c5c72;
    --accent: #e8a820;
    --accent-d: #c48818;
    --accent-bg: rgba(232,168,32,.08);
    --green: #22c55e;
    --red: #ef4444;
    --radius: 10px;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --glow: 0 0 30px rgba(232,168,32,.15), 0 0 60px rgba(232,168,32,.05);
}

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

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--t0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
[hidden] { display: none !important; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

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

/* ═══ GRUNGE ═══ */
#grunge {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-size: 1024px 1024px;
    background-repeat: repeat;
}
#smilesBg {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-smiley {
    position: absolute;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
}

#grain {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    width: 100vw; height: 100vh;
    image-rendering: pixelated;
}
#vignette {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.45) 100%);
}
#glitch {
    position: fixed; inset: 0; z-index: 50; pointer-events: none;
    opacity: 0;
}
.g-slice {
    position: absolute;
    left: 0; right: 0;
    pointer-events: none;
    overflow: hidden;
}
body.glitch-rgb #page {
    filter: drop-shadow(3px 0 rgba(255,0,0,.35)) drop-shadow(-3px 0 rgba(0,255,255,.35));
}
body.glitch-rgb .bg-smiley {
    opacity: .7 !important;
    filter: brightness(3);
}

/* ═══ LOADER ═══ */
#loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: grid; place-items: center;
    transition: opacity .45s ease, visibility .45s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
/* ligne de scan dorée révélée quand le rideau du loader se lève */
#loader::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 20px 3px rgba(232,168,32,.6);
    opacity: 0; transition: opacity .2s;
}
#loader.exiting::after { opacity: 1; }
.loader-box {
    display: flex; flex-direction: column; align-items: center;
    gap: 20px; width: 270px;
    will-change: transform, filter;
}
.loader-logo { width: 54px; height: 54px; object-fit: contain; opacity: .92; }
.loader-bar {
    position: relative; width: 100%; height: 7px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.45);
}
.loader-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    border-radius: 2px;
    /* segments « terminal » + grain grunge + dégradé or */
    background-image:
        repeating-linear-gradient(90deg, rgba(0,0,0,.55) 0 1px, transparent 1px 5px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='lz'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23lz)' opacity='0.5'/%3E%3C/svg%3E"),
        linear-gradient(90deg, #b8801a, var(--accent), #f4ba30);
    background-size: auto, 60px 60px, 100% 100%;
    background-blend-mode: multiply, overlay, normal;
    box-shadow: 0 0 12px rgba(232,168,32,.7), 0 0 4px rgba(232,168,32,.9);
}
/* tête lumineuse qui glitche au bord d'attaque */
.loader-fill::after {
    content: ''; position: absolute; top: -2px; bottom: -2px; right: -1px; width: 3px;
    background: #fff3d6; border-radius: 1px;
    box-shadow: 0 0 8px 1px rgba(255,240,200,.95), 0 0 20px 4px rgba(232,168,32,.55);
    animation: loaderHead .14s steps(2) infinite;
}
@keyframes loaderHead {
    0% { opacity: 1; transform: scaleY(1); }
    50% { opacity: .4; transform: scaleY(.5); }
    100% { opacity: 1; transform: scaleY(1); }
}
.loader-meta {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; font-size: 11px; letter-spacing: .14em;
}
.loader-pct { color: var(--accent); }
.loader-label { color: var(--t2); }

/* ═══ NAV ═══ */
#nav {
    position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100;
    width: calc(100% - 32px); max-width: 1080px;
    display: flex; align-items: center; gap: 26px;
    padding: 8px 12px 8px 20px;
    border-radius: 100px;
    /* liquid-glass réchauffé vers la DA : charbon + or + grain subtil */
    background-color: rgba(14,13,20,.55);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='nz'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23nz)' opacity='0.45'/%3E%3C/svg%3E");
    background-blend-mode: soft-light;
    backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(232,168,32,.16);
    box-shadow:
        inset 0 1px 0 rgba(255,234,200,.13),
        inset 0 -1px 0 rgba(0,0,0,.25),
        0 8px 30px rgba(0,0,0,.42),
        0 0 24px rgba(232,168,32,.06);
    transition: background-color .3s, box-shadow .3s, border-color .3s;
}
#nav.scrolled {
    background-color: rgba(11,10,16,.66);
    border-color: rgba(232,168,32,.24);
    box-shadow:
        inset 0 1px 0 rgba(255,234,200,.15),
        inset 0 -1px 0 rgba(0,0,0,.3),
        0 10px 38px rgba(0,0,0,.5),
        0 0 30px rgba(232,168,32,.09);
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 18px; color: var(--t0);
}
.nav-logo span { font-family: 'Grunger', sans-serif; font-weight: 400; font-size: 21px; }
.nav-logo-img { width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
    font-size: 14px; font-weight: 500; color: var(--t1);
    transition: color .2s;
}
.nav-links a:hover { color: var(--t0); }
.nav-cta { margin-left: 2px; border-radius: 100px; }

/* sound toggle */
.sound-btn {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px; flex: 0 0 auto; padding: 0;
    border-radius: 100px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border-l);
    color: var(--t1); cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
}
.sound-btn:hover { color: var(--t0); background: rgba(255,255,255,.08); }
.sound-btn.is-on {
    color: var(--accent);
    border-color: rgba(232,168,32,.45);
    background: rgba(232,168,32,.1);
}
.sound-btn svg { width: 16px; height: 16px; }
.sound-btn .snd-waves { display: none; }
.sound-btn.is-on .snd-waves { display: inline; }
.sound-btn.is-on .snd-x { display: none; }
.sound-btn.is-on svg { animation: sndPulse 1.7s ease-in-out infinite; }
@keyframes sndPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.13); } }

#ytAudio { position: fixed; left: -9999px; top: 0; width: 240px; height: 135px; opacity: .001; pointer-events: none; }

.burger {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 4px; margin-left: auto;
}
.burger span {
    display: block; width: 20px; height: 1.5px;
    background: var(--t0); transition: transform .3s, opacity .2s;
}

.mobile-nav {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: rgba(8,7,14,.8);
    backdrop-filter: blur(20px) saturate(125%);
    -webkit-backdrop-filter: blur(20px) saturate(125%);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 92px 22px 40px;
}
.mobile-nav.open { display: flex; animation: mnavIn .26s ease both; }
@keyframes mnavIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* lignes de menu (liens + bouton Invite) : pleine largeur, séparateur, chevron */
.mobile-nav > a:not(.btn),
.mobile-nav > .mobile-invite {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; box-sizing: border-box; margin: 0;
    padding: 20px 6px;
    font-family: inherit; font-size: 20px; font-weight: 600; letter-spacing: -.01em; text-align: left;
    color: var(--t0); background: none; border: 0; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: color .2s, padding-left .2s;
}
.mobile-nav > a:not(.btn)::after,
.mobile-nav > .mobile-invite::after {
    content: '\2192'; color: var(--t2); font-size: 18px; font-weight: 400;
    transition: transform .2s, color .2s;
}
.mobile-nav > a:not(.btn):active,
.mobile-nav > .mobile-invite:active { color: var(--accent); padding-left: 12px; }
.mobile-nav > a:not(.btn):active::after,
.mobile-nav > .mobile-invite:active::after { color: var(--accent); transform: translateX(4px); }
/* CTA en bouton or pleine largeur */
.mobile-nav .btn-primary {
    width: 100%; box-sizing: border-box; justify-content: center; text-align: center;
    margin-top: 30px; padding: 17px; font-size: 16px;
}
/* burger -> croix quand le menu est ouvert */
body:has(.mobile-nav.open) .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body:has(.mobile-nav.open) .burger span:nth-child(2) { transform: scaleX(0); opacity: 0; }
body:has(.mobile-nav.open) .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══ BUTTONS ═══ */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: inherit; font-weight: 600; font-size: 14px;
    letter-spacing: -.01em;
    border: none; border-radius: 10px; cursor: pointer;
    padding: 11px 24px;
    transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 15px; border-radius: 12px; }
.btn-primary {
    background: linear-gradient(180deg, #f4ba30 0%, var(--accent) 55%, #d99a16 100%);
    color: #1c1305;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        inset 0 -1px 0 rgba(0,0,0,.12),
        0 6px 18px rgba(232,168,32,.28),
        0 2px 5px rgba(0,0,0,.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.4),
        inset 0 -1px 0 rgba(0,0,0,.12),
        0 12px 30px rgba(232,168,32,.45),
        0 4px 10px rgba(0,0,0,.35);
}
.btn-primary:active { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 12px rgba(232,168,32,.3); }
.btn-ghost {
    background: rgba(255,255,255,.025);
    color: var(--t0);
    border: 1px solid var(--border-l);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.22);
    transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

/* ═══ GLOW EFFECTS ═══ */
.glow-border {
    position: relative;
}
.glow-border::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(232,168,32,.3), transparent 40%, transparent 60%, rgba(232,168,32,.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s;
}
.glow-border:hover::before { opacity: 1; }

.glow-card {
    position: relative;
    transition: border-color .3s, transform .3s, box-shadow .3s;
}
.glow-card:hover {
    border-color: rgba(232,168,32,.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0,0,0,.3), 0 0 40px rgba(232,168,32,.06);
}

/* ═══ HERO (markets-grid layout) ═══ */
#hero {
    position: relative; z-index: 1;
    padding: 122px 0 48px;
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden;
}
.hero-wrap {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.hero-head { max-width: 760px; margin-bottom: 28px; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--mono); font-size: 12px; font-weight: 500;
    letter-spacing: .04em; color: var(--t1);
    padding: 7px 15px 7px 12px;
    border: 1px solid var(--border-l);
    border-radius: 100px;
    background: rgba(255,255,255,.015);
    margin-bottom: 26px;
}
.hero-tag-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(232,168,32,.7);
    animation: pulse-dot 2s ease-in-out infinite;
}
.hero-title { margin-bottom: 16px; }
.title-line {
    display: block;
    font-family: 'Grunger', 'Inter', sans-serif;
    font-size: clamp(40px, 5.4vw, 72px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: 0;
}
.title-line--accent {
    color: var(--accent);
    text-shadow: 0 0 50px rgba(232,168,32,.22);
}
.hero-desc {
    font-size: 16px; color: var(--t1); line-height: 1.6;
    max-width: 600px; margin: 0;
    font-weight: 400;
}
.hero-desc-hl { color: var(--t0); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-arrow {
    display: inline-block; margin-left: 6px;
    transition: transform .25s;
}
.btn-ghost:hover .btn-arrow { transform: translateX(4px); }

.anim-fade { opacity: 0; }
.anim-up { opacity: 0; transform: translateY(30px); }

/* ═══ HERO MARKETS GRID ═══ */
.hero-markets-stage { position: relative; }
.hero-markets-wrap {
    height: 54vh; max-height: 560px; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 84%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 84%, transparent 100%);
}
.hero-markets {
    display: grid; grid-template-columns: repeat(3, 1fr);
    column-gap: 14px; row-gap: 0;
    will-change: transform;
    animation: marketsScroll 55s linear infinite;
}
.hero-markets .qcard { margin-bottom: 14px; }
.hero-markets-wrap:hover .hero-markets { animation-play-state: paused; }
@keyframes marketsScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hero-markets-foot {
    position: absolute; left: 0; right: 0; bottom: -4px;
    display: flex; justify-content: center;
}

/* market question card */
.qcard {
    position: relative;
    display: flex; flex-direction: column; gap: 12px;
    background: rgba(14,14,24,.72);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 15px;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.qcard-lock {
    display: none;
    position: absolute; inset: 0; z-index: 3; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    border-radius: 14px;
    background: rgba(10,10,18,.5);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    animation: qlockIn .28s ease;
}
.qcard.is-locked { border-color: rgba(232,168,32,.4); }
.qcard.is-locked .qcard-lock { display: flex; }
.qcard-lock svg { width: 26px; height: 26px; color: var(--accent); }
.qcard-lock-txt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--t0); }
.qcard-lock-sub { font-size: 10px; color: var(--t2); letter-spacing: .04em; }
@keyframes qlockIn { from { opacity: 0; } to { opacity: 1; } }
.qcard:hover { border-color: rgba(232,168,32,.25); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.qcard-head { display: flex; align-items: flex-start; gap: 10px; }
.qcard-head .qcard-time { margin-top: 7px; }
.qcard-ic {
    width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: 50%; background: rgba(255,255,255,.05); border: 1px solid var(--border);
    color: var(--accent);
}
.qcard-ic svg { width: 15px; height: 15px; }
.qcard-tt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.qcard-title { font-size: 15px; font-weight: 700; color: var(--t0); line-height: 1.2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qcard-sub { font-size: 11px; color: var(--t2); }
.qcard-tier {
    flex: 0 0 auto; margin-top: 2px;
    font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    color: var(--accent); border: 1px solid rgba(232,168,32,.35);
    border-radius: 100px; padding: 3px 10px;
}
.qcard-jackpot {
    font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #1c1305; background: var(--accent); border-radius: 4px; padding: 1px 6px;
}
.qcard-doms { display: flex; flex-wrap: wrap; gap: 6px; }
.dom {
    font-size: 11px; color: var(--t1);
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    border-radius: 6px; padding: 3px 9px;
}
.dom--more { color: var(--t2); }
.qcard-q {
    background: rgba(255,255,255,.025);
    border: 1px solid var(--border);
    border-left: 2px solid rgba(232,168,32,.5);
    border-radius: 8px;
    padding: 9px 12px;
}
.qcard-q-label {
    display: block; font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 4px;
}
.qcard-q-text { font-size: 12.5px; color: var(--t0); line-height: 1.35; }
.qcard-q-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.qq {
    font-family: inherit; font-weight: 800; font-size: 12px; letter-spacing: .06em;
    border-radius: 7px; padding: 8px; cursor: pointer; border: 1px solid transparent;
    transition: background .18s, color .18s, box-shadow .18s, transform .18s;
}
.qq--yes {
    background: rgba(34,197,94,.16); color: #4ade80; border-color: rgba(34,197,94,.45);
}
.qq--yes:hover {
    background: var(--green); color: #04140a; border-color: var(--green);
    box-shadow: 0 4px 16px rgba(34,197,94,.45); transform: translateY(-1px);
}
.qq--no {
    background: rgba(239,68,68,.14); color: #f87171; border-color: rgba(239,68,68,.42);
}
.qq--no:hover {
    background: var(--red); color: #1a0606; border-color: var(--red);
    box-shadow: 0 4px 16px rgba(239,68,68,.45); transform: translateY(-1px);
}
.qcard-time {
    flex: 0 0 auto; font-size: 10px; color: var(--t2);
    border: 1px solid var(--border); border-radius: 100px; padding: 2px 9px;
}
.qbtn, .qy, .qn {
    font-family: inherit; font-weight: 700; cursor: pointer;
    border: 1px solid transparent; transition: all .2s;
}
.qcard-ud { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qbtn { font-size: 13px; letter-spacing: .04em; border-radius: 8px; padding: 11px; }
.qbtn--up, .qy { background: rgba(34,197,94,.1); color: #4ade80; border-color: rgba(34,197,94,.24); }
.qbtn--up:hover, .qy:hover { background: rgba(34,197,94,.2); }
.qbtn--down, .qn { background: rgba(239,68,68,.09); color: #f87171; border-color: rgba(239,68,68,.22); }
.qbtn--down:hover, .qn:hover { background: rgba(239,68,68,.18); }
.qcard-rows { display: flex; flex-direction: column; gap: 7px; }
.qrow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 7px; }
.qrow-label { font-size: 12px; color: var(--t1); font-family: var(--mono); }
.qy, .qn { font-size: 11px; border-radius: 6px; padding: 5px 13px; }
.qcard-foot {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; color: var(--t2);
    border-top: 1px solid var(--border); padding-top: 11px; margin-top: auto;
}
.qcard-seats { font-size: 11px; color: var(--t1); }
.qcard-act {
    font-family: inherit; font-weight: 700; font-size: 11px; letter-spacing: .02em;
    border-radius: 7px; padding: 6px 18px; cursor: pointer; transition: all .2s;
}
.qcard-act--join {
    background: var(--accent); color: #1c1305; border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(232,168,32,.28);
}
.qcard-act--join:hover { background: #f4ba30; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,168,32,.4); }
.qcard-act--create {
    background: transparent; color: var(--accent);
    border: 1px solid rgba(232,168,32,.45);
}
.qcard-act--create:hover { background: rgba(232,168,32,.1); border-color: rgba(232,168,32,.7); }

/* metrics bar */
.hero-metrics {
    display: flex; align-items: stretch;
    margin-top: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(12,12,22,.4);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hmetric {
    display: flex; flex-direction: column; gap: 4px; align-items: center;
    padding: 15px 26px; position: relative;
}
.hmetric + .hmetric::before {
    content: ''; position: absolute; left: 0; top: 18%; height: 64%;
    width: 1px; background: var(--border);
}
.hmetric-val { font-size: 23px; font-weight: 800; color: var(--t0); letter-spacing: -.02em; }
.hmetric-lbl { font-size: 11px; color: var(--t2); text-transform: uppercase; letter-spacing: .09em; }

/* hero watermark */
.hero-wm-wrap {
    position: fixed; inset: 0; z-index: 0;
    display: grid; place-items: center;
    pointer-events: none;
}
.hero-watermark {
    width: 56vw; max-width: 680px;
    opacity: .07;
    user-select: none;
    filter: blur(.5px);
    will-change: transform, opacity, filter;
}

/* ═══ MARKET RAILS ═══ */
.hero-rail {
    position: relative; height: 82vh; max-height: 660px; overflow: hidden; opacity: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
}
.rail-track { display: flex; flex-direction: column; will-change: transform; }
.rail-track .mkt { margin-bottom: 14px; }
.hero-rail--left .rail-track { animation: railUp 42s linear infinite; }
.hero-rail--right .rail-track { animation: railDown 48s linear infinite; }
.hero-rail:hover .rail-track { animation-play-state: paused; }
@keyframes railUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes railDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }

/* market card */
.mkt {
    background: rgba(14,14,24,.72);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 15px;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.mkt:hover {
    border-color: rgba(232,168,32,.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.mkt-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.mkt-ic {
    width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center;
    background: rgba(255,255,255,.05); border-radius: 6px; color: var(--t1);
}
.mkt-ic svg { width: 13px; height: 13px; display: block; }
.mkt-cat { font-size: 12px; color: var(--t1); font-weight: 600; }
.mkt-live {
    margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
    color: #ef4444; font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
}
.mkt-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: #ef4444; box-shadow: 0 0 6px #ef4444;
    animation: pulse-dot 2s infinite;
}
.mkt-time { margin-left: auto; color: var(--t2); font-size: 11px; }
.mkt-q {
    font-size: 13.5px; font-weight: 600; color: var(--t0);
    line-height: 1.35; margin-bottom: 10px; min-height: 37px;
}
.mkt-spark { width: 100%; height: 26px; display: block; margin-bottom: 11px; }
.mkt-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mkt-b {
    font-family: inherit; font-size: 13px; font-weight: 600;
    border: 1px solid transparent; border-radius: 8px; padding: 7px 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s;
}
.mkt-b b { font-family: var(--mono); font-size: 13px; }
.mkt-b--yes { background: rgba(34,197,94,.1); color: #4ade80; border-color: rgba(34,197,94,.2); }
.mkt-b--yes:hover { background: rgba(34,197,94,.2); }
.mkt-b--no { background: rgba(239,68,68,.08); color: #f87171; border-color: rgba(239,68,68,.18); }
.mkt-b--no:hover { background: rgba(239,68,68,.18); }
.mkt-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--t2); }
.mkt-chg--up { color: #4ade80; }
.mkt-chg--down { color: #f87171; }

/* mobile markets strip */
.hero-mkts-mobile { display: none; }

/* ═══ PREDICTION CARD ═══ */
.hero-visual {
    position: relative;
    display: flex; justify-content: flex-end;
}
.pred-card {
    background: rgba(12,12,22,.8);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-l);
    border-radius: var(--radius);
    padding: 24px 28px;
    width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5), var(--glow);
    animation: card-float 6s ease-in-out infinite;
}
@keyframes card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.pred-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px; font-size: 13px; color: var(--t2);
}
.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}
.pred-domain {
    font-weight: 600; color: var(--t1);
    padding: 2px 8px; border-radius: 4px;
    background: rgba(255,255,255,.05);
}
.pred-timer { margin-left: auto; font-size: 14px; color: var(--t1); }
.pred-q {
    font-size: 16px; font-weight: 600; color: var(--t0);
    margin-bottom: 18px; line-height: 1.4;
}
.pred-opts { display: flex; flex-direction: column; gap: 10px; }
.pred-opt {
    display: grid; grid-template-columns: 48px 1fr 48px;
    align-items: center; gap: 10px; font-size: 14px;
}
.pred-label { font-weight: 700; }
.pred-bar {
    height: 10px; border-radius: 5px;
    background: rgba(255,255,255,.06);
    overflow: hidden;
}
.pred-fill {
    height: 100%; border-radius: 5px;
    transition: width 1.5s ease;
}
.pred-fill--yes {
    background: linear-gradient(90deg, var(--green), #34d399);
    box-shadow: 0 0 12px rgba(34,197,94,.3);
}
.pred-fill--no {
    background: linear-gradient(90deg, var(--red), #f87171);
    box-shadow: 0 0 12px rgba(239,68,68,.2);
    opacity: .8;
}
.pred-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 18px; padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 13px; color: var(--t2);
}

/* ═══ TICKER ═══ */
#ticker {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg1);
    overflow: hidden;
    padding: 14px 0;
}
.ticker-track {
    display: flex; gap: 32px; align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 20s linear infinite;
    width: max-content;
}
.ticker-item {
    font-size: 14px; font-weight: 500; color: var(--t1);
}
.ticker-item b {
    font-weight: 700; font-size: 15px;
}
.ticker-sep {
    font-size: 8px; color: var(--accent); opacity: .4;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══ SECTIONS ═══ */
section { position: relative; z-index: 1; padding: 100px 0; }
.stag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 12px; font-weight: 500;
    letter-spacing: .14em; color: var(--accent);
    margin-bottom: 18px; text-transform: uppercase;
}
.stag::before {
    content: ''; width: 24px; height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.stitle {
    font-family: 'Grunger', 'Inter', sans-serif;
    font-size: clamp(38px, 4.6vw, 60px);
    font-weight: 400; line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 52px;
}

/* ═══ REVEALS ═══ */
.reveal {
    opacity: 0; transform: translateY(32px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ═══ PILLARS ═══ */
.pillars {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pillar {
    background: var(--bg1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
}
.pillar-n {
    display: inline-block;
    font-size: 13px; font-weight: 600;
    color: var(--accent);
    margin-bottom: 18px;
}
.pillar h3 {
    font-size: 22px; font-weight: 800;
    margin-bottom: 6px;
}
.pillar-src {
    font-size: 13px; color: var(--accent-d);
    margin-bottom: 14px;
}
.pillar > p:last-child {
    font-size: 14px; color: var(--t1); line-height: 1.65;
}

/* ═══ FORMATS ═══ */
.fgrid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.fcard {
    background: var(--bg1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}
.fcard--hl {
    border-color: rgba(232,168,32,.2);
    background: linear-gradient(160deg, rgba(232,168,32,.08) 0%, var(--bg1) 40%);
}
.fcard-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.fcard-top h3 { font-size: 20px; font-weight: 800; }
.fbadge {
    font-family: var(--mono); font-size: 11px; font-weight: 500;
    padding: 3px 8px; border-radius: 6px;
    background: rgba(255,255,255,.05);
    color: var(--t2);
}
.fbadge--hot {
    background: var(--accent-bg);
    color: var(--accent);
    border: 1px solid rgba(232,168,32,.2);
}
.fcard > p {
    font-size: 14px; color: var(--t1); line-height: 1.6;
    margin-bottom: 20px;
}
.fmeta {
    display: flex; flex-direction: column; gap: 6px;
    padding-top: 16px; border-top: 1px solid var(--border);
    font-size: 13px; color: var(--t2);
}
.fmeta b { color: var(--t0); }

/* ═══ TOKEN ═══ */
.tgrid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.tcard {
    background: var(--bg1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}
.tcard--wide { grid-column: 1 / -1; }
.tcard h3 {
    font-size: 18px; font-weight: 800;
    margin-bottom: 16px;
}
.tcard > p { font-size: 14px; color: var(--t1); line-height: 1.65; }

.split { margin-top: 8px; }
.split-bar {
    display: flex; height: 36px; border-radius: 8px;
    overflow: hidden; gap: 2px;
}
.split-seg {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 13px; font-weight: 700;
    color: #0a0a0d;
}
.split-seg--w { background: var(--green); box-shadow: 0 0 20px rgba(34,197,94,.2); }
.split-seg--b { background: var(--red); box-shadow: 0 0 20px rgba(239,68,68,.2); }
.split-seg--o { background: var(--t2); min-width: 28px; }
.split-legend {
    display: flex; gap: 24px; margin-top: 14px;
    font-size: 13px; color: var(--t1);
}
.dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; margin-right: 6px;
    vertical-align: middle;
}
.dot--w { background: var(--green); }
.dot--b { background: var(--red); }
.dot--o { background: var(--t2); }

.flywheel {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 13px; color: var(--t1);
}
.flywheel > span:not(.fly-arr) {
    padding: 6px 12px; border-radius: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    font-weight: 500;
}
.fly-arr { color: var(--accent); font-size: 16px; }

/* ═══ QUOTE ═══ */
#quote { padding: 80px 0; }
#quote .container { position: relative; }
.quote-smiley {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 220px; height: 220px;
    object-fit: contain;
    opacity: .04;
    pointer-events: none;
    user-select: none;
}
.bq {
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 900; line-height: 1.25;
    text-align: center;
    color: var(--t0);
    letter-spacing: -.02em;
    border: none;
}
.bq .accent {
    text-shadow: 0 0 40px rgba(232,168,32,.25);
}

/* ═══ CTA ═══ */
#cta { padding: 40px 0 100px; }
.cta-box {
    text-align: center;
    background: linear-gradient(160deg, rgba(232,168,32,.08) 0%, var(--bg1) 50%);
    border: 1px solid rgba(232,168,32,.15);
    border-radius: 14px;
    padding: 64px 40px;
    box-shadow: var(--glow);
}
.cta-box h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 900; margin-bottom: 12px;
}
.cta-box > p {
    font-size: 17px; color: var(--t1);
    margin-bottom: 32px;
}
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ═══ FOOTER ═══ */
footer {
    position: relative; z-index: 1;
    padding: 28px 0 0;
    background: transparent;
}
.foot-tear {
    position: absolute; left: 0; right: 0; top: 0;
    transform: translateY(-92%);
    height: 24px; line-height: 0; pointer-events: none;
}
.foot-tear svg { width: 100%; height: 100%; display: block; }
.foot-grid {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px 48px;
    padding-bottom: 18px;
}
.foot-links {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
}
.foot-links a {
    font-size: 14px; color: var(--t1); transition: color .2s;
}
.foot-links a:hover { color: var(--t0); }
.x-logo { width: 13px; height: 13px; vertical-align: -2px; display: inline-block; }
.foot-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo name" "tagline tagline";
    align-items: center; column-gap: 13px; row-gap: 5px;
    color: var(--t0);
}
.foot-logo-img { grid-area: logo; width: 46px; height: 46px; object-fit: contain; align-self: center; }
.foot-brand > span { grid-area: name; font-family: 'Grunger', sans-serif; font-weight: 400; font-size: 24px; line-height: 1; }
.foot-brand > p { grid-area: tagline; font-size: 13px; color: var(--t2); font-weight: 400; margin: 0; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 {
    font-size: 13px; font-weight: 600; color: var(--t2);
    text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 4px;
}
.foot-col a { font-size: 14px; color: var(--t1); transition: color .2s; }
.foot-col a:hover { color: var(--t0); }
.foot-bottom {
    border-top: 1px solid var(--border);
    padding: 12px 0;
}
.foot-bottom p { font-size: 13px; color: var(--t2); }
.foot-credit { font-size: 11px; opacity: .7; margin-top: 3px; }

/* ═══ LIVE STATS BAR ═══ */
.live-bar {
    position: relative; z-index: 1;
    background: rgba(232,168,32,.04);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.live-bar-inner {
    display: flex; justify-content: space-between; align-items: center;
}
.live-stat {
    display: flex; align-items: center; gap: 8px;
}
.live-dot-sm {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
}
.live-stat-val {
    font-size: 20px; font-weight: 700; color: var(--accent);
}
.live-stat-val--burn { color: var(--red); }
.live-stat-lbl {
    font-size: 12px; color: var(--t2); text-transform: uppercase;
    letter-spacing: .06em;
}

/* ═══ PROFIT CURVE ═══ */
#profitCurve { padding: 80px 0 60px; }
.curve-wrap {
    background: var(--bg1);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 32px 24px;
    overflow: hidden;
}
.curve-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 24px;
}
.curve-amount {
    display: block;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 900;
    color: var(--green);
    line-height: 1;
    text-shadow: 0 0 40px rgba(34,197,94,.3);
}
.curve-pct { font-size: .6em; }
.curve-period {
    display: block;
    font-size: 13px; color: var(--t2);
    margin-top: 6px;
}
.curve-live-badge {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--mono);
    font-size: 11px; font-weight: 600;
    color: var(--red);
    letter-spacing: .1em;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
}
.curve-live-badge .live-dot { width: 6px; height: 6px; }
.curve-chart {
    position: relative;
    height: 220px;
    margin-bottom: 24px;
}
.curve-svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.profit-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}
.curve-grid-lines {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}
.curve-grid-line {
    height: 1px;
    background: rgba(255,255,255,.03);
}
.curve-stats {
    display: flex; gap: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.curve-stat {
    display: flex; flex-direction: column; gap: 4px;
}
.curve-stat-val {
    font-size: 22px; font-weight: 800; color: var(--accent);
}
.curve-stat-lbl {
    font-size: 12px; color: var(--t2); text-transform: uppercase;
    letter-spacing: .04em;
}

/* ═══ HOW IT WORKS ═══ */
#how .stitle { margin-bottom: 30px; }
.how-tabs { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.how-tab {
    display: flex; align-items: center; gap: 13px;
    background: rgba(12,12,22,.5); border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 20px; cursor: pointer;
    font-family: inherit; text-align: left; transition: border-color .25s, background .25s;
    flex: 1; min-width: 240px;
}
.how-tab:hover { border-color: var(--border-l); }
.how-tab.is-active { border-color: rgba(232,168,32,.5); background: rgba(232,168,32,.06); }
.how-tab-ic {
    width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: 10px; background: rgba(255,255,255,.05); font-size: 20px; font-weight: 700;
    color: var(--t1); transition: background .25s, color .25s;
}
.how-tab.is-active .how-tab-ic { background: var(--accent); color: #0a0a0d; }
.how-tab-tx { display: flex; flex-direction: column; gap: 1px; }
.how-tab-tx b { font-size: 15px; font-weight: 700; color: var(--t0); }
.how-tab-tx i { font-style: normal; font-size: 13px; color: var(--t2); }

.how-panel { display: none; }
.how-panel.is-active {
    display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
    animation: howFade .35s ease;
}
@keyframes howFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* mock card */
.mock-card {
    position: relative;
    background: rgba(12,12,22,.85);
    border: 1px solid var(--border-l);
    border-radius: 14px; padding: 20px 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.lobby-lock {
    display: none;
    position: absolute; inset: 0; z-index: 3; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    border-radius: 14px;
    background: rgba(10,10,18,.5);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    animation: qlockIn .28s ease;
}
.mock-card.is-locked .lobby-lock { display: flex; }
.mock-card.is-locked { border-color: rgba(232,168,32,.4); }
.lobby-lock svg { width: 30px; height: 30px; color: var(--accent); }
.lobby-lock-txt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t0); }
.lobby-lock-sub { font-size: 11px; color: var(--t2); letter-spacing: .04em; }
.mock-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.mock-title { font-weight: 700; font-size: 15px; color: var(--t0); }
.mock-code {
    font-size: 12.5px; color: var(--accent);
    background: var(--accent-bg); padding: 4px 11px; border-radius: 6px;
}
.mock-code--ghost { color: var(--t2); background: rgba(255,255,255,.04); }
.mock-code.is-fresh { animation: codePulse .42s ease; }
@keyframes codePulse {
    0% { transform: scale(1); filter: brightness(1); }
    30% { transform: scale(1.13); filter: brightness(1.6); }
    100% { transform: scale(1); filter: brightness(1); }
}
.mock-code-form {
    display: flex; align-items: stretch;
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    border-radius: 6px; overflow: hidden;
    transition: border-color .2s, background .2s;
}
.mock-code-form:focus-within { border-color: rgba(232,168,32,.45); background: rgba(232,168,32,.06); }
.mock-code-input {
    width: 96px; font-family: var(--mono); font-size: 12.5px;
    color: var(--t0); background: transparent; border: none; padding: 5px 10px;
}
.mock-code-input::placeholder { color: var(--t2); }
.mock-code-input:focus { outline: none; }
.mock-code-go {
    display: inline-grid; place-items: center; width: 28px;
    background: var(--accent-bg); border: none; border-left: 1px solid var(--border);
    color: var(--accent); cursor: pointer; transition: background .2s;
}
.mock-code-go:hover { background: rgba(232,168,32,.2); }
.mock-code-go svg { width: 13px; height: 13px; }
.mock-row { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.mock-lbl { font-size: 13px; color: var(--t2); width: 64px; flex: 0 0 auto; }
.mock-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
    font-size: 12px; padding: 5px 11px; border-radius: 100px;
    border: 1px solid var(--border); color: var(--t1);
}
.chip.is-on { border-color: rgba(232,168,32,.4); background: rgba(232,168,32,.08); color: var(--accent); }
.mock-seg { display: inline-flex; background: rgba(255,255,255,.04); border-radius: 8px; padding: 3px; gap: 2px; }
.seg { font-size: 12px; padding: 6px 12px; border-radius: 6px; color: var(--t1); }
.seg.is-on { background: var(--accent); color: #0a0a0d; font-weight: 600; }
.mock-val { font-size: 14px; color: var(--t0); display: inline-flex; align-items: center; gap: 8px; }
.mock-tier {
    font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--t2); border: 1px solid var(--border-l); padding: 1px 6px; border-radius: 4px;
}
.mock-btn {
    width: 100%; margin-top: 4px; background: var(--accent); color: #0a0a0d;
    border: none; border-radius: 10px; padding: 12px; font-family: inherit;
    font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s;
}
.mock-btn:hover { background: #f0b828; }
.mock-btn.is-done { background: var(--green); color: #04140a; }
.mock-btn.is-locked { background: rgba(255,255,255,.06); color: var(--t2); box-shadow: none; }

/* locked / coming-soon share link */
.mock-locked { margin-top: 12px; text-align: center; animation: lockReveal .35s ease; }
.mock-link {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding: 12px; border-radius: 8px;
    background: rgba(255,255,255,.03); border: 1px solid var(--border);
}
.mock-link-url { color: var(--t1); filter: blur(4.5px); user-select: none; letter-spacing: .03em; pointer-events: none; }
.mock-lock {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(10,10,18,.4);
    -webkit-backdrop-filter: blur(.5px); backdrop-filter: blur(.5px);
}
.mock-lock svg { width: 17px; height: 17px; color: var(--accent); }
.mock-locked-cap {
    display: block; margin-top: 8px;
    font-size: 11px; color: var(--t2); letter-spacing: .04em;
}
@keyframes lockReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* clickable builder bits */
.chip, .seg { cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--border-l); color: var(--t0); }
.seg:hover:not(.is-on) { color: var(--t0); }
#mockBuyin, #mockSeats { cursor: pointer; border-radius: 6px; transition: background .2s; }
#mockBuyin:hover, #mockSeats:hover { background: rgba(255,255,255,.04); }

/* picked YES/NO on hero cards (persists the choice) */
.qq.is-picked { transform: none; }
.qq--yes.is-picked { background: var(--green); color: #04140a; border-color: var(--green); box-shadow: 0 0 14px rgba(34,197,94,.45); }
.qq--no.is-picked { background: var(--red); color: #1a0606; border-color: var(--red); box-shadow: 0 0 14px rgba(239,68,68,.45); }
.qcard-act.is-busy { opacity: .75; cursor: default; }

/* lobby */
.lobby { display: flex; flex-direction: column; gap: 8px; }
.lobby-row {
    display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 14px;
    padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
    background: rgba(255,255,255,.01); transition: border-color .2s;
}
.lobby-row:hover { border-color: var(--border-l); }
.lobby-row.is-hot { border-color: rgba(232,168,32,.3); background: rgba(232,168,32,.04); }
.lobby-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lobby-name { font-size: 14px; font-weight: 600; color: var(--t0); display: flex; align-items: center; gap: 7px; }
.lobby-tier {
    font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--t2); border: 1px solid var(--border-l); padding: 1px 6px; border-radius: 4px;
}
.lobby-mult { font-size: 11px; color: var(--accent); background: var(--accent-bg); padding: 1px 6px; border-radius: 4px; }
.lobby-meta { font-size: 12px; color: var(--t2); }

/* couleurs par tier — Micro = bronze, Silver = argent, Gold = or (modifie .qcard-tier / .lobby-tier / .mock-tier) */
.tier--micro  { color: #db955a; background: rgba(205,127,50,.12); border-color: rgba(205,127,50,.40); }
.tier--silver { color: #c6cdd9; background: rgba(198,205,217,.10); border-color: rgba(198,205,217,.34); }
.tier--gold   { color: #f4ba30; background: rgba(232,168,32,.13); border-color: rgba(232,168,32,.42); }
.lobby-buyin { font-size: 13px; color: var(--t1); }
.lobby-buyin::before { content: '⛁ '; color: var(--accent); }
.lobby-seats { font-size: 13px; color: var(--t2); }
.lobby-join {
    background: rgba(232,168,32,.12); color: var(--accent);
    border: 1px solid rgba(232,168,32,.3); border-radius: 8px;
    padding: 6px 16px; font-family: inherit; font-weight: 600; font-size: 13px;
    cursor: pointer; transition: all .2s;
}
.lobby-join:hover { background: var(--accent); color: #0a0a0d; }

/* steps */
.how-steps { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.how-steps li { display: flex; gap: 16px; align-items: flex-start; }
.how-num {
    width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid rgba(232,168,32,.4);
    color: var(--accent); font-size: 14px; font-weight: 600;
}
.how-steps b { font-size: 16px; color: var(--t0); display: block; margin-bottom: 3px; }
.how-steps p { font-size: 14px; color: var(--t1); line-height: 1.55; }

/* early-access CTA (torn ticket) */
.ea-cta {
    position: relative;
    max-width: 600px; margin: 64px auto 0;
    text-align: center;
    padding: 46px 40px;
    background:
        radial-gradient(130% 120% at 50% 0%, rgba(232,168,32,.15), transparent 62%),
        linear-gradient(180deg, rgba(24,21,32,.68), rgba(12,12,20,.72));
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'><filter id='ft'><feTurbulence type='fractalNoise' baseFrequency='0.022 0.05' numOctaves='2' seed='6' result='n'/><feDisplacementMap in='SourceGraphic' in2='n' scale='16'/></filter><path filter='url(%23ft)' fill='%23fff' d='M0,15 L400,15 L400,185 L0,185 Z'/></svg>");
            mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'><filter id='ft'><feTurbulence type='fractalNoise' baseFrequency='0.022 0.05' numOctaves='2' seed='6' result='n'/><feDisplacementMap in='SourceGraphic' in2='n' scale='16'/></filter><path filter='url(%23ft)' fill='%23fff' d='M0,15 L400,15 L400,185 L0,185 Z'/></svg>");
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.ea-eyebrow {
    display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
}
.ea-title {
    font-family: 'Grunger', sans-serif; font-weight: 400;
    font-size: clamp(30px, 4vw, 46px); line-height: 1.04;
    color: var(--t0); margin-bottom: 12px;
}
.ea-sub {
    font-size: 15px; color: var(--t1); line-height: 1.6;
    max-width: 400px; margin: 0 auto;
}
.ea-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 28px; padding: 16px 36px;
    font-family: inherit; font-weight: 700; font-size: 16px; letter-spacing: -.01em;
    color: #1c1305; cursor: pointer; border: none; border-radius: 10px;
    background: linear-gradient(180deg, #f4ba30 0%, var(--accent) 55%, #d99a16 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.4),
        0 8px 24px rgba(232,168,32,.4),
        0 2px 6px rgba(0,0,0,.3);
    transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease;
}
.ea-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.45),
        0 14px 34px rgba(232,168,32,.5),
        0 4px 10px rgba(0,0,0,.35);
}
.ea-btn:active { transform: translateY(0); }
.ea-btn::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: -65%; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg); pointer-events: none;
    animation: eaShine 3.6s ease-in-out infinite;
}
@keyframes eaShine { 0% { left: -65%; } 24% { left: 140%; } 100% { left: 140%; } }
.ea-arrow { transition: transform .2s; }
.ea-btn:hover .ea-arrow { transform: translateX(5px); }
.ea-cta.ea-flash { animation: eaFlash 1.2s ease; }
@keyframes eaFlash {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(232,168,32,0)); }
    28% { filter: drop-shadow(0 0 20px rgba(232,168,32,.6)); }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .hero-markets { grid-template-columns: repeat(2, 1fr); }
    .hero-markets-wrap { height: 58vh; max-height: none; }
    .how-panel.is-active { grid-template-columns: 1fr; gap: 30px; }
    .how-mock { order: 2; }
    .pillars { grid-template-columns: 1fr; }
    .fgrid { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .live-bar-inner { flex-wrap: wrap; gap: 16px; justify-content: center; }
    .curve-stats { flex-wrap: wrap; }
}

@media (max-width: 768px) {
    #nav { padding: 14px 20px; }
    .nav-links, .nav-cta { display: none; }
    .burger { display: flex; order: 2; margin-left: auto; }
    .lang-switch { order: 3; }   /* globe tout à droite, comme sur desktop */

    #hero { padding: 110px 0 50px; min-height: auto; }
    .hero-metrics { width: 100%; justify-content: center; }
    .hmetric { padding: 13px 16px; }
    .hmetric-val { font-size: 20px; }

    section { padding: 72px 0; }
    .fgrid { grid-template-columns: 1fr; }
    .tgrid { grid-template-columns: 1fr; }
    .tcard--wide { grid-column: auto; }
    .foot-grid { flex-direction: column; align-items: flex-start; gap: 24px; }
    .cta-box { padding: 40px 24px; }
    .ea-cta { padding: 36px 22px; margin-top: 46px; }
}

@media (max-width: 560px) {
    .hero-markets { grid-template-columns: 1fr; }
    .hero-markets-wrap { height: 62vh; max-height: none; }
}

@media (max-width: 480px) {
    .split-legend { flex-direction: column; gap: 8px; }
}

/* ═══ INVITE (nav button + referral modal) ═══ */
.nav-invite {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit; font-size: 14px; font-weight: 500;
    color: var(--t1); background: none; border: none; padding: 0;
    cursor: pointer; transition: color .2s;
}
.nav-invite svg { width: 15px; height: 15px; }
.nav-invite:hover { color: var(--accent); }

.mobile-invite {
    font-family: inherit; font-size: 18px; color: var(--t1);
    background: none; border: none; cursor: pointer; transition: color .2s;
}
.mobile-invite:hover { color: var(--t0); }

.invite-modal {
    display: none; position: fixed; inset: 0; z-index: 1000;
    align-items: center; justify-content: center; padding: 24px;
}
.invite-modal.is-open { display: flex; }
.invite-backdrop {
    position: absolute; inset: 0; cursor: pointer;
    background: rgba(4,4,9,.66); backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    animation: invFade .22s ease;
}
.invite-card {
    position: relative; z-index: 1; width: 100%; max-width: 432px;
    padding: 30px 26px 22px;
    background: linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 100%);
    border: 1px solid var(--border-l); border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(232,168,32,.12);
    animation: invPop .3s cubic-bezier(.2,.8,.25,1);
}
.invite-x {
    position: absolute; top: 14px; right: 14px;
    display: inline-grid; place-items: center; width: 30px; height: 30px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    border-radius: 100px; color: var(--t1); cursor: pointer;
    transition: color .2s, background .2s;
}
.invite-x:hover { color: var(--t0); background: rgba(255,255,255,.09); }
.invite-x svg { width: 15px; height: 15px; }
.invite-eyebrow {
    display: inline-block; font-family: var(--mono);
    font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent);
}
.invite-title {
    font-family: 'Grunger', 'Inter', sans-serif; font-weight: 400;
    font-size: 30px; line-height: 1.05; color: var(--t0); margin: 10px 0 8px;
}
.invite-sub { font-size: 14px; color: var(--t1); line-height: 1.5; margin: 0 0 18px; }
.invite-code-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px; margin-bottom: 16px;
    background: rgba(232,168,32,.07); border: 1px solid rgba(232,168,32,.28); border-radius: 10px;
}
.invite-code-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--t1); }
.invite-code { font-size: 16px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.invite-msg-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--t2); margin: 0 0 6px;
}
.invite-msg {
    white-space: pre-wrap; font-size: 13px; line-height: 1.55; color: var(--t1);
    padding: 12px 14px; margin-bottom: 18px;
    background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 10px;
}
.invite-actions { display: flex; gap: 10px; }
.invite-actions .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; }
.invite-tweet { gap: 8px; }
.invite-tweet svg { width: 14px; height: 14px; }
.invite-copy.is-done { color: var(--green); border-color: rgba(34,197,94,.4); }
.invite-foot { font-size: 11px; color: var(--t2); text-align: center; margin: 14px 0 0; }

/* connect state */
.invite-connect { text-align: center; padding: 6px 0 2px; }
.invite-connect-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.invite-connect-btn svg { width: 17px; height: 17px; }
.invite-connect-btn.is-loading { opacity: .7; pointer-events: none; }
.invite-connect-note { font-size: 12px; color: var(--t2); margin: 12px 0 0; }
.invite-connect-err { font-size: 12px; color: var(--red); margin: 10px 0 0; }
.invite-addr-field { display: flex; flex-direction: column; gap: 10px; }
.invite-addr-input {
    width: 100%; padding: 12px 14px; font-family: var(--mono);
    background: rgba(255,255,255,.03); border: 1px solid var(--border-l); border-radius: 10px;
    color: var(--t0); font-size: 13px; letter-spacing: .02em;
    transition: border-color .2s, background .2s;
}
.invite-addr-input::placeholder { color: var(--t2); }
.invite-addr-input:focus { outline: none; border-color: rgba(232,168,32,.5); background: rgba(232,168,32,.05); }
.invite-addr-btn { width: 100%; justify-content: center; }
.invite-addr-btn.is-loading { opacity: .7; pointer-events: none; }

/* wallet pill + stats */
.invite-wallet-row {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 11px; margin-bottom: 14px;
    background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.28); border-radius: 100px;
}
.invite-wallet-dot { width: 7px; height: 7px; border-radius: 100px; background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,.7); }
.invite-wallet-addr { font-size: 12px; color: var(--t0); letter-spacing: .02em; }
.invite-stats { display: flex; gap: 10px; margin-bottom: 18px; }
.invite-stat {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 12px 8px; background: rgba(255,255,255,.025);
    border: 1px solid var(--border); border-radius: 10px;
}
.invite-stat-n { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--accent); line-height: 1; }
.invite-stat-l { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--t2); }
.invite-rank-note {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; line-height: 1.4; color: var(--t1);
    margin: 0 0 16px; padding: 9px 12px;
    background: rgba(232,168,32,.06); border: 1px solid rgba(232,168,32,.22); border-radius: 9px;
}
.invite-rank-note svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent); }
.invite-share-hint { font-size: 12px; line-height: 1.45; color: var(--t1); text-align: center; margin: 12px 0 0; animation: invFade .25s ease; }
.invite-share-hint b { color: var(--accent); font-weight: 700; }
@keyframes invFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes invPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
    .invite-card { padding: 26px 20px 20px; }
    .invite-title { font-size: 26px; }
    .invite-actions { flex-direction: column; }
}

/* ═══ COOKIE CONSENT BAR ═══ */
.cookie-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    display: flex; justify-content: center; padding: 0 16px 16px;
    transform: translateY(140%); opacity: 0; pointer-events: none;
    transition: transform .55s cubic-bezier(.2,.8,.25,1), opacity .5s;
}
.cookie-bar.is-in { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-bar-inner {
    display: flex; align-items: center; gap: 18px;
    width: 100%; max-width: 720px; padding: 13px 16px 13px 18px;
    background-color: rgba(14,13,20,.92);
    backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(232,168,32,.18); border-radius: 14px;
    box-shadow: 0 14px 44px rgba(0,0,0,.55), 0 0 24px rgba(232,168,32,.05), inset 0 1px 0 rgba(255,234,200,.08);
}
.cookie-text { display: flex; align-items: center; gap: 11px; flex: 1 1 auto; min-width: 0; }
.cookie-text svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--accent); }
.cookie-text p { font-size: 12.5px; line-height: 1.45; color: var(--t1); margin: 0; }
.cookie-actions { display: flex; gap: 9px; flex: 0 0 auto; }
@media (max-width: 620px) {
    .cookie-bar-inner { flex-direction: column; align-items: stretch; gap: 12px; }
    .cookie-actions .btn { flex: 1; justify-content: center; }
}
.cookie-prefs-link {
    background: none; border: none; cursor: pointer; font-family: inherit;
    font-size: 12.5px; color: var(--t1); text-decoration: underline; text-underline-offset: 3px;
    padding: 0 4px; transition: color .2s; align-self: center;
}
.cookie-prefs-link:hover { color: var(--accent); }

/* glitch au clic d'un choix cookie (RGB split + jitter), la page glitche aussi via triggerGlitch */
.cookie-bar.is-glitching .cookie-bar-inner { animation: cookieGlitch .28s steps(2) both; }
@keyframes cookieGlitch {
    0%   { transform: translateX(0);    filter: none; }
    20%  { transform: translateX(-3px); filter: drop-shadow(3px 0 rgba(255,0,0,.5)) drop-shadow(-3px 0 rgba(0,255,255,.5)); }
    40%  { transform: translateX(3px);  filter: drop-shadow(-3px 0 rgba(255,0,0,.5)) drop-shadow(3px 0 rgba(0,255,255,.5)); }
    60%  { transform: translateX(-2px); filter: drop-shadow(2px 0 rgba(255,0,0,.4)) drop-shadow(-2px 0 rgba(0,255,255,.4)); }
    80%  { transform: translateX(1px);  filter: none; }
    100% { transform: translateX(0);    filter: none; }
}

/* confirmation propre après le choix */
.cookie-saved {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; max-width: 720px; padding: 15px 18px;
    background-color: rgba(14,13,20,.92);
    backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(232,168,32,.3); border-radius: 14px;
    box-shadow: 0 14px 44px rgba(0,0,0,.55), 0 0 26px rgba(232,168,32,.12);
    opacity: 0; transform: scale(.98); transition: opacity .3s ease, transform .3s ease;
}
.cookie-saved.is-in { opacity: 1; transform: scale(1); }
.cookie-saved svg { width: 20px; height: 20px; color: var(--green); flex: 0 0 auto; }
.cookie-saved span { font-size: 13px; font-weight: 600; color: var(--t0); }

/* ═══ COOKIE PREFERENCES MODAL ═══ */
.cookie-modal { display: none; position: fixed; inset: 0; z-index: 1001; align-items: center; justify-content: center; padding: 24px; }
.cookie-modal.is-open { display: flex; }
.cookie-modal-backdrop {
    position: absolute; inset: 0; cursor: pointer;
    background: rgba(4,4,9,.66); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
    animation: invFade .22s ease;
}
.cookie-modal-card {
    position: relative; z-index: 1; width: 100%; max-width: 460px; max-height: 86vh; overflow-y: auto;
    padding: 28px 26px 22px;
    background: linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 100%);
    border: 1px solid var(--border-l); border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(232,168,32,.12);
    animation: invPop .3s cubic-bezier(.2,.8,.25,1);
}
.cookie-modal-x {
    position: absolute; top: 14px; right: 14px;
    display: inline-grid; place-items: center; width: 30px; height: 30px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    border-radius: 100px; color: var(--t1); cursor: pointer; transition: color .2s, background .2s;
}
.cookie-modal-x:hover { color: var(--t0); background: rgba(255,255,255,.09); }
.cookie-modal-x svg { width: 15px; height: 15px; }
.cookie-modal-title { font-family: 'Grunger', 'Inter', sans-serif; font-weight: 400; font-size: 26px; line-height: 1.05; color: var(--t0); margin: 10px 0 8px; }
.cookie-modal-sub { font-size: 13px; color: var(--t1); line-height: 1.5; margin: 0 0 18px; }
.cookie-cats { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 11px; }
.cookie-cat { padding: 12px 14px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 11px; }
.cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.cookie-cat-name { font-size: 13.5px; font-weight: 600; color: var(--t0); }
.cookie-cat-desc { font-size: 11.5px; line-height: 1.45; color: var(--t2); margin: 0; }
.cookie-modal-actions { display: flex; gap: 10px; }
.cookie-modal-actions .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; }

/* toggle switch */
.cookie-switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: 0 0 auto; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-track { position: absolute; inset: 0; background: rgba(255,255,255,.1); border: 1px solid var(--border-l); border-radius: 100px; transition: background .2s, border-color .2s; }
.cookie-track::before { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 100px; background: var(--t1); transition: transform .2s, background .2s; }
.cookie-switch input:checked + .cookie-track { background: rgba(232,168,32,.3); border-color: rgba(232,168,32,.5); }
.cookie-switch input:checked + .cookie-track::before { transform: translateX(16px); background: var(--accent); }
.cookie-switch input:disabled { cursor: not-allowed; }
.cookie-switch input:disabled + .cookie-track { opacity: .55; }

/* ═══ LANGUAGE SWITCHER (nav) ═══ */
.lang-switch { position: relative; flex: 0 0 auto; }
.lang-btn {
    display: inline-grid; place-items: center;
    width: 38px; height: 36px; padding: 0;
    background: rgba(255,255,255,.04); border: 1px solid var(--border-l); border-radius: 100px;
    color: var(--t1); cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
}
.lang-btn:hover { color: var(--t0); background: rgba(255,255,255,.08); }
.lang-switch.is-open .lang-btn { color: var(--accent); border-color: rgba(232,168,32,.45); background: rgba(232,168,32,.1); }
.lang-icon { position: relative; display: inline-block; width: 21px; height: 21px; }
.lang-globe { width: 21px; height: 21px; display: block; }
.lang-menu {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
    width: 196px; max-height: 322px; overflow-y: auto;
    padding: 6px; border-radius: 12px;
    background: rgba(14,13,20,.96);
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(232,168,32,.18);
    box-shadow: 0 16px 44px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,234,200,.06);
    animation: langIn .18s ease;
}
@keyframes langIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-opt {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 8px 10px; border-radius: 8px;
    background: none; border: none; cursor: pointer; font-family: inherit; text-align: left;
    color: var(--t1); transition: background .15s, color .15s;
}
.lang-opt:hover { background: rgba(255,255,255,.05); color: var(--t0); }
.lang-opt-name { flex: 1; font-size: 13px; }
.lang-opt-code { font-size: 10px; color: var(--t2); letter-spacing: .06em; }
.lang-opt.is-active { background: rgba(232,168,32,.1); color: var(--accent); }
.lang-opt.is-active .lang-opt-code { color: var(--accent); }
.lang-flag { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.lang-flag--btn {
    position: absolute; right: -3px; bottom: -2px;
    width: 13px; height: 10px; object-fit: cover; border-radius: 2px;
    box-shadow: 0 0 0 1.5px rgba(14,13,20,.95);
}

/* ═══ SOUND VISUALISER FAB (bottom-right) ═══ */
.sound-fab {
    position: fixed; left: 22px; bottom: 22px; z-index: 90;
    display: grid; place-items: center;
    width: 46px; height: 46px; padding: 0;
    background: rgba(14,13,20,.72);
    backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid var(--border-l); border-radius: 50%; cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    transition: width .42s cubic-bezier(.3,.85,.35,1), border-radius .42s ease, border-color .25s, background .2s, box-shadow .25s, transform .2s;
}
.sound-fab:hover { background: rgba(20,18,30,.82); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.sound-fab.is-on { width: 84px; border-radius: 100px; border-color: rgba(232,168,32,.42); box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 18px rgba(232,168,32,.13); }
/* coupé = bouton rond + icône play ; lecture = pilule + courbes */
.sound-play { grid-area: 1 / 1; width: 16px; height: 16px; color: var(--accent); opacity: .9; margin-left: 2px; }
.sound-viz { grid-area: 1 / 1; display: none; width: 62px; height: 23px; }
.sound-fab.is-on .sound-play { display: none; }
.sound-fab.is-on .sound-viz { display: block; }
@media (max-width: 560px) { .sound-fab { left: 14px; bottom: 14px; } }

/* ═══════════════════════════════════════════════════════════════════
   RTL — arabe (dir="rtl" posé sur <html> + .is-rtl sur <body> par applyLang).
   Le sens d'écriture, l'alignement des blocs de texte et l'ordre des
   éléments flex/grid sont gérés nativement par le navigateur ; on ne
   corrige ici que les propriétés à direction PHYSIQUE (left/right figés).
   ═══════════════════════════════════════════════════════════════════ */
[dir="rtl"] .how-tab,
[dir="rtl"] .lang-opt { text-align: right; }
[dir="rtl"] .invite-addr-input { text-align: right; }

/* boutons « fermer » des modales : coin opposé */
[dir="rtl"] .invite-x,
[dir="rtl"] .cookie-modal-x { right: auto; left: 14px; }

/* menu de langue : aligné sous le bouton, bord opposé */
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-flag--btn { right: auto; left: -3px; }

/* FAB son : bas-gauche → bas-droite */
[dir="rtl"] .sound-fab { left: auto; right: 22px; }
@media (max-width: 560px) { [dir="rtl"] .sound-fab { left: auto; right: 14px; } }

/* interrupteur cookie : poignée à droite, glisse vers la gauche quand actif */
[dir="rtl"] .cookie-track::before { left: auto; right: 2px; }
[dir="rtl"] .cookie-switch input:checked + .cookie-track::before { transform: translateX(-16px); }
