/* By Gamess · V2 "Gece Atölyesi" (concept B, approved 18.11.2026).
   Plain CSS, self-hosted OFL fonts (Unbounded, Onest), no external requests, no JavaScript.
   World: charcoal room, raised trays, warm off-white ink, one coral for actions and the live state. */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 500 700;
  src: url(/assets/fonts/unbounded-latin-v1.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 500 700;
  src: url(/assets/fonts/unbounded-ext-v1.woff2) format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+20BA;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/assets/fonts/onest-latin-v1.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/assets/fonts/onest-ext-v1.woff2) format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+20BA;
}

:root {
  color-scheme: dark;
  --ground: #131417;
  --tray: #1C1E22;
  --tray-2: #25282D;
  --tray-hover: #202227;
  --line: rgba(242, 239, 234, 0.09);
  --ink: #F2EFEA;
  --ink-2: #A9ABB1;
  --accent: #FF7A59;
  --accent-hi: #FF9174;
  --accent-ink: #1E0E08;
  --accent-soft: rgba(255, 122, 89, 0.14);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 24px 48px -20px rgba(0, 0, 0, 0.7);
  --shadow-up: 0 4px 8px rgba(0, 0, 0, 0.3), 0 36px 64px -24px rgba(0, 0, 0, 0.85);
  --r-lg: 32px;
  --r-md: 22px;
  --r-sm: 14px;
  --display: "Unbounded", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Game worlds: only used as the floor of a game's stage, never for text or actions. */
  --kt-floor: #2A2340;
  --ns-floor: #3A2C25;
  --mine-floor: #4A4128;
  --dd-floor: #33283A;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

.tray { background: var(--tray); border-radius: var(--r-lg); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 5; padding-top: 14px; background: linear-gradient(var(--ground) 60%, transparent); }
.bar {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 0 10px 0 16px;
  background: rgba(28, 30, 34, 0.92);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -12px rgba(0,0,0,0.6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.mark {
  width: 38px; height: 38px; flex: none;
  background: var(--ink);
  -webkit-mask: url(/assets/img/logo-mono.png) center / contain no-repeat;
          mask: url(/assets/img/logo-mono.png) center / contain no-repeat;
}
.wordmark { font: 600 1.0625rem/1 var(--display); letter-spacing: -0.01em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink-2);
  transition: background-color 200ms, color 200ms;
}
.nav a:hover, .nav a[aria-current] { background: var(--tray-2); color: var(--ink); }
.lang { display: flex; padding: 4px; border-radius: 999px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 999px; text-decoration: none; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.04em; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--tray-2); color: var(--ink); }

/* ---------- Shared type and controls ---------- */
h1 {
  font-size: clamp(2.375rem, 4.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.lede { margin-top: 24px; max-width: 32em; font-size: clamp(1.125rem, 1.35vw, 1.25rem); color: var(--ink-2); }
.text-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; min-height: 44px;
  font-weight: 600; color: var(--accent); text-decoration: none; text-underline-offset: 5px;
}
.text-link:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.text-link svg { flex: none; transition: transform 300ms var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--tray-2); color: var(--ink-2);
}
.chip-live { background: var(--accent-soft); color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 1.0625rem/1 var(--text); text-decoration: none; text-align: center;
  transition: transform 200ms var(--ease), background-color 200ms, box-shadow 200ms;
}
.btn svg { flex: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -12px rgba(255, 122, 89, 0.8); }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(242, 239, 234, 0.2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
/* Not a link: a game that is not on the App Store yet. */
.btn-soon { color: var(--ink-2); background: var(--tray-2); cursor: default; }
.btn-soon:active { transform: none; }
.btn small { font: 500 0.875rem/1 var(--text); opacity: 0.8; }

.app-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 8px 20px -8px rgba(0,0,0,0.6); flex: none; }

/* ---------- Home hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(64px, 9vw, 128px);
}

.feature { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 0; }
.feature::before, .stage::before {
  content: ""; position: absolute; inset: auto -10% -30% -10%; height: 70%;
  background: radial-gradient(60% 60% at 50% 100%, rgba(255, 122, 89, 0.16), transparent 70%);
  pointer-events: none;
}
.feature-info { display: flex; align-items: center; gap: 18px; }
.feature h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 600; letter-spacing: -0.03em; margin-top: 6px; }
.feature-text { margin-top: 16px; color: var(--ink-2); max-width: 44ch; }

.feature-phones {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 32px; height: clamp(250px, 24vw, 340px);
}
.feature-phones img { border-radius: 20px 20px 0 0; box-shadow: 0 -6px 30px -8px rgba(0,0,0,0.6); }
.feature-phones img:nth-child(2) { margin-top: -22px; }
@media (prefers-reduced-motion: no-preference) {
  .feature-phones img, .stage-phones img, .stage-wide img { animation: rise 1100ms var(--ease) both; }
  .feature-phones img:nth-child(2), .stage-phones img:nth-child(2) { animation-delay: 90ms; }
  .feature-phones img:nth-child(3) { animation-delay: 180ms; }
}
@keyframes rise { from { transform: translateY(36px); } to { transform: none; } }

/* ---------- Sections ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2, .studio-text h2, .partners h2, .h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08;
}
.section-head p { color: var(--ink-2); font-size: 1.125rem; }
.block { padding-bottom: clamp(80px, 10vw, 144px); }

/* ---------- Games bento ---------- */
.games { padding-bottom: clamp(80px, 10vw, 144px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--tray); border-radius: var(--r-lg); text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow);
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease), background-color 450ms;
}
.card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), var(--shadow-up); background: var(--tray-hover); }
.card:active { transform: translateY(-2px) scale(0.995); }
.card-media img { transition: transform 700ms var(--ease); }
.card h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-top: 4px; }
.card-info p:not(.chip) { color: var(--ink-2); margin-top: 12px; max-width: 46ch; }
.card-title-row { display: flex; align-items: center; gap: 14px; }
.card-title-row .app-icon { width: 52px; height: 52px; border-radius: 13px; }

.card-dd { grid-column: 1 / -1; flex-direction: row; align-items: stretch; min-height: 440px; }
.card-dd .card-info, .card-mine .card-info { flex: 0 0 38%; padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.card-dd .app-icon { width: 64px; height: 64px; border-radius: 15px; margin-bottom: 20px; }
.card-dd h3 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); margin-top: 10px; }
.go { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.go svg { transition: transform 300ms var(--ease); }
.card:hover .go svg { transform: translateX(4px); }

.phones { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; overflow: hidden; }
.card-dd .phones { flex: 1; padding: 36px 36px 0 0; height: 440px; align-self: flex-end; }
.phones img { border-radius: 18px 18px 0 0; }
.card-dd .phones img:nth-child(2) { margin-top: 36px; }
.card:hover .phones img { transform: translateY(-10px); }
.card:hover .phones img:nth-child(2) { transition-delay: 40ms; }
.card:hover .phones img:nth-child(3) { transition-delay: 80ms; }

.card-ns { grid-column: span 7; }
.card-kt { grid-column: span 5; }
.card-ns .card-info, .card-kt .card-info { padding: 24px clamp(24px, 2.5vw, 32px) 32px; }
.wide { aspect-ratio: 1400 / 700; overflow: hidden; }
.wide img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .wide img { transform: scale(1.04); }
.card-kt .phones { height: 0; flex: 1 1 auto; min-height: 260px; padding: 28px 28px 0; background: linear-gradient(var(--kt-floor), var(--tray)); }
.card-kt .phones img:nth-child(2) { margin-top: 28px; }

/* Minefield Squad: no store screenshots yet, so its own logo stands on the game's sand-and-olive floor. */
.card-mine { grid-column: 1 / -1; flex-direction: row-reverse; align-items: stretch; min-height: 300px; }
.card-mine .card-info { flex-basis: 44%; }
.mine-field {
  flex: 1; display: grid; place-items: center; padding: 40px clamp(24px, 4vw, 64px);
  background:
    radial-gradient(80% 90% at 50% 40%, rgba(255, 232, 187, 0.10), transparent 70%),
    linear-gradient(160deg, var(--mine-floor), #2B261C 85%);
}
.mine-field img { width: min(100%, 440px); filter: drop-shadow(0 18px 24px rgba(0,0,0,0.45)); }
.card:hover .mine-field img { transform: translateY(-6px) rotate(-1deg); }

/* ---------- Studio ---------- */
.studio {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 72px);
  padding-bottom: clamp(80px, 10vw, 144px);
}
.studio-text p { margin-top: 22px; color: var(--ink-2); font-size: 1.1875rem; max-width: 38ch; }
.notes { list-style: none; padding: 10px clamp(20px, 2.5vw, 32px); }
.notes li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 22px 0; }
.notes li + li { border-top: 1px solid var(--line); }
.ico { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.notes h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; margin-top: 2px; }
.notes p { margin-top: 6px; color: var(--ink-2); max-width: 56ch; }
.workbench { grid-column: 1 / -1; }
.workbench img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.workbench figcaption { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- Partners ---------- */
.partners {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  padding: clamp(32px, 5vw, 72px);
  gap: clamp(32px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.partners::before {
  content: ""; position: absolute; inset: -40% 40% 40% -20%;
  background: radial-gradient(closest-side, rgba(255, 122, 89, 0.12), transparent);
  pointer-events: none;
}
.partners > * { position: relative; }
.partners-main p { margin-top: 20px; color: var(--ink-2); font-size: 1.1875rem; max-width: 44ch; }
.btn-mail { margin-top: 32px; min-height: 60px; padding: 0 28px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 100%; }
.presskit { align-self: end; padding: 28px; border-radius: var(--r-md); background: var(--tray-2); }
.presskit h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.presskit p { margin: 10px 0 22px; color: var(--ink-2); }

/* ---------- Game pages ---------- */
.back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 18px;
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.back:hover { color: var(--ink); }
.back svg { transition: transform 300ms var(--ease); }
.back:hover svg { transform: translateX(-3px); }

.game-hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-top: clamp(24px, 4vw, 64px); padding-bottom: clamp(64px, 8vw, 112px);
}
.game-hero.landscape { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.title-row { display: flex; align-items: center; gap: 20px; }
.title-row .app-icon { width: 88px; height: 88px; border-radius: 21px; }
.title-row .chip { margin-bottom: 8px; }
.note { margin-top: 16px; color: var(--ink-2); font-size: 0.9375rem; max-width: 52ch; }
.note strong { color: var(--ink); font-weight: 600; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.facts div { padding: 10px 16px; border-radius: var(--r-sm); background: var(--tray); box-shadow: inset 0 0 0 1px var(--line); }
.facts dt { font-size: 0.8125rem; color: var(--ink-2); }
.facts dd { font-weight: 600; }

.stage { position: relative; overflow: hidden; border-radius: var(--r-lg); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow); }
.stage-phones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 40px 40px 0; height: clamp(420px, 40vw, 560px); background: linear-gradient(var(--kt-floor), var(--tray) 90%); }
.stage-phones img { border-radius: 22px 22px 0 0; box-shadow: 0 -6px 30px -8px rgba(0,0,0,0.6); }
.stage-phones img:nth-child(2) { margin-top: 40px; }
.stage-wide { padding: clamp(16px, 2vw, 24px); background: linear-gradient(160deg, var(--ns-floor), var(--tray) 80%); }
.stage-wide img { width: 100%; border-radius: 20px; box-shadow: 0 16px 36px -16px rgba(0,0,0,0.7); }

.gallery-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); list-style: none; }
.gallery-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; }
.shot { padding: clamp(14px, 1.6vw, 20px); }
.shot img { width: 100%; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.gallery-phones .shot img { border-radius: 22px; width: min(100%, 300px); margin-inline: auto; }
.shot figcaption { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; padding-inline: 4px; }
.shot-kt { background: linear-gradient(var(--kt-floor), var(--tray) 70%); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 72px); align-items: start; }
.split-text p { margin-top: 22px; color: var(--ink-2); font-size: 1.1875rem; max-width: 38ch; }

.know { padding: clamp(28px, 4vw, 48px); }
.know h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.03em; }
.checks { list-style: none; margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; color: var(--ink-2); }
.checks svg { width: 24px; height: 24px; color: var(--accent); margin-top: 1px; }

.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); list-style: none; }
.mini {
  display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 18px 20px;
  background: var(--tray); border-radius: var(--r-md); text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow);
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease), background-color 450ms;
}
.mini:hover { transform: translateY(-4px); background: var(--tray-hover); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), var(--shadow-up); }
.mini .app-icon { width: 56px; height: 56px; border-radius: 14px; }
.mini h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.mini svg { margin-left: auto; color: var(--accent); flex: none; transition: transform 300ms var(--ease); }
.mini:hover svg { transform: translateX(4px); }
.contact-line { margin-top: 28px; color: var(--ink-2); }
.contact-line a { color: var(--accent); font-weight: 600; text-underline-offset: 4px; }

/* ---------- Press kit ---------- */
.press-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: end; padding-top: clamp(24px, 4vw, 64px); padding-bottom: clamp(64px, 8vw, 112px); }
.download { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 36px); }
.download::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 90%; background: radial-gradient(50% 50% at 50% 100%, rgba(255, 122, 89, 0.14), transparent 70%); pointer-events: none; }
.download > * { position: relative; }
.download h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.download ul { list-style: none; margin: 16px 0 24px; display: grid; gap: 8px; color: var(--ink-2); }
.download li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.download li svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.download .btn { width: 100%; }
.download .fine { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }

.sheet { padding: 8px clamp(20px, 2.5vw, 32px); }
.sheet div { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2.4fr); gap: 16px; padding: 18px 0; }
.sheet div + div { border-top: 1px solid var(--line); }
.sheet dt { color: var(--ink-2); font-size: 0.9375rem; padding-top: 1px; }
.sheet dd a { color: var(--accent); text-underline-offset: 4px; }
.sheet .games-list { list-style: none; display: grid; gap: 6px; }
.sheet .games-list span { color: var(--ink-2); }
.split-text .boiler { margin-top: 22px; padding: 22px 24px; border-radius: var(--r-md); background: var(--tray); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); max-width: 46ch; }

.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); list-style: none; }
.logo-tile { overflow: hidden; }
.logo-tile .swatch { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 28px; }
.logo-tile .swatch img { width: min(62%, 220px); }
.swatch-dark { background: var(--ground); box-shadow: inset 0 -1px 0 var(--line); }
.swatch-light { background: var(--ink); }
.swatch-orig { background: var(--ground); box-shadow: inset 0 -1px 0 var(--line); }
.swatch-orig img { border-radius: 22px; box-shadow: 0 12px 28px -12px rgba(0,0,0,0.7); }
.logo-tile .meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 22px; }
.logo-tile h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.logo-tile .meta p { color: var(--ink-2); font-size: 0.875rem; }
.dl {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 16px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(242, 239, 234, 0.2); flex: none;
  transition: box-shadow 200ms, transform 200ms var(--ease);
}
.dl:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dl:active { transform: scale(0.97); }

.press-games { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.press-game { padding: clamp(22px, 3vw, 36px); }
.press-game header { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; }
.press-game header .app-icon { width: 64px; height: 64px; border-radius: 15px; }
.press-game h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em; margin-top: 4px; }
.press-game .links { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.press-game > p { margin-top: 16px; color: var(--ink-2); max-width: 62ch; }
.thumbs { display: grid; gap: 12px; margin-top: 24px; list-style: none; }
.thumbs.portrait { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.thumbs.landscape { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thumbs a { display: block; position: relative; border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 0 0 0 1px var(--line); }
.thumbs img { width: 100%; transition: transform 500ms var(--ease), opacity 300ms; }
.thumbs a::after {
  content: "JPG ↓"; position: absolute; right: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px;
  background: rgba(19, 20, 23, 0.86); color: var(--ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(4px); transition: opacity 250ms, transform 250ms var(--ease);
}
.thumbs a:hover img { transform: scale(1.03); }
.thumbs a:hover::after, .thumbs a:focus-visible::after { opacity: 1; transform: none; }
.thumbs-note { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }
.empty-shots { margin-top: 24px; padding: 22px 24px; border-radius: var(--r-md); background: var(--tray-2); color: var(--ink-2); }

/* ---------- 404 ---------- */
.lost { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }
.lost .alt { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); max-width: 44ch; }
.lost .alt strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }
.lost-tray { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px); }
.lost-tray::before { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 80%; background: radial-gradient(60% 60% at 50% 100%, rgba(255, 122, 89, 0.14), transparent 70%); pointer-events: none; }
.lost-code { position: relative; font: 600 clamp(5rem, 12vw, 9rem)/0.9 var(--display); letter-spacing: -0.05em; color: var(--tray-2); text-shadow: 0 1px 0 rgba(255,255,255,0.05); }
.lost-list { position: relative; list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.lost-list a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px 10px 10px; border-radius: var(--r-sm); background: var(--tray-2); text-decoration: none; font-weight: 600; transition: background-color 200ms; }
.lost-list a:hover { background: #2D3036; }
.lost-list img { width: 44px; height: 44px; border-radius: 11px; }
.lost-list svg { margin-left: auto; color: var(--accent); }

/* ---------- Footer ---------- */
.site-foot { padding: clamp(56px, 7vw, 96px) 0 44px; }
.foot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; padding-top: 28px; background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.site-foot .mark { width: 32px; height: 32px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; }
.foot-nav a:hover { background: var(--tray); color: var(--ink); }
.copy { margin-left: auto; color: var(--ink-2); font-size: 0.9375rem; }

@media (prefers-reduced-motion: reduce) {
  .card, .mini, .card-media img, .btn, .go svg, .text-link svg, .back svg, .thumbs img, .mine-field img { transition: none; }
  .card:hover, .mini:hover { transform: none; }
  .card:hover .phones img, .card:hover .wide img, .card:hover .mine-field img, .thumbs a:hover img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero, .game-hero, .game-hero.landscape, .press-hero, .lost { grid-template-columns: 1fr; }
  .card-dd, .card-mine { flex-direction: column; min-height: 0; }
  .card-dd .card-info, .card-mine .card-info { flex: none; }
  .card-dd .phones { height: 380px; padding: 0 28px; }
  .card-ns, .card-kt { grid-column: 1 / -1; }
  .card-kt .phones { height: 340px; flex: none; }
  .studio, .split { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .presskit { align-self: start; }
  .stage-phones { height: 460px; max-width: 560px; }
  .game-hero .stage { max-width: 640px; }
  .others { grid-template-columns: 1fr; }
  .thumbs.portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lost-tray { max-width: 560px; }
}

@media (max-width: 720px) {
  .site-head { padding-top: 10px; }
  .bar { flex-wrap: wrap; border-radius: 26px; padding: 6px 6px 6px 14px; gap: 0 8px; }
  .nav { order: 3; width: 100%; margin: 2px -4px 0; justify-content: space-between; }
  .nav a { padding: 0 10px; font-size: 0.9375rem; }
  .lang { margin-left: auto; }
  .lang a { min-width: 44px; }
  .hero { padding-top: 32px; gap: 36px; }
  .lede { margin-top: 18px; }
  .hero-text .text-link { display: inline-block; margin-top: 20px; line-height: 1.5; padding-block: 8px; }
  .hero-text .text-link svg { display: inline; vertical-align: -4px; margin-left: 6px; }
  .feature { padding: 22px 20px 0; border-radius: 26px; }
  .app-icon { width: 64px; height: 64px; border-radius: 15px; }
  .actions .btn { flex: 1 1 auto; }
  .feature-phones { gap: 10px; height: 230px; margin-top: 26px; }
  .feature-phones img { border-radius: 14px 14px 0 0; }
  .feature-phones img:nth-child(2) { margin-top: -14px; }
  .card, .tray, .stage { border-radius: 26px; }
  .card-dd .card-info, .card-mine .card-info { padding: 24px 22px; }
  .card-dd .phones { height: 280px; padding: 0 18px; gap: 10px; }
  .card-dd .phones img:nth-child(2) { margin-top: 20px; }
  .phones img { border-radius: 12px 12px 0 0; }
  .card-ns .card-info, .card-kt .card-info { padding: 20px 22px 26px; }
  .card-kt .phones { height: 300px; padding: 20px 20px 0; gap: 10px; }
  .mine-field { padding: 32px 24px; }
  .notes { padding: 4px 18px; }
  .notes li { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; }
  .workbench img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 62% 50%; border-radius: 26px; }
  .partners { padding: 28px 20px 20px; }
  .btn-mail { width: 100%; padding: 0 16px; }
  .presskit { padding: 22px; }
  .copy { margin-left: 0; width: 100%; }

  .game-hero { padding-top: 12px; gap: 36px; }
  .title-row { gap: 16px; }
  .title-row .app-icon { width: 72px; height: 72px; border-radius: 17px; }
  .facts div { flex: 1 1 40%; }
  .stage-phones { height: 360px; padding: 24px 22px 0; gap: 12px; }
  .stage-phones img { border-radius: 16px 16px 0 0; }
  .stage-phones img:nth-child(2) { margin-top: 28px; }
  .stage-wide { padding: 10px; }
  .stage-wide img { border-radius: 16px; }
  /* Screenshot rows scroll sideways inside their own lane on phones; the page itself never does. */
  .gallery-phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .gallery-phones::-webkit-scrollbar { display: none; }
  .gallery-phones > li { flex: 0 0 68%; scroll-snap-align: start; }
  .gallery-wide { grid-template-columns: 1fr; }
  .shot { padding: 12px; }
  .checks { grid-template-columns: 1fr; }
  .know { padding: 26px 22px; }
  .mini { min-height: 84px; padding: 14px 16px 14px 14px; }

  .sheet div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .logos { grid-template-columns: 1fr; }
  .logo-tile .swatch { aspect-ratio: 16 / 9; }
  .press-game header .links { margin-left: 0; width: 100%; }
  .press-game header .links .dl { flex: 1 1 auto; }
  .thumbs.portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .thumbs.landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .thumbs a { border-radius: 12px; }
  .lost-code { font-size: 5.5rem; }
  .download .btn { flex-wrap: wrap; gap: 4px 10px; padding: 14px 20px; line-height: 1.25; }
  .download .btn small { flex-basis: 100%; }
}

/* ---------- Delivery Days and Minefield Squad pages ----------
   Written by tools/build_game_pages.py around texts copied word for word from the game projects.
   Game page: hero, feature trays, chapter tiles, "good to know"; the English part sits below (#en).
   Policy and support pages: a long-form reading column with a sticky table of contents on wide screens. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.stage-dd { background: linear-gradient(var(--dd-floor), var(--tray) 90%); }
.shot-dd { background: linear-gradient(var(--dd-floor), var(--tray) 70%); }
.mine-stage {
  display: grid; place-items: center; min-height: clamp(320px, 34vw, 480px); padding: 48px clamp(24px, 4vw, 64px);
  background:
    radial-gradient(80% 90% at 50% 40%, rgba(255, 232, 187, 0.10), transparent 70%),
    linear-gradient(160deg, var(--mine-floor), #2B261C 85%);
}
.mine-stage img { position: relative; width: min(100%, 460px); filter: drop-shadow(0 18px 24px rgba(0,0,0,0.45)); }

.block-sm { padding-bottom: clamp(56px, 7vw, 96px); }
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.feature-grid li { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-md); }
.feature-grid h3 { margin-top: 20px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.feature-grid p { margin-top: 8px; color: var(--ink-2); }

.tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.tiles li {
  display: flex; align-items: center; min-height: 72px; padding: 16px 22px; border-radius: var(--r-md);
  background: var(--tray); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; line-height: 1.35;
}
.tiles-chapters li { box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px var(--line); }
.tiles-chapters li.soon { background: transparent; color: var(--ink-2); font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--line); border: 1.5px dashed rgba(242, 239, 234, 0.16); }
.tiles-worlds li:nth-child(1) { box-shadow: inset 3px 0 0 #9AAE5E, inset 0 0 0 1px var(--line); }
.tiles-worlds li:nth-child(2) { box-shadow: inset 3px 0 0 #E2B568, inset 0 0 0 1px var(--line); }
.tiles-worlds li:nth-child(3) { box-shadow: inset 3px 0 0 #CFE3F0, inset 0 0 0 1px var(--line); }

.prose { color: var(--ink-2); font-size: 1.125rem; max-width: 60ch; }
.link-row { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); }
.link-row a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; text-underline-offset: 4px; }
.link-row a:hover { text-decoration-thickness: 2px; }
.know > .checks:first-child { margin-top: 0; }
section > .link-row:first-child { margin-top: 0; }

.lang-sep { border: 0; height: 1px; margin: 0 0 clamp(56px, 7vw, 96px); background: var(--line); }
.en-head { padding-bottom: clamp(40px, 5vw, 64px); }
.en-head .h2 { margin-top: 14px; }
.en-head .lede { margin-top: 18px; }
.en-head .actions { margin-top: 26px; }

/* Game tabs under the site header (policy and support pages) */
.game-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding-top: clamp(20px, 3vw, 36px); }
.game-id { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font: 600 1.0625rem/1.2 var(--display); letter-spacing: -0.02em; }
.game-id img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.game-tabs { display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 999px; background: var(--tray); box-shadow: inset 0 0 0 1px var(--line); }
.game-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink-2); transition: background-color 200ms, color 200ms; }
.game-tabs a:hover { color: var(--ink); }
.game-tabs a[aria-current] { background: var(--tray-2); color: var(--ink); }

/* Long-form document */
.doc-page { padding-top: clamp(28px, 4vw, 56px); }
.doc { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 40rem; font-size: 1.0625rem; line-height: 1.7; }
.doc h1 { font-size: clamp(2.125rem, 4vw, 3.25rem); }
.doc h2 { margin: 40px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(1.3125rem, 1.9vw, 1.625rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.doc h3 { margin: 32px 0 10px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--accent); }
.doc ol > li::marker { font-weight: 600; font-size: 0.9375em; }
.doc a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a:hover { text-decoration-thickness: 2px; }
.doc strong { font-weight: 600; }
.doc em { font-style: normal; color: var(--ink); background: var(--tray-2); padding: 1px 6px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.doc code { font: 0.9em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--tray-2); padding: 2px 6px; border-radius: 6px; }
.doc .muted { color: var(--ink-2); }
.doc h1 + .muted { margin-top: 18px; font-size: 0.9375rem; }
.doc .lead { margin-top: 10px; margin-bottom: 0; color: var(--ink-2); font-size: clamp(1.125rem, 1.35vw, 1.25rem); line-height: 1.6; }
.doc h1 + .lead { margin-top: 22px; }
.doc .small { font-size: 0.9375rem; }
.doc .flush { margin-bottom: 0; }
.doc .spaced { margin-top: 36px; }
.doc :target { scroll-margin-top: 112px; }
.doc h2:target { color: var(--accent); }

.doc .box { margin: 36px 0 0; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-md); background: var(--tray); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow); }
.doc .box h2 { margin: 0 0 14px; padding: 0; border: 0; font-size: 1.25rem; }
.doc .box > :last-child { margin-bottom: 0; }

.doc .toc { margin: 28px 0 0; padding: 14px 18px; border-radius: var(--r-md); background: var(--tray); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9375rem; line-height: 1.35; }
.doc .toc ol { margin: 0; padding-left: 2em; }
.doc .toc li + li { margin-top: 0; }
.doc .toc li::marker { color: var(--ink-2); font-size: 0.875em; font-weight: 500; }
.doc .toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; color: var(--ink-2); text-decoration: none; }
.doc .toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }

.doc details { margin: 0 0 10px; border-radius: var(--r-sm); background: var(--tray); box-shadow: inset 0 0 0 1px var(--line); }
.doc details[open] { box-shadow: inset 0 0 0 1px rgba(242, 239, 234, 0.16); }
.doc summary {
  position: relative; display: flex; align-items: center; min-height: 58px; padding: 14px 56px 14px 20px;
  font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; border-radius: var(--r-sm);
}
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg);
  transition: transform 250ms var(--ease);
}
.doc details[open] > summary::after { transform: translate(0, 4px) rotate(225deg); }
.doc summary:hover { background: var(--tray-hover); }
.doc details > :not(summary) { margin-inline: 20px; }
.doc details > :last-child { margin-bottom: 0; padding-bottom: 18px; }
.doc details ol, .doc details ul { padding-left: 1.4em; }
.doc details + :not(details) { margin-top: 0; }
.doc h2 + details { margin-top: 4px; }

@media (min-width: 1100px) {
  /* Table of contents moves to a sticky column on the left; reading column stays ~70 characters wide. */
  .doc { grid-template-columns: 16rem minmax(0, 42rem); column-gap: clamp(48px, 5vw, 96px); max-width: none; }
  .doc > * { grid-column: 2; }
  .doc > .toc { grid-column: 1; grid-row: 1 / span 400; align-self: start; position: sticky; top: 112px; margin-top: 8px; }
}
@media (min-width: 721px) and (max-width: 1099px) {
  .doc .toc ol { columns: 2; column-gap: 32px; }
  .doc .toc li { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  .doc summary::after, .game-tabs a { transition: none; }
}
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mine-stage { max-width: 640px; }
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 20px; }
  .feature-grid .ico { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; }
  .feature-grid h3 { margin-top: 0; }
  .feature-grid p { margin-top: 0; }
  .mine-stage { min-height: 240px; padding: 36px 24px; }
  .game-bar { gap: 6px 12px; }
  .game-tabs { margin-left: 0; width: 100%; }
  .game-tabs a { flex: 1 1 0; justify-content: center; padding: 0 10px; }
  .doc h2 { margin-top: 36px; padding-top: 24px; }
  .doc .box { border-radius: 22px; }
  .doc summary { padding-left: 18px; }
  .doc details > :not(summary) { margin-inline: 18px; }
}
