:root {
  color-scheme: dark;
  --background: #101010;
  --foreground: #ededed;
  --muted: #999999;
  --faint: #777777;
  --line: #343434;
  font-family: "Cascadia Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
/* Paint the browser canvas too, and suppress elastic boundary scrolling. */
html {
  min-height: 100%;
  background-color: var(--background);
  background-image: linear-gradient(rgb(16 16 16 / .955), rgb(16 16 16 / .955)), url("/screen-grain.svg");
  overscroll-behavior: none;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100svh;
  min-height: 100dvh;
  overscroll-behavior: none;
  overflow-x: clip;
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse at 48% 14%, rgb(255 255 255 / .035), transparent 62%),
    radial-gradient(ellipse at 15% 60%, rgb(255 255 255 / .012), transparent 50%),
    radial-gradient(ellipse at 50% 35%, transparent 30%, rgb(0 0 0 / .24) 100%);
  color: var(--foreground);
  isolation: isolate;
  text-shadow: 0 0 3px rgb(240 240 235 / .16), 0 0 9px rgb(240 240 235 / .055);
}
/* Static glass texture: no animation loop, flicker, or blur on the text itself. */
.screen::before, .screen::after {
  content: "";
  position: fixed;
  /* Overscan hides texture edges during browser chrome/viewport movement. */
  inset: -160px;
  pointer-events: none;
  user-select: none;
}
.screen::before {
  z-index: -1;
  background: url("/screen-grain.svg") repeat;
  opacity: .045;
}
.screen::after {
  z-index: 2;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgb(0 0 0 / .035) 3px 4px);
}
.wordmark, .command code {
  text-shadow: 0 0 3px rgb(250 250 245 / .26), 0 0 12px rgb(240 240 235 / .12), 0 0 28px rgb(240 240 235 / .045);
}
.copy-button, .help summary {
  text-shadow: none;
  box-shadow: 0 0 12px rgb(240 240 235 / .09);
}
.cursor { box-shadow: 0 0 8px rgb(240 240 235 / .2); }
a { color: inherit; }
button, code, pre { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 1px solid var(--foreground); outline-offset: 6px; }
::selection { color: var(--background); background: var(--foreground); }
.terminal { width: min(100% - 96px, 1080px); margin: 0 auto; }
.session-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
main { width: min(100%, 760px); margin: 0 auto; }
.welcome { padding: 37px 0 39px; }
.shell-line { display: flex; align-items: baseline; gap: 13px; }
.prompt { color: var(--faint); flex-shrink: 0; font-weight: normal; }
.invocation { font-size: 12px; color: var(--muted); }
.wordmark-wrap { margin: 27px 0 23px; }
.wordmark { width: fit-content; margin: 0 auto; font-size: clamp(9px, 2.45vw, 17px); line-height: 1.12; white-space: pre; letter-spacing: 0; color: #e0e0e0; }
.muted { color: var(--muted); }
.connect { margin-top: 37px; }
.comment { color: var(--muted); line-height: 1.7; font-size: 14px; }
.typed { display: inline-block; white-space: pre-wrap; min-width: 0; }
.command-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0 13px; }
.command { font-size: 23px; line-height: 1.3; letter-spacing: -.4px; }
.command .prompt { font-size: 18px; }
.command code { white-space: nowrap; }
.cursor { display: inline-block; width: .57em; height: 1.05em; background: #ddd; align-self: center; margin-left: -5px; animation: blink 1.2s steps(1,end) infinite; }
.copy-button { border: 0; cursor: pointer; white-space: nowrap; font-size: 12px; }
.copy-button, .help summary { padding: 9px 12px; background: var(--foreground); color: var(--background); line-height: 1.5; }
.copy-button:hover, .help summary:hover { background: #ffffff; }
.copy-button:active, .help summary:active { background: #cccccc; }
.copy-button[hidden] { display: none; }
.command-meta { min-height: 25px; position: relative; }
.copy-status { margin: 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.copy-status { min-height: 24px; padding-top: 5px; color: var(--foreground); }
.help { margin-top: 16px; font-size: 12px; color: var(--muted); }
.help summary { cursor: pointer; list-style: none; width: fit-content; margin-left: auto; }
.help summary::-webkit-details-marker { display: none; }
.help-body { border-left: 1px solid var(--line); margin: 16px 0 5px 7px; padding: 0 0 0 18px; line-height: 1.8; }
.help-body p { margin: 7px 0; }
.os { display: inline-block; width: 72px; color: var(--foreground); }
.help-body .help-finish { margin-top: 17px; }
.help-body code { color: var(--foreground); }
.catalog { border-top: 1px solid var(--line); padding: 24px 0 36px; }
.catalog-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 19px; }
h2 { margin: 0; font-size: 12px; font-weight: normal; }
h2 .prompt { margin-right: 6px; }
.catalog-state { font-size: 10px; color: var(--muted); }
.game-list { margin: 0; padding: 0; list-style: none; }
.game-list li { display: grid; grid-template-columns: 180px 1fr 52px; gap: 16px; align-items: baseline; padding: 8px 0; font-size: 12px; }
.game-description { color: var(--muted); }
.price { text-align: right; color: #c4c4c4; }
.session-footer { min-height: 73px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.session-footer > span:first-child { color: #b8b8b8; }
.publisher-link { text-decoration: none; }
.publisher-link:hover, .publisher-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.flynn-credit { display: inline-flex; align-items: center; gap: 7px; }
.flynn-icon { display: block; flex: none; width: 26px; height: 26px; }
.flynn-credit .footer-caret { margin-left: -5px; }
.footer-caret { margin-left: 3px; color: var(--foreground); }
/* Keep feedback and supporting copy out of drag/long-press selection. */
.copy-button, .copy-status, .copy-status *, .help, .help *,
.catalog-state, .game-list, .game-list *, .session-footer, .session-footer * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.catalog-heading h2, .catalog-heading h2 * {
  -webkit-user-select: text;
  user-select: text;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (min-width: 1400px) { .welcome { padding-top: 44px; } .wordmark-wrap { margin-top: 35px; } }
@media (max-width: 700px) {
  .terminal { width: calc(100% - 40px); }
  .welcome { padding: 28px 0 30px; }
  .wordmark-wrap { margin: 30px 0 22px; }
  .connect { margin-top: 29px; }
  .comment { font-size: 12px; }
  .command { font-size: 21px; }
  .command-row { gap: 8px; }
  .copy-button { font-size: 11px; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .game-list li { position: relative; padding: 12px 55px 12px 0; display: block; }
  .game-name, .game-description { display: block; }
  .game-description { margin-top: 5px; line-height: 1.5; }
  .price { position: absolute; top: 12px; right: 0; }
  .session-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding: 20px 0; }
}
@media (max-width: 360px) { .command { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; opacity: .8; } }

@media (forced-colors: active) {
  html, body { background-image: none; }
  .screen::before, .screen::after { display: none; }
  *, *::before, *::after { text-shadow: none !important; box-shadow: none !important; }
}

/* Terminal power-on: beam -> console -> phosphor overshoot -> settled page.
   The ordinary HTML remains the default; boot.js opts in before first paint. */
.boot-pending .terminal { opacity: 0; }
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}
.boot-beam {
  position: absolute;
  left: -160px;
  right: -160px;
  top: 48%;
  height: 2px;
  background: #deded9;
  box-shadow: 0 0 8px #ffffff70, 0 0 35px #ffffff28;
  transform-origin: center;
  animation: beam-ignite 600ms ease-out both;
}
.boot-console {
  position: absolute;
  left: max(24px, calc((100vw - 760px) / 2));
  right: 24px;
  top: clamp(56px, 19vh, 180px);
  font-size: 12px;
  line-height: 1.8;
  animation: console-warmup 2100ms 400ms linear both;
}
.boot-heading { color: #e6e6df; font-size: 16px; letter-spacing: .03em; }
.boot-subheading { color: var(--faint); font-size: 10px; margin-top: 2px; }
.boot-log { margin-top: 24px; min-height: 176px; }
.boot-row { display: flex; gap: 16px; color: #aaa; animation: boot-row-in 100ms ease-out both; }
.boot-state { flex: 0 0 4ch; color: #deded8; }
.boot-prompt { color: #ddd; margin-top: 14px; animation: boot-prompt-in 160ms 1890ms both; }
.boot-running .terminal {
  animation: screen-settle 1000ms 2200ms both, document-unmask 500ms 2200ms ease-out both;
}
.boot-running .screen::before { animation: grain-warmup 3200ms both; }
.boot-running .screen::after { animation: scan-warmup 3200ms both; }
@keyframes beam-ignite {
  0% { opacity: 0; transform: scaleX(.015); }
  18% { opacity: .75; transform: scaleX(.035); }
  52% { opacity: .9; transform: scaleX(1); }
  78% { opacity: .12; transform: scaleX(1.01) scaleY(22); }
  100% { opacity: 0; transform: scaleX(1) scaleY(42); }
}
@keyframes console-warmup {
  0%, 13% { opacity: 0; filter: brightness(.5); transform: translateY(2px); }
  25% { opacity: .75; filter: brightness(1.15); transform: translateY(0); }
  45% { opacity: 1; filter: brightness(1); }
  83% { opacity: 1; filter: brightness(1); }
  92% { opacity: .2; filter: brightness(1.3); }
  100% { opacity: 0; filter: brightness(1); }
}
@keyframes boot-row-in { from { opacity: .2; } to { opacity: 1; } }
@keyframes boot-prompt-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes screen-settle {
  0% { opacity: 0; transform: translateY(2px); filter: brightness(.65); }
  28% { opacity: .72; transform: translateY(0); filter: brightness(1.12); }
  48% { opacity: 1; filter: brightness(1.28); text-shadow: 0 0 4px #ffffff55, 0 0 17px #ffffff28; }
  72% { opacity: 1; filter: brightness(.97); }
  100% { opacity: 1; transform: none; filter: none; text-shadow: 0 0 3px rgb(240 240 235 / .16), 0 0 9px rgb(240 240 235 / .055); }
}
@keyframes grain-warmup {
  0%, 8% { opacity: 0; }
  24% { opacity: .095; }
  58% { opacity: .035; }
  80% { opacity: .065; }
  100% { opacity: .045; }
}
@keyframes scan-warmup {
  0%, 8% { opacity: 0; }
  25% { opacity: 1; }
  60% { opacity: .7; }
  80% { opacity: 1; }
  100% { opacity: 1; }
}
@media (max-width: 700px) {
  .boot-console { font-size: 11px; }
  .boot-row { gap: 10px; }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .boot-pending .terminal { opacity: 1; animation: none; }
  #boot-screen { display: none; }
  .boot-running .screen::before, .boot-running .screen::after { animation: none; }
}

/* The housing is decoration. Narrow/portrait screens retain the full-bleed site. */
.monitor-case { display: none; }
.screen, .screen-scroll { display: contents; }
@media (min-width: 1100px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  :root {
    --case-gap: 0px;
    --bezel-side: clamp(34px, 3.4vw, 62px);
    --bezel-horizontal: clamp(56px, 5.2vh, 72px);
    --bezel-top: var(--bezel-horizontal);
    --bezel-bottom: var(--bezel-horizontal);
  }
  html, body { height: 100%; overflow: hidden; background: #252628; }
  body { min-height: 100dvh; }
  .monitor-case {
    display: block;
    position: fixed;
    inset: var(--case-gap);
    border-radius: 0;
    border: 1px solid #454649;
    background:
      radial-gradient(ellipse at 90% 95%, #08090b40, transparent 25%),
      radial-gradient(ellipse at 4% 75%, #090a0c30, transparent 32%),
      radial-gradient(ellipse at 32% 5%, #ffffff09, transparent 40%),
      linear-gradient(112deg, #252628, #343538 3%, #2b2c2f 48%, #252629 97%, #1d1e21);
    box-shadow: inset 0 3px 2px #ffffff1c, inset 3px 0 4px #ffffff12,
      inset -2px -3px 3px #00000080, inset 0 -8px 14px #00000030,
      0 2px 0 #191a1c, 0 14px 28px #0008, 0 0 0 2px #111;
    pointer-events: none;
    user-select: none;
    text-shadow: none;
  }
  /* Sloping inner lip and a dark gasket surround the separate glass surface. */
  .monitor-case::after {
    content: "";
    position: absolute;
    inset: calc(var(--bezel-top) - 9px) calc(var(--bezel-side) - 9px) calc(var(--bezel-bottom) - 9px);
    border-radius: 31px / 25px;
    background: linear-gradient(145deg, #17181a, #292a2d 44%, #353639 72%, #4a4b4e);
    box-shadow: -1px -2px 2px #151618, 1px 2px 1px #72737766,
      inset 4px 6px 7px #050607dd, inset -3px -3px 4px #4a4b4e66;
  }
  .case-wear {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    opacity: .4;
    background: url('/monitor-wear.svg') center / 100% 100%;
    mix-blend-mode: screen;
  }
  .case-wear::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/screen-grain.svg');
    opacity: .12;
  }
  .case-wear::after {
    content: "";
    position: absolute;
    width: 94px;
    height: 25px;
    right: 23px;
    bottom: 12px;
    border-radius: 50%;
    transform: rotate(-16deg);
    background: radial-gradient(ellipse, #00000040, transparent 68%);
    box-shadow: -4px -3px 14px #ffffff08;
  }
  /* One baseline and one inset for the entire moulded control strip. */
  .case-controls {
    position: absolute;
    inset: auto calc(var(--bezel-side) + 12px) 0;
    height: calc(var(--bezel-bottom) - 10px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    color: #b7b8ba;
  }
  .case-badge { display: flex; align-items: center; gap: 10px; }
  .case-emblem {
    width: 25px; height: 25px;
    filter: drop-shadow(0 1px 0 #000000aa);
  }
  .case-wordmark {
    font: 600 15px/1 monospace;
    letter-spacing: -.07em;
    text-shadow: 0 1px #000000aa;
  }
  .case-model {
    margin-left: 7px;
    padding-left: 13px;
    border-left: 1px solid #77797d55;
    font: 6px/1.6 monospace;
    letter-spacing: .11em;
    color: #929498;
  }
  .case-model strong { font-weight: normal; letter-spacing: .22em; }
  .case-vents {
    width: clamp(112px, 12vw, 200px);
    height: 15px;
    border-radius: 3px;
    background:
      linear-gradient(#0003, transparent 40%, #fff2),
      repeating-linear-gradient(90deg, #212224 0 1px, #0c0d0f 1px 3px, #525357 3px 4px, transparent 4px 8px);
    box-shadow: 0 1px 0 #66686c44;
    opacity: .85;
  }
  .case-power {
    justify-self: end;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .case-led {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffefb5, #cfac59 55%, #8b713c);
    box-shadow: 0 0 0 1px #141517, 0 1px 0 1px #77797b44, 0 0 6px #e7bb5844;
  }
  .case-power-label { font: 6px/1 monospace; letter-spacing: .16em; }
  .case-switch {
    display: grid;
    place-items: center;
    width: 33px; height: 25px;
    margin-left: 12px;
    border-radius: 4px;
    border: 2px solid #141517;
    background: linear-gradient(155deg, #46474b, #333438 60%, #26272b);
    box-shadow: 0 1px 0 #66686c, inset 0 1px 1px #74767a, inset 0 -2px 2px #15161888;
  }
  .case-switch svg { width: 14px; height: 14px; filter: drop-shadow(0 1px 0 #101113); }
  .screen-scroll:focus-visible { outline: 1px solid #777; outline-offset: -4px; }
  .screen {
    display: block;
    position: fixed;
    inset: calc(var(--case-gap) + var(--bezel-top)) calc(var(--case-gap) + var(--bezel-side)) calc(var(--case-gap) + var(--bezel-bottom));
    border-radius: 24px / 18px;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--background);
    background-image:
      radial-gradient(ellipse at 48% 14%, rgb(255 255 255 / .035), transparent 62%),
      radial-gradient(ellipse at 15% 60%, rgb(255 255 255 / .012), transparent 50%),
      radial-gradient(ellipse at 50% 35%, transparent 30%, rgb(0 0 0 / .24) 100%);
    box-shadow: 0 0 0 2px #141517, 0 0 0 3px #08090a99, inset 0 0 25px #000;
  }
  .screen::before, .screen::after { position: absolute; }
  .screen::after {
    background:
      linear-gradient(118deg, #ffffff04, transparent 26%, transparent 78%, #ffffff02),
      radial-gradient(ellipse at center, transparent 65%, #0005 100%),
      repeating-linear-gradient(to bottom, transparent 0 3px, rgb(0 0 0 / .035) 3px 4px);
  }
  .screen-scroll {
    display: block;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: none;
    scrollbar-gutter: auto;
  }
  #boot-screen { position: absolute; border-radius: inherit; }
  .boot-console { left: max(24px, calc((100% - 760px) / 2)); top: clamp(40px, 14vh, 130px); }
  .boot-beam { left: -160px; right: -160px; }
}
@media (forced-colors: active) {
  .monitor-case { display: none; }
  html, body { height: auto; overflow: visible; background: Canvas; }
  .screen, .screen-scroll { display: contents; }
}


/* Keep native scrolling without visible chrome, including legacy Windows Edge. */
html, body, .screen-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.screen-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}


/* Fit the closed-help storefront into common laptop display heights. */
@media (min-width: 1100px) and (min-height: 600px) and (max-height: 950px) and (min-aspect-ratio: 4/3) {
  .welcome { padding: 20px 0 18px; }
  .wordmark-wrap { margin: 16px 0; }
  .wordmark { font-size: 14px; }
  .connect { margin-top: 18px; }
  .command-row { padding: 12px 0 8px; }
  .help { margin-top: 8px; }
  .catalog { padding: 15px 0 18px; }
  .catalog-heading { margin-bottom: 10px; }
  .game-list li { padding: 6px 0; }
  .session-footer { min-height: 48px; }
}
@media (min-width: 1100px) and (min-height: 600px) and (max-height: 820px) and (min-aspect-ratio: 4/3) {
  .welcome { padding: 12px 0; }
  .wordmark-wrap { margin: 10px 0; }
  .wordmark { font-size: 11px; }
  .connect { margin-top: 10px; }
  .comment { font-size: 12px; line-height: 1.5; }
  .command-row { padding: 8px 0 4px; }
  .command-meta:has(.copy-status:empty) { min-height: 0; }
  .copy-status:empty { min-height: 0; padding: 0; }
  .catalog { padding: 10px 0; }
  .catalog-heading { margin-bottom: 6px; }
  .session-footer { min-height: 40px; }
}
.case-switch {
  pointer-events: auto;
  cursor: pointer;
  padding: 0;
  color: inherit;
}
.case-switch:hover { filter: brightness(1.15); }
.case-switch:active { filter: brightness(.85); }
.case-switch:disabled { cursor: default; }
.case-switch:focus-visible { outline: 2px solid #d5d5d5; outline-offset: 3px; }
.boot-pending .case-led { animation: power-lamp-start 700ms ease-out both; }
@keyframes power-lamp-start {
  0% { filter: brightness(.15); }
  15% { filter: brightness(1.45); }
  100% { filter: brightness(1); }
}
.screen-off .case-led { filter: brightness(.2); box-shadow: 0 0 0 1px #141517; }
.screen-off .screen { background: #080909; }
.screen-off .screen-scroll { visibility: hidden; }
.screen-off .screen::before, .screen-off .screen::after { opacity: 0; }
.power-wake { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.screen-waking .terminal { animation: screen-settle 700ms 650ms both; }
.screen-waking .screen::before { animation: grain-warmup 1000ms both; }
.screen-waking .screen::after { animation: scan-warmup 1000ms both; }
.screen-waking .case-led { animation: power-lamp-start 700ms ease-out both; }
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .boot-pending .case-led, .screen-waking .case-led,
  .screen-waking .terminal, .screen-waking .screen::before,
  .screen-waking .screen::after { animation: none; }
  .power-wake { display: none; }
}

@media (min-width: 1100px) and (min-height: 600px) and (max-height: 650px) and (min-aspect-ratio: 4/3) {
  .welcome { padding: 6px 0; }
  .wordmark-wrap { margin: 4px 0; }
  .wordmark { font-size: 8px; }
  .connect { margin-top: 6px; }
  .catalog { padding: 6px 0; }
  .session-footer { min-height: 34px; }
  .game-list li { padding: 5px 0; }
}
@media (hover: hover) and (pointer: fine) {
  html, body, .screen, .monitor-case { cursor: url('/cursor-arrow.svg') 3 3, default; }
  button:not(:disabled), summary, a { cursor: url('/cursor-hand.svg') 10 3, pointer; }
  .cursor-down, .cursor-down body, .cursor-down .screen, .cursor-down .monitor-case {
    cursor: url('/cursor-arrow-down.svg') 3 3, default;
  }
  .cursor-down button:not(:disabled), .cursor-down summary, .cursor-down a {
    cursor: url('/cursor-hand-down.svg') 10 3, pointer;
  }
  .wordmark, .comment, .command code, .catalog-heading h2, .catalog-heading h2 * {
    cursor: url('/cursor-text.svg') 12 14, text;
  }
  .cursor-down .wordmark, .cursor-down .comment, .cursor-down .command code,
  .cursor-down .catalog-heading h2, .cursor-down .catalog-heading h2 * {
    cursor: url('/cursor-text-down.svg') 12 14, text;
  }
}
@media (forced-colors: active) {
  html, body, .screen, .monitor-case,
  .cursor-down, .cursor-down body, .cursor-down .screen, .cursor-down .monitor-case { cursor: auto; }
  button:not(:disabled), summary, a,
  .cursor-down button:not(:disabled), .cursor-down summary, .cursor-down a { cursor: pointer; }
}

@media (forced-colors: active) { .wordmark, .comment, .command code, .catalog-heading h2, .catalog-heading h2 *, .cursor-down .wordmark, .cursor-down .comment, .cursor-down .command code, .cursor-down .catalog-heading h2, .cursor-down .catalog-heading h2 * { cursor: text; } }


/* Localized handling marks, kept off the glass and readable controls. */
@media (min-width: 1100px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .monitor-case::before {
    content: "";
    position: absolute;
    top: 12px; bottom: 14px; left: 7px;
    width: 1px;
    background: linear-gradient(transparent, #0005 14%, #0003 85%, transparent);
    box-shadow: 1px 0 0 #ffffff06;
  }
  .case-smudge {
    position: absolute;
    right: 5px;
    top: 28%;
    width: calc(var(--bezel-side) - 16px);
    height: 124px;
    background: url('/bezel-smudge.svg') center / 100% 100% no-repeat;
    opacity: .36;
    transform: rotate(-5deg);
    mix-blend-mode: screen;
  }
  .case-dust {
    position: absolute;
    z-index: 1;
    left: calc(var(--bezel-side) + 12px);
    right: calc(var(--bezel-side) + 12px);
    bottom: calc(var(--bezel-bottom) - 5px);
    height: 4px;
    border-radius: 50%;
    opacity: .24;
    background:
      radial-gradient(ellipse at 2% 40%, #b4afa0, transparent 9%),
      radial-gradient(ellipse at 95% 55%, #8b887f, transparent 13%),
      url('/screen-grain.svg');
    mask-image: linear-gradient(90deg, #000, transparent 24%, transparent 75%, #000);
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 24%, transparent 75%, #000);
  }
  .case-power { position: relative; }
  .case-power::before {
    content: "";
    position: absolute;
    right: -9px; top: -7px; bottom: -7px;
    width: 53px;
    border-radius: 45%;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 74% 35%, #ffffff0a, transparent 65%),
      radial-gradient(ellipse at 30% 75%, #0003, transparent 70%);
    box-shadow: 2px 0 5px #ffffff03;
  }
  .case-switch { position: relative; }
}
/* Collapse the existing viewport, preserving scroll position and DOM state. */
.screen-sleeping .screen-scroll {
  visibility: visible;
  transform-origin: 50% 48%;
  animation: picture-collapse 340ms cubic-bezier(.65, 0, .35, 1) both;
}
.power-sleep { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.power-sleep .boot-beam { animation: beam-collapse 500ms ease-in-out both; }
@keyframes picture-collapse {
  0% { transform: scaleY(1); opacity: 1; filter: brightness(1); }
  65% { transform: scaleY(.025); opacity: .65; filter: brightness(1.25); }
  100% { transform: scaleY(.002); opacity: 0; filter: brightness(1); }
}
@keyframes beam-collapse {
  0%, 25% { transform: scaleX(1); opacity: 0; }
  52% { transform: scaleX(1); opacity: .6; }
  80% { transform: scaleX(.015); opacity: .45; }
  100% { transform: scaleX(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .screen-sleeping .screen-scroll { visibility: hidden; animation: none; }
  .power-sleep { display: none; }
}


/* Game pages share the hardware, but give the actual game the stage. */
.quiet-link { text-decoration: none; }
.quiet-link:hover, .quiet-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.game-main { width: 100%; }
.game-nav { display: flex; justify-content: space-between; gap: 16px; padding: 26px 0 24px; color: #aaa; font-size: 11px; border-bottom: 1px solid var(--line); }
.game-nav > span { color: #777; }
.game-header { padding: 28px 0 26px; }
.game-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.game-title-row h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 500; letter-spacing: -.08em; margin: 12px 0; line-height: 1.1; text-shadow: 0 0 4px #ffffff30, 0 0 18px #ffffff10; }
.title-dot { color: #777; }
.game-tag { font-size: 10px; color: #999; }
.game-pitch { margin: 4px 0 0; color: #c8c8c8; font-size: 15px; }
.game-overview { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; padding-bottom: 30px; }
.gallery-main { display: block; position: relative; border: 1px solid #383838; background: #111; }
.gallery-main img { display: block; width: 100%; height: auto; }
.enlarge-hint { position: absolute; right: 10px; bottom: 10px; padding: 5px 7px; background: #111e; font-size: 10px; opacity: 0; transition: opacity 120ms; }
.gallery-main:hover .enlarge-hint, .gallery-main:focus-visible .enlarge-hint { opacity: 1; }
.gallery-caption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: #aaa; font-size: 10px; }
.gallery-caption > span:last-child { color: #777; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-thumbs a { display: block; text-decoration: none; border: 1px solid #343434; opacity: 1; }
.gallery-thumbs a:hover, .gallery-thumbs a:focus-visible { border-color: #888; }
.gallery-thumbs a[aria-current] { border-color: #bbb; opacity: 1; }
.gallery-thumbs img { display: block; width: 100%; height: auto; }
.gallery-thumbs span { display: block; padding: 7px 8px; font-size: 10px; }
.game-facts { border-top: 1px solid #777; padding-top: 17px; }
.game-price { font-size: 25px; line-height: 1.4; }
.game-price > span { display: block; font-size: 11px; color: #aaa; margin-top: 5px; }
.game-facts > p { font-size: 12px; line-height: 1.8; color: #b1b1b1; margin: 19px 0; }
.game-metadata { margin: 22px 0; font-size: 11px; }
.game-metadata > div { display: grid; grid-template-columns: 86px 1fr; gap: 9px; margin: 11px 0; }
.game-metadata dt { color: #858585; }
.game-metadata dd { margin: 0; color: #d0d0d0; }
.game-download { display: block; width: fit-content; padding: 11px 13px; background: #ededed; color: #101010; text-shadow: none; text-decoration: none; font-size: 12px; }
.game-download:hover { background: white; }
.game-facts .download-note { color: #8b8b8b; font-size: 10px; line-height: 1.7; margin: 10px 0 0; }
.game-about, .game-connect { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 30px; border-top: 1px solid var(--line); padding: 30px 0; }
.game-about h2, .game-connect h2 { line-height: 1.8; }
.game-about p { color: #aaa; font-size: 13px; line-height: 1.9; margin: 0 0 20px; max-width: 67ch; }
.game-about .story-lead { color: #ddd; font-size: 20px; line-height: 1.5; }
.game-features { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #bbb; font-size: 11px; }
.game-features span::before { content: "+ "; color: #777; }
.game-connect > div > p { font-size: 11px; }
.game-connect .command-row { padding-top: 0; }
.game-connect .command { font-size: 21px; }
.game-page .session-footer { min-height: 64px; }
.screenshot-dialog {
  position: fixed; inset: 0; z-index: 4;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 20px; border: 0;
  background: #101010; color: #ddd; overflow: hidden;
}
.screenshot-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.screenshot-dialog img { display: block; width: 100%; height: 100%; min-height: 0; min-width: 0; margin: 0; object-fit: contain; }
@media (min-width: 1100px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .screenshot-dialog { position: absolute; }
}
@media (forced-colors: active) { .screenshot-dialog { position: fixed; background: Canvas; color: CanvasText; } }
.close-shot { display: block; margin-left: auto; border: 0; padding: 8px; background: #ddd; color: #111; }
.screenshot-dialog p { text-align: center; font-size: 10px; color: #999; margin-bottom: 0; }
.nav-pending .terminal { opacity: 0; }
.nav-leaving .terminal { animation: document-out 180ms ease-in both; }
.nav-arriving .terminal { animation: document-in 500ms ease-out both; }
@keyframes document-out { to { opacity: 0; clip-path: inset(0 0 100% 0); } }
@keyframes document-in {
  from { opacity: .2; clip-path: inset(0 0 100% 0); filter: brightness(1.15); }
  to { opacity: 1; clip-path: inset(0); filter: brightness(1); }
}
@media (max-width: 1000px) {
  .game-overview { grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; }
  .game-about, .game-connect { grid-template-columns: 180px minmax(0,1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .game-overview, .game-about, .game-connect { grid-template-columns: 1fr; gap: 24px; }
  .game-nav > span, .game-tag { display: none; }
  .game-nav { padding: 22px 0 16px; }
  .game-header { padding: 24px 0; }
  .game-pitch { font-size: 13px; }
  .game-facts { padding-top: 20px; }
  .game-metadata > div { grid-template-columns: 95px 1fr; }
  .game-about, .game-connect { padding: 24px 0; gap: 18px; }
  .gallery-thumbs { gap: 8px; }
  .gallery-thumbs span { font-size: 9px; padding: 7px 4px; }
  .gallery-caption { font-size: 9px; }
  .gallery-caption > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .nav-pending .terminal { opacity: 1; }
  .nav-leaving .terminal, .nav-arriving .terminal { animation: none; }
  .enlarge-hint { transition: none; }
}
@media (forced-colors: active) {
  .game-download, .close-shot { border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; }
  .gallery-thumbs a[aria-current] { border: 2px solid Highlight; }
}

/* Match internal navigation when the first document emerges after boot. */
@keyframes document-unmask {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

/* Direct game-page arrivals: glass ignition and reveal, never boot console text. */
.game-pending .terminal { opacity: 0; }
.game-arriving .terminal {
  animation: screen-settle 700ms 650ms both, document-unmask 500ms 650ms ease-out both;
}
.game-arriving .screen::before { animation: grain-warmup 1000ms both; }
.game-arriving .screen::after { animation: scan-warmup 1000ms both; }
.game-arriving .case-led { animation: power-lamp-start 700ms ease-out both; }
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .game-pending .terminal { opacity: 1; }
  .game-arriving .terminal, .game-arriving .screen::before,
  .game-arriving .screen::after, .game-arriving .case-led { animation: none; }
  .game-ignition { display: none; }
}

.platforms { display: flex; flex-wrap: wrap; gap: 9px 12px; list-style: none; margin: 12px 0 0; padding: 0; color: #bdbdbd; }
.platforms li { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; white-space: nowrap; }
.platforms svg { display: block; flex: none; width: 26px; height: 26px; filter: drop-shadow(0 0 3px #ffffff12); }

/* Studio directories: restrained identity above a reusable game grid. */
.profile-header { padding: 32px 0 26px; border-bottom: 1px solid var(--line); }
.profile-identity { display: flex; align-items: center; gap: 28px; margin: 30px 0; }
.profile-mark { display: grid; place-items: center; flex: none; width: 116px; height: 98px; border: 1px solid #555; box-shadow: inset 0 0 22px #ffffff03; color: #ddd; font-size: 19px; letter-spacing: -.04em; }
.profile-role { margin: 0 0 9px; color: #aaa; font-size: 11px; letter-spacing: .12em; }
.profile-identity h1 { margin: 0; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.15; font-weight: 500; letter-spacing: -.055em; text-shadow: 0 0 4px #ffffff24, 0 0 16px #ffffff08; }
.profile-details { display: flex; gap: 22px; align-items: center; color: #999; font-size: 11px; }
.profile-details > :first-child { color: #ddd; border-right: 1px solid #444; padding-right: 22px; }
.profile-catalog { padding: 28px 0 32px; }
.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; list-style: none; padding: 0; margin: 22px 0 0; }
.profile-game-card { display: block; text-decoration: none; border: 1px solid #3e3e3e; background: #111; }
.profile-game-card:hover { border-color: #999; }
.profile-game-card:focus-visible { outline-offset: 4px; }
.card-capture { border-bottom: 1px solid #333; }
.card-capture img { display: block; width: 100%; height: auto; }
.card-text { padding: 18px; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title h3 { margin: 0; font-size: 20px; font-weight: normal; letter-spacing: -.04em; }
.card-title > span { color: #ccc; font-size: 12px; }
.card-text p { margin: 10px 0 20px; font-size: 12px; line-height: 1.6; color: #aaa; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: #999; font-size: 10px; }
.card-open { color: #ddd; }
.profile-related { display: flex; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--line); padding: 18px 0; font-size: 11px; }
.profile-related > span { color: #888; }
@media (min-width: 1800px) { .profile-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .profile-header { padding: 24px 0; }
  .profile-identity { gap: 18px; margin: 24px 0; }
  .profile-mark { width: 70px; height: 70px; font-size: 14px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-details { gap: 14px; font-size: 10px; }
  .profile-details > :first-child { padding-right: 14px; }
}
@media (max-width: 380px) {
  .profile-identity { align-items: flex-start; flex-direction: column; }
}
@media (forced-colors: active) {
  .profile-game-card { background: Canvas; border-color: CanvasText; }
  .profile-mark { border-color: CanvasText; }
}

.grid-platforms { display: inline-flex; align-items: center; gap: 10px; color: #bdbdbd; }
.grid-platform { display: inline-flex; }
.grid-platform svg { display: block; width: 22px; height: 22px; }
.profile-game-card .card-meta { align-items: center; }

.directory-breadcrumb { color: #888; font-size: 11px; }
.directory-breadcrumb a { color: #ccc; }
.directory-header { padding: 32px 0 24px; }
.directory-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.directory-title h1 { font-size: clamp(32px, 4.5vw, 56px); font-weight: 500; letter-spacing: -.06em; margin: 20px 0 12px; }
.directory-title > span { font-size: 10px; color: #999; }
.developer-entry { display: grid; grid-template-columns: 45px 1fr auto 18px; gap: 20px; align-items: center; padding: 25px 20px; border-top: 1px solid #444; border-bottom: 1px solid #444; text-decoration: none; }
.developer-entry:hover { background: #ffffff04; }
.directory-index, .directory-count { font-size: 11px; color: #999; }
.directory-name { font-size: 21px; }
.directory-name > span { display: block; font-size: 11px; color: #999; margin-top: 8px; }
.catalog-console { margin: 28px 0 36px; }
.catalog-console[hidden] { display: none; }
.console-body { padding: 0; }
.shell-log { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.shell-log::-webkit-scrollbar { display: none; }
.shell-entry { border-left: 1px solid #444; padding-left: 14px; margin: 0 0 20px; }
.shell-entry p { margin: 0; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.shell-echo { color: #888; }
.shell-answer { color: #ccc; }
.catalog-form { display: flex; gap: 12px; align-items: center; border: 0; padding: 6px 0; }
.catalog-form label { font-size: 16px; color: var(--faint); flex: none; }
.catalog-form input { min-width: 0; width: 100%; border: 0; border-radius: 0; background: transparent; color: #eee; font: inherit; font-size: 13px; padding: 6px 0; caret-color: #eee; }
.catalog-form input:focus { outline: none; }
.catalog-form:focus-within label { color: #eee; }
.catalog-form input::placeholder { color: #777; }
.catalog-form button { border: 0; color: #111; background: #ddd; padding: 8px 10px; white-space: nowrap; font-size: 11px; }
.shell-hints { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 24px; font-size: 10px; color: #888; line-height: 1.8; }
.shell-hints button { padding: 0; border: 0; background: none; color: #ccc; text-decoration: underline; text-underline-offset: 3px; }
.shell-result-status { font-size: 10px; color: #999; min-height: 14px; }
.shell-results { list-style: none; padding: 0; margin: 12px 0 0; }
.shell-results a { display: grid; grid-template-columns: 75px 140px 1fr 14px; align-items: baseline; gap: 12px; padding: 12px 0; text-decoration: none; border-top: 1px solid #2b2b2b; font-size: 12px; }
.shell-results a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.result-kind, .result-detail { color: #999; font-size: 10px; }
.shell-results strong { font-weight: normal; }
.directory-noscript { color: #aaa; line-height: 1.8; font-size: 12px; margin: 30px 0; }
@media (max-width: 760px) {
  .directory-title { display: block; }
  .directory-title > span { display: block; margin-top: 12px; }
  .directory-breadcrumb { font-size: 9px; }
  .developer-entry { grid-template-columns: 25px 1fr auto 12px; padding: 20px 8px; gap: 12px; }
  .directory-name { font-size: 18px; }

  .catalog-form { flex-wrap: wrap; gap: 8px; }

  .catalog-form input { flex: 1; }
  .shell-hints { flex-direction: column; gap: 4px; }
  .shell-results a { grid-template-columns: 60px 1fr 14px; gap: 8px; }
  .result-detail { grid-column: 2; grid-row: 2; line-height: 1.7; }
}
@media (forced-colors: active) {
  .catalog-console, .catalog-form input { background: Canvas; color: CanvasText; }
  .catalog-form button { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
}
.shell-entry { animation: boot-row-in 140ms ease-out both; }
@media (max-width: 760px) { .catalog-form input { font-size: 16px; } }
@media (hover: hover) and (pointer: fine) {
  .catalog-form input { cursor: url('/cursor-text.svg') 12 14, text; }
  .cursor-down .catalog-form input { cursor: url('/cursor-text-down.svg') 12 14, text; }
}
@media (prefers-reduced-motion: reduce) { .shell-entry { animation: none; } }
@media (forced-colors: active) {
  .catalog-form input, .cursor-down .catalog-form input { cursor: text; }
}

.shell-result-status:empty, .shell-results:empty, .shell-log:empty { display: none; }

.prompt-input { position: relative; min-width: 0; flex: 1; font-size: 13px; }
.catalog-form .prompt-input input { display: block; caret-color: transparent; }
.prompt-caret {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: .6em; height: 1.15em; background: #ddd;
  mix-blend-mode: difference; pointer-events: none;
  animation: blink 1100ms steps(1, end) infinite;
}
.prompt-caret[hidden] { display: none; }
.is-typing .prompt-caret { animation: none; opacity: 1; }
.catalog-form .is-composing input { caret-color: #ddd; }
@media (max-width: 760px) { .prompt-input { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .prompt-caret { animation: none; } }
@media (forced-colors: active) {
  .prompt-caret { display: none; }
  .catalog-form .prompt-input input { caret-color: auto; }
}
