  :root {
    --orange: #ff6b1a;
    --orange-dark: #d9500a;
    --navy: #0d1b2a;
    --navy-2: #13263b;
    --cream: #fff4e6;
    --teal: #2ec4b6;
    --sky: #8fd8ff;
    --ink: #1b1b1b;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
  body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--navy);
    color: var(--cream);
    overflow-x: hidden;
    overflow-x: clip;
  }
  .progress {
    position: fixed; top: 0; left: 0; height: 4px; width: 0;
    background: linear-gradient(90deg, var(--orange), var(--teal));
    z-index: 100;
  }
  #confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 120; }

  /* ---------- HERO ---------- */
  .hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 24px 16px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 120%, #1f3a5a 0%, var(--navy) 60%);
  }
  .court-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; }
  .court-lines path, .court-lines circle, .court-lines line {
    fill: none; stroke: var(--orange); stroke-width: 3;
    stroke-dasharray: 2000; stroke-dashoffset: 2000;
    animation: draw 3s ease forwards .3s;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  .name {
    font-family: 'Anton', sans-serif; text-transform: uppercase;
    font-size: clamp(64px, 15vw, 190px); line-height: .9; letter-spacing: 2px;
    position: relative; z-index: 2;
  }
  .name .line { display: block; white-space: nowrap; }
  .name .l {
    display: inline-block; opacity: 0;
    transform: translateY(-120vh);
    animation: drop 1s cubic-bezier(.3,1.6,.5,1) forwards;
  }
  .name .line:last-child .l { color: var(--orange); -webkit-text-stroke: 0; }
  @keyframes drop {
    0% { opacity: 1; transform: translateY(-120vh) rotate(-20deg); }
    100% { opacity: 1; transform: translateY(0) rotate(0); }
  }
  .tagline {
    margin-top: 28px; font-size: clamp(18px, 2.6vw, 28px); font-weight: 600;
    opacity: 0; animation: fadeUp .8s ease forwards 2.1s; z-index: 2;
  }
  .tagline .rot {
    color: var(--orange); font-family: 'Caveat', cursive; font-size: 1.5em;
    display: inline-block; min-width: 7ch; text-align: left;
  }
  .tagline .rot::after { content: '|'; animation: blink 1s steps(1) infinite; color: var(--cream); }
  @keyframes blink { 50% { opacity: 0; } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: none; } }

  .ball-stage { position: relative; height: 170px; width: 120px; margin-top: 24px; z-index: 2; }
  .ball {
    width: 70px; height: 70px; border-radius: 50%;
    position: absolute; left: 25px; top: 0;
    animation: bounce 1s cubic-bezier(.5,0,.5,1) infinite alternate;
  }
  .ball svg { width: 100%; height: 100%; animation: spin 2s linear infinite; }
  .shadow {
    position: absolute; bottom: 4px; left: 30px; width: 60px; height: 12px; border-radius: 50%;
    background: rgba(0,0,0,.5); filter: blur(3px);
    animation: shadow 1s cubic-bezier(.5,0,.5,1) infinite alternate;
  }
  @keyframes bounce {
    0% { top: 0; }
    90% { transform: scale(1,1); }
    100% { top: 88px; transform: scale(1.15,.82); }
  }
  @keyframes shadow { 0% { transform: scale(.4); opacity: .3; } 100% { transform: scale(1); opacity: .8; } }
  @keyframes spin { to { transform: rotate(360deg); } }

  .scroll-hint {
    position: absolute; bottom: 24px; font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
    opacity: .7; animation: float 2s ease-in-out infinite;
  }
  @keyframes float { 50% { transform: translateY(8px); } }

  /* ---------- MARQUEE ---------- */
  .marquee {
    background: var(--orange); color: var(--navy); overflow: hidden;
    transform: rotate(-2deg) scale(1.05); padding: 14px 0; position: relative; z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
  }
  .marquee .track {
    display: flex; gap: 40px; width: max-content;
    font-family: 'Anton', sans-serif; font-size: clamp(22px, 4vw, 40px); text-transform: uppercase;
    animation: scroll 22s linear infinite;
  }
  @keyframes scroll { to { transform: translateX(-50%); } }

  section { padding: 110px 16px; position: relative; }
  .wrap { max-width: 1100px; margin: 0 auto; }
  h2 {
    font-family: 'Anton', sans-serif; text-transform: uppercase;
    font-size: clamp(40px, 7vw, 84px); line-height: 1; margin-bottom: 18px;
  }
  h2 .accent { color: var(--orange); }
  .kicker { font-family: 'Caveat', cursive; font-size: 30px; color: var(--teal); }

  .reveal { opacity: 0; transform: translateY(50px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
  .reveal.in { opacity: 1; transform: none; }

  /* ---------- ABOUT ---------- */
  .about { background: var(--cream); color: var(--ink); }
  .about .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
  .polaroid {
    background: #fff; padding: 16px 16px 60px; border-radius: 4px;
    box-shadow: 0 25px 50px rgba(0,0,0,.25);
    transform: rotate(-4deg); transition: transform .5s cubic-bezier(.3,1.5,.5,1);
    position: relative;
  }
  .polaroid:hover { transform: rotate(0) scale(1.03); }
  .polaroid img { width: 100%; display: block; border-radius: 2px; }
  .polaroid .cap {
    position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
    font-family: 'Caveat', cursive; font-size: 30px; color: #333;
  }
  .sticker {
    position: absolute; font-size: 54px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25));
    animation: wobble 3s ease-in-out infinite;
  }
  .sticker.s1 { top: -30px; right: -20px; }
  .sticker.s2 { bottom: 30px; left: -34px; animation-delay: -1.5s; }
  @keyframes wobble { 50% { transform: rotate(14deg) translateY(-8px); } }
  .tape {
    position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; margin-left: -55px;
    background: rgba(255, 210, 140, .75); transform: rotate(-3deg);
  }
  .about p { font-size: 19px; line-height: 1.7; margin-bottom: 16px; }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .chip {
    padding: 10px 18px; border-radius: 99px; font-weight: 800; font-size: 15px;
    background: var(--navy); color: var(--cream); transition: transform .3s;
  }
  .chip:hover { transform: translateY(-4px) rotate(-3deg); background: var(--orange); }

  /* ---------- BASKET ---------- */
  .basket {
    background:
      repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 90px),
      linear-gradient(180deg, #c9803f, #b06a2c);
    color: var(--cream); overflow: hidden;
  }
  .basket h2, .basket .lead { text-shadow: 0 4px 0 rgba(0,0,0,.2); }
  .basket .lead { font-size: 20px; max-width: 620px; line-height: 1.6; }
  .court {
    position: relative; margin-top: 40px; height: 460px; border-radius: 24px;
    background: rgba(13, 27, 42, .88); overflow: hidden; cursor: pointer;
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.12), 0 30px 60px rgba(0,0,0,.35);
    user-select: none;
  }
  .court::before { /* key arc */
    content: ''; position: absolute; right: -180px; bottom: -180px; width: 520px; height: 520px;
    border: 4px solid rgba(255,255,255,.12); border-radius: 50%;
  }
  .board {
    position: absolute; right: 50px; top: 50px; width: 14px; height: 130px;
    background: #fff; border-radius: 4px; box-shadow: 0 0 20px rgba(255,255,255,.4);
  }
  .rim {
    position: absolute; right: 64px; top: 140px; width: 96px; height: 10px;
    background: var(--orange); border-radius: 6px; z-index: 5;
    box-shadow: 0 0 18px rgba(255,107,26,.8);
  }
  .net {
    position: absolute; right: 70px; top: 148px; width: 84px; height: 70px; z-index: 5;
    transform-origin: top center;
  }
  .net.swish { animation: swish .6s ease; }
  @keyframes swish { 30% { transform: scaleY(1.35) scaleX(.85); } 60% { transform: scaleY(.9); } }
  .shot-ball { position: absolute; width: 56px; height: 56px; z-index: 4; left: 60px; top: 360px; }
  .shot-ball svg { width: 100%; height: 100%; }
  .scoreboard {
    position: absolute; left: 24px; top: 24px; display: flex; gap: 14px; z-index: 6;
  }
  .score {
    background: #000; border: 2px solid #333; border-radius: 10px; padding: 8px 14px; text-align: center;
    font-family: 'Anton', sans-serif;
  }
  .score b { display: block; font-size: 34px; color: #ff3b3b; text-shadow: 0 0 10px #ff3b3b; font-weight: 400; }
  .score span { font-size: 11px; letter-spacing: 2px; color: #aaa; font-family: 'Inter', sans-serif; }
  .shout {
    position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%) scale(0);
    font-family: 'Anton', sans-serif; font-size: clamp(48px, 9vw, 110px); color: var(--orange);
    text-shadow: 0 6px 0 rgba(0,0,0,.4); pointer-events: none; z-index: 7; white-space: nowrap;
  }
  .shout.pop { animation: pop 1s cubic-bezier(.3,1.6,.5,1) forwards; }
  @keyframes pop {
    0% { transform: translate(-50%,-50%) scale(0) rotate(-10deg); opacity: 1; }
    40% { transform: translate(-50%,-50%) scale(1) rotate(-4deg); opacity: 1; }
    100% { transform: translate(-50%,-70%) scale(1.1) rotate(-4deg); opacity: 0; }
  }
  .hint {
    position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-weight: 600;
    opacity: .75; z-index: 6; pointer-events: none;
  }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
  .stat {
    background: rgba(13,27,42,.85); border-radius: 18px; padding: 26px; text-align: center;
    transition: transform .4s cubic-bezier(.3,1.5,.5,1);
  }
  .stat:hover { transform: translateY(-8px) rotate(-1.5deg); }
  .stat .num { font-family: 'Anton', sans-serif; font-size: 58px; color: var(--orange); }
  .stat .lbl { font-weight: 600; opacity: .85; }

  /* ---------- TRAVEL ---------- */
  .travel {
    background: linear-gradient(180deg, #0f2f4a 0%, #1b5b7a 55%, var(--teal) 100%);
    overflow: hidden;
  }
  .clouds { position: absolute; inset: 0; pointer-events: none; }
  .cloud {
    position: absolute; background: rgba(255,255,255,.12); border-radius: 99px; height: 40px;
    animation: drift linear infinite;
  }
  .cloud::before, .cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
  .cloud::before { width: 50px; height: 50px; top: -24px; left: 20px; }
  .cloud::after { width: 70px; height: 70px; top: -36px; left: 50px; }
  @keyframes drift { from { transform: translateX(-200px); } to { transform: translateX(110vw); } }

  .flight { position: relative; height: 220px; margin: 30px 0 10px; }
  .flight svg.path { width: 100%; height: 100%; overflow: visible; }
  .flight path.route { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 3; stroke-dasharray: 10 12; }
  .plane {
    position: absolute; left: 0; top: 0; font-size: 44px; line-height: 1;
    offset-path: path('M 20 180 C 250 -40, 500 260, 760 80 S 1050 40, 1080 30');
    offset-rotate: auto; offset-distance: 0%;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.3));
  }
  .pin { position: absolute; font-size: 30px; transform: translate(-50%, -100%); animation: float 2.4s ease-in-out infinite; }

  .stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
  .card { perspective: 1000px; height: 230px; cursor: pointer; }
  .card-inner {
    position: relative; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.3,1.3,.5,1);
    transform-style: preserve-3d;
  }
  .card:hover .card-inner, .card.flipped .card-inner { transform: rotateY(180deg); }
  .face {
    position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center;
  }
  .front {
    background: var(--cream); color: var(--navy);
    border: 3px dashed var(--orange); box-shadow: 0 20px 40px rgba(0,0,0,.25);
  }
  .front .emo { font-size: 64px; margin-bottom: 8px; }
  .front .city { font-family: 'Anton', sans-serif; font-size: 30px; text-transform: uppercase; }
  .front .stamp-ring {
    position: absolute; top: 14px; right: 14px; width: 62px; height: 62px; border-radius: 50%;
    border: 3px solid var(--orange); color: var(--orange); font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; transform: rotate(-18deg); letter-spacing: 1px;
  }
  .back {
    background: var(--orange); color: var(--navy); transform: rotateY(180deg);
    font-family: 'Caveat', cursive; font-size: 30px; line-height: 1.2;
  }

  .visited-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .visited-head h3, .next-title {
    font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4.5vw, 48px);
  }
  .visited-count { font-weight: 600; font-size: 18px; }
  .visited-count b { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 34px; color: var(--orange); }
  .front .flag { font-size: 58px; line-height: 1; margin-bottom: 8px; }
  .front .city { font-size: 26px; }
  .stamp-ring.ok { border-color: #1a9e8f; color: #1a9e8f; }

  .next { margin-top: 90px; text-align: center; }
  .next-sub { max-width: 560px; margin: 10px auto 0; font-size: 18px; line-height: 1.6; opacity: .9; }
  .pass {
    display: grid; grid-template-columns: 1fr 150px; margin: 34px auto 0; max-width: 860px; text-align: left;
    background: var(--cream); color: var(--navy); border-radius: 22px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,.35);
  }
  .pass small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 2px; opacity: .55; margin-top: 12px; }
  .pass b { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 22px; letter-spacing: 1px; }
  .pass-main { padding: 22px 26px 26px; }
  .pass-top {
    display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    background: var(--orange); color: var(--navy); margin: -22px -26px 6px; padding: 12px 26px;
    font-family: 'Anton', sans-serif; letter-spacing: 2px; font-size: 18px;
  }
  .pass-row { display: flex; gap: 40px; flex-wrap: wrap; }
  .pass-stub {
    border-left: 3px dashed rgba(13,27,42,.25); padding: 22px 20px; position: relative; text-align: center;
    background: #ffe9cf;
  }
  .pass-stub b { display: block; font-size: 30px; color: var(--orange-dark); }
  .flaps { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; margin-top: 6px; }
  .flap {
    position: relative; aspect-ratio: 3 / 4; background: #1a2533; color: #fff4c4; border-radius: 5px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    font-family: 'Anton', sans-serif; font-size: clamp(13px, 2.7vw, 30px);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.35);
  }
  .flap::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.6); }
  .flap.tick { animation: flip .09s linear; }
  @keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(80deg); filter: brightness(.6); } 100% { transform: rotateX(0); } }
  .pass-reveal {
    display: flex; align-items: center; gap: 14px; margin-top: 18px; min-height: 64px;
    font-weight: 600; font-size: 18px; line-height: 1.4;
  }
  .reveal-emo { font-size: 48px; line-height: 1; }
  .pass-reveal.pop { animation: fadeUp .6s cubic-bezier(.3,1.5,.5,1); }
  .next .btn { margin-top: 30px; }
  .next .btn:disabled { opacity: .6; cursor: wait; }

  .quest {
    max-width: 900px; margin: 34px auto 0; text-align: left;
    background: rgba(13,27,42,.6); border: 1px solid rgba(255,255,255,.12); border-radius: 24px;
    padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.3);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .q-hud { display: flex; justify-content: space-between; align-items: center; font-weight: 800; gap: 10px; }
  .q-miles { display: inline-block; }
  .q-miles b { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 26px; color: var(--orange); }
  .q-miles.bump { animation: bump .5s cubic-bezier(.3,1.8,.5,1); }
  @keyframes bump { 40% { transform: scale(1.25); } }
  .q-step { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; opacity: .8; }
  .q-map { position: relative; height: 44px; margin: 30px 14px 20px; }
  .q-line {
    position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 10px, transparent 10px 18px);
  }
  .q-fill { height: 100%; width: 0; background: var(--orange); border-radius: 4px; transition: width .9s cubic-bezier(.3,1,.5,1); }
  .q-dot {
    position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
    background: var(--navy); border: 3px solid rgba(255,255,255,.4); font: 800 10px/10px 'Inter', sans-serif;
    display: flex; align-items: center; justify-content: center; color: var(--cream); transition: background .4s, border-color .4s;
  }
  .q-dot:last-of-type { width: 24px; height: 24px; margin: -12px 0 0 -12px; border-color: var(--orange); font-size: 13px; }
  .q-dot.done { background: var(--orange); border-color: var(--orange); }
  .q-plane {
    position: absolute; top: 50%; left: 0; z-index: 2; font-size: 30px; line-height: 1;
    transform: translate(-50%, -110%); transition: left .9s cubic-bezier(.3,1,.5,1);
    filter: drop-shadow(0 6px 6px rgba(0,0,0,.35));
  }
  .q-scene {
    display: grid; grid-template-columns: 250px 1fr; gap: 24px; min-height: 330px;
    transition: opacity .35s ease, transform .35s ease;
  }
  .q-scene.out { opacity: 0; transform: translateX(-30px); }
  .q-art {
    position: relative; border-radius: 20px; overflow: hidden; min-height: 250px;
    background: linear-gradient(160deg, var(--c1), var(--c2));
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  }
  .q-art::before {
    content: ''; position: absolute; width: 180%; height: 180%; left: -40%; top: -40%;
    background: conic-gradient(from 0deg, transparent 0 20deg, rgba(255,255,255,.08) 20deg 40deg, transparent 40deg 70deg, rgba(255,255,255,.08) 70deg 90deg, transparent 90deg 120deg, rgba(255,255,255,.08) 120deg 140deg, transparent 140deg);
    animation: spin 30s linear infinite;
  }
  .q-emoji { position: relative; font-size: 110px; line-height: 1; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 12px 14px rgba(0,0,0,.3)); }
  .q-deco { position: absolute; font-size: 30px; animation: wobble 4s ease-in-out infinite; }
  .q-place {
    display: inline-block; background: var(--orange); color: var(--navy); font-weight: 800;
    padding: 6px 14px; border-radius: 99px; font-size: 14px;
  }
  .q-story { margin-top: 12px; font-size: 18px; line-height: 1.6; min-height: 3.2em; cursor: pointer; }
  .q-question { font-family: 'Anton', sans-serif; font-size: 26px; margin-top: 8px; letter-spacing: .5px; line-height: 1.2; }
  .q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .q-opt {
    text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.07); color: var(--cream); font: 600 16px 'Inter', sans-serif; cursor: pointer;
    opacity: 0; transform: translateY(12px);
    transition: transform .3s cubic-bezier(.3,1.5,.5,1), background .2s, border-color .2s, opacity .3s;
  }
  .q-opt.show { opacity: 1; transform: none; }
  .q-opt.show:hover:not(:disabled) { background: rgba(255,107,26,.2); border-color: var(--orange); transform: translateY(-3px); }
  .q-opt.solo { grid-column: 1 / -1; text-align: center; background: var(--orange); color: var(--navy); border-color: var(--orange); font-weight: 800; font-size: 18px; }
  .q-opt.right { background: rgba(46,196,182,.35); border-color: var(--teal); }
  .q-opt.wrong { background: rgba(239,71,111,.35); border-color: #ef476f; animation: shakeX .4s; }
  .q-opt.picked { background: var(--orange); color: var(--navy); border-color: var(--orange); }
  .q-opt:disabled { cursor: default; }
  .q-opt:disabled:not(.right):not(.wrong):not(.picked) { opacity: .45; }
  @keyframes shakeX { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
  .q-feedback { margin-top: 12px; font-weight: 600; min-height: 1.4em; line-height: 1.5; }
  .next .q-next { margin-top: 14px; padding: 12px 24px; font-size: 16px; }
  .finale { margin-top: 30px; }
  .finale[hidden] { display: none; }
  .plan-b { margin-top: 16px; opacity: .85; font-weight: 600; }

  /* ---------- ARCADE ---------- */
  .arcade { background: radial-gradient(ellipse at 50% 0%, #1f3a5a 0%, var(--navy) 70%); }
  .arcade .lead { font-size: 20px; max-width: 640px; line-height: 1.6; }
  .game {
    position: relative; margin-top: 36px; border-radius: 24px; overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 4px rgba(255,107,26,.35);
  }
  #game {
    display: block; width: 100%; height: auto; aspect-ratio: 1000 / 560;
    touch-action: none; cursor: crosshair; background: #0b1624;
  }
  .overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(8,16,28,.75); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    transition: opacity .4s; padding: 16px;
  }
  .overlay.hide { opacity: 0; pointer-events: none; }
  .ov-card { text-align: center; max-width: 480px; }
  .ov-card h3 {
    font-family: 'Anton', sans-serif; font-size: clamp(30px, 6vw, 64px); text-transform: uppercase;
    color: var(--orange); line-height: 1; font-weight: 400;
  }
  .ov-card p { margin-top: 10px; line-height: 1.5; opacity: .9; font-size: clamp(13px, 1.8vw, 17px); }
  .ov-score { font-family: 'Anton', sans-serif; font-size: clamp(44px, 9vw, 100px); line-height: 1; margin-top: 8px; }
  .ov-score:empty { display: none; }
  .ov-card .btn { margin-top: 18px; }
  .mute {
    position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer;
  }
  .rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
  .rule {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px; padding: 18px; transition: transform .3s cubic-bezier(.3,1.5,.5,1);
  }
  .rule:hover { transform: translateY(-6px); }
  .rule b { font-family: 'Anton', sans-serif; font-size: 28px; color: var(--orange); display: block; font-weight: 400; }
  .rule span { opacity: .85; font-size: 15px; line-height: 1.5; }

  /* ---------- FOOTER ---------- */
  footer { background: var(--navy); text-align: center; padding: 90px 16px 60px; }
  footer .big {
    font-family: 'Anton', sans-serif; font-size: clamp(44px, 9vw, 110px); text-transform: uppercase; line-height: 1;
    background: linear-gradient(90deg, var(--orange), #ffd166, var(--teal), var(--orange));
    background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 6s linear infinite;
  }
  @keyframes shine { to { background-position: 300% 0; } }
  footer p { margin-top: 20px; opacity: .7; }
  .btn {
    display: inline-block; margin-top: 30px; padding: 16px 30px; border-radius: 99px; border: 0;
    background: var(--orange); color: var(--navy); font-weight: 800; font-size: 17px; cursor: pointer;
    transition: transform .3s cubic-bezier(.3,1.6,.5,1), box-shadow .3s;
    box-shadow: 0 10px 0 var(--orange-dark);
  }
  .btn:hover { transform: translateY(-4px); }
  .btn:active { transform: translateY(6px); box-shadow: 0 4px 0 var(--orange-dark); }

  @media (max-width: 820px) {
    .about .wrap { grid-template-columns: 1fr; gap: 50px; }
    .stats, .stamps { grid-template-columns: 1fr; }
    .stamps { gap: 18px; }
    .court { height: 400px; }
    .board { right: 20px; top: 50px; }
    .rim { right: 34px; width: 80px; }
    .net { right: 38px; width: 72px; }
    .flight { height: 160px; }
    .rules { grid-template-columns: 1fr 1fr; }
    .pass { grid-template-columns: 1fr; }
    .pass-stub { border-left: 0; border-top: 3px dashed rgba(13,27,42,.25); display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 16px 16px; }
    .pass-main { padding: 22px 16px 20px; }
    .pass-top { margin: -22px -16px 6px; padding: 12px 16px; font-size: 15px; }
    .pass-row { gap: 20px; }
    .flaps { gap: 2px; }
    .flap { border-radius: 3px; }
    .quest { padding: 14px; border-radius: 18px; }
    .q-map { margin: 28px 12px 16px; }
    .q-scene { grid-template-columns: 1fr; gap: 16px; min-height: 0; }
    .q-art { min-height: 150px; }
    .q-emoji { font-size: 72px; }
    .q-deco { font-size: 22px; }
    .q-story { font-size: 16px; }
    .q-question { font-size: 22px; }
    .q-options { grid-template-columns: 1fr; }
    .q-opt { padding: 13px 14px; font-size: 15px; }
    .game { border-radius: 16px; }
    .plane { font-size: 34px; }
    .sticker { font-size: 42px; }
    .sticker.s2 { left: -10px; }
  }

  /* ---------- NAVIGATION ---------- */
  .nav {
    position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 80;
    display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 99px;
    background: rgba(13,27,42,.72); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100% - 24px);
  }
  .nav a {
    color: var(--cream); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
    padding: 9px 16px; border-radius: 99px; transition: background .25s, color .25s;
  }
  .nav a:hover { background: rgba(255,255,255,.1); }
  .nav a.logo { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 18px; letter-spacing: 1px; color: var(--orange); }
  .nav a.active { background: var(--orange); color: var(--navy); }
  .page-first { padding-top: 140px; }

  /* ---------- PASSIONS (accueil) ---------- */
  .passions { background: var(--navy); }
  .pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
  .pcard {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
    min-height: 320px; padding: 30px; border-radius: 26px; text-decoration: none; color: var(--cream);
    box-shadow: 0 25px 50px rgba(0,0,0,.35); transition: transform .5s cubic-bezier(.3,1.4,.5,1);
  }
  .pcard:hover { transform: translateY(-10px) rotate(-1deg); }
  .pc-basket { background: linear-gradient(150deg, #ff8a3d, #b8430a); }
  .pc-voyage { background: linear-gradient(150deg, #2ec4b6, #13466b); }
  .pcard .pemo { font-size: 84px; line-height: 1; animation: float 3s ease-in-out infinite; }
  .pc-voyage .pemo { animation-delay: -1.5s; }
  .pcard b { font-family: 'Anton', sans-serif; font-weight: 400; font-size: clamp(44px, 6vw, 70px); text-transform: uppercase; line-height: 1; margin-top: auto; }
  .pcard span { font-size: 17px; font-weight: 600; opacity: .92; }
  .pcard .go {
    align-self: flex-start; margin-top: 10px; background: var(--cream); color: var(--navy);
    padding: 10px 18px; border-radius: 99px; font-weight: 800; opacity: 1; transition: transform .3s;
  }
  .pcard:hover .go { transform: translateX(6px); }
  .pcard::after {
    content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%;
    border: 30px solid rgba(255,255,255,.12);
  }

  /* ---------- SCIENCE : Nour dans la médina ---------- */
  .science { background: linear-gradient(180deg, #13263b 0%, #1d3557 100%); }
  .science .lead { font-size: 20px; max-width: 680px; line-height: 1.6; }
  .sci-game { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 34px; align-items: start; }
  .sci-map {
    border-radius: 22px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,.35), 0 0 0 4px rgba(31,111,178,.5);
    background: #f1dfbd; scroll-margin-top: 80px;
  }
  .sci-map svg { display: block; width: 100%; height: auto; }
  .sci-stop-ring { fill: #fff; stroke: #c4a774; stroke-width: 3; transition: fill .4s, stroke .4s; }
  .sci-stop.done .sci-stop-ring { fill: #2ec4b6; stroke: #1a9e8f; }
  .sci-stop.current .sci-stop-ring { fill: #ffd166; stroke: var(--orange); animation: ring 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes ring { 50% { transform: scale(1.18); } }
  .sci-trail { transition: stroke-dashoffset .1s linear; }
  .sci-treasure { animation: blink 1.6s steps(1) infinite; }
  .sci-nour.walking .sci-nour-body { animation: walk .32s ease-in-out infinite; }
  @keyframes walk { 50% { transform: translateY(-5px); } }
  .sci-side { display: flex; flex-direction: column; gap: 14px; }
  .sci-hud {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 10px 14px;
  }
  .sci-hearts { font-size: 20px; letter-spacing: 2px; }
  .sci-hearts .lost { filter: grayscale(1); opacity: .3; }
  .sci-hearts.hit { animation: shakeX .45s; }
  .sci-score { font-family: 'Anton', sans-serif; font-size: 24px; color: var(--orange); }
  .sci-hud small { font-weight: 700; opacity: .75; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
  .sci-joker {
    border: 2px solid var(--teal); background: transparent; color: var(--teal); font: 700 14px 'Inter', sans-serif;
    padding: 7px 12px; border-radius: 99px; cursor: pointer;
  }
  .sci-joker:disabled { opacity: .35; cursor: default; }
  .sci-panel {
    background: var(--cream); color: var(--navy); border-radius: 22px; padding: 22px; min-height: 360px;
    box-shadow: 0 25px 50px rgba(0,0,0,.3); border-top: 6px solid #1f6fb2;
  }
  .sci-panel.flash { animation: fadeUp .5s ease; }
  .sci-tag { display: inline-block; background: #1f6fb2; color: #fff; padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; }
  .sci-story { margin-top: 12px; line-height: 1.6; font-size: 16px; }
  .sci-timer { height: 8px; background: rgba(13,27,42,.12); border-radius: 8px; overflow: hidden; margin-top: 14px; }
  .sci-timer i { display: block; height: 100%; width: 100%; background: var(--teal); border-radius: 8px; }
  .sci-timer i.hurry { background: #ef476f; }
  .sci-question { font-family: 'Anton', sans-serif; font-size: 22px; line-height: 1.25; margin-top: 12px; letter-spacing: .3px; }
  .sci-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .sci-opt {
    text-align: left; padding: 12px 14px; border-radius: 12px; border: 2px solid rgba(13,27,42,.15);
    background: #fff; color: var(--navy); font: 600 15px 'Inter', sans-serif; cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s, opacity .3s;
  }
  .sci-opt:hover:not(:disabled) { border-color: #1f6fb2; transform: translateY(-2px); }
  .sci-opt.right { background: #c9f2ec; border-color: #1a9e8f; }
  .sci-opt.wrong { background: #ffd3dd; border-color: #ef476f; animation: shakeX .4s; }
  .sci-opt.gone { opacity: .15; }
  .sci-opt:disabled { cursor: default; }
  .sci-fb { margin-top: 12px; line-height: 1.55; font-size: 15px; }
  .sci-fb .ok { color: #13806f; } .sci-fb .ko { color: #c81d4a; }
  .sci-fact { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #fff3d6; }
  .science .sci-next { margin-top: 14px; padding: 12px 22px; font-size: 16px; }
  .sci-end { text-align: center; padding: 10px 0; }
  .sci-end-emo { font-size: 72px; animation: float 3s ease-in-out infinite; }
  .sci-end h4 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 32px; text-transform: uppercase; margin-top: 6px; }
  .sci-end p { margin-top: 8px; line-height: 1.6; }
  .sci-stars { font-size: 34px; margin-top: 10px; letter-spacing: 4px; }
  .sci-final { font-family: 'Anton', sans-serif; font-size: 54px; color: var(--orange); }
  .sci-best { font-weight: 700; }
  .sci-intro {
    position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(13,27,42,.82); border-radius: 22px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    transition: opacity .4s;
  }
  .sci-intro.hide { opacity: 0; pointer-events: none; }
  .sci-intro-card { max-width: 520px; text-align: center; }
  .sci-intro-card .big-emo { font-size: 74px; animation: float 3s ease-in-out infinite; }
  .sci-intro-card h3 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: clamp(30px, 5vw, 48px); text-transform: uppercase; color: var(--orange); line-height: 1.05; margin-top: 6px; }
  .sci-intro-card p { margin-top: 12px; line-height: 1.6; }

  @media (max-width: 820px) {
    .nav { gap: 2px; padding: 5px; top: 10px; }
    .nav a { padding: 8px 11px; font-size: 13px; }
    .nav a.logo { font-size: 15px; }
    .page-first { padding-top: 110px; }
    .pgrid { grid-template-columns: 1fr; }
    .pcard { min-height: 250px; padding: 24px; }
    .sci-game { grid-template-columns: 1fr; }
    .sci-panel { padding: 16px; min-height: 0; }
    .sci-opts { grid-template-columns: 1fr; }
    .sci-question { font-size: 20px; }
    .sci-intro { align-items: flex-start; padding-top: 40px; }
  }
  @media (max-width: 380px) {
    .nav a { padding: 7px 8px; font-size: 12px; }
  }


  /* ---------- SALLE D'ARCADE ---------- */
  .hall { background: radial-gradient(ellipse at 50% 0%, #2a1f5c 0%, var(--navy) 65%); }
  .hall .lead, .gsec .lead { font-size: 20px; max-width: 680px; line-height: 1.6; }
  .ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
  .gcard {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; min-height: 300px;
    padding: 24px; border-radius: 24px; text-decoration: none; color: #fff;
    background: linear-gradient(150deg, var(--g1), var(--g2));
    box-shadow: 0 20px 40px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.15);
    transition: transform .45s cubic-bezier(.3,1.4,.5,1), box-shadow .3s;
  }
  .gcard:hover { transform: translateY(-10px) rotate(-1.2deg); box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 3px rgba(255,255,255,.4); }
  .gcard::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px);
    pointer-events: none;
  }
  .gtag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; background: rgba(0,0,0,.25); padding: 5px 10px; border-radius: 99px; }
  .gemo { font-size: 54px; line-height: 1.1; margin-top: 6px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
  .gcard:hover .gemo { transform: scale(1.15) rotate(-6deg); }
  .gcard b { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 30px; text-transform: uppercase; line-height: 1.05; margin-top: auto; }
  .gdesc { font-size: 15px; line-height: 1.5; opacity: .92; }
  .grec { font-size: 13px; font-weight: 700; background: rgba(255,255,255,.16); padding: 6px 10px; border-radius: 10px; align-self: flex-start; }
  .gplay { align-self: flex-start; background: #fff; color: var(--navy); font-weight: 800; padding: 9px 16px; border-radius: 99px; margin-top: 4px; transition: transform .3s; }
  .gcard:hover .gplay { transform: translateX(6px); }

  .gsec { background: var(--navy); scroll-margin-top: 20px; }
  .gsec-alt { background: linear-gradient(180deg, #13263b, #0f3b4f); }
  .gm-panel {
    max-width: 760px; margin: 30px auto 0; background: var(--cream); color: var(--navy);
    border-radius: 24px; padding: 24px; box-shadow: 0 25px 50px rgba(0,0,0,.35); border-top: 6px solid var(--orange);
  }
  .gm-panel.flash { animation: fadeUp .45s ease; }
  .gm-hud { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }
  .gm-hud b { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 24px; color: var(--orange); }
  .gm-streak { color: #e85d04; font-weight: 800; }
  .gm-timer { height: 8px; background: rgba(13,27,42,.12); border-radius: 8px; overflow: hidden; margin-top: 12px; }
  .gm-timer i { display: block; height: 100%; width: 100%; background: var(--teal); border-radius: 8px; }
  .gm-timer i.hurry { background: #ef476f; }
  .gm-q { font-family: 'Anton', sans-serif; font-size: 26px; line-height: 1.2; margin-top: 16px; }
  .gm-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .gm-opt {
    text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid rgba(13,27,42,.15);
    background: #fff; color: var(--navy); font: 600 16px 'Inter', sans-serif; cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s;
  }
  .gm-opt:hover:not(:disabled) { border-color: var(--orange); transform: translateY(-2px); }
  .gm-opt.right { background: #c9f2ec; border-color: #1a9e8f; }
  .gm-opt.wrong { background: #ffd3dd; border-color: #ef476f; animation: shakeX .4s; }
  .gm-opt:disabled { cursor: default; }
  .gm-fb { margin-top: 12px; line-height: 1.5; min-height: 1.5em; }
  .gm-fb .ok, .vf-info .ok { color: #13806f; } .gm-fb .ko, .vf-info .ko { color: #c81d4a; }
  .gm-panel .gm-next { margin-top: 12px; padding: 12px 22px; font-size: 16px; }
  .gm-end { text-align: center; padding: 10px 0; }
  .gm-end-emo { font-size: 64px; animation: float 3s ease-in-out infinite; }
  .gm-end h4 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 32px; text-transform: uppercase; margin-top: 4px; }
  .gm-end p { margin-top: 8px; line-height: 1.6; }
  .gm-big { font-family: 'Anton', sans-serif; font-size: 60px; color: var(--orange); line-height: 1.1; }
  .gm-best { font-weight: 700; }

  .mem-wrap { max-width: 560px; margin: 30px auto 0; position: relative; }
  .mem-hud { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 10px 16px; color: var(--cream); }
  .mem-restart { border: 2px solid var(--teal); background: transparent; color: var(--teal); font: 700 14px 'Inter', sans-serif; padding: 7px 12px; border-radius: 99px; cursor: pointer; }
  .mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
  .mem-card { aspect-ratio: 1; perspective: 700px; border: 0; padding: 0; background: none; cursor: pointer; }
  .mem-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.3,1.3,.5,1); transform-style: preserve-3d; }
  .mem-card.open .mem-inner, .mem-card.found .mem-inner { transform: rotateY(180deg); }
  .mem-face {
    position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    display: flex; align-items: center; justify-content: center; font-size: clamp(30px, 8vw, 48px);
  }
  .mem-back { background: linear-gradient(150deg, var(--orange), #b8430a); box-shadow: inset 0 0 0 3px rgba(255,255,255,.25), 0 8px 16px rgba(0,0,0,.3); font-size: clamp(20px, 5vw, 28px); }
  .mem-card:hover:not(.open):not(.found) .mem-back { filter: brightness(1.1); }
  .mem-front { background: var(--cream); transform: rotateY(180deg); box-shadow: 0 8px 16px rgba(0,0,0,.3); }
  .mem-card.found .mem-front { background: #c9f2ec; animation: pulse .5s ease; }
  @keyframes pulse { 50% { transform: rotateY(180deg) scale(1.12); } }
  .mem-end {
    position: absolute; inset: 60px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    background: rgba(13,27,42,.88); border-radius: 18px; padding: 16px; font-size: 18px; line-height: 1.7;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeUp .5s ease;
  }
  .mem-end[hidden] { display: none; }

  .vf-stage { position: relative; margin-top: 18px; min-height: 170px; display: flex; align-items: center; justify-content: center; }
  .vf-card {
    width: 100%; min-height: 160px; display: flex; align-items: center; justify-content: center; text-align: center;
    background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 14px 30px rgba(13,27,42,.18);
    font-size: 22px; font-weight: 700; line-height: 1.4;
  }
  .vf-card.in { animation: cardIn .35s cubic-bezier(.3,1.4,.5,1); }
  @keyframes cardIn { from { transform: scale(.85) translateY(20px); opacity: 0; } }
  .vf-card.go-right { transform: translateX(120%) rotate(18deg); opacity: 0; transition: transform .32s ease-in, opacity .32s; }
  .vf-card.go-left { transform: translateX(-120%) rotate(-18deg); opacity: 0; transition: transform .32s ease-in, opacity .32s; }
  .vf-card.bad { background: #ffd3dd; }
  .vf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
  .vf-btn {
    border: 0; border-radius: 18px; padding: 18px; font: 800 20px 'Inter', sans-serif; cursor: pointer; color: #fff;
    transition: transform .15s; touch-action: manipulation;
  }
  .vf-btn:active { transform: scale(.95); }
  .vf-btn.no { background: #ef476f; box-shadow: 0 8px 0 #b0294d; }
  .vf-btn.yes { background: #1a9e8f; box-shadow: 0 8px 0 #0f6f64; }
  .vf-info { text-align: center; font-size: 15px; }

  .pcard.pc-arcade { grid-column: 1 / -1; min-height: 200px; background: linear-gradient(150deg, #7b5cff, #2a1f5c); }

  @media (max-width: 980px) { .ggrid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 820px) {
    .nav a.home-link { display: none; }
    .ggrid { grid-template-columns: 1fr; }
    .gcard { min-height: 0; }
    .gm-panel { padding: 16px; }
    .gm-opts { grid-template-columns: 1fr; }
    .gm-q { font-size: 21px; }
    .mem-grid { gap: 8px; }
    .vf-card { font-size: 18px; min-height: 150px; padding: 18px; }
    .vf-btn { font-size: 18px; padding: 16px; }
  }


  /* ---------- JEUX EN PLEIN ÉCRAN (arcade.js) ---------- */
  body.modal-open { overflow: hidden; }
  .gm-modal {
    position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(5,10,20,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .gm-modal[hidden] { display: none; }
  .gm-box {
    position: relative; width: min(760px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
    background: linear-gradient(180deg, #16304d, #0d1b2a); border: 1px solid rgba(255,255,255,.15); border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0,0,0,.5); overflow: hidden; animation: boxIn .3s cubic-bezier(.3,1.4,.5,1);
  }
  @keyframes boxIn { from { transform: scale(.94) translateY(16px); } }
  .gm-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .gm-head h3 { flex: 1; font-family: 'Anton', sans-serif; font-weight: 400; font-size: 24px; text-transform: uppercase; letter-spacing: .5px; }
  .gm-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; flex: none; }
  .gm-icon-btn:hover { background: rgba(255,255,255,.22); }
  .gm-stage { position: relative; padding: 16px 18px 20px; overflow: auto; flex: 1; min-height: 420px; }
  .gm-over {
    position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(13,27,42,.95);
  }
  .gm-over .gm-end { animation: boxIn .35s cubic-bezier(.3,1.4,.5,1);
  }
  .gm-over .gm-end { max-width: 460px; }
  .gm-over .gm-end p { color: var(--cream); opacity: .92; }
  .gm-end-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
  .gm-end-btns .btn { margin-top: 0; }
  .btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
  .gx-hud { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
  .gx-hud b { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 22px; color: var(--orange); }
  .gx-msg { font-weight: 700; color: var(--sky); }
  .gx-tip { text-align: center; opacity: .7; font-size: 14px; margin-top: 10px; }
  .gx-canvas { display: block; width: 100%; height: auto; margin-top: 12px; border-radius: 16px; touch-action: none; user-select: none; -webkit-user-select: none; }
  .gx-small { border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: var(--cream); font: 700 14px 'Inter', sans-serif; padding: 7px 12px; border-radius: 99px; cursor: pointer; }
  .gx-small:hover { border-color: var(--orange); }
  .gm-stage .gm-timer { background: rgba(255,255,255,.12); }

  /* Simon */
  .simon { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 380px; margin: 18px auto 0; }
  .simon-pad {
    aspect-ratio: 1; border: 0; border-radius: 28px; background: var(--c); opacity: .45; font-size: 52px; cursor: pointer;
    box-shadow: inset 0 -8px 0 rgba(0,0,0,.25); transition: opacity .12s, transform .12s, filter .12s;
  }
  .simon-pad.lit { opacity: 1; transform: scale(1.05); filter: brightness(1.2) drop-shadow(0 0 22px var(--c)); }
  .simon-pad.hint { opacity: 1; outline: 4px dashed #fff; }

  /* Pendu */
  .pe-lives { font-size: 18px; letter-spacing: 1px; }
  .pe-lives .pop { filter: grayscale(1); opacity: .2; }
  .pe-hint { text-align: center; margin-top: 14px; font-weight: 700; color: var(--sky); }
  .pe-word { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; min-height: 52px; }
  .pe-l { width: 34px; height: 46px; border-bottom: 4px solid var(--cream); display: flex; align-items: flex-end; justify-content: center; font-family: 'Anton', sans-serif; font-size: 30px; }
  .pe-l.on { animation: fadeUp .3s ease; }
  .pe-l.miss { color: #ef476f; }
  .pe-gap { width: 18px; display: flex; align-items: flex-end; justify-content: center; font-family: 'Anton', sans-serif; font-size: 30px; }
  .pe-msg { text-align: center; min-height: 1.5em; margin-top: 10px; }
  .kb { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
  .kb-row { display: flex; gap: 5px; justify-content: center; width: 100%; }
  .kb-key {
    flex: 1; max-width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--cream); color: var(--navy);
    font: 800 17px 'Inter', sans-serif; cursor: pointer; box-shadow: 0 4px 0 #c9b79c; transition: transform .1s;
  }
  .kb-key:active { transform: translateY(3px); box-shadow: 0 1px 0 #c9b79c; }
  .kb-key.ok { background: var(--teal); color: #fff; box-shadow: 0 4px 0 #1a9e8f; }
  .kb-key.ko { background: #4a5568; color: #9aa5b5; box-shadow: none; }

  /* Calcul */
  .ca-q { text-align: center; font-family: 'Anton', sans-serif; font-size: clamp(40px, 9vw, 64px); margin-top: 18px; }
  .ca-q.good { animation: pop2 .35s ease; color: var(--teal); }
  @keyframes pop2 { 50% { transform: scale(1.12); } }
  .ca-in { text-align: center; font-family: 'Anton', sans-serif; font-size: 40px; min-height: 56px; margin: 6px auto 0; max-width: 220px; border-bottom: 4px solid var(--orange); }
  .ca-in.bad { animation: shakeX .3s; color: #ef476f; }
  .pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 18px auto 0; }
  .pad-k {
    height: 58px; border: 0; border-radius: 14px; background: var(--cream); color: var(--navy); font: 800 24px 'Inter', sans-serif;
    cursor: pointer; box-shadow: 0 5px 0 #c9b79c; touch-action: manipulation;
  }
  .pad-k:active { transform: translateY(3px); box-shadow: 0 2px 0 #c9b79c; }

  /* Drapeaux */
  .fl-box { display: flex; justify-content: center; margin-top: 16px; }
  .fl-box img { height: 150px; max-width: 100%; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.4); background: #fff; }
  .fl-fb { text-align: center; }
  .gm-stage .gm-opt { background: var(--cream); }

  /* Taquin */
  .tq-board {
    position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 16px auto 0; border-radius: 16px;
    background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); overflow: hidden;
  }
  .tq-board::after {
    content: ''; position: absolute; inset: 0; background: url(/photo.webp) center / cover; opacity: 0; transition: opacity .25s; pointer-events: none;
  }
  .tq-board.peek::after, .tq-board.done::after { opacity: 1; }
  .tq-tile {
    position: absolute; left: 0; top: 0; width: 33.333%; height: 33.333%; border: 0; padding: 0; cursor: pointer;
    background-image: url(/photo.webp); background-size: 300% 300%; border-radius: 6px;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); transition: transform .18s ease;
  }
  .tq-tile span { position: absolute; left: 6px; top: 4px; font: 800 13px 'Inter', sans-serif; color: #fff; text-shadow: 0 1px 3px #000; }
  .tq-tile.nope { animation: shakeX .3s; }

  /* Snake */
  .sn-cv { max-width: 450px; margin-left: auto; margin-right: auto; }
  .dpad { display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(2, 52px); gap: 8px; justify-content: center; margin-top: 12px; }
  .dpad button { border: 0; border-radius: 14px; background: var(--cream); color: var(--navy); font-size: 22px; cursor: pointer; touch-action: manipulation; box-shadow: 0 4px 0 #c9b79c; }
  .dpad [data-d=up] { grid-column: 2; }
  .dpad [data-d=left] { grid-column: 1; grid-row: 2; }
  .dpad [data-d=down] { grid-column: 2; grid-row: 2; }
  .dpad [data-d=right] { grid-column: 3; grid-row: 2; }

  /* Attrape-ballons */
  .wa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 420px; margin: 18px auto 0; }
  .wa-grid.boom { animation: shakeX .35s; }
  .wa-hole {
    position: relative; aspect-ratio: 1; border: 0; border-radius: 50%; cursor: pointer; overflow: hidden; touch-action: manipulation;
    background: radial-gradient(ellipse at 50% 70%, #0a1420 0 45%, #1d3557 46% 60%, #ff6b1a 61% 66%, #13263b 67%);
  }
  .wa-item { position: absolute; left: 0; right: 0; bottom: -70%; font-size: clamp(40px, 10vw, 58px); transition: bottom .15s ease-out; pointer-events: none; }
  .wa-hole.up .wa-item { bottom: 18%; }
  .wa-hole.hit .wa-item { bottom: 18%; transform: scale(1.4); opacity: 0; transition: transform .2s, opacity .2s; }
  .wa-hole.bomb.up { background: radial-gradient(ellipse at 50% 70%, #3a0d17 0 45%, #1d3557 46% 60%, #ef476f 61% 66%, #13263b 67%); }

  /* Anagrammes */
  .an-slots { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 22px; }
  .an-slots.bad { animation: shakeX .35s; }
  .an-slots.good .an-slot { background: var(--teal); color: #fff; border-color: var(--teal); }
  .an-slot {
    width: 40px; height: 50px; border-radius: 10px; border: 2px dashed rgba(255,255,255,.4); background: transparent; color: var(--cream);
    font-family: 'Anton', sans-serif; font-size: 26px; cursor: pointer;
  }
  .an-slot.full { border-style: solid; border-color: var(--orange); background: rgba(255,107,26,.15); }
  .an-slot.lock { border-color: var(--teal); color: var(--teal); }
  .an-tiles { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
  .an-tile {
    width: 46px; height: 54px; border: 0; border-radius: 12px; background: var(--cream); color: var(--navy);
    font-family: 'Anton', sans-serif; font-size: 28px; cursor: pointer; box-shadow: 0 5px 0 #c9b79c; transition: transform .15s, opacity .15s;
  }
  .an-tile:hover:not(:disabled) { transform: translateY(-3px); }
  .an-tile.used { opacity: .15; transform: scale(.85); }
  .an-btns { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
  .an-fb { text-align: center; }

  /* 2048 */
  .tw-board {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(420px, 100%); margin: 16px auto 0; padding: 10px;
    background: #2a3f57; border-radius: 16px; touch-action: none; user-select: none; -webkit-user-select: none;
  }
  .tw-cell { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.08); position: relative; }
  .tw-tile {
    position: absolute; inset: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-family: 'Anton', sans-serif; font-size: clamp(20px, 6vw, 36px); color: var(--navy); background: var(--cream);
  }
  .tw-tile.new { animation: cardIn .2s ease; }
  .tw-tile.merged { animation: pop2 .2s ease; }
  .tw-tile.t4 { background: #ffe1b8; } .tw-tile.t8 { background: #ffb37a; color: #fff; } .tw-tile.t16 { background: #ff8f4d; color: #fff; }
  .tw-tile.t32 { background: #ff6b1a; color: #fff; } .tw-tile.t64 { background: #e8500a; color: #fff; } .tw-tile.t128 { background: #2ec4b6; color: #fff; font-size: clamp(18px, 5vw, 30px); }
  .tw-tile.t256 { background: #1a9e8f; color: #fff; font-size: clamp(18px, 5vw, 30px); } .tw-tile.t512 { background: #4f8ff7; color: #fff; font-size: clamp(18px, 5vw, 30px); }
  .tw-tile.t1024 { background: #7b5cff; color: #fff; font-size: clamp(15px, 4.2vw, 26px); } .tw-tile.t2048, .tw-tile.t4096 { background: #ffd166; color: var(--navy); font-size: clamp(15px, 4.2vw, 26px); box-shadow: 0 0 24px #ffd166; }

  @media (max-width: 600px) {
    .gm-modal { padding: 0; }
    .gm-box { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
    .gm-stage { padding: 12px 12px 18px; }
    .gm-head h3 { font-size: 19px; }
    .kb-key { height: 42px; font-size: 15px; }
    .kb-row { gap: 4px; }
    .pe-l { width: 26px; height: 40px; font-size: 24px; }
    .an-slot { width: 30px; height: 42px; font-size: 21px; }
    .an-tile { width: 38px; height: 48px; font-size: 23px; }
    .fl-box img { height: 120px; }
    .simon { gap: 10px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
  }
