/* Layout: the page dives straight down. Text scrolls over a fixed canvas of sea and sky; each app is a
   full-bleed world fixed under that canvas and seen through a pearl it opens. One deliberate
   visual world, so there is no light/dark switch: every colour is set explicitly. */
:root {
  color-scheme: dark;
  --rock: #030816;
  --sand: #e9f6fa;
  --sand-2: #b7d2dc;
  --ember: #ffb870;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}
html[lang="ar"] {
  --body: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif;
  --display: "Rakkas", "IBM Plex Sans Arabic", serif;
}
html[lang="en"] {
  --body: "Geologica", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --display: "Gloock", "Rakkas", Georgia, serif;
}
html[lang="ar"] [data-l="en"], html[lang="en"] [data-l="ar"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--rock); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--rock);
  color: var(--sand);
  font: 400 clamp(17px, 1.05vw + 13px, 20px)/1.72 var(--body);
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
a, button, .hex { -webkit-tap-highlight-color: transparent; }
button, .tile, .jp-tile { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }
::selection { background: #7fe3ff; color: #03121c; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h2 { text-wrap: balance; }
p { text-wrap: pretty; }

#gl { position: fixed; top: 0; left: 0; width: 100%; height: 100lvh; z-index: 1; pointer-events: none; }
main { position: relative; z-index: 2; }
.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ─── chrome ─────────────────────────────── */
.chrome {
  position: fixed; z-index: 6; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter-r) 12px var(--gutter-l);
  pointer-events: none;
  color: #fff;
  --glass: rgba(6, 14, 30, .46);
  --glass-line: rgba(255, 255, 255, .2);
  transition: color .4s;
}
html[data-tone="dark"] .chrome { color: #23201c; --glass: rgba(255, 255, 255, .62); --glass-line: rgba(35, 32, 28, .18); }
.chrome > * { pointer-events: auto; }
.mark, .pill {
  height: 42px; line-height: 1; border-radius: 999px;
  display: inline-flex; align-items: center;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  transition: transform .25s var(--out), background .35s, border-color .35s;
}
.mark { font: 400 23px/1 "Rakkas", serif; text-decoration: none; padding: 0 15px; }
html[lang="en"] .mark { font: 400 20px/1 "Gloock", serif; }
.ctl { display: flex; align-items: center; gap: 8px; }
.pill { padding: 0 15px; gap: 8px; font-size: 14px; font-weight: 500; }
.pill:active { transform: scale(.95); }
.pill svg .bar { stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; transform-origin: center; transform-box: fill-box; }
.pill[aria-pressed="true"] svg .bar { animation: eq 1.1s ease-in-out infinite alternate; }
.pill[aria-pressed="true"] svg .bar:nth-child(2) { animation-delay: -.3s; }
.pill[aria-pressed="true"] svg .bar:nth-child(3) { animation-delay: -.65s; }
.pill[aria-pressed="true"] svg .bar:nth-child(4) { animation-delay: -.9s; }
@keyframes eq { from { transform: scaleY(.45); } to { transform: scaleY(1.15); } }

/* ─── the core sample: section nav + depth ─── */
.core {
  position: fixed; z-index: 5; top: 50%; inset-inline-end: 0;
  transform: translateY(-50%);
  height: min(62svh, 560px); width: 16px;
  display: flex; flex-direction: column; gap: 2px;
  padding-inline-end: max(10px, env(safe-area-inset-right, 0px));
  box-sizing: content-box;
}
html[dir="rtl"] .core { padding-inline-end: max(10px, env(safe-area-inset-left, 0px)); }
.core a {
  position: relative; display: block; flex: var(--h, 1) 1 0; min-height: 8px; width: 7px;
  margin-inline-start: auto;
  background: var(--c, #6b5136); opacity: .62; border-radius: 2px;
  transition: width .3s var(--out), opacity .3s;
}
.core a:hover, .core a:focus-visible, .core a.on { width: 14px; opacity: 1; }
.core a span {
  position: absolute; top: 50%; inset-inline-end: calc(100% + 12px); transform: translateY(-50%);
  white-space: nowrap; font: 500 13px/1 var(--body); color: #fff;
  background: rgba(4, 10, 24, .88); padding: 7px 11px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.core a:hover span, .core a:focus-visible span { opacity: 1; }
.depth {
  position: absolute; inset-inline-end: calc(100% + 12px); top: 0;
  transform: translateY(calc(var(--y, 0) * 1px - 50%));
  font: 500 12px/1 var(--mono); color: #fff; white-space: nowrap;
  background: rgba(4, 10, 24, .72); padding: 6px 9px; border-radius: 7px; pointer-events: none;
}
@media (max-width: 1240px) { .depth { display: none; } }
@media (hover: none), (max-width: 760px) {
  .core { width: 5px; height: 44svh; pointer-events: none; padding-inline-end: 5px; }
  html[dir="rtl"] .core { padding-inline-end: 5px; }
  .core a { width: 4px; }
  .core a.on { width: 5px; }
  .depth { display: none; }
}

/* The dive computer: how deep you are right now, in real metres and real zones. */
.gauge {
  position: fixed; z-index: 5; bottom: max(12px, env(safe-area-inset-bottom, 0px)); inset-inline-start: var(--gutter-l);
  font: 500 12px/1 var(--mono); color: #cfeaf3; letter-spacing: .02em; white-space: nowrap; pointer-events: none;
  padding: 7px 10px; border-radius: 8px; background: rgba(3, 9, 22, .58); font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .5s;
}
html[lang="ar"] .gauge { font: 500 12.5px/1.1 var(--body); }
html.gl-ready .gauge { opacity: .92; }
html[data-tone="dark"] .gauge { color: #23201c; background: rgba(255, 255, 255, .66); }
html.plain .gauge { display: none; }

/* ─── surface ────────────────────────────── */
/* The sky takes whatever height is spare, so the horizon stays low and the name stands on it,
   with room under it for its reflection. */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  --name: clamp(170px, min(36vw, 30svh), 400px); --palm-x: 72%;
}
@media (max-width: 760px) { .hero { --palm-x: 87%; } }
.sky {
  flex: 1 0 auto; display: flex; justify-content: center; align-items: flex-end;
  padding: calc(env(safe-area-inset-top, 0px) + 60px + var(--name) * .24) var(--gutter-r) calc(var(--name) * .03) var(--gutter-l);
}
.under {
  flex: none; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 var(--gutter-r) 18px var(--gutter-l);
}
.horizon { position: absolute; left: 0; right: 0; height: 0; pointer-events: none; }
#palm {
  position: absolute; left: var(--palm-x); bottom: -4px; transform: translateX(-50%);
  width: clamp(190px, 24svh, 290px); height: auto; overflow: visible;
}
.name {
  font: 400 var(--name)/.98 "Rakkas", serif;
  color: #ffe7c2;
  transition: color .5s;
}
html[lang="en"] .name { font-family: "Gloock", "Rakkas", serif; line-height: .84; }
html:not(.plain) .name { color: transparent; }
html.gl-ready .name { color: rgb(255 214 170 / calc(var(--ghost, 0) * .2)); transition: none; }
.who { font: 500 14px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); margin-top: min(calc(var(--name) * .3), 7svh); }
html[lang="ar"] .who { font: 500 18px/1.2 var(--body); letter-spacing: 0; }
.who-ar { font: 500 15px/1 "IBM Plex Sans Arabic", sans-serif; font-style: normal; letter-spacing: 0; }
.thesis { font: 400 clamp(44px, 5.4vw + 12px, 88px)/1.06 var(--display); color: #f6fcff; text-shadow: 0 2px 22px rgba(1, 8, 20, .75); margin-top: 14px; text-wrap: balance; }
.sub { max-width: 34em; color: var(--sand); margin-top: 12px; text-shadow: 0 1px 12px rgba(1, 8, 20, .9); }
.hero-apps { display: flex; justify-content: center; gap: clamp(10px, 1.4vw, 16px); margin-top: clamp(16px, 2.2svh, 24px); }
.hero-apps a { display: block; border-radius: 23%; transition: transform .35s var(--spring); }
.hero-apps a:focus-visible { transform: translateY(-6px) rotate(-3deg) scale(1.08); }
@media (hover: hover) { .hero-apps a:hover { transform: translateY(-6px) rotate(-3deg) scale(1.08); } }
.hero-apps img { width: clamp(46px, 7.4svh, 64px); height: auto; border-radius: 23%; box-shadow: 0 10px 26px -6px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .1); }
.who, .thesis, .sub, .hero-apps li, .dig { animation: rise 1.1s var(--out) both; animation-delay: calc(1.5s + var(--i, 0) * .12s); }
.who { --i: 0; } .thesis { --i: 1; } .sub { --i: 2; } .dig { --i: 8; }
.hero-apps li:nth-child(n) { animation: rise 1.1s var(--out) calc(1.5s + var(--i, 0) * .12s) both, floaty var(--f, 6s) ease-in-out calc(var(--i, 0) * -1.3s) infinite alternate; }
.hero-apps li:nth-child(2n) { --f: 7.5s; }
.hero-apps li:nth-child(3n) { --f: 8.5s; }
.hero-apps li:nth-child(1) { --i: 3; } .hero-apps li:nth-child(2) { --i: 4; } .hero-apps li:nth-child(3) { --i: 5; } .hero-apps li:nth-child(4) { --i: 6; } .hero-apps li:nth-child(5) { --i: 7; }
/* Zero gravity. Uses the separate translate property so it never fights the scroll-driven transforms. */
@keyframes floaty { from { translate: 0 -5px; } to { translate: 0 6px; } }
@keyframes rise { from { transform: translateY(16px); opacity: .25; } }
.dig {
  margin-top: clamp(12px, 2.2svh, 22px);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ember); font-weight: 500; min-height: 44px;
}
@media (max-height: 700px) { .dig svg { height: 28px; } .thesis { font-size: 38px; } .sub { font-size: 15.5px; } }
.dig svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dig svg { animation: nudge 2.6s var(--out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }

/* ─── water between worlds ───────────────── */
/* At least a screen and a bit, so one pearl has closed before the next one appears. */
.gap {
  min-height: calc(110svh + 60px); display: grid; align-items: center; justify-items: center;
  padding: 12svh var(--gutter-r) 12svh var(--gutter-l);
  text-shadow: 0 1px 18px rgba(2, 6, 18, .85);
}
.gap-long { min-height: 140svh; }
.gap-first { min-height: 150svh; }
.gap-in { width: min(860px, 100%); display: grid; gap: 22px; }
.gap-big { font: 400 clamp(38px, 6.6vw, 92px)/1.08 var(--display); color: #f4fcff; text-wrap: balance; text-shadow: 0 0 46px rgba(120, 220, 255, .32), 0 1px 18px rgba(2, 6, 18, .8); }
.gap-small { color: var(--sand); max-width: 36em; }
.gap-hint { font: 500 13px/1.5 var(--mono); color: #9fe9ff; max-width: 44em; }
html[lang="ar"] .gap-hint { font: 500 15.5px/1.5 var(--body); }
@media (hover: none) { .gap-hint { font-size: 13.5px; } }
.hook { margin-top: clamp(10px, 3svh, 34px); }
.note { max-width: 39em; color: #eef9fd; text-shadow: 0 0 3px rgba(2, 5, 16, .7), 0 1px 14px rgba(2, 5, 16, .95); }
.note-tag {
  display: block; width: fit-content; margin-bottom: 8px;
  font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ember);
}
html[lang="ar"] .note-tag { font: 500 14px/1.2 var(--body); letter-spacing: 0; }

/* ─── worlds: shared ─────────────────────── */
.world { position: relative; }
/* The story: subtitles that hold at the bottom of the screen while the world plays above them,
   each pushed up by the next one. Each app writes them in its own voice. */
.open { padding-top: 55svh; }
.beat { height: 64svh; display: flex; align-items: flex-end; justify-content: center; padding-inline: var(--gutter-l) var(--gutter-r); }
.cap {
  position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 9svh); z-index: 3;
  width: min(640px, 100%); padding: clamp(14px, 2vw, 20px) clamp(16px, 2.6vw, 28px);
  display: grid; gap: 6px; text-align: center; text-wrap: balance; text-shadow: none;
  font-size: clamp(18px, 1.3vw + 13px, 23px); line-height: 1.38; font-weight: 600;
}
html:not(.plain) .cap { opacity: 0; translate: 0 16px; transition: opacity .32s, translate .45s var(--out); }
html:not(.plain) .cap.on { opacity: 1; translate: 0 0; }
.cap-ar { font-weight: 400; }
.cap-en { font-size: .8em; font-weight: 500; opacity: .86; }
.cap-tag { justify-self: center; font: 800 .72em/1 "Barlow Condensed", sans-serif; font-style: italic; letter-spacing: .06em; text-transform: uppercase; background: #f4c542; color: #1b1830; padding: .34em .7em; }
.cap-k { background: #06452c; color: #fff; border-radius: 18px; box-shadow: 0 16px 44px -14px rgba(0, 0, 0, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .16); }
.cap-k .cap-ar { font: 400 clamp(25px, 2.6vw + 12px, 38px)/1.25 "Lalezar", serif; }
.cap-b { background: #16171b; color: #f3f1ec; border-radius: 16px; box-shadow: 0 0 0 1.5px #39ff6a, 0 0 0 3px #ff2e9a, 0 22px 50px -18px #000; font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; }
.cap-l { background: linear-gradient(#fffaf0, #f5ecd8); color: #2a1a02; border-radius: 16px; box-shadow: 0 5px 0 #d9c9a4, 0 16px 34px -10px rgba(0, 0, 0, .55); font-family: "Baloo 2", sans-serif; font-weight: 700; }
.cap-f { background: #fff8e7; color: #1b1830; border: 4px solid #1b1830; box-shadow: 8px 8px 0 #1b1830; rotate: -.7deg; font-weight: 700; }
.cap-j { background: #fbfaf6; color: #23201c; border-radius: 20px; box-shadow: 0 1px 0 rgba(35, 32, 28, .05), 0 22px 60px -22px rgba(35, 32, 28, .35); }
.cap-j .cap-ar { font: 700 clamp(23px, 2vw + 12px, 33px)/1.32 "Cairo", sans-serif; }
html[lang="ar"] .cap-b, html[lang="ar"] .cap-l, html[lang="ar"] .cap-f { font-family: "Cairo", sans-serif; font-stretch: normal; }
.gloss { font-weight: 600; font-size: clamp(19px, 1.6vw + 12px, 27px); line-height: 1.25; margin-top: -8px; }
.tail { height: 34svh; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
.copy { position: relative; z-index: 3; display: grid; gap: 18px; justify-items: start; min-width: 0; }
.layer { display: flex; align-items: center; gap: 12px; font: 500 13.5px/1.3 var(--mono); }
html[lang="ar"] .layer { font: 500 15px/1.3 var(--body); }
.layer img { width: 44px; height: 44px; border-radius: 23%; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); flex: none; }
.lede { max-width: 33em; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.facts li { display: grid; gap: 2px; min-width: 88px; max-width: 180px; font-size: 14.5px; line-height: 1.35; }
.facts b { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.store {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--btn, #fff); color: var(--btn-ink, #111);
  transition: transform .3s var(--spring), box-shadow .3s;
}
@media (hover: hover) { .store:hover { transform: translateY(-3px) rotate(-.5deg); } }
.store:active { transform: scale(.97); }
.play-tag { font-weight: 500; font-size: 15.5px; line-height: 1.45; }

.posters { position: relative; display: flex; justify-content: center; min-width: 0; padding-block: 18px; }
.posters img {
  width: min(47%, 300px); border-radius: clamp(18px, 2.4vw, 30px);
  box-shadow: 0 30px 70px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1);
  will-change: transform;
  animation: floaty 7s ease-in-out infinite alternate;
}
.posters img:nth-child(2) { animation-duration: 9s; animation-delay: -3s; }
.posters img:nth-child(3) { animation-duration: 8s; animation-delay: -5s; }
.posters img:nth-child(1) { --r: -5deg; z-index: 2; }
.posters img:nth-child(2) { --r: 5deg; margin-inline-start: -7%; margin-top: 8%; }
.posters-row { margin-top: clamp(64px, 10vw, 130px); gap: clamp(8px, 2vw, 26px); }
.posters-row img { width: min(32%, 310px); margin: 0 !important; }
.posters-row img:nth-child(1) { --r: -3deg; }
.posters-row img:nth-child(2) { --r: 1deg; z-index: 2; margin-top: 3% !important; }
.posters-row img:nth-child(3) { --r: 4deg; }
.posters-seed { margin-top: clamp(48px, 7vw, 90px); }
.posters-seed img { width: min(30%, 250px); }

/* ─── stages ─────────────────────────────── */
.stage { position: fixed; top: 0; left: 0; width: 100%; height: 100lvh; z-index: 0; overflow: hidden; visibility: hidden; contain: strict; }
.stage.on { visibility: visible; }
.stage > * { position: absolute; }

/* Kooratna */
.st-k { background: radial-gradient(90% 80% at 50% 42%, #18a968 0%, #0f8a54 48%, #0a6a40 100%); }
.st-rays {
  inset: -60%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .055) 0 7deg, transparent 7deg 16deg);
  animation: spin 90s linear infinite;
}
.st-dots {
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .17) 1.6px, transparent 2px) 0 0/15px 15px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, transparent 38%, #000 100%);
  mask-image: radial-gradient(75% 70% at 50% 45%, transparent 38%, #000 100%);
}
.spark {
  width: clamp(16px, 2vw, 30px); aspect-ratio: 1; background: #fff; opacity: .9;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  animation: twinkle 2.6s ease-in-out var(--d, 0s) infinite;
  scale: var(--s, 1);
}
@keyframes twinkle { 0%, 100% { transform: scale(.25) rotate(0); opacity: .25; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.st-k.past .spark { visibility: hidden; }
.pitch { inset: 0; width: 100%; height: 100%; opacity: .15; }
.chant {
  left: 0; top: 46%; width: 0; height: 0;
  font: 400 clamp(112px, 25vw, 400px)/1 "Lalezar", serif; color: #fff;
  will-change: transform;
}
.chant span { position: absolute; top: 0; left: 0; white-space: nowrap; transform-origin: 50% 70%; line-height: 1; text-shadow: .035em .05em 0 #0a5a36; }
.w-k { color: #fff; --btn: #fff; --btn-ink: #0a5a36; }
.w-k .k-h { font: 400 clamp(46px, 7vw, 92px)/1.08 "Lalezar", serif; text-shadow: .03em .045em 0 #0a5a36; }
html[dir="ltr"] .k-h { text-align: left; }

/* Bid Wars */
.st-b { background: #0e0f12; }
.st-split {
  inset: 0;
  background:
    radial-gradient(70% 62% at 0% 100%, rgba(57, 255, 106, .36), transparent 70%),
    radial-gradient(70% 62% at 100% 100%, rgba(255, 46, 154, .36), transparent 70%),
    radial-gradient(60% 50% at 0% 0%, rgba(57, 255, 106, .1), transparent 70%),
    radial-gradient(60% 50% at 100% 0%, rgba(255, 46, 154, .1), transparent 70%);
}
.bw-title {
  left: 0; right: 0; top: 60%; height: 1em; margin-top: -.5em; white-space: nowrap;
  font: 900 clamp(46px, 12.6vw, 230px)/1 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: -.012em; text-align: center;
  will-change: transform;
}
.bw-title span { position: absolute; inset: 0; }
.bw-title .g { color: #39ff6a; clip-path: inset(-20% calc(100% - var(--x, 50%)) -20% -20%); }
.bw-title .p { color: #ff2e9a; clip-path: inset(-20% -20% -20% var(--x, 50%)); }
.bw-cards { left: 50%; top: 36%; width: 0; height: 0; will-change: transform; }
.bwc {
  position: absolute; left: 0; top: 0; width: clamp(92px, 15vh, 190px); aspect-ratio: .74; border-radius: clamp(14px, 2vh, 26px);
  display: grid; place-items: center; font: 900 clamp(52px, 9vh, 112px)/1 "Archivo", sans-serif;
  color: #0e0f12;
}
.bwc-g { background: #39ff6a; transform: translate(-82%, -56%) rotate(-13deg); }
.bwc-p { background: #ff2e9a; transform: translate(-16%, -44%) rotate(11deg); }
.bw-purses {
  left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 72px); display: flex; justify-content: space-between; padding-inline: 6vw;
  font: 900 clamp(38px, 6.4vw, 92px)/1 "Archivo", sans-serif; font-stretch: 125%; font-variant-numeric: tabular-nums; will-change: transform;
}
.bw-purses b { transition: scale .3s var(--spring); }
.bw-purses b.hit { scale: 1.22; }
.bw-purses .g { color: #39ff6a; }
.bw-purses .p { color: #ff2e9a; }
.w-b { color: #f3f1ec; --btn: #39ff6a; --btn-ink: #06240f; }
.w-b .b-h { font: 900 clamp(38px, 5.4vw, 70px)/1.02 "Archivo", sans-serif; font-stretch: 125%; }
html[lang="ar"] .w-b .b-h { font: 400 clamp(44px, 6.4vw, 84px)/1.12 "Lalezar", serif; font-stretch: normal; }

.bw {
  display: grid; gap: 14px; padding: clamp(16px, 2.2vw, 26px); border-radius: 26px;
  background: #16171b; border: 1px solid rgba(243, 241, 236, .12);
  box-shadow: 0 30px 80px -20px #000;
  min-width: 0;
}
.bw .play-tag { color: #a9a9b1; font-size: 14.5px; }
.bw-scores { display: flex; justify-content: space-between; align-items: center; gap: 10px; direction: ltr; }
.bw-p { display: grid; gap: 0; }
.bw-rival { text-align: end; }
.bw-name { font-size: 13px; color: #a9a9b1; }
.bw-p b { font: 900 clamp(32px, 3.6vw, 44px)/1 "Archivo", sans-serif; font-stretch: 125%; font-variant-numeric: tabular-nums; }
.bw-you b { color: #39ff6a; }
.bw-rival b { color: #ff2e9a; }
.bw-count { font: 500 13px/1 var(--mono); color: #8c8d95; }
.bw-item {
  position: relative; border-radius: 22px; padding: clamp(18px, 2.6vw, 28px) 18px; min-height: 148px; overflow: hidden;
  background: #ff7a2f; color: #1a0e05; direction: ltr; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  transition: transform .45s var(--spring);
}
.bw-cat { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; }
.bw-item strong { font: 900 clamp(26px, 3.5vw, 40px)/1 "Archivo", sans-serif; font-stretch: 125%; text-transform: uppercase; overflow-wrap: anywhere; }
.bw-item.is-new { animation: bwIn .55s var(--spring); }
@keyframes bwIn { from { transform: translateY(16px) rotate(-3deg) scale(.94); } }
.bw-item .sold {
  position: absolute; inset-inline-end: 12px; top: 12px; padding: 5px 11px 6px; border: 3px solid currentColor; border-radius: 10px;
  font: 900 21px/1 "Archivo", sans-serif; transform: rotate(-9deg); animation: stamp .36s var(--spring);
}
@keyframes stamp { from { transform: rotate(-22deg) scale(2.3); opacity: 0; } }
.bw-bid { display: flex; justify-content: space-between; align-items: baseline; color: #c9c8c3; font-size: 15px; }
.bw-bid b { font: 900 clamp(38px, 4.6vw, 58px)/1 "Archivo", sans-serif; font-stretch: 125%; color: #f3f1ec; font-variant-numeric: tabular-nums; }
.bw-acts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.bw-btn {
  min-height: 54px; border-radius: 18px; border: 0; font-weight: 800; font-size: 16px;
  transition: transform .18s var(--out), opacity .2s;
}
.bw-btn:active:not(:disabled) { transform: scale(.96); }
.bw-btn:disabled { opacity: .35; cursor: default; }
.bw-raise { background: #39ff6a; color: #06240f; }
.bw-pass { background: #1e1f24; color: #f3f1ec; border: 1px solid rgba(243, 241, 236, .2); }
.bw-log { min-height: 3.1em; color: #c9c8c3; font-size: 15.5px; line-height: 1.5; }

/* Lumiku */
.st-l { background: #0e1a3a; }
.st-harl {
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='170'%3E%3Cpath d='M60 0 120 85 60 170 0 85Z' fill='%23162655'/%3E%3Cpath d='M60 0 120 85 60 170 0 85Z' fill='none' stroke='%23d9a441' stroke-opacity='.16' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 120px 170px;
}
.st-vig { inset: 0; background: radial-gradient(65% 60% at 50% 46%, rgba(245, 184, 61, .22), transparent 70%), radial-gradient(100% 90% at 50% 50%, transparent 40%, rgba(5, 9, 25, .78) 100%); }
.rack-title { left: 50%; top: 46%; transform: translate(-50%, -50%); display: flex; gap: clamp(3px, .6vw, 10px); padding: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) clamp(26px, 3vw, 44px); perspective: 900px; direction: ltr; will-change: transform; }
.rack-title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(26px, 3.2vw, 48px); border-radius: 10px 10px 16px 16px;
  background: linear-gradient(#a9713b, #7a4a22 60%, #5d3517); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 220, 170, .45);
}
.rt {
  width: clamp(44px, 12.4vw, 152px); aspect-ratio: .76; border-radius: clamp(8px, 1.2vw, 16px);
  background: linear-gradient(#fffaf0, #f5ecd8); box-shadow: 0 5px 0 #d9c9a4, 0 9px 16px rgba(0, 0, 0, .4);
  display: grid; place-items: center; font: 800 clamp(34px, 9.4vw, 112px)/1 "Baloo 2", sans-serif;
  transform-origin: 50% 100%;
}
.w-l { color: #fbf5e6; --btn: #f5b83d; --btn-ink: #2a1a02; }
.w-l .l-h { font: 800 clamp(38px, 5.2vw, 66px)/1.08 "Baloo 2", sans-serif; }
html[lang="ar"] .w-l .l-h { font: 900 clamp(36px, 5vw, 62px)/1.2 "Cairo", sans-serif; }
.lk { display: grid; gap: 12px; min-width: 0; }
.felt {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 7/4.05; touch-action: pan-y;
  background: radial-gradient(90% 90% at 50% 40%, #179160 0%, #0d6a45 60%, #0a5438 100%);
  border: clamp(8px, 1.2vw, 13px) solid #7a4a22;
  box-shadow: inset 0 0 0 2px rgba(255, 220, 170, .32), inset 0 12px 30px rgba(0, 0, 0, .35), 0 30px 70px -18px #000;
}
.felt canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.tile {
  position: absolute; top: 0; left: 0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 16%;
  background: linear-gradient(#fffaf0, #f4ead4); box-shadow: 0 3px 0 #d3c198, 0 6px 12px rgba(0, 0, 0, .35);
  font: 800 clamp(20px, 3.4vw, 34px)/1 "Baloo 2", sans-serif;
  transition: transform .42s var(--spring), box-shadow .2s;
  will-change: transform;
}
.tile.drag { cursor: grabbing; transition: box-shadow .2s; z-index: 4; box-shadow: 0 3px 0 #d3c198, 0 22px 26px rgba(0, 0, 0, .45); }
.tile.in-set { box-shadow: 0 3px 0 #d3c198, 0 0 0 3px #ffd34d, 0 0 20px 3px rgba(255, 211, 77, .7); }
.tile[data-c="r"] { color: #d9342b; }
.tile[data-c="b"] { color: #1e6fd9; }
.tile[data-c="g"] { color: #128a4a; }
.tile[data-c="k"] { color: #23201c; }
.tile svg { width: 66%; height: auto; }
.tile.hint { animation: tileHint 2.2s ease-in-out infinite; }
.tile.hint:nth-of-type(n+2) { animation-delay: -.5s; }
@keyframes tileHint { 0%, 62%, 100% { translate: 0 0; } 78% { translate: 0 -7px; } }
.slot-hint { position: absolute; top: 0; left: 0; border: 2px dashed rgba(255, 255, 255, .32); border-radius: 16%; animation: slotHint 2.2s ease-in-out infinite; }
@keyframes slotHint { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.lk-log { min-height: 1.6em; font-size: 15.5px; line-height: 1.45; color: #ffe29a; }

/* Footies */
.st-f { background: #e5383b; }
.st-burst {
  left: 50%; top: 50%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(from 0deg, #e5383b 0 7.5deg, #cf2a2e 7.5deg 15deg);
  animation: spin 70s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.st-tone {
  inset: 0;
  background: radial-gradient(circle, rgba(27, 24, 48, .3) 1.8px, transparent 2.2px) 0 0/13px 13px;
  -webkit-mask-image: radial-gradient(70% 64% at 50% 46%, transparent 45%, #000 100%);
  mask-image: radial-gradient(70% 64% at 50% 46%, transparent 45%, #000 100%);
}
.f-title { left: 0; right: 0; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 0; will-change: transform; }
.f-word {
  font: italic 900 clamp(92px, 21vw, 340px)/.92 "Barlow Condensed", sans-serif; color: #fff; letter-spacing: -.012em;
  -webkit-text-stroke: clamp(3px, .5vw, 7px) #1b1830; paint-order: stroke fill;
  text-shadow: .035em .045em 0 #1b1830;
}
.f-word i { color: #f4c542; font-style: inherit; }
.f-ribbon {
  margin-top: -.25em; padding: .3em 1em .34em; background: #f4c542; color: #1b1830; transform: rotate(-2.2deg);
  font: italic 900 clamp(18px, 3vw, 46px)/1 "Barlow Condensed", sans-serif; letter-spacing: .03em;
  border: clamp(2px, .3vw, 4px) solid #1b1830; box-shadow: .18em .18em 0 #1b1830;
}
.f-pow {
  padding: .5em .8em; background: #fff8e7; color: #1b1830; border: clamp(2px, .3vw, 4px) solid #1b1830;
  border-radius: 999px 999px 999px 8px; font: italic 900 clamp(18px, 2.6vw, 38px)/1 "Barlow Condensed", sans-serif;
  box-shadow: .12em .14em 0 #1b1830; will-change: transform;
}
.f-pow1 { left: 7%; top: 18%; rotate: -8deg; }
.f-pow2 { right: 7%; bottom: 17%; rotate: 6deg; border-radius: 999px 999px 8px 999px; background: #f4c542; }
@media (max-width: 760px) { .f-pow2 { bottom: auto; top: 30%; right: 5%; } }
.w-f { color: #1b1830; --btn: #1b1830; --btn-ink: #fff8e7; }
.w-f .copy {
  padding: clamp(18px, 2.6vw, 30px); background: #fff8e7;
  border: 4px solid #1b1830; box-shadow: 10px 10px 0 #1b1830; rotate: -.8deg;
}
html[dir="rtl"] .w-f .copy { box-shadow: -10px 10px 0 #1b1830; rotate: .8deg; }
.w-f .f-h { font: italic 900 clamp(40px, 5.2vw, 68px)/.98 "Barlow Condensed", sans-serif; }
html[lang="ar"] .w-f .f-h { font: 900 clamp(34px, 4.6vw, 56px)/1.15 "Cairo", sans-serif; }
.hx { display: grid; gap: 10px; min-width: 0; color: #fff; }
.hx .play-tag { background: #1b1830; color: #fff8e7; padding: 8px 14px; width: fit-content; rotate: -.6deg; font-size: 14.5px; }
.hx-board { position: relative; width: 100%; }
.hx-board svg { width: 100%; height: auto; display: block; overflow: visible; }
.hex { cursor: pointer; outline: none; }
.hex polygon { fill: #fff8e7; stroke: #1b1830; stroke-width: 2.6; transition: fill .18s; }
.hex text { font: 800 15px "Barlow Condensed", sans-serif; fill: #1b1830; text-anchor: middle; dominant-baseline: central; pointer-events: none; font-style: italic; }
.hex:focus-visible polygon { fill: #ffe9a8; }
@media (hover: hover) { .hex:hover polygon { fill: #ffe9a8; } }
.hex-g { transition: transform .35s var(--spring); transform-box: fill-box; transform-origin: center; }
.hex.pop .hex-g { animation: hexPop .45s var(--spring); }
@keyframes hexPop { 0% { transform: scale(.6); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
.hx-bubble {
  position: absolute; z-index: 3; padding: .42em .8em; background: #fff8e7; color: #1b1830; pointer-events: none;
  border: 3px solid #1b1830; border-radius: 22px 22px 22px 6px; box-shadow: 4px 4px 0 #1b1830;
  font: italic 900 clamp(20px, 2.8vw, 32px)/1 "Barlow Condensed", sans-serif; white-space: nowrap;
  transform: translate(-50%, -115%); animation: bubble 1.7s var(--out) forwards; direction: ltr;
}
@keyframes bubble { 0% { transform: translate(-50%, -80%) scale(.4); opacity: 0; } 14% { transform: translate(-50%, -115%) scale(1.08); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -150%) scale(1); opacity: 0; } }
.hx-bar { display: flex; align-items: baseline; gap: 12px; direction: ltr; justify-content: space-between; font: italic 900 22px/1 "Barlow Condensed", sans-serif; }
#hexScore { font-size: clamp(30px, 3vw, 44px); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Jadhr */
.st-j { background: #f4f2ec; }
.garden { inset: 0; }
.garden span {
  position: absolute; font: 500 34px/1 "Cairo", sans-serif; color: #23201c; opacity: .1;
  animation: drift var(--d, 40s) ease-in-out var(--dl, 0s) infinite alternate; will-change: transform;
}
@keyframes drift { to { transform: translate3d(var(--dx, 12px), var(--dy, -14px), 0); } }
.j-title {
  left: 0; right: 0; top: 44%; transform: translateY(-50%); display: flex; justify-content: center; align-items: baseline; gap: .1em;
  direction: rtl; font: 700 clamp(150px, 34vw, 480px)/1.1 "Cairo", sans-serif; color: #23201c; will-change: transform;
}
.j-title i { width: .13em; height: .13em; background: #7da0bf; border-radius: 12%; }
.j-title { transition: opacity .5s; }
.j-family {
  left: 50%; top: 44%; width: min(88vw, 620px); height: min(62vw, 350px); translate: -50% -50%; opacity: 0; transition: opacity .5s;
  color: #23201c; will-change: transform; font-family: "Cairo", sans-serif;
}
.j-family svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.j-family path { fill: none; stroke: #7da0bf; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.j-family b { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: .1em .55em; background: #f4f2ec; font-size: clamp(40px, 8vw, 76px); font-weight: 700; white-space: nowrap; }
.j-family span { position: absolute; translate: -50% -50%; display: grid; justify-items: center; padding: .1em .4em; background: #f4f2ec; font-size: clamp(24px, 4vw, 38px); font-weight: 700; line-height: 1.2; }
.j-family i { font: 400 14px/1.2 "Geologica", sans-serif; color: #6d675d; }
.w-j { color: #23201c; --btn: #23201c; --btn-ink: #f4f2ec; }
.jadhr { display: grid; gap: clamp(24px, 4vw, 44px); }
.copy-c { justify-items: center; text-align: center; }
.copy-c .lede { max-width: 38em; }
.j-h { font: 900 clamp(38px, 6vw, 80px)/1.12 "Cairo", sans-serif; letter-spacing: -.01em; }
.jp {
  display: grid; justify-items: center; gap: 12px; text-align: center; width: min(760px, 100%); margin-inline: auto;
  padding: clamp(18px, 3vw, 34px); background: #fbfaf6; border-radius: 28px;
  box-shadow: 0 1px 0 rgba(35, 32, 28, .05), 0 22px 60px -22px rgba(35, 32, 28, .3);
}
.jp .play-tag { color: #6d675d; font-size: 15px; }
.jp-word { font: 700 clamp(46px, 7vw, 74px)/1.25 "Cairo", sans-serif; }
.jp-gloss { color: #6d675d; margin-top: -8px; }
.jp-tiles, .jp-slots { display: flex; justify-content: center; gap: clamp(6px, 1.2vw, 12px); flex-wrap: wrap; }
.jp-tile, .jp-slot {
  width: clamp(50px, 8vw, 68px); aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center;
  font: 700 clamp(26px, 4vw, 36px)/1 "Cairo", sans-serif;
}
.jp-tile {
  background: #fff; border: 2px solid #23201c; color: #23201c; padding: 0;
  box-shadow: 0 4px 0 #23201c; transition: transform .18s var(--out), box-shadow .18s, opacity .3s, background .3s;
}
@media (hover: hover) { .jp-tile:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #23201c; } }
.jp-tile:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #23201c; }
.jp-tile.used { opacity: .2; box-shadow: none; transform: translateY(3px); }
.jp-tile.shake { animation: shake .42s; background: #f6dfd8; }
@keyframes shake { 20% { transform: translateX(-7px) rotate(-3deg); } 45% { transform: translateX(6px) rotate(2deg); } 70% { transform: translateX(-4px); } 90% { transform: translateX(2px); } }
.jp-slot { border: 2px dashed #bdb6a8; color: #fff; perspective: 400px; }
.jp-slot.fill { background: #23201c; border: 2px solid #23201c; animation: flip .62s var(--spring); }
@keyframes flip { 0% { transform: rotateX(-110deg) scale(.86); } 100% { transform: rotateX(0); } }
.jp-tree { position: relative; width: 100%; height: 0; overflow: hidden; transition: height .7s var(--out); }
.jp-tree.open { overflow: visible; }
.jp-tree svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jp-tree path { fill: none; stroke: #23201c; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--out) var(--dl, 0s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.leaf {
  position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; line-height: 1.15;
  animation: leaf .6s var(--spring) var(--dl, 0s) both; white-space: nowrap;
}
@keyframes leaf { from { transform: translate(-50%, -30%) scale(.5); opacity: 0; } }
.leaf b { font: 700 clamp(19px, 3vw, 28px)/1.25 "Cairo", sans-serif; }
.leaf small { font: 400 12.5px/1.2 var(--body); color: #6d675d; }
.leaf.app img { width: clamp(34px, 5vw, 46px); height: auto; border-radius: 22%; margin-bottom: 3px; box-shadow: 0 5px 12px rgba(35, 32, 28, .25); }
.jp-msg { min-height: 1.7em; color: #6d675d; font-size: 15.5px; line-height: 1.5; }
.jp-msg q { quotes: none; font: 700 1.1em "Cairo", sans-serif; color: #23201c; }
.jp-next { min-height: 48px; padding: 0 22px; border: 2px solid #23201c; border-radius: 999px; background: #23201c; color: #f4f2ec; font-weight: 700; }
.j-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 36px; width: min(760px, 100%); margin-inline: auto; }

/* ─── site-level type ─────────────────────── */
.kicker { font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
html[lang="ar"] .kicker { font: 500 16px/1.2 var(--body); letter-spacing: 0; }
.site-h { font: 400 clamp(44px, 7.6vw, 108px)/1.04 var(--display); color: #f4fcff; margin-top: 10px; text-shadow: 0 0 46px rgba(120, 220, 255, .3), 0 1px 18px rgba(2, 6, 18, .8); }
.site-p { max-width: 37em; margin-top: 16px; color: var(--sand); }

/* ─── seeds ──────────────────────────────── */
.seeds { padding-block: 8svh 12svh; text-shadow: 0 1px 14px rgba(3, 4, 18, .9); }
.sheet {
  position: relative; margin-top: clamp(32px, 6vw, 70px); padding: clamp(24px, 4vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(22px, 4vw, 54px); align-items: center;
  color: #484848; text-shadow: none; background-color: #f8eddf;
  background-image: repeating-linear-gradient(transparent 0 37px, rgba(107, 78, 61, .13) 37px 38px);
  rotate: -.7deg;
  -webkit-mask: radial-gradient(circle 46px at calc(100% - 26px) 16px, transparent 97%, #000) ,radial-gradient(circle 38px at calc(100% - 82px) -2px, transparent 97%, #000), radial-gradient(circle 32px at 100% 66px, transparent 97%, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 46px at calc(100% - 26px) 16px, transparent 97%, #000), radial-gradient(circle 38px at calc(100% - 82px) -2px, transparent 97%, #000), radial-gradient(circle 32px at 100% 66px, transparent 97%, #000);
  mask-composite: intersect;
}
html[dir="rtl"] .sheet { rotate: .7deg; }
@media (max-width: 760px) { .sheet { grid-template-columns: minmax(0, 1fr); } }
.sheet canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sheet-copy { position: relative; display: grid; gap: 10px; justify-items: start; min-width: 0; }

.sheet-mark { width: clamp(78px, 8vw, 110px); height: auto; }
.sheet h3 { font: 600 clamp(48px, 6vw, 72px)/1 "Caveat", cursive; color: #484848; }
.sheet-status { font: 600 22px/1.2 "Caveat", cursive; color: #b24040; }
html[lang="ar"] .sheet-status { font: 700 18px/1.3 "Aref Ruqaa", serif; }
.scan { position: relative; display: grid; gap: 12px; min-width: 0; padding: 18px; background: #fff9ef; border: 2px solid #484848; border-radius: 6px 22px 8px 18px; rotate: 1.2deg; }
.scan-bars {
  position: relative; height: 84px; overflow: hidden;
  background: repeating-linear-gradient(90deg, #484848 0 3px, transparent 3px 5px, #484848 5px 6px, transparent 6px 11px, #484848 11px 15px, transparent 15px 17px, #484848 17px 18px, transparent 18px 23px);
}
.scan-beam { position: absolute; left: -6%; right: -6%; height: 3px; background: #b24040; box-shadow: 0 0 14px 3px rgba(178, 64, 64, .6); animation: beam 2.6s ease-in-out infinite alternate; }
@keyframes beam { from { top: 6%; } to { top: 92%; } }
.scan-prod { font-weight: 700; }
.scan-needs { display: flex; flex-wrap: wrap; gap: 8px; }
.scan-needs button {
  min-height: 42px; padding: 0 14px; border-radius: 999px; border: 2px solid #484848; background: transparent; color: #484848; font-weight: 500; font-size: 15px;
  transition: background .2s, color .2s;
}
.scan-needs button[aria-pressed="true"] { background: #484848; color: #fff9ef; }
.scan-verdict { min-height: 3em; font-weight: 700; line-height: 1.4; }
.scan-verdict[data-v="contains"] { color: #b24040; }
.scan-verdict[data-v="may"] { color: #8a6416; }
.scan-verdict[data-v="clear"] { color: #4e5230; }

.pulse { position: relative; margin-top: clamp(50px, 9vw, 110px); }
.pulse-line { display: block; width: 100%; height: clamp(90px, 15vw, 190px); overflow: visible; }
.pulse-line { clip-path: inset(-20% calc(var(--o, 0) * 100%) -20% 0); }
html[dir="rtl"] .pulse-line { clip-path: inset(-20% 0 -20% calc(var(--o, 0) * 100%)); }
.pulse-line path { fill: none; stroke: #ff6d86; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
@media (hover: hover) { .pulse-line path { filter: drop-shadow(0 0 7px rgba(255, 109, 134, .7)); } }
.pulse-copy { display: flex; gap: 18px; align-items: flex-start; margin-top: 12px; }
.pulse-copy img { flex: none; width: 64px; height: 64px; border-radius: 23%; }
.pulse h3 { font: 400 clamp(38px, 5vw, 62px)/1.1 var(--display); color: #ffc2cc; }
.pulse p { max-width: 36em; }
.pulse-eg { margin-top: 10px; color: #ffb3c0; font: 500 14.5px/1.5 var(--mono); }
html[lang="ar"] .pulse-eg { font: 500 16px/1.5 var(--body); }

.sprouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); margin-top: clamp(50px, 8vw, 96px); }
@media (max-width: 960px) { .sprouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sprouts { grid-template-columns: minmax(0, 1fr); } }
.sprout { position: relative; display: grid; align-content: start; gap: 8px; padding-top: 14px; border-top: 2px solid rgba(214, 240, 248, .28); }
.sprout img { width: 52px; height: 52px; border-radius: 23%; }
.sprout h3 { font: 400 clamp(26px, 2.6vw, 32px)/1.1 var(--display); color: #f4fcff; }
.sprout p { font-size: .94em; line-height: 1.55; color: var(--sand); }

/* ─── wrecks ─────────────────────────────── */
.fossils { padding-block: 10svh; text-shadow: 0 0 3px rgba(3, 4, 18, .7), 0 1px 14px rgba(3, 4, 18, .95); }
.fossil-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 64px); margin-top: clamp(26px, 4vw, 44px); }
@media (max-width: 720px) { .fossil-list { grid-template-columns: minmax(0, 1fr); } }
.fossil-list li { display: grid; gap: 3px; padding-block: 15px; border-top: 1px solid rgba(214, 240, 248, .2); line-height: 1.5; }
.fossil-list b { font: 400 clamp(25px, 2.5vw, 31px)/1.15 var(--display); color: #bfe9f7; }
.fossil-list li > span { color: var(--sand); font-size: .95em; }

/* ─── crew ───────────────────────────────── */
.crew { padding-block: 12svh; text-shadow: 0 0 3px rgba(3, 4, 18, .7), 0 1px 14px rgba(3, 4, 18, .95); }
.crew-list { margin-top: clamp(26px, 4vw, 44px); }
.crew-list li {
  display: grid; grid-template-columns: minmax(84px, 130px) minmax(84px, 170px) minmax(0, 1fr); gap: 4px 16px; align-items: baseline;
  padding-block: 11px; border-top: 1px solid rgba(214, 240, 248, .2);
}
.crew-list code { font: 500 clamp(17px, 1.6vw, 21px)/1.3 var(--mono); color: #ffd28c; direction: ltr; text-align: start; }
.crew-list li > span { font-weight: 500; }
.crew-list em { font-style: normal; color: var(--sand-2); font-size: .94em; }
@media (max-width: 560px) { .crew-list li { grid-template-columns: 84px minmax(0, 1fr); } .crew-list em { grid-column: 2; } }
.note-inline { margin-top: clamp(30px, 5vw, 56px); }

/* ─── the whale ──────────────────────────── */
/* The text holds still while the whale goes by behind it. */
.cetus { position: relative; min-height: 230svh; }
.cetus-pin {
  position: sticky; top: 9svh; display: grid; gap: 14px; width: min(860px, 100%); margin-inline: auto;
  padding: 3svh var(--gutter-r) 0 var(--gutter-l); text-shadow: 0 1px 18px rgba(1, 3, 12, .9);
}
.star-tag {
  position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s;
  display: grid; gap: 1px; padding: 12px 0 0 12px; width: max-content; text-shadow: 0 0 10px #01030c, 0 0 3px #01030c;
}
.star-tag b { font: 500 16px/1.2 "IBM Plex Sans Arabic", sans-serif; color: #fff; }
.star-tag i { font: 400 11px/1.2 var(--mono); font-style: normal; color: #bfe6f5; }
html.plain .star-tag { display: none; }
html.plain .cetus { min-height: 0; padding-block: 8svh; }
html.plain .cetus-pin { position: static; }

/* ─── out the other side ─────────────────── */
.water { position: relative; }
.water-rock { min-height: 96svh; display: grid; align-items: center; padding-block: 8svh; text-shadow: 0 1px 18px rgba(0, 2, 10, .8); }
.water-rock .wrap { display: grid; gap: 18px; }
.globe-room { position: relative; height: min(118vw, 112svh); max-height: 1300px; }
.pin-tag {
  position: absolute; left: 0; top: 0; width: max-content; padding: 0 0 0 12px; margin-top: -8px;
  font: 500 13px/1.2 var(--body); color: #fff; text-shadow: 0 0 8px #000, 0 0 2px #000;
}
.water-in { position: relative; padding-top: clamp(20px, 5svh, 60px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 56px); color: #eef8ff; text-shadow: 0 1px 12px rgba(0, 3, 14, .8); }
.water-h { font: 400 clamp(52px, 9.4vw, 136px)/1.04 var(--display); color: #fff; }
.plans { margin-top: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; max-width: 880px; }
@media (max-width: 680px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plans li { display: grid; gap: 3px; padding: 14px 0; border-top: 1px solid rgba(233, 255, 251, .3); line-height: 1.35; }
.plans b { font-size: clamp(25px, 2.8vw, 34px); font-weight: 700; }
.plans em { font-style: normal; font-size: .9em; color: #b8ede6; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 24px; border-radius: 16px; font-weight: 700; text-decoration: none; text-shadow: none;
  border: 1.5px solid rgba(233, 255, 251, .55); transition: transform .3s var(--spring), background .25s;
}
.btn-w { background: #e9fffb; color: #06343a; border-color: #e9fffb; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-3px); background: rgba(233, 255, 251, .12); }
  .btn-w:hover { background: #fff; }
  }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.mail-addr { font: 500 clamp(15px, 2vw, 19px)/1.3 var(--mono); user-select: all; overflow-wrap: anywhere; }
.copy-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; background: transparent; border: 1px solid rgba(233, 255, 251, .5); font-size: 14px; }
.links { display: flex; gap: 22px; margin-top: 14px; font-weight: 500; }
.links a { min-height: 40px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.ascend {
  display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(30px, 5vw, 52px); min-height: 54px; padding: 8px 20px 8px 18px;
  background: transparent; border: 0; color: #ffd9a8; font-weight: 700; text-align: start;
}
.ascend path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ascend svg { flex: none; transition: transform .3s var(--spring); }
.ascend:hover svg { transform: translateY(-6px); }
.fine { margin-top: 14px; font-size: 14px; color: #b8ede6; }

/* ─── no WebGL, or the visitor asked for less motion: same page, painted plainly ─── */
html.plain .stage, html.plain #gl { display: none; }
html.plain .open { padding: 8svh var(--gutter-r) 2svh var(--gutter-l); display: grid; gap: 14px; justify-items: center; }
html.plain .beat { display: contents; }
html.plain .cap { position: static; }
html.plain .tail { height: 10svh; }
html.plain .gap { min-height: 0; padding-block: 12svh; }
html.plain body {
  background:
    radial-gradient(1.2px 1.2px at 34px 52px, rgba(255, 255, 255, .85), transparent),
    radial-gradient(1px 1px at 118px 170px, rgba(210, 225, 255, .8), transparent),
    radial-gradient(1.6px 1.6px at 203px 96px, rgba(255, 240, 220, .9), transparent),
    radial-gradient(1px 1px at 262px 228px, rgba(255, 255, 255, .7), transparent),
    linear-gradient(#050a1e, #0d1d3c 7%, #0a4a62 13%, #052a48 30%, #0c1548 52%, #0a0a2e 72%, #02030f);
  background-size: 300px 300px, 300px 300px, 300px 300px, 300px 300px, 100% 100%;
}
html.plain .w-k { background: #0f8a54; }
html.plain .w-b { background: #0e0f12; }
html.plain .w-l { background: #0e1a3a; }
html.plain .w-f { background: #e5383b; }
html.plain .w-j { background: #f4f2ec; }
html.plain .water-in { padding-top: 40px; }
html.plain .globe-room, html.plain .gap-hint { display: none; }
html.plain .horizon { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ─── more games, at the bottom of the dive ─── */
.more-games { margin-bottom: clamp(48px, 8svh, 96px); }
.games-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); margin-top: 16px; max-width: 880px; }
@media (max-width: 680px) { .games-list { grid-template-columns: minmax(0, 1fr); } }
.games-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-block: 12px; border-top: 1px solid rgba(233, 255, 251, .3); line-height: 1.4; }
.games-list img { width: 44px; height: 44px; border-radius: 23%; }
.games-list li > span { display: grid; gap: 2px; min-width: 0; }
.games-list b { font-weight: 700; }
.games-list li > span > span { font-size: .92em; color: #b8ede6; }
.games-list a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; text-underline-offset: 4px; white-space: nowrap; }
