@font-face {
  font-family: "Axiom Display";
  src: url("fonts/AxiomDisplay-Heavy-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Axiom Text";
  src: url("fonts/NotoSans-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Axiom Text";
  src: url("fonts/NotoSans-Bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0a0b09;
  --panel: #12140f;
  --panel-2: #191c15;
  --line: #2e3228;
  --line-strong: #4a5040;
  --bone: #ece6d4;
  --dim: #b3b09f;
  --focus: #ffd66b;
  --accent: #f0b429;
  --on-accent: #14160f;
  --display: "Axiom Display", "Arial Narrow", Impact, sans-serif;
  --text: "Axiom Text", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --radius: 6px;
}
[data-product="sc"] { --accent: #f0b429; --on-accent: #14160f; }
[data-product="ep"] { --accent: #93c58a; --on-accent: #0c140d; }
[data-product="im"] { --accent: #7db4f5; --on-accent: #0a1626; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
html, body { margin: 0; background: var(--ink); color: var(--bone); }
body { font-family: var(--text); font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.in { width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* language: the hidden one is out; the shown one keeps its own display */
body:not(.lang-en) [data-en], body.lang-en [data-tr] { display: none !important; }

.skip { position: absolute; left: var(--gutter); top: -80px; z-index: 30; padding: 10px 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.skip:focus { top: 10px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(10, 11, 9, 0.92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .bar { background: rgba(10, 11, 9, 0.8); backdrop-filter: blur(10px); } }
.bar .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.home { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-size: 26px; color: var(--bone); text-decoration: none; }
.home:hover { color: var(--accent); }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.lang button { appearance: none; border: 0; background: transparent; color: var(--dim); min-width: 52px; min-height: 40px; font: 700 14px/1 var(--text); letter-spacing: 0.04em; cursor: pointer; }
.lang button + button { border-left: 1px solid var(--line-strong); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.lang button:focus-visible { outline-offset: -3px; }

/* policy pages */
.doc main { padding-bottom: 56px; }
.plate { padding: 44px 0 28px; border-bottom: 1px solid var(--line); }
.plate-in { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; max-width: 760px; }
.plate-in img { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); }
.plate h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 9.6vw, 68px); line-height: 1;  text-wrap: balance; }
.plate h1 .prod { display: block; }
.plate h1 .sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plate .meta { grid-column: 1 / -1; margin: 6px 0 0; color: var(--dim); font-size: 15px; }
@media (min-width: 640px) { .plate-in { grid-template-columns: 96px 1fr; gap: 28px; } .plate-in img { width: 96px; height: 96px; border-radius: 22px; } .plate .meta { grid-column: 2; } }
.plate { border-top: 4px solid var(--accent); }

.toc { max-width: 760px; margin: 28px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.toc summary { display: flex; align-items: center; min-height: 52px; padding: 0 16px; font-weight: 700; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform 0.15s ease; }
.toc[open] summary::after { transform: rotate(-135deg); }
.toc ol { margin: 0; padding: 4px 16px 14px 44px; }
.toc li { margin: 0; }
.toc li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--bone); text-decoration: none; }
.toc li a:hover { color: var(--accent); text-decoration: underline; }
.toc li::marker { color: var(--dim); font-size: 14px; }

.prose { max-width: 760px; padding-top: 8px; }
.prose p, .prose ul { max-width: 68ch; margin: 0 0 16px; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 0 0 9px; }
.prose li::marker { color: var(--accent); }
.prose h2 { display: flex; gap: 14px; align-items: baseline; margin: 48px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: clamp(28px, 6.4vw, 36px); line-height: 1.1; text-wrap: balance; }
.prose h2 .num { flex: none; min-width: 1.9em; color: var(--accent); font-size: 0.85em; font-variant-numeric: tabular-nums; }
.prose h2:first-child, .prose > p:first-child + h2 { margin-top: 36px; }
.prose strong { color: var(--bone); }
.prose a.mail, .prose code { font-family: var(--text); font-size: inherit; color: var(--accent); background: none; padding: 0; overflow-wrap: anywhere; }
.prose code { color: var(--bone); background: var(--panel-2); padding: 1px 7px; border-radius: 4px; }
.prose a { overflow-wrap: anywhere; }

/* data table: rows stand as records on narrow screens */
.table-wrap { margin: 8px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table th { color: var(--dim); font-size: 13.5px; font-weight: 700; background: var(--panel-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.js .table, .js .table tbody, .js .table tr, .js .table td { display: block; }
.js .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.js .table tbody tr { padding: 14px 16px 6px; border-bottom: 1px solid var(--line); }
.js .table tbody tr:last-child { border-bottom: 0; }
.js .table td { padding: 0 0 10px; border: 0; }
.js .table td:first-child { font-size: 16px; color: var(--bone); }
.js .table td + td { color: var(--dim); }
.js .table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 1px; color: var(--accent); font-size: 13px; font-weight: 700; }
.js .table td:first-child::before { display: none; }
@media (min-width: 900px) {
  .prose, .plate-in, .toc { max-width: 860px; }
  .js .table { display: table; }
  .js .table thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: table-header-group; }
  .js .table tbody { display: table-row-group; }
  .js .table tr { display: table-row; }
  .js .table td { display: table-cell; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .js .table tbody tr { padding: 0; border: 0; }
  .js .table tbody tr:last-child td { border-bottom: 0; }
  .js .table td:first-child { width: 46%; font-size: inherit; }
  .js .table td[data-label]::before { display: none; }
  .js .table td + td { color: var(--bone); }
}

.contact { max-width: 760px; margin: 48px 0 0; padding: 22px 22px 8px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.prose .contact h2 { margin: 0 0 10px; padding: 0; border: 0; }

.doc-foot { border-top: 1px solid var(--line); padding: 26px 0 48px; color: var(--dim); font-size: 15px; }
.doc-foot .in { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.doc-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bone); }
.doc-foot a:hover { color: var(--accent); }
.doc-foot span { margin-right: auto; }

/* home */
.page-index .in { width: min(1320px, 100% - 2 * var(--gutter)); }
.marquee { display: flex; flex-direction: column; min-height: calc(100svh - 61px); }
.marquee-head { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 18px 0; }
.marquee-head img { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: screen; }
.marquee-head h1 { margin: 0; font-family: var(--display); font-size: clamp(34px, 8.6vw, 60px); line-height: 1; text-wrap: balance; }
.marquee-head p { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 17px; line-height: 1.45; }
.bills { flex: 1; display: flex; flex-direction: column; min-height: 500px; }
.bill { position: relative; flex: 1 1 0; display: flex; align-items: flex-end; overflow: hidden; color: var(--bone); text-decoration: none; transition: flex-grow 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bill > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); animation: bill-wipe 0.9s cubic-bezier(0.7, 0, 0.2, 1) both; }
.bill[data-product="ep"] > img { object-position: 40% 45%; animation-delay: 0.12s; }
.bill[data-product="sc"] > img { object-position: 24% 42%; }
.bill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 6, 0.72), rgba(8, 8, 6, 0) 62%); }
.bill-in { position: relative; z-index: 1; padding-bottom: 14px; }
.bill-name { display: block; font-family: var(--display); font-size: clamp(54px, 15.5vw, 136px); line-height: 0.95; }
.bill-fact { display: block; color: var(--accent); font-size: 17px; font-weight: 700; line-height: 1.4; }
.bill:focus-visible { outline-offset: -6px; }
@media (hover: hover) {
  .bill:hover { flex-grow: 1.4; }
  .bill:hover > img { transform: scale(1.03); }
  .bill:hover .bill-name { color: var(--accent); }
}
@keyframes bill-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.game { display: flex; align-items: center; padding: 72px 0; }
.game[data-product="sc"] { background: #2a1207; }
.game[data-product="ep"] { background: #0e1b13; }
.game-head { display: grid; gap: 24px; margin-bottom: 32px; }
.game-title { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.game-title img { width: 64px; height: 64px; border-radius: 14px; }
.game h2, .closing h2 { margin: 0; font-family: var(--display); font-size: clamp(46px, 11vw, 92px); line-height: 0.98; }
.game .line { margin: 16px 0 0; font-size: 19px; line-height: 1.5; max-width: 42ch; }
.stores { display: grid; gap: 12px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 22px; border-radius: var(--radius); font-size: 17px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; transition: transform 0.15s ease, filter 0.15s ease; }
a.btn { background: var(--accent); color: var(--on-accent); }
a.btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
a.btn:active { transform: translateY(0); }
.btn.soon { border: 1px solid rgba(147, 197, 138, 0.45); color: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 10px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bone); font-size: 16px; }
.links a:hover { color: var(--accent); }

.frame { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--panel-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
@media (hover: hover) { .frame:hover img { transform: scale(1.03); } }
.shots { display: grid; gap: 12px; }
.shots .frame { aspect-ratio: 1200 / 552; }

.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; list-style: none; margin: 0; padding: 0; }
.crew .frame { aspect-ratio: 16 / 9; }
.crew h3 { margin: 10px 0 0; font-family: var(--display); font-size: clamp(22px, 5.6vw, 34px); line-height: 1.05; }

.closing { padding: 64px 0 36px; background: #0c1626; }
.closing-app { display: grid; gap: 24px; }
.closing-title { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.closing-title img { width: 64px; height: 64px; border-radius: 14px; }
.closing h2 { font-size: clamp(42px, 10vw, 76px); }
.closing .line { margin: 16px 0 0; font-size: 18px; line-height: 1.5; max-width: 46ch; }
.site-foot { display: flex; align-items: center; gap: 14px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(125, 180, 245, 0.25); color: var(--dim); font-size: 15px; }
.site-foot img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: screen; }

@media (min-width: 900px) {
  .marquee-head { grid-template-columns: 84px auto 1fr; gap: 24px; padding: 20px 0; }
  .marquee-head img { width: 84px; height: 84px; }
  .marquee-head p { grid-column: auto; justify-self: end; max-width: 38ch; font-size: 18px; text-align: right; }
  .bill-in { padding-bottom: 18px; }
  .bill[data-product="sc"] > img { width: 132%; max-width: none; object-position: 0 72%; transform-origin: 0 50%; }
  .bill-name { font-size: clamp(96px, 8.6vw, 124px); }
  .game { min-height: 100svh; padding: 88px 0 56px; }
  .game-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 36px; }
  .game-title { grid-template-columns: 88px 1fr; gap: 22px; }
  .game-title img { width: 88px; height: 88px; border-radius: 20px; }
  .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .shots { height: min(50svh, 520px); }
  .shots .frame { aspect-ratio: auto; min-height: 0; }
  .shots .frame:first-child { grid-row: 1 / span 2; }
  .crew .frame { aspect-ratio: 4 / 3; }
  .crew { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .closing-app { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: end; }
  .closing-title { grid-template-columns: 88px 1fr; gap: 22px; }
  .closing-title img { width: 88px; height: 88px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
