:root {
  --paper: #f6ecda;
  --ink: #2a1c14;
  --coffee: #7a5640;
  --bone: #e8e2d5;
  --steel: #9aa0a8;
  --amber: #f5a623;
  --void: #000;
  --typew: "Courier Prime", "Courier New", monospace;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --measure: 62ch;
  --ease: cubic-bezier(.16, 1, .3, 1);       /* every arrival: fast in, long settle */
  --ease-io: cubic-bezier(.65, 0, .35, 1);   /* every exchange: in and out */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--typew);
  font-size: clamp(16px, 0.35vw + 15px, 19px);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
main, .bar { position: relative; z-index: 1; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
  color: var(--ink);
  transition: color .5s;
}
body.dark .bar { color: var(--bone); }
.bar a { text-decoration: none; }
.bar-name { font-weight: 700; letter-spacing: -0.02em; }
.bar nav { display: flex; gap: clamp(12px, 2.4vw, 32px); align-items: center; }
.bar nav a { position: relative; padding: 4px 0; }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.bar nav a:hover::after { transform: scaleX(1); }
.bar-games { display: none; }   /* phones only: one link down to the games, in place of the long list */

/* ---------- paper half ---------- */
.paper { color: var(--ink); }
.hero {
  min-height: 100svh;
  display: grid; place-items: center; align-content: center; gap: 8px;
  padding: 90px var(--gutter) 60px;
  text-align: center;
}
.hero-logo {
  width: min(62vh, 78vw); height: auto;
  clip-path: circle(0% at 50% 46%); opacity: 0; scale: 1.12;
  transition: clip-path 1.5s var(--ease), opacity .5s linear, scale 1.9s var(--ease);
  will-change: transform, clip-path;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.hero-line { font-size: clamp(17px, 1.2vw + 12px, 26px); min-height: 1.7em; max-width: 34ch; }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; background: var(--ink); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-cue {
  margin-top: 26px; text-decoration: none; font-weight: 700;
  padding-bottom: 34px; position: relative;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 26px; background: currentColor;
  transform-origin: top; animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1) translateY(26px); opacity: 0; } }

.us { padding: 12vh var(--gutter) 28vh; max-width: 1180px; margin: 0 auto; }
.type-h { font-size: clamp(30px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; max-width: 16ch; }
.us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); margin-top: clamp(40px, 8vh, 96px); }
.person h3 { font-size: clamp(44px, 7vw, 104px); line-height: .9; letter-spacing: -0.05em; }
.person .role { font-weight: 700; color: var(--coffee); margin: 10px 0 14px; }
.person p { max-width: 40ch; }
.person:nth-child(2) { margin-top: clamp(40px, 12vh, 140px); }
.how { margin-top: clamp(64px, 14vh, 160px); max-width: var(--measure); margin-left: auto; }
.how h3 { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.02em; margin-bottom: 14px; }
.how p + p { margin-top: 1em; }
.handoff { margin-top: 18vh; text-align: center; font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); }

/* ---------- space half ---------- */
.space { color: var(--bone); text-shadow: 0 0 14px #000, 0 0 3px #000; }
.cond-h { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(40px, 6.4vw, 104px); line-height: .92; color: #fff; }

.mech { padding: 16vh var(--gutter) 10vh; max-width: 1280px; margin: 0 auto; }
.mech-head { display: grid; justify-items: center; text-align: center; gap: clamp(20px, 4vh, 48px); }
.mech-logo { width: min(1040px, 100%); filter: url(#haze); will-change: filter; }
.mech-tag { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: clamp(30px, 5.2vw, 84px); line-height: .98; color: #fff; }
.mech-intro { max-width: var(--measure); margin: clamp(48px, 10vh, 120px) auto 0; }
.mech-intro p + p { margin-top: 1em; }
/* the same four facts each game gets, in this world's amber */
.mech-facts { width: min(100%, 40ch); margin: clamp(36px, 7vh, 64px) auto 0; display: grid; gap: 14px; }   /* no wider than its longest row, and centred */
.mech-facts div { display: grid; grid-template-columns: 11ch 1fr; gap: 16px; border-top: 2px solid #f5a62355; padding-top: 12px; }
.mech-facts dt { color: var(--amber); font-weight: 700; }
.mech-facts dd { margin: 0; }
.mech-facts div:first-child dd { color: #fff; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 16px; }
.fine { font-size: .82em; color: var(--steel); }


.btn { text-shadow: none;
  font: 700 1em var(--typew); color: var(--amber); background: transparent;
  border: 2px solid var(--amber); padding: 13px 22px; text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate; display: inline-block;
  transition: color .25s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--amber); transform: translateY(101%); transition: transform .3s cubic-bezier(.3,.8,.3,1); z-index: -1; }
.btn:hover, .btn:focus-visible { color: #000; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn-solid { color: #000; background: var(--amber); }
.btn-solid::before { background: #fff; }



/* the films: one screen, three reels */
.reels { padding: 6vh var(--gutter) 10vh; max-width: 1280px; margin: 0 auto; }
.reels-lede { max-width: 52ch; margin: 18px 0 clamp(28px, 5vh, 52px); }
.stage { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border: 1px solid #ffffff22; text-shadow: none; width: min(100%, calc((100svh - 150px) * 1.7778)); margin: 0 auto; }
.stage::before, .stage::after { content: ""; position: absolute; left: 0; right: 0; height: 11%; background: #000; z-index: 2; transition: transform .9s var(--ease); }   /* letterbox bars, like the game's cuts */
.stage::before { top: 0; transform: translateY(-101%); } .stage::after { bottom: 0; transform: translateY(101%); }
.stage.armed::before, .stage.armed::after { transform: none; }
.stage.live::before, .stage.live::after { display: none; }
.stage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale 1.6s var(--ease), filter .6s linear, clip-path .9s var(--ease); clip-path: inset(0 0 0 0); }
.stage.swap img { clip-path: inset(0 0 0 100%); transition: none; }
.stage:hover img { scale: 1.04; }
.stage.spoiler img { filter: blur(26px) brightness(.5); scale: 1.15; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.stage-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: clamp(72px, 9vw, 124px); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--amber); background: #000a; cursor: pointer; z-index: 3; transition: background .25s, scale .5s var(--ease); }
.stage-play span { position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent var(--amber); transition: border-color .25s; }
.stage-play:hover, .stage-play:focus-visible { background: var(--amber); scale: 1.08; }
.stage-play:hover span, .stage-play:focus-visible span { border-left-color: #000; }
.stage.spoiler .stage-play { display: none; }
.stage-warn { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px; font-weight: 700; color: #fff; }
.stage-warn[hidden] { display: none; }
.stage-warn button { font: 700 1em var(--typew); color: var(--amber); background: #000a; border: 2px solid var(--amber); padding: 10px 18px; cursor: pointer; }
.stage-warn button:hover { background: var(--amber); color: #000; }
.reel-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 18px auto 0; width: min(100%, calc((100svh - 150px) * 1.7778)); }
.reel { text-align: left; font: inherit; color: var(--bone); background: none; border: 0; border-top: 2px solid #ffffff2e; padding: 16px 18px 6px 0; cursor: pointer; position: relative; text-shadow: inherit; }
.reel::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.reel.on::before, .reel:hover::before, .reel:focus-visible::before { transform: none; }
.reel-n { display: block; font-size: 14px; font-weight: 700; color: var(--amber); }
.reel b { display: block; font-family: var(--cond); text-transform: uppercase; font-size: clamp(22px, 2.5vw, 38px); line-height: 1.05; color: #fff; margin: 4px 0; opacity: .55; transition: opacity .3s; }
.reel.on b, .reel:hover b { opacity: 1; }
.reel-d { display: block; font-size: .88em; color: var(--steel); }
.reels-more { margin-top: 26px; text-align: center; }
.reels-more a { color: var(--amber); }
@media (max-width: 760px) { .reel-tabs { grid-template-columns: 1fr; } .reel { padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { .stage::before, .stage::after { display: none; } .stage img { transition: none; } }

/* horizontal hunt */
.hunt { height: 520vh; }
.hunt-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 3vh; padding: 70px 0 28px; }
.hunt-title { padding: 0 var(--gutter); font-size: clamp(34px, 5vw, 80px); }
.hunt-track li { transform: skewX(var(--lean, 0deg)); }
.hunt-track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: clamp(18px, 3vw, 48px); will-change: transform; counter-reset: beat; }
.hunt-track li { flex: 0 0 min(62vw, 100vh); counter-increment: beat; }
.hunt-track figure { margin: 0; }
.hunt-track img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid #ffffff1f; transform: scale(var(--s, .94)); transform-origin: center bottom; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s; filter: saturate(var(--sat, .5)) brightness(var(--br, .6)); }
.hunt-track figcaption { margin-top: 14px; max-width: 46ch; font-size: .95em; color: var(--bone); }
.hunt-track figcaption b { display: block; font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 40px); line-height: 1; color: #fff; margin-bottom: 6px; }
.hunt-track figcaption b::before { content: counter(beat, decimal-leading-zero) " "; color: var(--amber); }
.hunt-rail { margin: 0 var(--gutter); height: 2px; background: #ffffff22; }
.hunt-rail span { display: block; height: 100%; width: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }


/* Arachne, live: she takes the whole window, the words sit down the left edge */
.arachne { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 12vh var(--gutter); }
.arachne-stage { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.arachne-stage.grabbed { cursor: grabbing; }
.arachne-stage canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s linear; }
.arachne.ready .arachne-stage canvas { opacity: 1; }
.arachne-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s linear; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 60%); mask-image: linear-gradient(90deg, transparent 20%, #000 60%); }
.arachne.failed .arachne-still { opacity: .8; }
.arachne.failed .moves, .arachne.failed .apart-btn, .arachne.failed .arachne-note { display: none; }
.arachne-copy { position: relative; z-index: 1; max-width: 430px; pointer-events: none; }
.arachne-copy button { pointer-events: auto; }
.arachne-lede { margin: 18px 0 14px; }
.arachne-status { font-weight: 700; color: var(--amber); min-height: 1.6em; margin-bottom: 14px; }
.moves { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.move { font: 700 .92em var(--typew); color: var(--bone); background: #000a; border: 1px solid #ffffff44; padding: 9px 13px; cursor: pointer; transition: color .2s, border-color .2s, background .2s, opacity .3s; text-shadow: none; }
.move:hover:not(:disabled), .move:focus-visible { border-color: var(--amber); color: var(--amber); }
.move.on { background: var(--amber); border-color: var(--amber); color: #000; }
.move:disabled, .apart-btn:disabled { opacity: .35; cursor: default; }
.apart-btn.on { color: #000; }
.apart-btn.on::before { transform: none; }
.arachne-note { margin-top: 14px; max-width: 40ch; opacity: 0; transition: opacity .5s linear; }
.arachne.apart .arachne-note { opacity: 1; }
@media (max-width: 760px) {
  .arachne { align-items: end; padding-bottom: 6vh; min-height: 120svh; }
  .arachne-stage { bottom: 42%; }
  .arachne-copy { max-width: none; }
}

/* devlog */
.log { padding: 18vh var(--gutter) 14vh; max-width: 1180px; margin: 0 auto; }
.log-lede { max-width: 52ch; margin-top: 22px; font-size: 1.08em; }
.rope-wrap { position: relative; margin-top: clamp(48px, 10vh, 110px); padding-left: clamp(44px, 9vw, 150px); display: grid; gap: clamp(56px, 12vh, 140px); }
.rope { position: absolute; left: 0; top: 0; width: clamp(44px, 9vw, 150px); height: 100%; overflow: visible; }
.rope path { fill: none; stroke-linecap: round; }
#ropeBack { stroke: #ffffff1c; stroke-width: 2; }
#ropeLine { stroke: var(--amber); stroke-width: 2.5; filter: drop-shadow(0 0 6px #f5a62399); }
#ropeHook path { fill: #000; stroke: var(--amber); stroke-width: 2.5; }
.entry h3 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3.6vw, 54px); line-height: 1; color: #fff; }
.entry .day { display: block; font-family: var(--typew); text-transform: none; font-size: 16px; font-weight: 700; color: var(--amber); margin-bottom: 8px; letter-spacing: 0; }
.entry p { margin: 14px 0 20px; max-width: var(--measure); }
/* each entry: one wide picture, and a second laid over its corner */
.entry { max-width: 940px; }
.shots { position: relative; padding-bottom: clamp(36px, 7vw, 92px); }
.shots .ph-b { position: absolute; right: clamp(-48px, -3vw, -12px); bottom: 0; width: 42%; border: 6px solid #000; transition-delay: .18s; z-index: 1; }
.entry .shots .ph-b { border: 6px solid #000; }
.entry .ph { overflow: hidden; border: 1px solid #ffffff1f; clip-path: inset(0 var(--wipe, 100%) 0 0); transition: clip-path 1.2s var(--ease); }
.entry.seen .ph { --wipe: 0%; }
.entry img { width: 100%; scale: 1.22; transition: scale 1.8s var(--ease); }
.entry.seen img { scale: 1; }
.cut { margin: clamp(64px, 14vh, 150px) 0 48px; max-width: var(--measure); border-left: 2px dashed #ffffff44; padding-left: 22px; }
.cut h3 { font-size: 1.15em; color: #fff; margin-bottom: 10px; }

.foot { padding: 14vh var(--gutter) 9vh; text-align: center; display: grid; justify-items: center; gap: 16px; }
.foot-logo { width: 150px; border-radius: 50%; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; }
.foot-links a { color: var(--amber); }

/* containment protocol: the pixel lab, with the game itself as the centrepiece */
.lab { color: #d8ffe6; text-shadow: 0 0 12px #001b12, 0 0 3px #001b12; }
.contain { padding: 34vh var(--gutter) 20vh; }
.contain-head { text-align: center; margin: 0 auto clamp(28px, 5vh, 56px); }
.contain-first { font-weight: 700; color: #5dff7a; margin-bottom: 10px; }
.contain-h { font-size: clamp(40px, 8.4vw, 132px); line-height: .9; letter-spacing: -0.055em; color: #fff; }
.contain-pitch { margin-top: 18px; font-size: clamp(17px, 1.5vw, 23px); }
.pop-line { margin-top: 22px; font-size: 15px; color: #8fc7a4; }
.pop-hud { color: #5dff7a; font-weight: 700; }
.pop-hud b { color: #fff; }
@media (prefers-reduced-motion: reduce) { .pop-line { display: none; } }
.medal { display: inline-flex; align-items: center; gap: 16px; margin-top: 26px; text-align: left; text-shadow: none; border: 3px solid #5dff7a; background: #04140c; box-shadow: 6px 6px 0 #1c6b3a; padding: 10px 18px 10px 10px; }
.medal-place { font-weight: 700; font-size: clamp(30px, 3.4vw, 50px); line-height: 1; letter-spacing: -0.05em; color: #04140c; background: #5dff7a; padding: 10px 14px; }
.medal-text { font-weight: 700; font-size: 15px; line-height: 1.35; color: #d8ffe6; }

/* the cabinet: sized so the whole screen always fits in the window */
.cab { --w: min(100%, 1320px, calc((100svh - 190px) * 1.6)); width: var(--w); margin: 0 auto; background: #04140c; border: 3px solid #5dff7a; box-shadow: 0 0 0 8px #04140c, 0 0 0 10px #1c6b3a, 0 0 90px #5dff7a44; text-shadow: none; transition: box-shadow .4s; }
.cab.live { box-shadow: 0 0 0 8px #04140c, 0 0 0 10px #5dff7a, 0 0 140px #5dff7a77; }
.cab-top { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 3px solid #5dff7a; font-weight: 700; font-size: 14px; color: #5dff7a; }
.led { width: 10px; height: 10px; background: #1c6b3a; }
.cab.live .led { background: #5dff7a; animation: led 1.2s steps(1) infinite; }
.cab.live .led:nth-child(2) { animation-delay: .4s; background: #ff3fa4; }
.cab.live .led:nth-child(3) { animation-delay: .8s; background: #3fd0ff; }
@keyframes led { 50% { opacity: .25; } }
.cab-label { margin-left: auto; }
.crt { position: relative; aspect-ratio: 956 / 598; background: #04140c; overflow: hidden; }
.crt img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.crt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.crt::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, #0000 0 3px, #0005 3px 4px), radial-gradient(ellipse at center, #0000 55%, #000a 100%); }
.crt.live::after, .crt.live img, .crt.live .crt-start { display: none; }
.crt:not(.live):hover img { animation: jitter .35s steps(2) infinite; }
@keyframes jitter { 0% { transform: translate(0,0); filter: none; } 50% { transform: translate(-3px,1px); filter: drop-shadow(4px 0 0 #ff3fa4aa) drop-shadow(-4px 0 0 #3fd0ffaa); } 100% { transform: translate(2px,-1px); } }
.crt-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 clamp(18px, 2.4vw, 34px) var(--typew); color: #04140c; background: #5dff7a; border: 0; padding: .7em 1.2em; cursor: pointer; z-index: 2; box-shadow: 0 0 0 6px #04140c, 0 0 60px #5dff7a; animation: pulse 1.6s ease-in-out infinite; }
.crt-start:hover, .crt-start:focus-visible { background: #fff; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #04140c, 0 0 14px #5dff7a; } }
.cab-bottom { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; align-items: center; padding: 9px 14px; border-top: 3px solid #5dff7a; font-size: 14px; color: #8fc7a4; min-height: 44px; }
.crt-bar { display: flex; gap: 22px; margin-left: auto; }
.crt-bar[hidden] { display: none; }
.crt-link { font: 700 14px var(--typew); color: #5dff7a; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.crt-link:hover { color: #fff; }

.contain-info { max-width: 1100px; margin: clamp(40px, 8vh, 90px) auto 0; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.contain-text p + p { margin-top: 1em; }
.contain-facts { margin: 0; display: grid; gap: 14px; }
.contain-facts div { display: grid; grid-template-columns: 11ch 1fr; gap: 16px; border-top: 2px solid #5dff7a55; padding-top: 12px; }
.contain-facts dt { color: #5dff7a; font-weight: 700; }
.contain-facts dd { margin: 0; }
.contain-facts div:first-child dd { color: #fff; font-weight: 700; }
.btn-lab { color: #04140c; background: #5dff7a; border-color: #5dff7a; }
.btn-lab::before { background: #fff; }
.btn-lab-line { color: #5dff7a; border-color: #5dff7a; }
.btn-lab-line::before { background: #5dff7a; }
body.labz #reticle { color: #5dff7a; }
body.labz .foot-links a { color: #5dff7a; }

/* reticle: the game's hook marker, following the pointer */
#reticle { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; z-index: 9; opacity: 0; color: var(--ink); transition: opacity .3s, color .4s, width .2s, height .2s, margin .2s; }
body.dark #reticle { color: var(--amber); }
#reticle.on { opacity: 1; }
#reticle i { position: absolute; width: 8px; height: 8px; border: 2px solid currentColor; transition: transform .2s; }
#reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
#reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
#reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
#reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
#reticle.lock { width: 56px; height: 56px; margin: -28px 0 0 -28px; transform-origin: center; }
#reticle.lock i { transform: rotate(0); border-width: 3px; }
@media (hover: none) { #reticle { display: none; } }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .shots .ph-b { right: 0; width: 56%; }
  .us-grid { grid-template-columns: 1fr; }
  .contain-info { grid-template-columns: 1fr; }
  .person:nth-child(2) { margin-top: 0; }
  .how { margin-left: 0; }
  .hunt { height: auto; padding: 8vh 0; }
  .hunt-pin { position: static; height: auto; overflow: visible; padding: 0; }
  .hunt-track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 12px; }
  .hunt-track li { flex-basis: 82vw; scroll-snap-align: center; }
  .hunt-track img { --s: 1; --sat: 1; --br: 1; }
  .hunt-rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo, .caret, .scroll-cue::after, .crt img, .crt-start, .led { animation: none !important; }
  .mech-logo { filter: none; }
  .entry img { clip-path: none; transition: none; }
  .hunt { height: auto; padding: 8vh 0; }
  .hunt-pin { position: static; height: auto; overflow: visible; padding: 0; }
  .hunt-track { overflow-x: auto; transform: none !important; }
  .hunt-track img { --s: 1; --sat: 1; --br: 1; }
  #reticle { display: none; }
}

/* =========================================================
   Motion pass. Two easings, one stagger, three triggers:
   the page loading, the scroll, the pointer.
   ========================================================= */
body.ready .hero-logo { clip-path: circle(75% at 50% 46%); opacity: 1; scale: 1; }
.bar { transition: color .5s, transform .6s var(--ease); }
.bar > * { opacity: 0; translate: 0 -14px; transition: opacity .6s linear .9s, translate .9s var(--ease) .9s; }
body.ready .bar > * { opacity: 1; translate: 0 0; }
body.nav-away .bar { transform: translateY(-120%); }
.hero-line, .scroll-cue { opacity: 0; transition: opacity .8s linear 1s; }
body.ready .hero-line, body.ready .scroll-cue { opacity: 1; }

#prog { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 6; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: background .5s; }
body.dark #prog { background: var(--amber); }
body.labz #prog { background: #5dff7a; }

/* words rise from behind a mask, 45 ms apart */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .04em .14em; margin: -.06em -.04em -.14em; }
.split .wi { display: inline-block; transform: translateY(112%) rotate(4deg); transform-origin: left bottom; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); will-change: transform; }
.split.in .wi { transform: none; }

/* the MechFall line is read, not revealed: each word lights as it is reached */
.scrub .wi { transform: none; transition: opacity .35s linear, color .35s linear; opacity: .16; }
.scrub .wi.lit { opacity: 1; }

/* bands: hollow type running with the scroll */
.band { overflow: hidden; padding: 5vh 0; position: relative; z-index: 1; }
.band-in { display: inline-flex; align-items: center; gap: .32em; white-space: nowrap; font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: clamp(64px, 15vw, 230px); line-height: .9; will-change: transform; transform-origin: center; }
.band span { color: transparent; -webkit-text-stroke: 2px currentColor; text-shadow: none; }
.band-amber { color: var(--amber); }
.band-amber span { -webkit-text-stroke-color: var(--amber); }
.band-amber span.fill { color: var(--amber); }
.band i { width: .22em; height: .22em; background: currentColor; rotate: 45deg; flex: none; }   /* the hook-point diamond */
.band-lab { color: #5dff7a; margin: clamp(40px, 8vh, 90px) calc(var(--gutter) * -1) 0; }
.band-lab .band-in { font-family: var(--typew); letter-spacing: -0.05em; font-size: clamp(54px, 12vw, 180px); }
.band-lab span { -webkit-text-stroke-color: #5dff7a; }
.band-lab span.fill { color: #5dff7a; }
.band-lab i { rotate: 0deg; }                                                                    /* pixels, not diamonds */

/* the closing wordmark */
.mega { font-weight: 700; font-size: clamp(34px, 9.4vw, 170px); line-height: .92; letter-spacing: -0.06em; color: #fff; text-shadow: none; margin-bottom: 8px; }

/* pointer */
.btn, .crt-start { transition: color .25s, background .25s, translate .5s var(--ease); }
.cab { transition: box-shadow .4s, transform .7s var(--ease); transform-style: preserve-3d; }
#retLabel { position: absolute; left: 50%; top: calc(100% + 6px); translate: -50% 0; font: 700 11px var(--typew); letter-spacing: .04em; white-space: nowrap; color: currentColor; }

@media (max-width: 760px) { .band { padding: 3vh 0; } .hunt-track li { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-logo { clip-path: none; opacity: 1; scale: 1; transition: none; }
  .bar > *, .hero-line, .scroll-cue { opacity: 1; translate: 0 0; transition: none; }
  .split .wi { transform: none; transition: none; }
  .scrub .wi { opacity: 1; }
  .entry .ph { clip-path: none; } .entry img { scale: 1; transition: none; }
  .band-in { transform: none !important; }
  .hunt-track li { transform: none; }
  #prog { display: none; }
}

/* who we are: the jam story in the site's own idiom: big typewriter words, staggered, drifting */
.who-h { max-width: none; }
/* the story so far, as a calendar down the side: the year, then one leaf per jam, on one ruled line.
   Each entry reads: the event, the game, what it is, how long we had, and where it placed (stamped). */
.cal { --leaf: clamp(56px, 6.4vw, 92px); --stamp: #a03a22; margin-top: clamp(40px, 8vh, 96px); }
.cal-year { font-weight: 700; font-size: clamp(44px, 7vw, 104px); line-height: .9; letter-spacing: -0.05em; }
.cal-list { list-style: none; padding: clamp(28px, 5vh, 56px) 0 0; margin: clamp(10px, 2vh, 18px) 0 0; position: relative; }
.cal-list::before { content: ""; position: absolute; left: calc(var(--leaf) / 2 - 1px); top: 0; bottom: 0; width: 2px; background: var(--ink); }
.cal-item { position: relative; display: grid; grid-template-columns: var(--leaf) minmax(0, 1fr); column-gap: clamp(18px, 3.6vw, 60px); align-items: start; padding-bottom: clamp(56px, 11vh, 130px); }
.cal-item:last-child { padding-bottom: clamp(20px, 4vh, 40px); }
/* a tear-off calendar leaf: the binding strip, then the month. It follows you down its own entry */
.cal-leaf { position: sticky; top: 92px; display: block; width: var(--leaf); background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--coffee); text-align: center; }
.cal-leaf::before { content: ""; display: block; height: calc(var(--leaf) * .2); background: var(--ink); }
.cal-leaf b { display: block; padding: .5em 0 .42em; font-size: calc(var(--leaf) * .34); line-height: 1; letter-spacing: -0.05em; }
.cal-event { font-weight: 700; color: var(--coffee); }
.cal-item h3 { margin: 6px 0 14px; font-size: clamp(27px, 4.3vw, 64px); line-height: 1; letter-spacing: -0.045em; }
.cal-item h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% .055em no-repeat; }
.cal-item h3 a:hover, .cal-item h3 a:focus-visible { color: var(--coffee); }
.cal-desc { max-width: 46ch; }
.cal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 18px; }
.cal-time { font-weight: 700; }
.cal-time::before { content: ""; display: inline-block; width: 1.6em; height: 2px; margin-right: .6em; vertical-align: .3em; background: var(--ink); }
/* the placing, stamped on in red ink, a little crooked */
.cal-stamp { display: inline-block; padding: 7px 14px 4px; border: 3px solid var(--stamp); border-radius: 6px; color: var(--stamp); font-weight: 700; font-size: clamp(17px, 1.7vw, 24px); line-height: 1; letter-spacing: .01em; rotate: -5deg; mix-blend-mode: multiply; opacity: .88; }
.cal-stamp.is-alt { rotate: 4deg; }
.cal-stamp.is-pending { --stamp: var(--coffee); border-style: dashed; border-width: 2px; rotate: -2deg; }   /* not in yet: pencilled, not stamped */
.cal-stamp[data-reveal] { transform: scale(1.9); opacity: 0; }
.cal-stamp[data-reveal].in { transform: none; opacity: .88; transition: transform .22s cubic-bezier(.2, .9, .3, 1.25) .35s, opacity .1s linear .35s; }
/* in between jams: a plain note hung on the line */
.cal-note::before { content: ""; justify-self: center; width: 12px; height: 12px; margin-top: .45em; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px var(--paper); }
.cal-note .cal-body { max-width: 46ch; font-style: italic; }
.cal-next .cal-body { font-style: normal; }
.cal-next .cal-event { margin-bottom: 8px; font-size: 1.15em; }
.cal-follow { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 16px; font-weight: 700; }
.cal-follow a { display: inline-flex; align-items: center; gap: .55em; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.cal-follow svg { flex: none; width: 1.35em; height: 1.35em; fill: currentColor; }
.cal-follow a:hover, .cal-follow a:focus-visible { color: var(--coffee); }
.cal-next::before { background: var(--paper); box-shadow: 0 0 0 2px var(--ink), 0 0 0 7px var(--paper); }   /* still to come: an open ring */
@media (max-width: 760px) { .cal-leaf { top: 76px; box-shadow: 3px 3px 0 var(--coffee); } }
@media (prefers-reduced-motion: reduce) { .cal-stamp[data-reveal] { transform: none; opacity: .88; transition: none; } }

/* ---------- untitled_FINAL_v3 (the build) ----------
   Its own world, like the other two games: the unfinished level at night, drawn by the sky shader
   (see build() in main.js). The page speaks the game's language here: its editor colours, its
   typeface, and the file name typed out under the names it had before. */
.build {
  --b-tx: #c0caf5; --b-dim: #7f88b0; --b-line: #2c3047; --b-bg: #16161e; --b-cyan: #7dcfff; --b-green: #9ece6a;
  --b-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--b-tx); font-family: var(--b-mono); font-size: .92em; line-height: 1.65;
  text-shadow: 0 0 14px #05060c, 0 0 3px #05060c;
}
.untitled { padding: 30vh var(--gutter) 18vh; }
.un-head, .un-body, .un-shots { max-width: 1180px; margin-inline: auto; }
.un-names { display: grid; gap: .3em; font-weight: 500; font-size: clamp(14px, 1.4vw, 21px); line-height: 1.1; color: var(--b-dim); }
.un-names s { text-decoration-thickness: .09em; opacity: .55; }
.un-names s:nth-child(2) { opacity: .7; } .un-names s:nth-child(3) { opacity: .88; }
.un-h { margin-top: .22em; font-weight: 700; font-size: clamp(27px, 6.9vw, 108px); line-height: 1.06; letter-spacing: -0.04em; color: #fff; }
/* typed out once when it scrolls into view; the caret stays. --n is the name's length in characters */
.un-h span { display: inline-block; box-sizing: content-box; vertical-align: bottom; overflow: hidden; white-space: nowrap; width: 0; border-right: .4ch solid var(--b-cyan); }
.un-h.in span { width: calc(var(--n) * (1ch - 0.04em)); animation: unType .95s steps(var(--n)) both, unCaret 1.1s steps(1) 1s infinite; }
@keyframes unType { from { width: 0; } }
@keyframes unCaret { 50% { border-right-color: transparent; } }
.un-pitch { margin-top: 20px; font-size: clamp(15px, 1.35vw, 20px); color: var(--b-dim); }
.build .medal { border: 2px solid var(--b-cyan); border-radius: 8px; background: var(--b-bg); box-shadow: 6px 6px 0 #25506b; }
.build .medal-place { color: #10121c; background: var(--b-cyan); border-radius: 4px; letter-spacing: -0.04em; }
.build .medal-text { color: var(--b-tx); font-weight: 500; font-size: 14px; }
.un-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "screen text" "facts text"; gap: clamp(34px, 6vh, 64px) clamp(28px, 6vw, 90px); align-items: start; margin-top: clamp(40px, 8vh, 90px); }
.un-screen { grid-area: screen; margin: 0; border: 1px solid var(--b-line); border-radius: 10px; overflow: hidden; background: var(--b-bg); box-shadow: 0 24px 70px rgba(0,0,0,.6); text-shadow: none; }
.un-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--b-line); background: #12121a; color: var(--b-dim); font-size: 12px; font-weight: 500; }
.un-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f7768e; }
.un-bar i:nth-child(2) { background: #e0af68; } .un-bar i:nth-child(3) { background: var(--b-green); margin-right: 10px; }
.un-screen img { width: 100%; }
.un-text { grid-area: text; padding: clamp(18px, 2vw, 28px); background: rgba(13,14,22,.78); border: 1px solid var(--b-line); border-radius: 10px; text-shadow: none; }
@supports (backdrop-filter: blur(4px)) { .un-text { background: rgba(13,14,22,.62); backdrop-filter: blur(7px); } }
.un-text p + p { margin-top: 1em; }
.un-term { margin: 22px 0 0; padding: 14px 16px; display: grid; gap: 4px; font: inherit; font-weight: 500; background: rgba(22,22,30,.92); border: 1px solid var(--b-line); border-radius: 8px; text-shadow: none; white-space: normal; }
.un-term span { display: flex; align-items: baseline; gap: .7em; }
.un-term b { color: var(--b-cyan); font-weight: 700; }
.un-term i { margin-left: auto; color: var(--b-green); font-style: normal; }
.un-term u { width: .55em; height: 1.05em; align-self: center; background: var(--b-tx); text-decoration: none; animation: blink 1s steps(1) infinite; }
.un-text .fine { margin-top: 18px; }
/* the Play button sits on the game's own screen, so starting the game is a click on the screen */
.un-view { position: relative; }
.un-view img { display: block; }
@media (max-width: 760px) { .un-view .un-play { padding: 8px 16px; box-shadow: 0 0 0 4px rgba(16,18,28,.9), 0 0 32px rgba(125,207,255,.5); } }
.un-play { position: absolute; left: 50%; top: 84%;   /* low on the screen, clear of the game's own title and menu */ transform: translate(-50%, -50%); z-index: 2; white-space: nowrap; font-size: clamp(14px, 1.35vw, 19px); box-shadow: 0 0 0 5px rgba(16,18,28,.9), 0 0 48px rgba(125,207,255,.55); }
.build .fine { color: var(--b-dim); }
.btn-build { color: #10121c; background: var(--b-cyan); border-color: var(--b-cyan); font-family: var(--b-mono); }
.btn-build::before { background: #fff; }
.un-facts { grid-area: facts; margin: 0; display: grid; gap: 11px; padding: 6px clamp(14px, 1.6vw, 22px) 16px; background: rgba(13,14,22,.6); border-radius: 10px; text-shadow: none; }
.un-facts div { display: grid; grid-template-columns: 11ch 1fr; gap: 16px; border-top: 1px solid #7dcfff44; padding-top: 11px; }
.un-facts div:first-child { border-top: 0; }
.un-facts dt { color: var(--b-cyan); font-weight: 500; }
.un-facts dd { margin: 0; }
.un-facts div:first-child dd { color: #fff; font-weight: 700; }
.band-build { color: var(--b-cyan); margin: clamp(48px, 10vh, 110px) calc(var(--gutter) * -1) 0; }
.band-build .band-in { font-family: var(--b-mono); letter-spacing: -0.06em; font-size: clamp(50px, 11vw, 168px); }
.band-build span { -webkit-text-stroke-color: var(--b-cyan); -webkit-text-stroke-width: 1.5px; }
.band-build span.fill { color: var(--b-cyan); }
.band-build i { rotate: 0deg; width: .08em; height: .7em; }                                        /* carets, not diamonds */
.un-shots { list-style: none; padding: 0; margin-top: clamp(40px, 8vh, 90px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.un-shots figure { margin: 0; }
.un-shots img { width: 100%; border: 1px solid var(--b-line); border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.un-shots li:nth-child(2) { margin-top: clamp(16px, 5vh, 56px); }
.un-shots figcaption { margin-top: 14px; max-width: 34ch; }
.un-shots figcaption b { display: block; color: #fff; }
body.buildz #reticle, body.buildz #prog { color: #7dcfff; }
body.buildz #prog { background: #7dcfff; }
@media (max-width: 760px) {
  .un-body { grid-template-columns: 1fr; grid-template-areas: "screen" "text" "facts"; }
  .un-shots { grid-template-columns: 1fr; }
  .un-shots li:nth-child(2) { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .un-h span, .un-h.in span { width: auto; animation: none; }
  .un-term u { animation: none; }
}
/* the top bar: About Us and the three games, each on one line */
.bar-name, .bar nav a { white-space: nowrap; }
.bar { gap: clamp(20px, 4vw, 64px); }   /* the studio name and the first link never touch */
.bar nav { gap: clamp(18px, 2.6vw, 44px); }
@media (max-width: 480px) { .bar { gap: 10px; } .bar nav { gap: 12px; } }
/* too narrow for the game names: the bar becomes the studio name, Us and one link down to the games */
@media (max-width: 1040px) { .bar nav a { display: none; } .bar nav a[href="#us"], .bar nav a.bar-games { display: block; } }
