@font-face { font-family: "Press Start 2P"; src: url("assets/fonts/PressStart2P-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #08080a; --panel: #0f0f12; --line: #2b2b30;
  --fg: #c4c4bc; --hi: #ffffff; --dim: #74746e; --red: #e8402c;
  --px: "Press Start 2P", ui-monospace, monospace;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, "DejaVu Sans Mono", monospace;
  --wrap: 880px; --keys: 46px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; padding-bottom: var(--keys); background: var(--bg); color: var(--fg); font: 16px/1.75 var(--mono); overflow-x: hidden; }

body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: repeating-linear-gradient(rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.22) 2px 3px); }

body::before { content: ""; position: fixed; inset: 0; z-index: 89; pointer-events: none; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
  radial-gradient(ellipse 75% 75% at center, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.012) 40%, rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0.085) 60%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0.23) 80%, rgba(0, 0, 0, 0.32) 90%, rgba(0, 0, 0, 0.42) 100%); }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
h1, h2, .tag, .lead { text-wrap: balance; }

.nw { white-space: nowrap; }
.btn, .soc, .keys a, .status b, .start { white-space: nowrap; }
a { color: var(--hi); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 95; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }

section { padding: 72px 0; }
section + section { border-top: 1px dashed var(--line); }
.path { color: var(--dim); margin-right: 0.6ch; }
.cmd { color: var(--hi); margin-bottom: 28px; min-height: 1.75em; }
.cursor, .cmd::after { display: inline-block; width: 0.6em; height: 1.05em; background: var(--fg); vertical-align: -0.18em; margin-left: 2px; }
.cmd::after { content: ""; }
@media (prefers-reduced-motion: no-preference) { .cursor, .cmd::after, .start { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }

#boot { display: none; flex-direction: column; position: fixed; inset: 0; z-index: 80; background: var(--bg); padding: clamp(16px, 4vw, 48px); overflow: hidden; cursor: pointer; font-size: clamp(11px, 3.4vw, 16px); line-height: 1.6; }
#boot pre { margin: 0; font: inherit; color: var(--fg); white-space: pre; }
#boot pre b { color: var(--hi); font-weight: 400; }
#boot pre i { color: var(--red); font-style: normal; }
.boot-logo { display: block; color: var(--hi); font-size: clamp(8px, 3.1vw, 16px); line-height: 1.2; text-shadow: 0 0 14px rgba(255, 255, 255, 0.35); }
[data-bar] { color: var(--red); }
.boot-skip { margin: auto 0 0; padding-top: 16px; text-align: right; font: 8px var(--px); color: var(--dim); }
.booting #boot { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .tube-on main { animation: tube-on 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: 50% 50svh; }
  @keyframes tube-on { 0% { transform: scale(1, 0.004); filter: brightness(8); } 35% { transform: scale(1, 0.004); filter: brightness(8); } 100% { transform: none; filter: none; } }
}
.booting body { overflow: hidden; }
.booting main, .booting footer, .booting .keys { visibility: hidden; }

.hero { min-height: calc(100svh - var(--keys)); display: flex; align-items: center; padding: 56px 0; }
.hero .wrap { width: min(var(--wrap), 100% - 40px); }
.hero h1 { margin: 34px 0 30px; width: min(440px, 82%); }
.hero h1 img { width: 100%; overflow: visible; filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.16)); }
.tag { font: clamp(10px, 1.7vw, 14px)/1.8 var(--px); color: var(--red); letter-spacing: 0.04em; margin-bottom: 14px; }
.lead { color: var(--fg); margin-bottom: 48px; }
.start { display: inline-block; font: 12px var(--px); color: var(--hi); text-decoration: none; padding: 10px 0; }
.start::before { content: "\25B6"; margin-right: 12px; color: var(--red); }
.start:hover { animation: none; color: var(--red); }

.dir { margin: 0 0 34px; font: inherit; color: var(--dim); white-space: pre; overflow-x: auto; }
.game { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--panel); }
.game-art { display: block; overflow: hidden; border-right: 1px solid var(--line); }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.game-art:hover img { transform: scale(1.03); }
.game-body { padding: 26px 26px 28px; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 8px/1.8 var(--px); color: var(--dim); margin-bottom: 16px; }
.status b { font-weight: 400; color: var(--bg); background: var(--red); padding: 4px 6px 3px; }
.status [data-days] { color: var(--red); }
.status [data-days]:empty { display: none; }
.game h2 { font: 400 clamp(14px, 2vw, 17px)/1.6 var(--px); color: var(--hi); margin: 0 0 16px; }
.game p { font-size: 15px; }
.facts { color: var(--dim); display: flex; flex-wrap: wrap; gap: 0 24px; }
.facts span { white-space: nowrap; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { font: 9px/1 var(--px); text-decoration: none; color: var(--fg); padding: 14px 14px 12px; border: 1px solid var(--fg); }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-main { background: var(--red); border-color: var(--red); color: var(--bg); }
.btn-main:hover { background: var(--hi); border-color: var(--hi); }
@media (max-width: 720px) {
  .game { grid-template-columns: 1fr; }
  .game-art { border-right: 0; border-bottom: 1px solid var(--line); }
}

.about { max-width: 62ch; }
.about .sign { color: var(--hi); }
.about .sign::before { content: "> "; color: var(--red); }

.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.soc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font: 9px/1 var(--px); }
.soc svg { width: 22px; height: 22px; flex-shrink: 0; }
.soc small { margin-left: auto; font: inherit; font-size: 7px; color: var(--dim); }
a.soc:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.soc.is-soon { color: var(--dim); border-style: dashed; }

footer { border-top: 1px dashed var(--line); padding: 48px 0 56px; }

.term { display: none; margin-bottom: 24px; }
.js .term { display: block; }
.js .idle { display: none; }
.term-out { white-space: pre-wrap; }
.term-out b { color: var(--hi); font-weight: 400; }
.term-out a { color: var(--hi); }
.term form { display: flex; align-items: baseline; }
.term input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: var(--hi); font: inherit; caret-color: var(--red); }
.term input::placeholder { color: var(--dim); opacity: 0.7; }
.term form:focus-within .path { color: var(--fg); }

.cmd ~ * { transition: opacity 0.4s, transform 0.4s; }
.js section.wait .cmd ~ * { opacity: 0; transform: translateY(8px); }
.copy { font: 8px/1.8 var(--px); color: var(--dim); margin: 0; }
.copy button { font: inherit; color: var(--dim); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.copy button:hover { color: var(--red); }

.keys { position: fixed; inset: auto 0 0 0; z-index: 70; height: var(--keys); display: flex; background: var(--bg); border-top: 1px solid var(--line); padding: 8px max(8px, calc((100% - var(--wrap)) / 2)); gap: 8px; }
.keys a { flex: 1; display: flex; align-items: center; text-decoration: none; font: 9px/1 var(--px); min-width: 0; }
.keys b { font-weight: 400; color: var(--dim); padding: 0 8px 0 2px; }
.keys span { flex: 1; align-self: stretch; display: flex; align-items: center; padding: 0 10px; background: var(--fg); color: var(--bg); overflow: hidden; }
.keys a:hover span, .keys a.is-on span { background: var(--red); }
@media (max-width: 480px) { .keys { gap: 4px; } .keys a { font-size: 7px; } .keys b { padding-right: 4px; } .keys span { padding: 0 6px; } }
