/* Smoke'Em: direction A "Vitres" (the in-game menu: warm black, red, bone,
   scratched glass) with a PS1 jewel case in the hero. */
:root {
  color-scheme: dark;
  --ink: #0B0A0D;
  --bg: #0E0B0C;
  --surface: #171213;
  --raised: #211A1B;
  --line: rgba(241, 234, 227, .18);
  --line-strong: rgba(241, 234, 227, .34);
  --fg: #F1EAE3;      /* bone */
  --ash: #A2948E;
  --accent: #E5202B;  /* red */
  --todo: #F2A33A;    /* placeholder markers only */
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --jp: "Reggae One", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --pixel: "Silkscreen", "Courier New", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--fg); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; font: 700 15px var(--display); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- placeholders (config.js) ---------- */
.todo { outline: 1.5px dashed var(--todo); outline-offset: 2px; color: var(--todo) !important; }
.todo-link { position: relative; }
.todo-link::after { content: "TODO"; position: absolute; top: -9px; right: -6px; background: var(--todo); color: var(--ink); font: 700 10px/1 var(--display); letter-spacing: .1em; padding: 3px 5px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 2px solid var(--fg); color: var(--fg); background: transparent; text-decoration: none; font: 700 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--fg); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary::before { content: ""; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; }
.btn.primary:hover { background: #c8121c; border-color: #c8121c; color: #fff; }
.btn.small { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn.small.primary::before { border-width: 5px; border-left-width: 7px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(11, 10, 13, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.logo { font: 700 24px/1 var(--display); letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.logo em { font-style: normal; color: var(--accent); }
.bar nav { display: flex; gap: 22px; flex: 1; }
.bar nav a { font: 600 14px var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ash); }
.bar nav a:hover { color: var(--fg); }
.bar .actions { display: flex; gap: 10px; margin-left: auto; }
@media (max-width: 860px) { .bar nav { display: none; } }
@media (max-width: 480px) { .bar .discord-top { display: none; } .bar .wrap { gap: 12px; } }

/* ---------- glass pane (the in-game menu panel) ---------- */
.glass {
  position: relative;
  background-color: rgba(14, 10, 11, .9);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  background-image:
    linear-gradient(115deg, rgba(241, 234, 227, .07) 0 11%, transparent 11.3%),
    linear-gradient(115deg, transparent 0 15%, rgba(241, 234, 227, .03) 15% 17%, transparent 17.2%),
    repeating-linear-gradient(63deg, transparent 0 37px, rgba(241, 234, 227, .035) 37px 38px, transparent 38px 91px),
    repeating-linear-gradient(-28deg, transparent 0 53px, rgba(241, 234, 227, .03) 53px 54px, transparent 54px 140px);
}
.tape { display: inline-block; background: var(--accent); color: #fff; font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; }
.kana { font-family: var(--jp); color: rgba(241, 234, 227, .22); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(860px, calc(100svh - 64px)); display: flex; align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 8, 9, .9) 0%, rgba(11, 8, 9, .5) 55%, rgba(11, 8, 9, .25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-grid { display: grid; grid-template-columns: auto minmax(0, 560px) minmax(0, 1fr); gap: clamp(14px, 2.5vw, 32px); align-items: center; width: 100%; }
.hero .kana { writing-mode: vertical-rl; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: .04em; align-self: stretch; }
.hero .glass { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero h1 { font-size: clamp(46px, 7vw, 84px); line-height: .92; letter-spacing: .005em; }
.hero .slogan-jp { font-family: var(--jp); font-size: clamp(17px, 2vw, 22px); color: var(--ash); margin-top: -6px; }
.hero .pitch { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; max-width: 44ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { font: 600 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.platforms span { color: var(--ash); }
@media (max-width: 860px) {
  .hero { min-height: 0; align-items: flex-start; }
  .hero-grid { grid-template-columns: auto minmax(0, 1fr); }
  .jewel-wrap { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .kana { writing-mode: horizontal-tb; font-size: 30px; align-self: auto; }
  .cta .btn { flex: 1 1 100%; }
  .jewel-wrap { width: min(78%, 300px); }
}

/* ---------- jewel case (a nod to the PS1 boot screen / CD case) ---------- */
.jewel-wrap { justify-self: center; width: min(100%, 400px); perspective: 1200px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.jewel { width: 100%; aspect-ratio: 1.13 / 1; display: grid; grid-template-columns: 26px minmax(0, 1fr); background: #15151b; border: 2px solid #3d3d4a; box-shadow: inset 0 0 0 2px #24242e, 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6); transform: rotateY(-14deg) rotateX(3deg) rotateZ(1deg); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .7, .2, 1); position: relative; }
.jewel-wrap:hover .jewel { transform: rotateY(-4deg) rotateX(1deg) rotateZ(0); }
@media (prefers-reduced-motion: reduce) { .jewel, .jewel-wrap:hover .jewel { transition: none; } }
.jewel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0 14%, rgba(255, 255, 255, 0) 14.4% 58%, rgba(255, 255, 255, .07) 58.4% 62%, rgba(255, 255, 255, 0) 62.4%); }
.jewel .spine { background: #101015; border-right: 2px solid #3d3d4a; writing-mode: vertical-rl; font: 400 10px/1 var(--pixel); letter-spacing: .12em; color: #d9d6e0; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.jewel .spine em { font-style: normal; color: var(--accent); }
.jewel .cover { position: relative; margin: 7px; overflow: hidden; background: #000; display: flex; flex-direction: column; justify-content: space-between; }
.jewel .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jewel .cover::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); z-index: 1; }
.jewel .strip { position: relative; z-index: 2; background: #000; color: #d9d6e0; font: 400 10px/1 var(--pixel); letter-spacing: .08em; display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; }
.jewel .ttl { position: relative; z-index: 2; align-self: flex-start; margin: 10px; background: var(--accent); color: #fff; font: 700 clamp(20px, 3vw, 30px)/1.1 var(--pixel); padding: 3px 9px; }
.jewel .ttl small { display: block; font: 400 10px/1.4 var(--pixel); letter-spacing: .08em; }
.press-start { font: 700 13px/1 var(--pixel); letter-spacing: .14em; color: #d9d6e0; text-shadow: 0 1px 0 #000; }
.press-start::before { content: "\25B6  "; color: var(--accent); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .press-start::before { animation: none; } }

/* ---------- sections ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(24px, 4vw, 40px); }
.eyebrow { font: 600 14px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.sec-head h2 .kana { font-weight: 400; font-size: .48em; margin-left: 12px; color: var(--ash); opacity: .8; vertical-align: middle; text-transform: none; }
.sec-head p { color: var(--ash); max-width: 62ch; }

/* trailer */
.trailer { padding-top: 0; }
.trailer-frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); background: #000; overflow: hidden; }
.trailer-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-frame button { position: absolute; inset: 0; width: 100%; background: none; border: 0; color: var(--fg); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font: 700 clamp(16px, 2vw, 22px) var(--display); letter-spacing: .12em; text-transform: uppercase; }
.trailer-frame button:disabled { cursor: default; }
.play { width: clamp(64px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.play::before { content: ""; border: 14px solid transparent; border-left: 22px solid #fff; border-right: 0; margin-left: 6px; }
.trailer-frame:not(.ready) .play { background: rgba(229, 32, 43, .35); }
.trailer-frame .note { font: 600 13px var(--display); letter-spacing: .1em; color: var(--todo); border: 1.5px dashed var(--todo); padding: 4px 10px; }
.trailer-frame.ready .note { display: none; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pillar { padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.pillar .num { font: 700 15px var(--display); letter-spacing: .14em; color: var(--accent); }
.pillar h3 { font-size: 28px; }
.pillar p { color: var(--fg); opacity: .92; font-size: 16.5px; }
.pillar .kana { position: absolute; right: 14px; top: 14px; writing-mode: vertical-rl; font-size: 22px; }
@media (max-width: 860px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* modes */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mode { position: relative; border: 1px solid var(--line-strong); display: flex; flex-direction: column; background: var(--surface); }
.mode .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mode .pic img { width: 100%; height: 100%; object-fit: cover; }
.mode .pic .kana { position: absolute; left: 10px; top: 10px; writing-mode: vertical-rl; font-size: 15px; color: rgba(241, 234, 227, .6); text-shadow: 0 1px 2px #000; }
.mode .band { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mode h3 { font-size: 26px; }
.mode p { font-size: 16px; }
.mode.featured { border: 2px solid var(--accent); }
.mode.featured .band { background: var(--accent); }
.mode.featured .flag { position: absolute; right: 10px; top: 10px; z-index: 1; }
.mode.featured .flag { background: var(--ink); color: var(--fg); font: 700 12px/1 var(--display); letter-spacing: .14em; padding: 5px 9px; text-transform: uppercase; border: 1px solid var(--accent); }
.mode:nth-child(1) { transform: rotate(-.5deg); } .mode:nth-child(3) { transform: rotate(.5deg); }
.more-modes { margin-top: 22px; color: var(--ash); max-width: 80ch; }
.more-modes b { color: var(--fg); font-family: var(--display); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 860px) { .modes { grid-template-columns: minmax(0, 1fr); } .mode:nth-child(n) { transform: none; } .mode .pic { aspect-ratio: 16 / 9; } }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.shot-link { display: block; border: 1px solid var(--line-strong); aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.shot-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.shot-link:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .shot-link img { transition: none; } }
.shots figcaption { font-size: 15px; color: var(--ash); }
.shots figcaption b { font: 700 16px var(--display); color: var(--fg); text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; }
.wip { margin-top: 16px; font-size: 14px; color: var(--ash); }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .shots { grid-template-columns: minmax(0, 1fr); } }

dialog#viewer { padding: 0; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); background: var(--ink); color: var(--fg); max-width: min(1200px, 94vw); width: 100%; }
dialog#viewer::backdrop { background: rgba(5, 4, 5, .88); }
dialog#viewer img { width: 100%; height: auto; }
dialog#viewer .vfoot { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
dialog#viewer p { flex: 1; color: var(--ash); font-size: 15px; }

/* fact sheet */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 14px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); padding-top: 2px; }
.facts dd { margin: 0; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts div { grid-template-columns: 116px minmax(0, 1fr); } }

/* discord band */
.discord { background: var(--accent); color: #fff; padding-block: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.discord .wrap { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; position: relative; }
.discord h2 { font-size: clamp(32px, 4.6vw, 52px); }
.discord p { max-width: 52ch; font-size: 18px; margin-top: 8px; }
.discord .grow { flex: 1 1 420px; }
.discord .btn { border-color: #fff; color: #fff; }
.discord .btn:hover { background: #fff; color: var(--accent); }
.discord .kana { position: absolute; right: -10px; bottom: -28px; font-size: clamp(80px, 14vw, 190px); color: rgba(0, 0, 0, .14); pointer-events: none; white-space: nowrap; }

/* press */
.press-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.press-grid .glass { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.press-grid h3 { font-size: 22px; }
.press-grid ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.press-grid li b { font: 600 14px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); margin-right: 8px; }
@media (max-width: 760px) { .press-grid { grid-template-columns: minmax(0, 1fr); } }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--ash); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
footer .fine { flex-basis: 100%; font-size: 13.5px; }

/* text pages (privacy, 404) */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) 80px; }
.doc .glass { padding: clamp(22px, 4vw, 40px); }
.doc h1 { font-size: clamp(36px, 6vw, 58px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { line-height: 1.6; }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 20px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.doc .meta { color: var(--ash); margin-bottom: 22px; }
.doc .summary { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 20px 0 8px; }
.doc a { text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.lost { min-height: calc(100svh - 64px); display: grid; place-items: center; position: relative; overflow: hidden; isolation: isolate; }
.lost .hero-bg { opacity: .5; }
.lost .glass { padding: 32px; max-width: 520px; margin: 40px var(--gutter); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.lost h1 { font-size: clamp(40px, 7vw, 68px); }
