/* ============================================================
   CHOMP — landing page
   Light stage, one continuous goo ribbon, real glass.
   Layering rule that makes the ribbon work:
     section backgrounds .... normal flow      (under the ribbon)
     .ribbon-layer .......... z-index 3
     .wrap (all content) .... z-index 4        (over the ribbon)
   Sections deliberately do NOT set z-index — a stacking context
   there would trap their content beneath the ribbon.
   ============================================================ */

:root{
  --paper:   #e9eef8;
  --paper-2: #dde5f3;
  --white:   #ffffff;
  --navy:    #16224a;
  --navy-2:  #0d1630;
  --navy-3:  #070c1c;
  --ink:     #131e42;
  --ink-dim: #5a678c;

  --goo:      #e8608f;
  --goo-lite: #f7a3c1;
  --goo-deep: #c33a66;

  --wrap: 1180px;
  --gut:  clamp(20px, 5vw, 56px);
  --sec-y: clamp(90px, 12vh, 170px);

  --display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.68,.24,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body{
  position:relative;              /* the ribbon layer measures against this */
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--body); font-size:17px; line-height:1.6;
  overflow-x:hidden; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }

.wrap{
  position:relative; z-index:4;   /* above the ribbon */
  width:min(100% - var(--gut)*2, var(--wrap)); margin-inline:auto;
}

.skip{ position:absolute; left:-9999px; top:0; z-index:100; background:var(--goo); color:#fff; padding:12px 18px; border-radius:0 0 12px 0; font-weight:800; }
.skip:focus{ left:0; }

/* ------------------------------------------------------------
   THE RIBBON
   ------------------------------------------------------------ */
.ribbon-layer{
  position:absolute; top:0; left:0; width:100%; height:100%;
  z-index:3; pointer-events:none; overflow:hidden;
}
#ribbon{ display:block; }
/* The gloss rides inside the body, offset just enough to read as a
   highlight on a tube. Offset it further and it separates into a
   second stripe running alongside. */

/* ------------------------------------------------------------
   Type
   ------------------------------------------------------------ */
h1,h2{ font-family:var(--display); margin:0; letter-spacing:-.035em; line-height:.94; }

.wordmark-txt{
  font-size:clamp(3.4rem,11vw,7rem); font-weight:1000;
  color:var(--ink); letter-spacing:-.05em; margin:.18em 0 0;
}
.hero-sub{ color:var(--ink-dim); font-size:clamp(.95rem,1.5vw,1.06rem); margin:.7rem 0 0; letter-spacing:.01em; }

.stack{ font-size:clamp(2.6rem,6.2vw,4.6rem); font-weight:1000; }
.mid-head{ text-align:center; }
.mid-head h2{ font-size:clamp(2.2rem,5.4vw,4rem); font-weight:1000; }
.mid-head .sub{ color:rgba(255,255,255,.62); margin:.9rem 0 0; font-size:1.02rem; }
.dark-head .sub{ color:var(--ink-dim); }
.play-head .sub{ color:var(--ink-dim); margin:1.2rem 0 0; font-size:1.05rem; line-height:1.5; }
.huge{ font-size:clamp(3rem,9vw,6.4rem); font-weight:1000; letter-spacing:-.05em; }

/* ------------------------------------------------------------
   Glass — light ground
   ------------------------------------------------------------ */
.glass{
  background:linear-gradient(152deg, rgba(255,255,255,.80), rgba(255,255,255,.44));
  -webkit-backdrop-filter:blur(18px) saturate(1.5);
  backdrop-filter:blur(18px) saturate(1.5);
  border:1px solid rgba(255,255,255,.9);
  border-radius:26px;
  box-shadow:
    0 20px 44px rgba(26,37,71,.10),
    0 3px 8px  rgba(26,37,71,.05),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -16px 28px rgba(255,255,255,.40);
}
.dark .glass{
  background:linear-gradient(152deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  border-color:rgba(255,255,255,.22);
  box-shadow:
    0 22px 46px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -16px 28px rgba(255,255,255,.06);
}

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.pillnav{
  position:fixed; top:18px; left:50%; transform:translateX(-50%);
  z-index:50; display:flex; align-items:center; gap:4px;
  padding:7px 8px 7px 12px; border-radius:999px;
  background:linear-gradient(152deg, rgba(255,255,255,.86), rgba(255,255,255,.62));
  -webkit-backdrop-filter:blur(20px) saturate(1.6);
  backdrop-filter:blur(20px) saturate(1.6);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 12px 30px rgba(26,37,71,.14), inset 0 1px 0 rgba(255,255,255,.95);
}
.pillnav a{
  font-family:var(--display); font-weight:900; font-size:.82rem;
  text-decoration:none; color:var(--ink); padding:9px 14px; border-radius:999px;
  transition:background .3s var(--ease), color .3s var(--ease);
}
.pillnav a:hover{ background:rgba(26,37,71,.07); }
.pillnav-cta{ background:#1b2851; color:#fff !important; }
.pillnav-cta:hover{ background:#101a37 !important; }
.pillnav-mark{
  width:26px; height:26px; border-radius:50%; flex:none; margin-right:4px;
  background:radial-gradient(circle at 34% 28%, var(--goo-lite), var(--goo) 52%, var(--goo-deep));
  box-shadow:inset 0 -3px 6px rgba(140,20,60,.4), 0 2px 6px rgba(195,58,102,.4);
}

/* ------------------------------------------------------------
   Sections — no z-index here, see the header note
   ------------------------------------------------------------ */
.sec{ position:relative; padding:var(--sec-y) 0; }
.hero  { background:linear-gradient(180deg,#f2f6fd 0%,#dfe8f8 100%); padding-top:clamp(120px,16vh,190px); }
.play  { background:linear-gradient(180deg,#dfe8f8,#ccd9f0); }
.stats { background:linear-gradient(180deg,#ccd9f0,#b9cbea); }
.worlds{ background:linear-gradient(180deg,var(--navy),var(--navy-2)); color:#fff; border-radius:46px 46px 0 0; margin-top:-46px; }
.skins { background:linear-gradient(180deg,#dbe4f5,#eaf0fb); border-radius:46px 46px 0 0; margin-top:-46px; }
.million{ background:linear-gradient(180deg,var(--navy-2) 0%,var(--navy-3) 62%,var(--navy-2) 100%);
          color:#fff; border-radius:46px 46px 0 0; margin-top:-46px; overflow:hidden; }
.final { background:linear-gradient(180deg,var(--navy-2),#111c3e); color:#fff; text-align:center;
         border-radius:0; }

/* --------------------------- hero --------------------------- */
.hero-in{ text-align:center; }
.hero-goo{ position:relative; z-index:3; width:min(330px,58vw); margin:0 auto; }
.hero-goo .goo-img{ width:100%; filter:drop-shadow(0 26px 40px rgba(195,58,102,.30)); animation:bob 6s var(--ease) infinite; }
@keyframes bob{ 0%,100%{ transform:translateY(0) rotate(-1deg);} 50%{ transform:translateY(-14px) rotate(1deg);} }

.chip{
  position:absolute; display:inline-flex; align-items:center; gap:7px;
  padding:8px 15px; border-radius:999px; background:var(--white);
  font-family:var(--display); font-weight:900; font-size:.84rem; color:var(--ink);
  box-shadow:0 10px 24px rgba(26,37,71,.14), inset 0 1px 0 #fff;
  font-variant-numeric:tabular-nums; white-space:nowrap;
}
.chip i{ width:11px; height:11px; border-radius:50%; background:var(--goo); }
.chip-score{ left:-16%; top:36%; }
.chip-combo{ right:-10%; top:24%; }

/* scattered candy props */
.scatter{ position:absolute; inset:0; pointer-events:none; z-index:2; }
.scatter img{
  position:absolute; left:var(--x); top:var(--y); width:110px;
  transform:translate(-50%,-50%) scale(var(--s)) rotate(var(--r));
  filter:drop-shadow(0 12px 18px rgba(26,37,71,.18));
  animation:drift 9s var(--ease) infinite;
}
.scatter img:nth-child(2n){ animation-delay:-2.4s; }
.scatter img:nth-child(3n){ animation-delay:-4.8s; }
.scatter img:nth-child(5n){ animation-delay:-6.9s; }
@keyframes drift{
  0%,100%{ transform:translate(-50%,-50%) scale(var(--s)) rotate(var(--r)); }
  50%{ transform:translate(-50%,calc(-50% - 16px)) scale(var(--s)) rotate(calc(var(--r) + 6deg)); }
}
.scatter-tight{ z-index:3; }
.scatter-tight img{ width:90px; }
@media (max-width:700px){ .scatter img{ width:74px; } .scatter-tight img{ width:60px; } }

.cta-row{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:2rem; }
.btn{
  font-family:var(--display); font-weight:900; font-size:.95rem;
  padding:15px 34px; border-radius:999px; text-decoration:none; border:0;
  transition:transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.btn-primary{
  color:#fff; background:linear-gradient(180deg,#2c3c6e -10%,#1b2851 45%,#101a37);
  box-shadow:0 12px 26px rgba(16,26,55,.34), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-ghost{ color:var(--ink); background:rgba(26,37,71,.07); }
.btn-soon{ cursor:default; }
a.btn:hover{ transform:translateY(-3px); }

/* ------------------------- gameplay ------------------------- */
.play-in{ display:grid; gap:clamp(34px,5vw,64px); align-items:center; grid-template-columns:1fr; }
@media (min-width:900px){ .play-in{ grid-template-columns:.85fr 1.15fr; } }

.phones{ position:relative; display:flex; justify-content:center; align-items:flex-end; gap:0; }
.phone{ margin:0; }
.phone .device{ width:clamp(150px,20vw,210px); }
.phone-front .device{ width:clamp(168px,23vw,238px); }
.wcard .device{ width:100%; }
.phone-back { transform:translate(28%,-4%) rotate(-7deg) scale(.86); opacity:.9; }
.phone-front{ position:relative; z-index:2; transform:translate(-6%,0) rotate(2deg); }
.ph-tag{
  margin-top:14px; text-align:center; color:var(--ink-dim);
  font-family:var(--display); font-weight:800; font-size:.62rem;
  letter-spacing:.14em; text-transform:uppercase;
}

.feats{ list-style:none; margin:clamp(36px,4vw,56px) 0 0; padding:0; display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); grid-column:1/-1; }
.feats li{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:22px 14px; text-align:center; }
.feats img{ width:44px; }
.feats b{ font-family:var(--display); font-weight:900; font-size:.9rem; }

/* -------------------------- stats --------------------------- */
.stats-in{ display:grid; gap:clamp(14px,2vw,24px); grid-template-columns:repeat(4,1fr); }
@media (max-width:820px){ .stats-in{ grid-template-columns:repeat(2,1fr); } }
.stat{ padding:30px 18px 26px; text-align:center; }
.stat-ico{ width:52px; height:52px; margin:0 auto 14px; object-fit:cover; }
.stat-ico.round{ border-radius:50%; box-shadow:0 6px 14px rgba(26,37,71,.2); }
.stat b{ display:block; font-family:var(--display); font-weight:1000; font-size:clamp(2.4rem,4.6vw,3.4rem); line-height:1; letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.stat span{ display:block; margin-top:.5rem; font-family:var(--display); font-weight:900; font-size:.74rem; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-dim); }

/* -------------------------- worlds -------------------------- */
.wrail{ display:flex; gap:clamp(14px,1.8vw,22px); padding:clamp(40px,5vw,64px) var(--gut) 20px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; position:relative; z-index:4; }
.wrail::-webkit-scrollbar{ display:none; }
.wcard{ flex:0 0 auto; width:clamp(140px,17vw,190px); margin:0; scroll-snap-align:center; }
.wcard:hover .wcard figcaption{ margin-top:13px; text-align:center; font-family:var(--display); font-weight:900; font-size:.72rem; letter-spacing:.13em; text-transform:uppercase; color:rgba(255,255,255,.7); }

/* -------------------------- skins --------------------------- */
.domes{ list-style:none; margin:clamp(44px,5vw,72px) 0 0; padding:0; display:grid; gap:clamp(16px,2.4vw,30px); grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); }
.domes li{ text-align:center; }
.dome{ appearance:none; border:0; background:none; padding:0; cursor:pointer; width:100%; }
/* the bell jar: glass dome over a plinth */
.bell{
  display:block; position:relative; padding:20px 14px 16px;
  border-radius:50% 50% 22px 22px;
  background:linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,255,255,.30) 45%, rgba(255,255,255,.55));
  -webkit-backdrop-filter:blur(12px) saturate(1.4);
  backdrop-filter:blur(12px) saturate(1.4);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 20px 38px rgba(26,37,71,.14), inset 0 2px 0 rgba(255,255,255,.95), inset -10px -14px 26px rgba(255,255,255,.5);
  transition:transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.bell::after{  /* the curved reflection on the glass */
  content:""; position:absolute; left:16%; top:12%; width:26%; height:44%;
  border-radius:50%; background:linear-gradient(150deg,rgba(255,255,255,.85),transparent 70%);
  pointer-events:none;
}
.bell img{ width:78%; margin:0 auto; filter:drop-shadow(0 12px 16px rgba(195,58,102,.28)); }
.dome:hover .bell, .dome:focus-visible .bell{ transform:translateY(-9px); box-shadow:0 30px 50px rgba(26,37,71,.18), inset 0 2px 0 rgba(255,255,255,.95); }
.dome:focus-visible{ outline:none; }
.domes .tag{ display:inline-block; margin-top:13px; padding:5px 14px; border-radius:999px; background:var(--white); font-family:var(--display); font-weight:900; font-size:.7rem; letter-spacing:.08em; color:var(--ink); box-shadow:0 6px 14px rgba(26,37,71,.10); }
.skins-note{ text-align:center; color:var(--ink-dim); margin-top:2.6rem; font-size:.96rem; }

/* --------------------------- final -------------------------- */
.final-in{ }
.splash{ position:relative; margin:clamp(24px,4vw,48px) auto 0; width:min(210px,42vw); }
.splash .goo-img{ animation:none; }
.fine{ color:var(--ink-dim); font-size:.9rem; margin:1.6rem 0 0; }

/* -------------------------- footer -------------------------- */
/* superseded further down — the bar must NOT sit above the ribbon layer */
.foot-in{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; justify-content:center; }
.foot-mark{ width:26px; height:26px; border-radius:50%; background:radial-gradient(circle at 34% 28%, var(--goo-lite), var(--goo) 52%, var(--goo-deep)); }
.foot-nav{ display:flex; gap:20px; }
.foot-nav a{ color:var(--ink-dim); text-decoration:none; font-family:var(--display); font-weight:800; font-size:.82rem; letter-spacing:.1em; text-transform:uppercase; }
.foot-nav a:hover{ color:var(--ink); }
.foot-fine{ color:var(--ink-dim); font-size:.8rem; margin:0; margin-left:auto; }

/* ------------------------------------------------------------
   Reveal — visible by default, JS arms only what starts below
   ------------------------------------------------------------ */
.reveal.armed{ opacity:0; transform:translate3d(0,26px,0); transition:opacity .8s var(--ease-out) var(--d,0s), transform .8s var(--ease-out) var(--d,0s); }
.reveal.armed.in{ opacity:1; transform:none; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width:899px){
  .play-head{ text-align:center; }
  .play-head .sub br{ display:none; }
  .foot-fine{ margin-left:0; width:100%; text-align:center; }
}
@media (max-width:600px){
  body{ font-size:16px; }
  .pillnav a:not(.pillnav-cta){ display:none; }
  .chip-score{ left:-8%; } .chip-combo{ right:-4%; }
  .domes{ grid-template-columns:repeat(2,1fr); }
  .stats-in{ grid-template-columns:repeat(2,1fr); }
}

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

/* ------------------------------------------------------------
   Document pages (privacy, support)
   ------------------------------------------------------------ */
.doc-body{ background:var(--paper); }
.doc-top{ padding:34px var(--gut) 0; position:relative; z-index:4; }
.doc-home{ display:inline-flex; align-items:center; gap:10px; text-decoration:none; font-family:var(--display); font-weight:1000; font-size:1.3rem; letter-spacing:-.03em; color:var(--ink); }
/* the real goo render with an SVG face, same mark as the landing page */
.goo-mark{ position:relative; display:inline-block; flex:none;
  width:26px; height:26px; vertical-align:middle; }
.goo-mark img{ width:100%; height:100%; display:block; }
.goo-mark svg{ position:absolute; inset:0; width:100%; height:100%; }
.goo-mark .sc{ fill:#fff; }
.goo-mark .pu{ fill:#22091a; }
.goo-mark .mo{ fill:none; stroke:#22091a; stroke-width:4.2; stroke-linecap:round; }
.doc{ position:relative; z-index:4; width:min(100% - var(--gut)*2, 720px); margin:clamp(40px,7vh,80px) auto clamp(80px,12vh,140px); }
.doc h1{ font-family:var(--display); font-size:clamp(2.2rem,5vw,3.2rem); font-weight:1000; letter-spacing:-.035em; }
.doc h2{ font-family:var(--display); font-weight:900; font-size:clamp(1.15rem,2vw,1.4rem); margin:2.6rem 0 .6rem; }
.doc p, .doc li{ color:var(--ink-dim); font-size:1.02rem; line-height:1.72; }
.doc p{ margin:.7rem 0; }
.doc ul{ padding-left:1.2rem; } .doc li{ margin:.45rem 0; }
.doc a{ color:var(--goo-deep); text-decoration:none; border-bottom:1px solid rgba(195,58,102,.32); }
.doc strong{ color:var(--ink); }
.doc-date{ font-family:var(--display); font-weight:800; font-size:.76rem; letter-spacing:.14em; text-transform:uppercase; color:var(--goo); margin:.4rem 0 2rem; }
.doc-lede{ font-size:1.14rem !important; color:var(--ink) !important; }
.doc-card{ margin:2rem 0; padding:22px 26px; border-radius:22px; background:rgba(255,255,255,.8); border:1px solid rgba(255,255,255,.9); box-shadow:0 14px 30px rgba(26,37,71,.08); }
/* Platzhalter, die vor dem Livegang ersetzt werden müssen. Sie sind
   absichtlich auffällig: ein Impressum mit "[PLZ und Ort]" im Netz ist
   schlimmer als keins, das darf niemandem durchrutschen. */
.doc-todo{ background:#ffe8a3; color:#6b4a00; padding:1px 7px; border-radius:6px; font-weight:700; font-size:.9em; }
.doc hr{ border:0; height:1px; background:rgba(26,37,71,.14); margin:3.2rem 0 2.4rem; }
.doc-card h2{ margin-top:0; } .doc-card p:last-child{ margin-bottom:0; }

/* ============================================================
   Added: drips, mystery section, parallax, dark CTA + footer
   ============================================================ */

/* --------------------- ribbon drips ----------------------- */
/* Parked on the ribbon's leading edge by app.js, so the goo always
   ends in something falling rather than a cut-off tube. */
/* the droplets are created by app.js; they inherit the goo gradient and
   are faded via inline opacity, so nothing to style here beyond a hint */
#drops ellipse{ will-change:transform, opacity; }


/* ----------------- Drag. Eat. Repeat. --------------------- */
#dragEat .w{
  display:block; opacity:0;
  transform:translate3d(0,44px,0) rotate(-3deg);
  transition:opacity .7s var(--ease-out), transform .9s cubic-bezier(.2,1.5,.35,1);
}
#dragEat .w.on{ opacity:1; transform:none; }

/* ---------------------- the million ----------------------- */
.million-in{ text-align:center; max-width:720px; }
.million .eyebrow{
  font-family:var(--display); font-weight:900; font-size:.72rem;
  letter-spacing:.34em; text-transform:uppercase;
  color:rgba(255,255,255,.42); margin:0 0 3.2rem;
}
.million-num{
  display:flex; justify-content:center; align-items:baseline; gap:.02em;
  font-family:var(--display); font-weight:1000;
  font-size:clamp(2.6rem,10vw,6.4rem); letter-spacing:-.04em; line-height:1;
  color:transparent;
  background:linear-gradient(180deg,#ffffff 0%,#b8c8ee 55%,#5f74ad 100%);
  -webkit-background-clip:text; background-clip:text;
  filter:drop-shadow(0 0 34px rgba(160,190,255,.28));
}
.million-num i{
  /* own colour: the parent uses background-clip:text with a transparent
     fill, which the separators inherit and vanish into */
  font-style:normal; -webkit-text-fill-color:#7d8ec2; color:#7d8ec2; opacity:.75;
  margin:0 .04em;
}
.million-num span{ display:inline-block; font-variant-numeric:tabular-nums; }
.million-q{
  font-family:var(--display); font-weight:900;
  font-size:clamp(1.2rem,2.6vw,1.7rem); color:#fff; margin:1.9rem 0 0;
}
.million-body{ color:rgba(255,255,255,.6); margin:1.1rem auto 0; max-width:48ch; font-size:1.02rem; }
.million-body b{ color:#fff; font-variant-numeric:tabular-nums; }
.redact{ display:flex; flex-direction:column; align-items:center; gap:9px; margin:2.6rem 0 0; }
.redact .bar{
  height:13px; width:var(--w); max-width:360px; border-radius:7px;
  background:linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  position:relative; overflow:hidden;
}
.redact .bar::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.30),transparent);
  transform:translateX(-100%); animation:sweep 4.6s var(--ease) infinite;
}
.redact .bar:nth-child(2)::after{ animation-delay:.7s; }
.redact .bar:nth-child(3)::after{ animation-delay:1.4s; }
@keyframes sweep{ 0%{transform:translateX(-100%)} 55%,100%{transform:translateX(100%)} }
.million-foot{ color:rgba(255,255,255,.4); font-size:.92rem; margin:2.2rem 0 0; }

/* ------------------- dark CTA + footer -------------------- */
.final .huge{ color:#fff; }
.final .fine{ color:rgba(255,255,255,.5); }
.final .btn-ghost{ color:#fff; background:rgba(255,255,255,.12); }

/* The bar is the last thing on the page and sits UNDER the goo:
   no z-index here, so the ribbon layer (z-index 3) passes over it. */
.foot{ background:var(--navy-3); padding:30px 0 34px; border-top:1px solid rgba(255,255,255,.07); }
.foot-in{
  position:relative; z-index:4;
  width:min(100% - var(--gut)*2, var(--wrap)); margin-inline:auto;
  display:flex; align-items:center; gap:20px; flex-wrap:wrap; justify-content:center;
}
.foot-nav a{ color:rgba(255,255,255,.5); }
.foot-nav a:hover{ color:#fff; }
.foot-fine{ color:rgba(255,255,255,.3); }

/* ------------------------ parallax ------------------------ */
/* One transform per element, written from a single throttled scroll
   handler. No layout reads in the loop. */
[data-par]{ will-change:transform; }

/* ============================================================
   DEVICE — the phone mockup, used for the gameplay video and for
   every world card. Deliberately cheap: four gradients, one
   box-shadow, two pseudo elements. No filter, no backdrop-filter,
   nothing that needs re-rasterising — eight of these sit in the
   world rail at once.
   ============================================================ */
.device{
  /* the world cards use a <span> for this, which would stay inline and
     collapse to a couple of pixels without an explicit display */
  display:block;
  position:relative;
  aspect-ratio:9 / 19.5;
  border-radius:16.5% / 7.6%;
  padding:.9%;
  /* titanium rail: bright on the sides, dark top and bottom */
  background:
    linear-gradient(90deg,#2a2b33 0%,#8f93a3 3%,#e6e8f0 6%,#6e7280 12%,
                    #33353f 50%,#6e7280 88%,#e6e8f0 94%,#8f93a3 97%,#2a2b33 100%);
  box-shadow:
    0 26px 50px -12px rgba(19,30,66,.42),
    0 6px 14px rgba(19,30,66,.16);
}
.device::before{           /* the black bezel under the glass */
  content:""; position:absolute; inset:.9%;
  border-radius:15.6% / 7.1%;
  background:#07070b;
}
.device-screen{
  position:absolute; inset:2.1%;
  border-radius:14.4% / 6.4%;
  overflow:hidden;
  background:#0b0f1e;
  z-index:1;
}
.device-screen > img,
.device-screen > video{
  width:100%; height:100%; object-fit:cover; display:block;
}
/* The capture still carries the iOS status bar — clock, battery and the
   red recording dot. The mockup draws its own Dynamic Island, so that
   row is redundant: overscan the clip and pull it up until the status
   bar is outside the screen. */
.device-screen > video{
  position:absolute; left:0; top:-7.5%;
  height:109%;
}
.device-island{             /* Dynamic Island */
  position:absolute; z-index:3; top:2.6%; left:50%; transform:translateX(-50%);
  width:30%; height:3.4%; min-height:14px; border-radius:99px; background:#000;
}
.device-gloss{              /* one diagonal sheen across the glass */
  position:absolute; z-index:2; inset:2.1%; border-radius:14.4% / 6.4%;
  pointer-events:none;
  background:linear-gradient(114deg,
    rgba(255,255,255,.20) 0%, rgba(255,255,255,.06) 17%,
    transparent 34%, transparent 74%, rgba(255,255,255,.09) 100%);
}
/* side buttons — only on the large device, they read as noise at card size */
.device--lg .device-btn{
  position:absolute; width:1.9%; border-radius:2px; z-index:0;
  background:linear-gradient(180deg,#9498a8,#4b4e5c);
}
.device--lg .b-mute{ left:-1.5%; top:15.5%; height:4.2%; }
.device--lg .b-up{   left:-1.7%; top:23%;   height:8.6%; }
.device--lg .b-dn{   left:-1.7%; top:33.5%; height:8.6%; }
.device--lg .b-pwr{  right:-1.7%; top:26%;  height:11.5%;
  background:linear-gradient(180deg,#4b4e5c,#9498a8); }

/* the black ease in / ease out over the video, driven from app.js */
.device-fade{
  position:absolute; z-index:2; inset:0; background:#000;
  opacity:0; pointer-events:none;
}

/* The ribbon is five filled bands sharing one centre line: edge, body,
   underside shade, upper light, specular streak. Nothing is stroked and
   nothing is textured — a tiled image reads as spots along the tube. */
#ribbonEdge{ opacity:.9; }

/* ------------------------------------------------------------
   Edge rails — dark navy goo down both sides of the page.
   Fixed, static, no animation: two composited layers and nothing
   that needs redrawing while scrolling.
   ------------------------------------------------------------ */
.rails{ position:fixed; inset:0; z-index:2; pointer-events:none; }
.rail{
  /* Wide enough that the bulges and drips on the inner edge are actually
     inside the strip. At ~90px only the solid outer core showed. */
  position:absolute; top:0; bottom:0; width:clamp(74px, 11vw, 190px);
  background-repeat:no-repeat;
  /* auto 100% keeps the aspect ratio. Stretching to 100% 100% squeezes a
     340x1586 render into a ~90px column and it reads as vertical streaks. */
  background-size:auto 100%;
  opacity:.9;
}
.rail-l{ left:0;  background-image:url("rail/left.webp");  background-position:left center; }
.rail-r{ right:0; background-image:url("rail/right.webp"); background-position:right center; }
@media (max-width:700px){
  .rail{ width:52px; opacity:.6; }
}

/* ------------------------- the living face ------------------------- */
.face{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:2; }
.face .sclera{ fill:#fff; }
.face .pupil{ fill:#22091a; }
