/* Alted. One night, one lamp, one silly dream.
   Night black and warm ink are the house; lamp orange is the only action colour;
   dream pink (the 레이트 체크아웃 neon) is for dreams, stickers and print misses. */
:root {
  --night: #07060c;
  --night-2: #110e1a;
  --dusk: #1d1629;
  --ground: #16121e;
  --line: #2b2536;
  --ink: #f1ead8;
  --ink-2: #c6bca4;
  --dim: #8a8194;
  --lamp: #ffb347;
  --lamp-top: #ffd98a;
  --lamp-low: #e08432;
  --dream: #ff7cc0;
  --dream-pale: #ffe1f0;
  --cyan: #6fd6ff;

  --display: "Bagel Fat One", "Black Han Sans", "Malgun Gothic", sans-serif;
  --body: "Gothic A1", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --head: "Gothic A1", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;  /* weight 800 */
  --pixel: "Galmuri14", "Gothic A1", monospace;    /* crisp at 15px only */
  --pixel-s: "Galmuri11", "Gothic A1", monospace;  /* crisp at 12px only */

  --px: 8px;          /* one art pixel on screen: integer scales only */
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --wrap: 1240px;
  color-scheme: dark;
}
@media (max-width: 1100px) { :root { --px: 6px; } }
@media (max-width: 760px)  { :root { --px: 4px; } }


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px dashed var(--lamp); outline-offset: 4px; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* one language at a time, whatever display a component sets */
html:not([lang="en"]) [lang-en], html[lang="en"] [lang-ko] { display: none !important; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .2s, box-shadow .2s; padding-top: env(safe-area-inset-top, 0px); }
.top.scrolled { background: rgba(7, 6, 12, .9); box-shadow: 0 2px 0 var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.nav .btn-lamp, .nav .btn-lamp:hover { color: var(--night); }
.btn.btn-s { padding: 7px 12px 6px; gap: 8px; box-shadow: 3px 3px 0 var(--dream); border-width: 2px; }
.btn.btn-s svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .btn.btn-s span { display: none !important; } .nav { gap: 12px; } }
.brand { flex: none; }
.brand img { height: 40px; width: 107px; max-width: none; }   /* the mark at 1x, never squeezed */
.nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); font-family: var(--pixel); font-size: 15px; }
.nav a { position: relative; color: var(--ink-2); transition: color .15s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--dream); }
.lang { display: inline-flex; border: 2px solid var(--line); }
.lang button { padding: 3px 8px; font-family: var(--pixel-s); font-size: 12px; color: var(--dim); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--night); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--pixel); font-size: 15px;
  padding: 14px 22px 13px; border: 3px solid #000; position: relative; transition: transform .12s, box-shadow .12s;
  box-shadow: 5px 5px 0 var(--dream); white-space: nowrap; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--dream); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--dream); }
.btn-ghost { box-shadow: 5px 5px 0 #000; }
.btn-ghost:hover { box-shadow: 7px 7px 0 #000; }
.btn-lamp { background: var(--lamp); color: var(--night); }
.btn-ghost { background: var(--ink); color: var(--night); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- B-movie devices ---------- */
.sticker { position: absolute; font-family: var(--display); color: var(--night); background: var(--dream); pointer-events: none;
  padding: .35em .7em .3em; transform: rotate(var(--r, -8deg)); box-shadow: 4px 4px 0 var(--night);
  border: 3px solid var(--night); line-height: 1; white-space: nowrap; z-index: 3; }
.burst { --c1: rgba(255, 179, 71, .16); --c2: transparent;
  background: repeating-conic-gradient(from 0deg, var(--c1) 0 7.5deg, var(--c2) 7.5deg 15deg); }
.dots { background-image: radial-gradient(var(--dream) 28%, transparent 30%); background-size: 10px 10px; }
.misprint { text-shadow: 3px 3px 0 rgba(111, 214, 255, .35); }

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: min(920px, 100svh); padding-top: 120px;
  background:
    radial-gradient(70% 60% at 72% 18%, rgba(255, 124, 192, .10), transparent 70%),
    linear-gradient(180deg, #05040a 0%, var(--night-2) 55%, var(--dusk) 100%);
  overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.moon { position: absolute; right: 7%; top: 110px; width: clamp(140px, 18vw, 260px); aspect-ratio: 1; border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 69%, transparent 70%); mask: radial-gradient(circle, #000 69%, transparent 70%);
  opacity: .5; z-index: -1; }
.hero .wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 24px; }
.tagline { align-self: center; padding-bottom: 6vh; display: flex; flex-direction: column; gap: 22px; }
.tagline h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 7.4vw, 112px); line-height: 1.02;
  letter-spacing: .02em; text-wrap: balance; -webkit-text-stroke: .045em var(--night-2); paint-order: stroke fill; }
.tagline h1 .nw { white-space: nowrap; }
.tagline h1 .hl { color: var(--dream); display: inline-block; transform: rotate(-3deg); }
.tagline .btn-row { margin-top: 10px; }
html[lang="en"] .tagline h1 { font-size: clamp(48px, 6.6vw, 100px); }

.scene { position: relative; height: calc(var(--px) * 64); justify-self: center; width: calc(var(--px) * 110); max-width: 100%; }
.ground { position: absolute; left: -100vw; right: -100vw; bottom: 0; height: calc(var(--px) * 4); background: var(--ground);
  border-top: calc(var(--px) / 2) solid #2a2333; }
.house { position: absolute; left: 0; bottom: calc(var(--px) * 4); width: calc(var(--px) * 40); }
.house .win { position: absolute; top: calc(var(--px) * 33); width: calc(var(--px) * 2); height: calc(var(--px) * 4);
  background: linear-gradient(var(--lamp-top) 0 25%, var(--lamp) 25% 75%, var(--lamp-low) 75%);
  box-shadow: 0 0 calc(var(--px) * 3) calc(var(--px) * .5) rgba(255, 179, 71, .45); animation: flick 7s steps(1) infinite; }
.house .win.a { left: calc(var(--px) * 16); }
.house .win.b { left: calc(var(--px) * 22); animation-delay: -3.3s; }
@keyframes flick { 0%, 100% { opacity: 1; } 61% { opacity: .55; } 62% { opacity: 1; } 63% { opacity: .7; } 64% { opacity: 1; } }
.house .glow { position: absolute; left: calc(var(--px) * 10); bottom: calc(var(--px) * -6); width: calc(var(--px) * 22); height: calc(var(--px) * 8);
  background: radial-gradient(closest-side, rgba(255, 179, 71, .25), transparent); }

.cat { position: absolute; left: calc(var(--px) * 46); bottom: calc(var(--px) * 4); width: calc(var(--px) * 44); height: calc(var(--px) * 18);
  background: url("/_astro/cat.7bf799ed86.png") 0 0 / calc(var(--px) * 176) calc(var(--px) * 18) no-repeat; image-rendering: pixelated;
  animation: nap 3.2s steps(1) infinite; cursor: pointer; }
.cat:hover, .cat.awake { animation: none; background-position: calc(var(--px) * -132) 0; }
@keyframes nap { 0% { background-position: 0 0; } 50% { background-position: calc(var(--px) * -44) 0; }
  88% { background-position: calc(var(--px) * -88) 0; } 94% { background-position: calc(var(--px) * -44) 0; } }
.zzz { position: absolute; left: calc(var(--px) * 82); bottom: calc(var(--px) * 21); font-family: var(--pixel); color: var(--ink-2);
  font-size: 15px; pointer-events: none; }
.zzz span:nth-child(n) { font-size: 15px; }
.zzz span { position: absolute; animation: zz 3.6s linear infinite; opacity: 0; }
.zzz span:nth-child(2) { animation-delay: 1.2s; font-size: 1.3em; }
.zzz span:nth-child(3) { animation-delay: 2.4s; font-size: 1.6em; }
@keyframes zz { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(calc(var(--px) * 5), calc(var(--px) * -10)); opacity: 0; } }
.cat.awake ~ .zzz, .cat:hover ~ .zzz { visibility: hidden; }

.dream { position: absolute; left: calc(var(--px) * 34); bottom: calc(var(--px) * 22); width: calc(var(--px) * 64); cursor: pointer; }
.dream:hover canvas { filter: brightness(1.12); }
.dream canvas { width: 100%; height: auto; image-rendering: pixelated; display: block; animation: bob 5s steps(2, jump-none) infinite; }
@keyframes bob { 50% { transform: translateY(calc(var(--px) * -1)); } }
.dream-caption { position: absolute; left: calc(var(--px) * 4); top: calc(var(--px) * -5); width: 224px; transform: rotate(-4deg);
  filter: drop-shadow(0 0 8px rgba(255, 124, 192, .55)); transition: transform .15s; }
.dream:hover .dream-caption { transform: rotate(-4deg) scale(1.04); }
.dream-caption img { width: 224px; height: 48px; }

.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 20px; height: 20px; z-index: 2;
  border-right: 3px solid var(--dim); border-bottom: 3px solid var(--dim); rotate: 45deg; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { translate: 0 6px; } }

/* ---------- game poster (home) ---------- */
.poster { position: relative; isolation: isolate; color: var(--ink); }
.poster .bg { position: absolute; inset: 0 0 0 28%; z-index: -2; }
.poster .bg img { width: 100%; height: 100%; object-fit: cover; }
.poster::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--night) 0%, var(--night) 28%, rgba(7, 6, 12, .35) 46%, rgba(7, 6, 12, 0) 70%),
              linear-gradient(0deg, var(--night) 0%, transparent 30%), linear-gradient(180deg, var(--dusk) 0%, transparent 18%); }
.poster .wrap { min-height: clamp(560px, 56vw, 760px); display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-block: 96px; }
.game-logo { width: calc(224px * var(--logo-x, 3)); height: auto; aspect-ratio: 224 / 48; max-width: none; filter: drop-shadow(0 0 10px rgba(255, 124, 192, .55)) drop-shadow(0 0 28px rgba(255, 124, 192, .25)); }

.poster .line { font-size: clamp(19px, 2vw, 24px); color: var(--ink); text-wrap: balance; font-weight: 700; }
.poster .genre { font-family: var(--pixel-s); font-size: 12px; color: var(--ink-2); letter-spacing: 1px; }
.poster .wish .sticker { --r: -14deg; left: -20px; top: -26px; font-size: 18px; }
@media (max-width: 480px) { .poster .wish .sticker { left: -6px; } }

/* ---------- film strip ---------- */
.strip { padding-block: 72px 24px; }
.reel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px var(--gutter);
  scrollbar-width: none; cursor: grab; background: #000;
  border-block: 14px solid #000; position: relative;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.reel::-webkit-scrollbar { display: none; }
.reel img { flex: none; width: clamp(280px, 38vw, 560px); aspect-ratio: 16 / 9; object-fit: cover; scroll-snap-align: center;
  border-radius: 2px; filter: saturate(1.05); user-select: none; -webkit-user-drag: none; transition: transform .2s; }
.reel img:hover { transform: scale(1.015); }
.sprockets { height: 14px; background: radial-gradient(circle at 50% 50%, #2a2333 3px, transparent 3.5px) 0 0 / 22px 14px repeat-x, #000; }

/* ---------- news ---------- */
.news { padding-block: 72px 96px; }
.news h2 { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 3vw, 40px); margin: 0 0 24px; }
.news ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); }
.news li a { display: grid; grid-template-columns: 110px minmax(0, 1fr) 28px; gap: 20px; align-items: baseline; padding: 22px 4px;
  border-bottom: 2px solid var(--line); transition: background .15s, padding .15s; }
.news li a:hover { background: var(--night-2); padding-left: 14px; }
.news time { font-family: var(--pixel-s); font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.news .t { font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; }
.news .go { color: var(--ink-2); font-family: var(--pixel); font-size: 15px; }
@media (max-width: 600px) { .news li a { grid-template-columns: minmax(0, 1fr) 20px; } .news time { grid-column: 1 / -1; } }

/* ---------- footer ---------- */
.foot { border-top: 2px solid var(--line); background: var(--night); }
.foot .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: end; padding-block: 48px; }
.mini-cat { width: 88px; height: 36px; background: url("/_astro/cat.7bf799ed86.png") 0 0 / 352px 36px; image-rendering: pixelated; animation: nap2 3.2s steps(1) infinite; }
@keyframes nap2 { 50% { background-position: -88px 0; } }
.foot .mail { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--pixel); font-size: 15px; color: var(--ink-2); }
.foot .mail a:hover { color: var(--lamp-top); }
.foot small { font-family: var(--pixel-s); color: var(--dim); font-size: 12px; display: flex; gap: 16px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- home: phones ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 96px; min-height: auto; }
  .hero .wrap { grid-template-columns: 1fr; gap: 120px; }
  .tagline { padding-bottom: 0; }
  .scene { justify-self: center; margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .scene { width: calc(var(--px) * 90); height: calc(var(--px) * 70); }
  .cat { left: calc(var(--px) * 42); }
  .zzz { left: calc(var(--px) * 80); }
  .dream { left: calc(var(--px) * 26); bottom: calc(var(--px) * 30); }
  .moon { display: none; }
  .poster .bg { inset: 0 0 auto 0; height: 300px; }
  .poster .bg img { object-position: 62% 50%; }
  .poster::before { background: linear-gradient(0deg, var(--night) 0%, var(--night) calc(100% - 300px), rgba(7, 6, 12, .1) calc(100% - 120px), var(--dusk) 100%); }
  .poster .wrap { min-height: 0; padding-top: 250px; padding-bottom: 64px; justify-content: flex-start; }
}

/* ---------- game page ---------- */
.g-hero { position: relative; min-height: min(760px, 88svh); display: grid; place-items: center; text-align: center; isolation: isolate; overflow: hidden; }
.g-hero .bg { position: absolute; inset: 0; z-index: -2; }
.g-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.g-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 55% at 50% 45%, rgba(7, 6, 12, .72), rgba(7, 6, 12, .9)), linear-gradient(0deg, var(--night), transparent 25%); }
.g-hero .inner { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 120px var(--gutter) 80px; }
.g-hero .game-logo { --logo-x: 4; }

.g-hero .say { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.15; text-wrap: balance; }
.g-hero .genre { font-family: var(--pixel-s); font-size: 12px; letter-spacing: 1px; color: var(--ink-2); }
.g-hero .btn-row { justify-content: center; }

.sec { padding-block: clamp(72px, 9vw, 128px); }
.about > p { font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin: 0 0 36px; color: var(--ink); }
.about .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .about .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.specs { display: flex; flex-wrap: wrap; gap: 14px 40px; font-family: var(--pixel); font-size: 15px; color: var(--ink-2); padding-block: 28px;
  border-block: 2px solid var(--line); }
.specs b { color: var(--ink); font-weight: 400; margin-right: 10px; }

.last-call { position: relative; text-align: center; padding-block: clamp(140px, 14vw, 200px) clamp(96px, 10vw, 140px); overflow: hidden; isolation: isolate; }
.last-call .burst { position: absolute; inset: -60%; z-index: -1; --c1: rgba(255, 124, 192, .08); animation: spin 90s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.last-call .btn-row { justify-content: center; }
.last-call .perch { position: relative; display: inline-block; }
.last-call .perch .catp { position: absolute; left: 50%; bottom: calc(100% - 6px); transform: translateX(-50%); width: 176px; height: 72px;
  background: url("/_astro/cat.7bf799ed86.png") 0 0 / 704px 72px; image-rendering: pixelated; animation: nap3 3.2s steps(1) infinite; }
@keyframes nap3 { 50% { background-position: -176px 0; } }

/* ---------- press page ---------- */
.p-head { padding: 140px 0 48px; background: linear-gradient(180deg, #05040a, var(--night-2)); }
.p-head h1 { font-family: var(--head); font-weight: 800; font-size: clamp(42px, 6vw, 84px); line-height: 1; margin: 0; }
.p-head .row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.facts-col { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.facts-col .facts { align-self: stretch; }
.p-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
@media (max-width: 900px) { .p-grid { grid-template-columns: 1fr; } }
.facts { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); border-top: 2px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 13px 0; border-bottom: 2px solid var(--line); }
.facts dt { font-family: var(--pixel-s); font-size: 12px; color: var(--dim); padding-top: 15px; }
.facts dd { font-weight: 700; }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.dl a { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 20px; min-height: 172px;
  background: var(--night-2); border: 3px solid var(--line); overflow: hidden; transition: border-color .15s, transform .15s; }
.dl a:hover { border-color: var(--lamp); transform: translateY(-3px); }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; } .dl a { min-height: 120px; } }
.dl a.all { grid-column: 1 / -1; background: var(--lamp); color: var(--night); border-color: var(--night); box-shadow: 6px 6px 0 #000; min-height: 140px; }
.dl a.all:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
.dl .name { font-family: var(--head); font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; }
.dl .meta { font-family: var(--pixel-s); font-size: 12px; opacity: .75; display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.dl .meta svg { width: 26px; height: 26px; }
.dl a:not(.all) .thumb { position: absolute; right: -10px; top: -10px; width: 46%; opacity: .22; transform: rotate(6deg); transition: opacity .2s; }
.dl a:hover .thumb { opacity: .6; }

.copybox { display: grid; gap: 14px; }
.copy { position: relative; background: var(--night-2); border: 2px solid var(--line); padding: 18px 64px 18px 18px; }
.copy p { margin: 0; max-width: 70ch; }
.copy .k { font-family: var(--pixel-s); font-size: 12px; color: var(--dim); display: block; margin-bottom: 6px; }
.copy button { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--line); color: var(--ink-2); }
.copy button:hover { border-color: var(--lamp); color: var(--lamp); }
.copy button.ok { color: var(--night); background: var(--lamp); border-color: var(--lamp); }
.copy svg { width: 20px; height: 20px; }

.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.logos figure { margin: 0; aspect-ratio: 16 / 9; display: grid; place-items: center; border: 2px solid var(--line); }
.logos figure.light { background: var(--ink); }
.logos figure.dark { background: var(--night); }
.logos figure.neon { background: #120d18; }
.logos img { width: calc(107px * 2); }
.logos .neon img { width: 224px; }
@media (max-width: 700px) { .logos { grid-template-columns: 1fr; } }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shots img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: outline-color .15s; outline: 3px solid transparent; outline-offset: -3px; }
.shots a:hover img { outline-color: var(--lamp); }
@media (max-width: 760px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mailto { display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-size: clamp(26px, 3.4vw, 46px); }
.mailto button { font-family: var(--pixel-s); font-size: 12px; border: 2px solid var(--line); padding: 6px 10px; color: var(--ink-2); }
.mailto button.ok { background: var(--lamp); color: var(--night); border-color: var(--lamp); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- trailer ---------- */
.trailer { position: relative; border: 6px solid #000; box-shadow: 12px 12px 0 rgba(255, 124, 192, .35); background: #000; }
.trailer video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }

/* ---------- press extras ---------- */
.mini-cat.big { width: 176px; height: 72px; background-size: 704px 72px; animation-name: nap3; }

/* ---------- game: the store description, read in one column ---------- */
.story { width: 100%; max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter);
  padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 64px; padding-top: 0; }
.story-part { display: flex; flex-direction: column; gap: 18px; }
.story-part h2 { font-family: var(--head); font-weight: 800; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; margin: 0 0 4px; text-wrap: balance; }
.story-part p { margin: 0; font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.story-part p.lead { font-family: var(--head); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; color: var(--ink); margin-bottom: 10px; }
.story-part p.notice { font-family: var(--pixel); font-size: 15px; line-height: 1.6; color: var(--dream-pale); background: #120d18;
  border: 2px solid var(--dream); box-shadow: 0 0 18px rgba(255, 124, 192, .25); padding: 14px 18px; text-align: center; }
.story-part img { margin-top: 10px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid #000; box-shadow: 8px 8px 0 rgba(0, 0, 0, .6); }
.story .sign { font-family: var(--head); font-weight: 800; font-size: clamp(24px, 3vw, 36px); color: var(--lamp-top); text-align: center; margin: 8px 0 0; text-wrap: balance; }
@media (min-width: 1100px) { .story-part img { width: calc(100% + 160px); margin-left: -80px; max-width: none; } }

/* Bagel Fat One (slogans only) is one heavy weight: a stroke in the ground colour, painted over the fill's edge, thins it */
.tagline h1, .g-hero .say { -webkit-text-stroke: .045em #120f1b; paint-order: normal; letter-spacing: .02em; }
.g-hero .say { -webkit-text-stroke-color: #0d0b14; }
.news h2, .story-part h2, .story-part p.lead, .story .sign, .p-head h1, .dl .name { letter-spacing: -.02em; }

/* game logo scales, widest first; whole multiples of its 224 x 48 pixels only */
@media (max-width: 1100px) { .g-hero .game-logo { --logo-x: 3; } }
@media (max-width: 760px) { .game-logo, .g-hero .game-logo { --logo-x: 2; } }
@media (max-width: 500px) { .game-logo, .g-hero .game-logo { --logo-x: 1; } }

/* ---------- news: test-build patch notes, opened in place ---------- */
.news details summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 110px minmax(0, 1fr) 28px; gap: 20px;
  align-items: baseline; padding: 22px 4px; border-bottom: 2px solid var(--line); transition: background .15s, padding .15s; }
.news details summary::-webkit-details-marker { display: none; }
.news details summary:hover { background: var(--night-2); padding-left: 14px; }
.news details[open] summary .go { transform: rotate(45deg); }
.news .go { display: inline-block; transition: transform .15s; text-align: center; }
.news .note { padding: 8px 4px 28px 134px; border-bottom: 2px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.news .note h3 { font-family: var(--head); font-weight: 800; font-size: 16px; color: var(--ink); margin: 22px 0 8px; }
.news .note h3:first-child { margin-top: 6px; }
.news .note ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.news .note ul ul { margin-top: 6px; }
.news .note b { color: var(--ink); }
.news .note p { margin: 0 0 8px; }
@media (max-width: 600px) {
  .news details summary { grid-template-columns: minmax(0, 1fr) 20px; }
  .news details summary time { grid-column: 1 / -1; }
  .news .note { padding-left: 4px; }
}

/* header on narrow phones: the mark keeps 1x, so the menu gives way (later than .nav so it wins) */
@media (max-width: 440px) { .nav a.nav-news { display: none; } }
@media (max-width: 380px) { .nav { gap: 8px; } .btn.btn-s { padding: 6px 9px 5px; } .lang button { padding: 3px 6px; } }
@media (max-width: 340px) { .nav { gap: 6px; } .lang button { padding: 3px 4px; } .top .wrap { gap: 8px; } }
