@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #e3e2cf;
  --green: #a6f3ae;
  --muted: #aab09c;
  --gold: #c7b47c;
  --bg: #0a100d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-synthesis: none;
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; overflow-x: clip; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
button:disabled { cursor: default; opacity: .65; }
button svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
::selection { color: var(--bg); background: var(--green); }
[hidden] { display: none !important; }

#circuit-board, .ambient { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#circuit-board { opacity: .57; transition: opacity .65s ease; }
[data-power="off"] #circuit-board { opacity: .22; }
.ambient { background: linear-gradient(90deg, #0a100de8 0%, #0a100d78 38%, #0a100d10 75%); }
.page-shell { position: relative; min-height: 100svh; display: flex; flex-direction: column; max-width: 1760px; margin: auto; padding: 0 5%; }
.masthead { display: flex; justify-content: space-between; align-items: center; min-height: 100px; gap: 24px; }
.wordmark { color: var(--ink); font-size: 17px; text-decoration: none; }
.wordmark:hover { color: var(--green); }
.masthead-actions { display: flex; align-items: center; gap: 28px; }
.radio-player { display: flex; align-items: center; position: relative; z-index: 5; gap: 2px; color: #a1ad98; }
.radio-icon-button { display: inline-grid; place-items: center; width: 36px; height: 40px; border: 0; padding: 0; background: transparent; color: inherit; border-radius: 2px; }
.radio-icon-button:hover { color: var(--green); background: #a6f3ae08; }
.radio-icon-button .radio-play-icon { fill: currentColor; stroke: none; }
.radio-icon-button .radio-pause-icon { display: none; stroke: currentColor; stroke-width: 3; }
.radio-player[data-state="playing"] #radio-toggle { color: var(--green); }
.radio-player:is([data-state="playing"], [data-state="loading"]) .radio-play-icon { display: none; }
.radio-player:is([data-state="playing"], [data-state="loading"]) .radio-pause-icon { display: block; }
.radio-player[data-state="loading"] #radio-toggle { opacity: .5; }
.radio-mode-wrap { position: relative; }
#radio-mode { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 100px; height: 40px; padding: 8px; border: 0; border-radius: 2px; background: transparent; color: inherit; font-size: 12px; }
#radio-mode:hover, #radio-mode[aria-expanded="true"] { color: var(--green); background: #a6f3ae08; }
#radio-mode[aria-expanded="true"] svg { transform: rotate(180deg); }
.radio-mode-menu { position: absolute; z-index: 2; top: calc(100% + 8px); right: 0; width: 160px; padding: 5px; border: 1px solid #a6f3ae42; border-radius: 3px; background: #101a13; box-shadow: 0 8px 24px #0006; }
.radio-mode-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 10px; border: 0; border-radius: 1px; background: transparent; color: var(--muted); text-align: left; font-size: 12px; }
.radio-mode-menu button::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border: 1px solid #a6f3ae42; border-radius: 50%; }
.radio-mode-menu button[aria-checked="true"] { color: var(--green); }
.radio-mode-menu button[aria-checked="true"]::before { background: var(--green); border-color: var(--green); }
.radio-mode-menu button:hover, .radio-mode-menu button:focus-visible { color: var(--ink); background: #a6f3ae0e; }
.radio-mode-menu button:focus-visible { outline: 1px solid #a6f3ae80; outline-offset: -1px; }
#radio-mode:focus-visible, #radio-volume:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.radio-volume-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 220px; padding: 16px 18px 12px; border: 1px solid #a6f3ae42; border-radius: 3px; background: #101a13; box-shadow: 0 8px 24px #0006; font-size: 12px; }
.radio-now-playing { margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.radio-volume-label { display: flex; justify-content: space-between; gap: 12px; }
#radio-volume { display: block; width: 100%; height: 28px; margin: 10px 0; accent-color: var(--green); cursor: pointer; }
.radio-volume-panel a { display: inline-block; color: var(--muted); font-size: 10px; text-decoration: none; line-height: 1.5; padding: 5px 0; }
.radio-volume-panel a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.radio-message { position: absolute; top: calc(100% + 1px); left: 4px; font-size: 10px; line-height: 1.4; white-space: nowrap; pointer-events: none; }
.radio-player[data-state="error"] .radio-message { color: var(--gold); }
.radio-player audio { display: none; }
@media (max-width: 600px) {
  .masthead { flex-wrap: wrap; padding-top: 16px; padding-bottom: 8px; }
  .masthead-actions { flex: 1; justify-content: flex-end; gap: 16px; }
  .radio-volume-panel { right: -22px; }
}
main { flex: 1; padding-bottom: 70px; }
.hero { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; width: 100%; max-width: 1540px; min-height: calc(100svh - 100px); margin: auto; padding: 42px 0 70px; position: relative; }
.hero-copy { padding-left: 4%; position: relative; z-index: 2; }
h1 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: clamp(94px, 10.6vw, 158px); line-height: .89; font-weight: 600; letter-spacing: -.045em; margin: 0 0 35px -.045em; }
.intro { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: clamp(22px, 2vw, 28px); line-height: 1.4; color: var(--muted); letter-spacing: -.3px; margin: 0; }
.unlock-area { margin-top: 32px; }
.unlock-button { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 22px; border: 1px solid #c7b47c9e; border-radius: 2px; background: #0a100d; color: var(--ink); font-size: 17px; font-weight: 400; transition: background .15s, border-color .15s; }
.unlock-button:hover { background: #c7b47c12; border-color: var(--gold); }
.unlock-button:active { background: #c7b47c24; }
.secret { border-left: 1px solid #c7b47c80; padding-left: 18px; max-width: 390px; margin-top: 28px; }
.secret-label { color: var(--gold); font-size: 14px; margin: 0 0 10px; }
#secret-message { color: var(--ink); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 19px; line-height: 1.5; margin: 0; }
.artifact-wrap { position: relative; width: 100%; min-width: 0; }
.artifact { position: relative; will-change: transform; }
.artifact object, .artifact > svg { display: block; width: 100%; aspect-ratio: 900 / 760; pointer-events: none; }
.machine-control { position: absolute; z-index: 2; border: 0; padding: 0; background: transparent; touch-action: manipulation; }
.machine-control:disabled { opacity: 1; }
.screen-control { left: 30.55%; top: 23.68%; width: 35.56%; height: 31.84%; border-radius: 7%; }
.screen-control:hover:not(:disabled) { box-shadow: inset 0 0 22px #a6f3ae14; }
.screen-control:focus-visible { outline-offset: -3px; }
.power-control { transform: translate(-50%, -50%); border-radius: 4px; }
.pc-power { left: 45.0556%; top: 71.1184%; width: 44px; height: 44px; }
.monitor-power { left: 65.5556%; top: 57.6316%; width: 32px; height: 32px; transform: none; }
.drive-control { left: 50.6667%; top: 68.6842%; width: 25.3333%; height: 8.0263%; border-radius: 2px; }
.drive-control:hover:not(:disabled) { box-shadow: inset 0 0 0 1px #d2bd7a80; background: #d2bd7a08; }
.drive-control:focus-visible { outline-color: var(--gold); outline-offset: 2px; }
.drive-control:disabled { cursor: default; }
.power-control::after { content: ""; position: absolute; inset: 25%; border-radius: 2px; }
.monitor-power::after { inset: 0 auto auto 0; width: 10px; height: 10px; border-radius: 50%; }
.power-control:hover::after { box-shadow: 0 0 9px #d2e6b54d; }
.power-control:active::after { background: #06100833; }
.power-control:focus-visible { outline-offset: -3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .page-shell { padding: 0 4%; }
  .hero { grid-template-columns: .88fr 1.12fr; }
  .hero-copy { padding-left: 0; }
  h1 { font-size: clamp(88px, 11vw, 115px); }
}
@media (max-width: 700px) {
  .page-shell { padding: 0 24px; }
  .masthead { min-height: 82px; gap: 10px; }
  .wordmark { font-size: 15px; }
  main { padding-bottom: 20px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 30px 0 64px; }
  h1 { font-size: clamp(92px, 22vw, 136px); margin-bottom: 25px; }
  .intro { font-size: 22px; }
  .unlock-area { margin-top: 26px; }
  .unlock-button { font-size: 16px; min-height: 54px; padding: 12px 18px; }
  .artifact-wrap { margin-top: 6px; width: calc(100% + 32px); margin-left: -16px; }
  .ambient { background: linear-gradient(180deg, #0a100dd9 0, #0a100d70 40%, #0a100d05 65%); }
  .secret { max-width: 100%; }
  #secret-message { font-size: 18px; }
}

/* A quiet reading area beneath the computer. */
.news-jump { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; text-decoration: none; padding: 12px 0 12px 12px; }
.news-jump:hover { color: var(--green); }
.news-section { max-width: 1300px; margin: 0 auto; padding: 52px 0 0; border-top: 1px solid #a6f3ae42; scroll-margin-top: 28px; }
.news-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.news-heading h2 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: clamp(38px, 4vw, 54px); font-weight: 500; line-height: 1; letter-spacing: -.035em; margin: 0 0 16px; }
#news-description { color: var(--muted); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.5; margin: 0; }
.news-switches { display: flex; gap: 4px; flex-shrink: 0; border-bottom: 1px solid #a6f3ae33; }
.news-switches button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 14px; min-height: 46px; padding: 12px 16px; margin-bottom: -1px; }
.news-switches button[aria-pressed="true"] { border-bottom-color: var(--green); color: var(--green); }
.news-switches button:hover { color: var(--ink); background: #a6f3ae08; }
.news-status { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 18px 0; }
.news-status:empty { display: none; }
.news-status a { color: var(--green); }
.news-stories { list-style: none; padding: 0; margin: 0; }
.news-story { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 23px 0; border-top: 1px solid #a6f3ae24; }
.news-rank { color: #91a38c; padding-top: 5px; font-size: 13px; }
.news-story-title { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: clamp(20px, 1.8vw, 25px); font-weight: 400; line-height: 1.3; margin: 0 0 12px; letter-spacing: -.25px; overflow-wrap: anywhere; }
.news-story-title a { color: var(--ink); text-decoration: none; }
.news-story-title a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.news-story-meta { display: flex; flex-wrap: wrap; gap: 7px 17px; color: #a1ad98; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.news-story-meta a { color: inherit; text-decoration: none; }
.news-story-meta a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.news-footer { border-top: 1px solid #a6f3ae42; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 21px; font-size: 12px; color: #a1ad98; }
.news-update { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.news-footer a, #news-refresh { color: var(--muted); text-decoration: none; }
#news-refresh { background: transparent; border: 0; padding: 10px 0; font-size: 12px; min-height: 40px; }
.news-footer a { display: inline-block; padding: 10px 0; }
.news-footer a:hover, #news-refresh:hover { color: var(--green); }
@media (max-width: 850px) {
  .news-heading { align-items: flex-start; flex-direction: column; gap: 22px; margin-bottom: 24px; }
}
@media (max-width: 700px) {
  .news-section { padding-top: 36px; padding-bottom: 28px; }
  #news-description { font-size: 16px; }
  .news-story { grid-template-columns: 25px minmax(0, 1fr); gap: 10px; padding: 22px 0; }
  .news-story-title { margin-bottom: 10px; }
  .news-story-meta { gap: 5px 12px; }
  .news-switches button { padding: 12px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .artifact { will-change: auto; }
}
[data-motion="paused"] .artifact { will-change: auto; }

/* The transparent controls follow the original keyboard's projection. */
.console-input { position: absolute; left: 32%; top: 50%; width: 1px; height: 1px; opacity: 0; padding: 0; border: 0; font-size: 16px; pointer-events: none; }
.keyboard-controls { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.keyboard-key { position: absolute; padding: 0; border: 0; border-radius: 2px; background: transparent; transform-origin: 0 0; pointer-events: auto; touch-action: none; }
.keyboard-key:hover:not(:disabled) { background: #b9ffbf24; }
.keyboard-key:active:not(:disabled) { background: #071b1033; }
.computer-hint { margin: 8px 0 0; text-align: center; color: #849780; font-size: 12px; line-height: 1.5; }
.console-toolbar { display: flex; justify-content: center; margin-top: 8px; }
.console-toolbar button { color: #9fae96; background: transparent; border: 0; padding: 8px 12px; font-size: 12px; min-height: 40px; }
.console-toolbar button:hover { color: var(--green); }
.console-dialog { width: min(92vw, 660px); max-height: 90dvh; padding: 18px; color: #a6f3ae; border: 1px solid #75816b; border-radius: 4px; background: #172018; box-shadow: 0 18px 100px #000b; }
.console-dialog::backdrop { background: #030906e8; }
.console-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; color: #bdc0a4; font-size: 11px; letter-spacing: 1px; }
.console-dialog-heading button { color: inherit; background: transparent; border: 0; font-size: 12px; padding: 10px 0 10px 10px; }
.console-reader { padding: 22px; background: #0a190f; border: 1px solid #43513c; border-radius: 9px; box-shadow: inset 0 0 30px #0007; }
#console-transcript { min-height: 11em; margin: 0 0 20px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: clamp(14px, 2.8vw, 17px); line-height: 1.65; }
.console-form { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.console-form input { min-width: 0; flex: 1; width: 100%; padding: 6px 0; color: #a6f3ae; background: transparent; border: 0; border-bottom: 1px solid #6f9d713d; font: inherit; caret-color: #a6f3ae; }
.console-form input:focus { outline: none; border-color: #a6f3ae; }
.console-form button { color: #a6f3ae; background: #a6f3ae09; border: 1px solid #6f9d7155; padding: 8px 12px; border-radius: 2px; }
@media (max-width: 600px) { .console-dialog { padding: 12px; } .console-reader { padding: 14px; } }
.artifact:has(.console-input:focus) .screen-control { box-shadow: inset 0 0 0 1px #a6f3ae40; }
.game-toolbar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0; color: #93b295; font-size: 11px; }
.game-toolbar button, .game-controls button, .game-dialog-heading button { border: 1px solid #89b08a66; border-radius: 2px; color: #a6f3ae; background: #102417; padding: 8px 10px; font-size: 12px; }
.game-toolbar button:hover, .game-controls button:hover, .game-dialog-heading button:hover { background: #1b3924; }
.game-controls { display: flex; justify-content: center; gap: 7px; padding: 6px 0; }
.game-controls button { min-width: 40px; min-height: 40px; touch-action: none; user-select: none; -webkit-user-select: none; }
.game-controls [data-game-input='fire'] { min-width: 64px; }
.game-controls button:active { background: #447251; }
#game-dialog { box-sizing: border-box; width: min(92vw, 760px, calc((100dvh - 180px) * 1.333)); max-width: 92vw; max-height: 96dvh; overflow: auto; padding: 18px; border: 1px solid #658167; border-radius: 8px; color: #a6f3ae; background: #0a160f; box-shadow: 0 18px 100px #000b; }
#game-dialog::backdrop { background: #030906eb; }
.game-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; font-size: 12px; letter-spacing: 2px; }
.game-dialog-heading button { letter-spacing: 0; }
.enlarged-screen { position: relative; border: 7px solid #2b3f2d; border-radius: 14px; overflow: hidden; background: #0b2115; aspect-ratio: 4 / 3; }
.enlarged-screen canvas { display: block; width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.enlarged-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 3px, #00100820 3px 4px); box-shadow: inset 0 0 24px #0007; border-radius: inherit; }
.game-dialog-hint { font-size: 11px; line-height: 1.5; text-align: center; color: #92b095; margin: 14px 0 6px; }
@media (max-width: 700px) {
  .computer-hint { font-size: 12px; margin-top: 12px; }
  .game-toolbar { margin-top: 12px; }
  #game-dialog { width: 96vw; max-width: 96vw; padding: 12px; }
  .game-dialog-heading { margin-bottom: 10px; }
  .game-controls { gap: 5px; flex-wrap: wrap; }
  .game-controls button { min-height: 46px; }
  .game-controls [data-game-input='left'], .game-controls [data-game-input='right'] { min-width: 48px; }
  .game-dialog-hint { font-size: 10px; }
}
