@font-face {
  font-family: "Jersey 10";
  src: url("assets/jersey-10.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #ffe9bd;
  --display: "Jersey 10", ui-monospace, monospace;
  --ink: #171b29;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; position: relative; background: var(--paper); }
@supports (-webkit-touch-callout: none) and (background-clip: text) {
  /* Safari samples the background of fixed edges taller than 10px.
     Clipping to empty text keeps the sample from covering the artwork. */
  body::before, body::after {
    content: "";
    position: fixed;
    inset-inline: 0;
    height: 12px;
    z-index: 10;
    pointer-events: none;
    background-color: var(--paper);
    background-clip: text;
  }
  body::before { top: 0; }
  body::after { bottom: 0; }
}
a { color: inherit; }
img { display: block; }
a:focus-visible, summary:focus-visible { outline: 3px solid #d38431; outline-offset: 5px; }
.frame { width: min(1280px, 88%); margin-inline: auto; }
.skip { position: absolute; z-index: 9; top: -90px; left: 1em; padding: 12px; background: white; }
.skip:focus { top: 1em; }
.masthead { position: relative; z-index: 3; }
.bar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #cfcfc1; }
.brand { display: inline-flex; align-items: center; gap: 8px; padding-block: 6px; }
.brand img { height: auto; }
.brand-mascot { width: 58px; }
.wordmark { width: clamp(140px, 17.5vw, 214px); image-rendering: pixelated; }
.menu { display: flex; align-items: center; }
.menu { gap: clamp(10px, 2vw, 30px); padding-inline: 12px; }
.menu a { padding-block: 12px; font-size: 14px; font-weight: 600; text-decoration: none; }
.menu a:hover, .menu a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.journey, .hero, .chapter-inner { position: relative; }
.hero { display: flex; align-items: center; min-height: max(540px, calc(100svh - 64px)); padding-block: 58px 68px; }
.hero-copy, .chapter-copy { position: relative; z-index: 2; }
.chapter-inner { display: grid; align-items: center; min-height: max(380px, 65svh); padding-block: 74px; }
.chapter-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 84px);
  width: min(100%, 1080px);
  justify-self: center;
}
.chapter-mascot { width: 100%; height: auto; }
.chapter h2 { font-size: clamp(56px, 6.8vw, 104px); margin: 12px 0 18px; }
.chapter-text > p:last-child { max-width: 42ch; margin: 0; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.55; }
.eyebrow { display: flex; gap: 12px; align-items: center; font: 600 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .12em; margin: 0; }
.pixel-plus { display: inline-block; width: 13px; height: 13px; color: #a76720; background: currentColor; clip-path: polygon(33% 0,67% 0,67% 33%,100% 33%,100% 67%,67% 67%,67% 100%,33% 100%,33% 67%,0 67%,0 33%,33% 33%); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .9; letter-spacing: -.012em; }
h1 { font-size: clamp(64px, 8.7vw, 138px); margin: .2em 0 .32em; }
footer a span { transition: transform .25s; }
.games { padding-block: clamp(42px, 5vw, 76px); }
.section-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; }
h2 { font-size: clamp(40px, 4vw, 64px); letter-spacing: -.012em; line-height: .95; margin: 0; font-weight: 400; }
.section-rule { height: 1px; background: #535866; flex: 1; }
.section-heading .pixel-plus { color: #f4bc58; }
.key-art { display: block; overflow: hidden; background: #0c1421; border: 1px solid #424a58; }
.key-art img { width: 100%; height: auto;  }
.game-details { padding-top: 28px; }
.game-info { display: grid; grid-template-columns: 1fr minmax(240px, 35%); align-items: end; gap: 28px; }
.game-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; gap: 18px 32px; }
.game-site { display: inline-flex; align-items: center; gap: 16px; padding: 10px 16px; font: 24px/1 var(--display); color: #191827; background: #ffe9bd; text-decoration: none; }
.game-site:hover { text-decoration: underline; text-underline-offset: 4px; }
.storefronts { display: flex; flex-wrap: wrap; gap: 6px; min-inline-size: 0; border: 0; padding: 0; margin: 0; }
.storefronts legend { padding: 0 0 7px; }
.storefronts button { padding: 7px 12px; background: transparent; color: inherit; opacity: .78; border: 1px solid currentColor; border-radius: 0; font: 18px/1 var(--display); }
.status { color: inherit; }
.status span { background: currentColor; width: 6px; height: 6px; }
h3 { font-size: clamp(32px, 4vw, 58px); line-height: 1.1; letter-spacing: 0; margin: 10px 0 0; }
h3 small { display: block; font: 400 .59em/1.2 var(--display); letter-spacing: .025em; }
.synopsis { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; margin: 0; color: inherit; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 36px; }
footer small { display: block; margin-top: 8px; font: 12px/1.5 var(--mono); }
footer img { image-rendering: pixelated; }
footer a { font: 600 13px/1.5 var(--mono); text-decoration: none; padding-block: 10px; }
footer a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .frame { width: 89%; }
  .bar { min-height: 55px; }
  .brand-mascot { width: 40px; }
  .wordmark { width: clamp(106px, 28vw, 166px); }
  .menu { gap: 10px; padding-inline: 8px; }
  .menu a { font-size: 12px; }
  .hero { min-height: max(560px, calc(92svh - 55px)); padding-block: clamp(48px, 9svh, 110px) 190px; align-items: start; }
  h1 { font-size: clamp(54px, 11vw, 80px); }
  .chapter-inner { min-height: max(410px, 73svh); padding-block: 70px; }
  .chapter-copy { grid-template-columns: 1fr; gap: 20px; }
  .chapter-mascot { width: min(65%, 240px); justify-self: center; }
  .chapter h2 { font-size: clamp(42px, 8.2vw, 58px); }
  .chapter-text > p:last-child { font-size: 16px; }
  .game-info { grid-template-columns: 1fr; gap: 20px; }
  .section-heading { gap: 16px; margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .menu { opacity: 1 !important; }
}
.section-rule { position: relative; }
@media (max-width: 389px) {
  .bar { width: 94%; }
  .brand { gap: 4px; }
  .menu { gap: 7px; padding-inline: 0; }
  .bar .menu a { font-size: 16px; }
}
@media (max-width: 359px) {
  h1 { font-size: 49px; }
}
.menu a { font: 24px/1 var(--display); }
:root[data-light-ink] .brand .wordmark, :root[data-light-ink] footer img { filter: brightness(0) invert(1); }
.section-rule, .bar { border-color: color-mix(in srgb, currentColor 30%, transparent); }
.section-rule { background: currentColor; }
.disk-art { position: absolute; z-index: 1; width: clamp(160px, 21vw, 310px); aspect-ratio: 1; left: 73%; top: 51%; transform: translate(-50%, -50%); pointer-events: none; }
.disk { --edge: #523526; position: absolute; inset: 0; overflow: hidden; background: linear-gradient(130deg, #ffc368, #e89241 67%, #d9873a); border: 4px solid var(--edge); border-radius: 4% 3% 3% 4%; box-shadow: 2px 2px 0 var(--edge), 5px 5px 0 var(--edge), 8px 8px 0 var(--edge), 12px 15px 0 #96673535, inset 3px 3px #ffda92, inset -4px -4px #bb7134; }
.disk::before, .disk::after { content: ""; position: absolute; bottom: 5%; width: 4%; aspect-ratio: 1; background: #62452f; box-shadow: inset -1px -2px #ffe0a0; }
.disk::before { left: 4%; } .disk::after { right: 4%; }
.shutter { position: absolute; top: 0; left: 19%; width: 62%; height: 36%; border: 2px solid var(--edge); border-top: 0; border-radius: 0 0 5% 5%; background: repeating-linear-gradient(0deg, #cbd6c9 0 2px, #c5d0c4 2px 4px); box-shadow: inset 3px 0 #edf0d6, inset -3px -2px #8e9c90; }
.shutter::after { content: ""; position: absolute; top: 10%; bottom: 13%; right: 13%; width: 23%; background: #503e37; box-shadow: inset 3px 3px #352f30; }
.disk-label { position: absolute; left: 11%; right: 11%; bottom: 6%; height: 48%; background: linear-gradient(to bottom, #396c6a 0 18%, #fff0cb 18% 100%); border: 2px solid #805935; border-radius: 3%; }
.disk-label::after { content: ""; position: absolute; bottom: 16%; height: 6%; left: 10%; right: 10%; border-block: 1px solid #bea985; }
@media (max-width: 700px) {
  .menu a { font-size: 18px; }
  .disk-art { width: clamp(120px, 30vw, 185px); top: 72%; left: 62%; }
}
@font-face {
  font-family: Caveat;
  src: url("assets/caveat.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
.opening, .story-screen { position: relative; }
.disk-art { container-type: inline-size; }
.disk { transform-origin: 57% 19%; transform: translate(var(--pan-x, 0px), var(--pan-y, 0px)) rotate(var(--disk-angle, 10deg)) scale(var(--zoom, 1)); }
.read-window { position: absolute; width: 30%; height: 28%; top: 5%; left: 42%; overflow: hidden; background: #302b3c; box-shadow: inset 0 0 0 2px #30291f; }
.read-window::after { content: ""; position: absolute; width: 330%; aspect-ratio: 1; top: -20%; left: -155%; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 4%, #aaa2aa44 4.4% 4.9%, transparent 5.4% 7%), conic-gradient(#423846, #857780, #403947 35%, #74646c, #423846); transform: rotate(var(--spin, 0deg)); }
.shutter { transform: translateX(var(--shutter, 0%)); }
.disk-label::after { bottom: 15%; height: 0; border-top: 0; }
.story-lines { position: relative; }
.beat { max-width: 15ch; font: 400 clamp(46px, 6.6vw, 108px)/.95 var(--display); letter-spacing: -.018em; margin: 0; padding: 35px 0; text-wrap: balance; }
.beat small { display: block; margin-top: 18px; max-width: 35ch; font: 400 clamp(16px, 1.45vw, 21px)/1.45 "Helvetica Neue", Arial, sans-serif; letter-spacing: normal; text-wrap: pretty; }
.inside-disk { display: none; }
.motion-story .opening { height: 515svh; }
.motion-story .story-screen { position: sticky; top: 0; height: 100svh; overflow: clip; opacity: var(--stage-opacity, 1); }
.motion-story .masthead { position: absolute; inset: 0 0 auto; }
.motion-story .hero { top: var(--header-height); height: 100%; min-height: 0; }
.motion-story .hero-copy { opacity: var(--hero-opacity, 1); }
.motion-story .disk-art { z-index: 3; opacity: var(--shell, 1); }
.motion-story .story-lines { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: grid; align-items: center; }
.motion-story .beat { grid-area: 1 / 1; width: 68%; max-width: 15ch; opacity: var(--arrival, 0); transform: translateY(var(--drop, 0px)) scale(var(--size, 1)); transform-origin: left center; }
.motion-story .inside-disk { display: block; position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; opacity: var(--inside, 0); }
.spindle { position: absolute; width: 150vmax; aspect-ratio: 1; left: 94%; top: 63%; border-radius: 50%; transform: translate(-50%, -50%) rotate(var(--spin, 0deg)); color: var(--ink);
  background: radial-gradient(circle, currentColor 0 1.6%, transparent 1.8% 2.3%, currentColor 2.4% 2.8%, transparent 3%),
    repeating-radial-gradient(circle, transparent 0 5.8%, currentColor 5.87% 5.96%, transparent 6.05%),
    conic-gradient(from 30deg, transparent 0deg 25deg, currentColor 54deg, transparent 76deg 202deg, currentColor 235deg, transparent 264deg);
  opacity: .13;
}
.motion-story #story { position: absolute; top: calc(var(--header-height) + (415svh - var(--header-height)) * .82 * .43); }
.motion-story .chapter-copy:not(.tall-chapter) { transform: translateY(calc(var(--hold, 0px) + var(--drop, 0px))) scale(var(--size, 1)); opacity: var(--arrival, 1); }
@media (max-width: 700px) {
  .disk-art { width: clamp(158px, 36vw, 210px); top: 68%; left: 58%; }
  .motion-story .beat { width: 75%; font-size: clamp(42px, 9vw, 62px); }
}
@media (max-height: 490px) and (min-aspect-ratio: 3/2) {
  .motion-story .hero { align-items: center; padding-block: 16px; }
  .disk-art { left: 78%; top: 49%; width: 23vw; }
  h1 { font-size: clamp(44px, 7vw, 80px); }
}
.motion-story .story-screen { z-index: 2; }
.spindle::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(transparent 0deg 80deg, currentColor 100deg, transparent 130deg 280deg, currentColor 300deg, transparent 330deg); opacity: .4; animation: turn-platter 18s linear infinite; }
@keyframes turn-platter { to { transform: rotate(1turn); } }
:root:not(.motion-story) #story { position: absolute; top: 100svh; }

/* Keep the disk within reach of the invitation on portrait screens. */
@media (max-width: 700px) and (max-aspect-ratio: 3/2) {
  .hero { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: clamp(24px, 4.5svh, 40px); padding-block: clamp(32px, 6svh, 68px) 32px; }
  .hero .disk-art { width: clamp(158px, 48vw, 230px); position: relative; left: auto; top: auto; transform: none; align-self: center; flex: none; }
  .motion-story .beat { width: 90%; }
}

.motion-story .beat { width: min(70%, 19ch); max-width: none; font-size: clamp(42px, 5.8vw, 84px); }
@media (max-width: 700px) {
  .motion-story .beat { width: 94%; font-size: clamp(38px, 8.4vw, 54px); }
}
@media (max-height: 490px) and (min-aspect-ratio: 3/2) {
  .motion-story .beat { font-size: clamp(35px, 4.8vw, 50px); }
}

.return-question, .return-line { margin: 0 auto; width: 88%; font: 400 clamp(42px, 6vw, 84px)/1 var(--display); }
.return-question { padding-top: 20px; font-size: clamp(32px, 4.8vw, 68px); }
.return-line { padding: 20px 0; }
.motion-story .return-question { position: absolute; z-index: 3; left: 6%; bottom: calc(50% + var(--disk-radius) + clamp(14px, 3svh, 32px)); padding: 0; text-align: center; opacity: var(--question, 0); pointer-events: none; }
.motion-story .return-line { position: absolute; z-index: 3; text-align: center; left: 6%; top: calc(50% + var(--disk-radius) + 10px); opacity: var(--answer, 0); pointer-events: none; }
.motion-story .chapter-inner { min-height: 100svh; padding-block: clamp(68px, 14svh, 150px); }
.motion-story .game-art-scene::after { content: ""; display: block; height: clamp(90px, 32svh, 340px); }
.motion-story .game-visual { position: sticky; top: calc(50svh - var(--visual-height) / 2); opacity: var(--games-opacity, 1); }
.motion-story .game-info { transform: translateY(var(--details-drift, 0px)); }
@supports (animation-timeline: view()) and (animation-range: entry 0% entry 100%) {
  .motion-story .game-details { view-timeline-name: --details-view; }
  .motion-story .game-info { animation: details-arrival linear both; animation-timeline: --details-view; animation-range: entry 0% entry 80%; }
  @keyframes details-arrival {
    from { transform: translateY(36px); }
    to { transform: translateY(0); }
  }
}
/* Let the browser hold the copy during a swipe, including momentum scrolling. */
@media (pointer: coarse) {
  .motion-story .chapter-copy:not(.tall-chapter) {
    position: sticky;
    align-self: start;
    top: max(12px, calc(50svh - var(--copy-height, 0px) / 2));
    transform: translateY(var(--drop, 0px)) scale(var(--size, 1));
  }
}
@media (pointer: coarse) and (max-height: 490px) {
  .motion-story .chapter-inner { padding-block: max(24px, 8svh); }
}
@media (max-height: 490px) {
  .motion-story .return-line { padding-block: 0; }
}
