body[data-experiment] {
  --field: #a1f3e9;
  --space: #071317;
  --world-base: #071317;
  --ink: #f7fbff;
  --muted: #c1d3dc;
  --line: #5c7a88;
  --panel: #0b1720;
  --bg: #071317;
  --header: #071317c9;
  --accent: var(--field);
  --on: #081318;
  min-height: 100svh;
  padding-bottom: 9rem;
  isolation: isolate;
  overflow-x: clip;
}
body[data-experiment="runaway"] {--field:#ffd092;--space:#26100e;--world-base:#160d0c;--header:#190d0be0}
body[data-experiment="darkroom"] {--field:#ffde99;--space:#20192b;--world-base:#0e0b17;--header:#110e1ac8}
body[data-experiment="blast"] {--field:#ffaca5;--space:#2a0e17;--world-base:#150b16;--header:#170d18cb}
body[data-experiment="river"] {--field:#91eaff;--space:#052a3e;--world-base:#061923;--header:#051822c8}
html[data-palette="alternate"] body[data-experiment] {--bg:#0c1121;--header:#11192ddd;--accent:#e9d7ff;--on:#16101f;--ink:#f7fbff;--muted:#cbd6eb;--line:#647391}
#world-field {position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 56% 37%,var(--space),var(--world-base) 76%);}
#world-canvas {width:100%;height:100%;display:block;}
body[data-experiment="darkroom"] #world-field {background:linear-gradient(90deg,#08080cb5,#07091244),url("assets/experiment-room.webp") center/cover;}
body[data-experiment="river"] #world-field {background:linear-gradient(130deg,#041019bb,#04182188),url("assets/experiment-river.webp") center/cover;}
body[data-experiment] .top {border-color:#fff2}
.world-main {width:min(86rem,100% - 2*var(--gutter,1.5rem));padding-block:clamp(2.75rem,8vh,6rem) 1.5rem;}
.world-hero {position:relative;display:grid;align-content:center;min-height:clamp(14rem,39svh,33rem);padding-block:1rem 2rem;}
.world-index,.world-coordinate,.world-objects a>span:first-child {color:var(--field);font:700 .73rem/1.4 var(--mono);letter-spacing:.14em;}
.world-index {display:flex;align-items:center;gap:.7rem;margin:0 0 1rem;}
.world-index b {border:1px solid #fff5;border-radius:100px;padding:.35rem .55rem;}
.world-coordinate {position:absolute;inset-inline-end:0;inset-block-end:1rem;opacity:.73}
.world-hero h1 {width:fit-content;max-width:100%;margin:0;font-size:clamp(3rem,10.4vw,10.5rem);line-height:.92;letter-spacing:-.07em;text-wrap:balance;text-shadow:0 8px 44px #0009;}
html:not([lang=en]) .world-hero h1 {letter-spacing:normal;font-size:clamp(2.3rem,8vw,7rem);line-height:1.12}
.world-desc {font-size:clamp(1rem,2vw,1.45rem);color:var(--muted);max-width:51ch;margin:1rem 0 1.6rem;}
.world-objects {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;position:relative;}
.world-objects a {display:grid;align-content:space-between;gap:.75rem;min-height:9.25rem;padding:1.15rem 1rem;background:linear-gradient(145deg,#182731df,#08121bf2);color:#f7fbff;border:1px solid #a5cae77d;border-radius:.65rem;text-decoration:none;}
.world-objects a:hover {border-color:var(--field);box-shadow:0 0 35px color-mix(in srgb,var(--field) 24%,transparent)}
.world-objects strong {font-size:clamp(1.16rem,2.6vw,1.85rem);line-height:1.12;}
.world-objects a>span:last-child {color:var(--field);font-size:.85rem;text-decoration:underline;text-underline-offset:.2em;}
.experiment-nav {display:flex;gap:.5rem;flex-wrap:wrap;padding-block:1.1rem;margin-block-start:1rem;border-block-start:1px solid #fff4;}
.experiment-nav a {display:inline-flex;align-items:center;min-height:38px;padding:.25rem .7rem;border:1px solid #fff5;border-radius:99px;color:var(--ink);background:#080f19c9;}
.experiment-nav a[aria-current],.experiment-nav a:hover {border-color:var(--field);color:var(--field);}
.world-hud {position:fixed;z-index:80;inset-inline:0;inset-block-end:0;padding:.65rem max(1rem,env(safe-area-inset-right)) max(.65rem,env(safe-area-inset-bottom));background:#080f1aeb;border-top:1px solid #8da4c97f;backdrop-filter:blur(18px);display:grid;justify-items:center;gap:.22rem;}
.world-hud-buttons {display:flex;align-items:center;justify-content:center;gap:.45rem;flex-wrap:wrap;}
.world-hud .button {min-height:43px;padding:.51rem .72rem;font-size:.88rem;}
.world-hud .world-exit {color:#e8f0f9;font-size:.82rem;padding:.5rem;white-space:normal;}
.world-hud .primary {background:var(--field);color:#0a141e;}
.world-hud .secondary {color:#f0f4f8;border-color:#a1acba;}
.world-guide {font-size:.74rem;color:#c8d2e5;margin:0;line-height:1.3;text-align:center;max-width:72ch;}
.world-moving {translate:var(--world-x,0px) var(--world-y,0px);rotate:var(--world-r,0deg);will-change:translate,rotate;}
.world-moving:focus,.world-moving:focus-within {translate:none!important;rotate:none!important;}
.world-dark-mask {position:fixed;inset:0;pointer-events:none;z-index:55;background:radial-gradient(circle var(--torch-radius,170px) at var(--torch-x,50%) var(--torch-y,40%),transparent 4%,#04050e36 62%,#03040be8 100%);transition:opacity .22s;}
body.world-lights .world-dark-mask,body:has(:focus-visible) .world-dark-mask,html[data-motion="reduced"] .world-dark-mask {opacity:0;}
body.world-broken :is(.top,.world-main,.footer,.skip-link) {visibility:hidden;}
.world-shards {position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:45;}
.world-shard {position:absolute;margin:0;overflow:hidden;transform-origin:center;contain:strict;}
.world-shard>div {position:absolute;margin:0;overflow:hidden;}
.world-shard .world-hero {min-height:0;}
.world-blast-flash {position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 49%,#ffd5c086,transparent 55%);z-index:29;}
body.world-sea #world-field {background:linear-gradient(130deg,#042232b0,#09305652),url("assets/experiment-river.webp") center/cover;}
body[data-experiment="river"] .world-main {padding-bottom:clamp(10rem,44svh,28rem);}
body[data-experiment="river"] .world-objects a {background:linear-gradient(145deg,#1e4951e6,#061923f6);}
@media(max-width:680px) {
 .world-main {width:calc(100% - 2rem);}
 .world-hero {min-height:14rem;}
 .world-coordinate {display:none;}
 .world-objects {grid-template-columns:1fr;}
 .world-objects a {min-height:5.9rem;gap:.35rem;padding:.7rem .85rem;}
 .world-hud {padding-inline:.5rem;}
 .world-guide {max-width:57ch;}
 body[data-experiment] {padding-bottom:10rem;}
}
@media(prefers-reduced-motion:reduce) {.world-dark-mask {transition:none;}.world-moving {will-change:auto;}}
.swim-link {align-self:start;justify-self:start;color:var(--field);text-underline-offset:.22em;}
.sea-end {min-height:52svh;margin-top:clamp(4rem,16svh,13rem);padding:clamp(1.4rem,6vw,4rem);display:grid;justify-items:start;align-content:center;border:1px solid #a9eeff74;border-radius:1.1rem;background:linear-gradient(157deg,#153b48e0,#041121c2);box-shadow:0 0 70px #67e6ff18;}
.sea-end h2 {font-size:clamp(2.9rem,9vw,8rem);margin:0;line-height:1;}
.sea-end>p:not(.world-index) {color:#d3eef5;}
body.world-floating .world-objects a {box-shadow:0 1.35rem 2.2rem #0005,0 0 24px #92ffda19}
