/* ============================================================
   Clock Out Games — phosphor CRT terminal theme
   Monochrome phosphor on black, glow, scanlines, outlined
   windows, function-key buttons.
   Every color is mixed from --ph-rgb; script.js shifts it from teal
   toward soft blue as the page scrolls.
   ============================================================ */
:root {
  --ph-rgb: 143 240 207;   /* phosphor (teal at the top of the page) */
  --ph: rgb(var(--ph-rgb));
  --ph-hi: color-mix(in srgb, var(--ph) 40%, #fff);
  --ph-mid: color-mix(in srgb, var(--ph) 64%, #000);
  --ph-dim: color-mix(in srgb, var(--ph) 30%, #000);
  --bg: color-mix(in srgb, var(--ph) 3%, #000);
  --screen: color-mix(in srgb, var(--ph) 8%, #000);
  --text-soft: color-mix(in srgb, var(--ph) 62%, #e4e4e4);
  --key-top: color-mix(in srgb, var(--ph) 50%, #fff);
  --key-bottom: color-mix(in srgb, var(--ph) 90%, #000);
  --key-hover-top: color-mix(in srgb, var(--ph) 20%, #fff);
  --key-hover-bottom: color-mix(in srgb, var(--ph) 70%, #fff);
  --ph-faint: rgb(var(--ph-rgb) / 0.07);
  --glow: 0 0 6px rgb(var(--ph-rgb) / 0.55);
  --glow-box: 0 0 14px rgb(var(--ph-rgb) / 0.22);
  --ui: "Share Tech Mono", "VT323", ui-monospace, monospace;
  --lcd: "VT323", ui-monospace, monospace;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgb(var(--ph-rgb) / .05), transparent 70%),
    radial-gradient(rgb(var(--ph-rgb) / .06) 1px, transparent 1.4px) 0 0 / 4px 4px,
    var(--bg);
  color: var(--ph);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ph); color: var(--bg); }

/* 3D wireframe cog drawn behind everything (script.js) */
.bg-3d { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* CRT overlays: scanlines + curved-glass vignette */
.crt-scanlines, .crt-vignette { pointer-events: none; position: fixed; inset: 0; z-index: 100; }
.crt-scanlines {
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .13) 0 1px, transparent 1px 4px);
  animation: flicker 6s steps(1) infinite;
}
.crt-vignette { background: radial-gradient(ellipse 120% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .65) 100%); }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .85; } 48% { opacity: 1; } 81% { opacity: .9; } 82% { opacity: 1; } }

.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cursor-block {
  display: inline-block; width: .6em; height: 1em; margin-left: 4px; vertical-align: -2px;
  background: currentColor; animation: blink 1s steps(1) infinite;
}

/* ===== Terminal header ===== */
.termbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  height: 46px; padding: 0 16px;
  background: rgba(2, 7, 5, .92);
  border-bottom: 2px solid var(--ph);
  box-shadow: 0 0 16px rgb(var(--ph-rgb) / .18);
  font-family: var(--ui); font-size: 14px; letter-spacing: 0.1em;
  text-shadow: var(--glow);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
/* Studio logo (gear + clock at 5:00), drawn from the #logo-mark symbol */
.logo-mark {
  --logo-gear: var(--ph); --logo-hand: var(--ph);
  flex: none; overflow: visible;
  filter: drop-shadow(0 0 4px rgb(var(--ph-rgb) / .6));
}
.brand-mark { width: 24px; height: 24px; }
.footer-mark { width: 18px; height: 18px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.termbar-label { color: var(--ph-mid); font-size: 12px; }
.nav { display: flex; gap: 6px; min-width: 0; }
.nav a {
  padding: 2px 10px; white-space: nowrap; text-decoration: none;
  border: 1px solid var(--ph-dim);
}
.nav a:hover, .nav a.active { background: var(--ph); color: var(--bg); text-shadow: none; border-color: var(--ph); }
.loc { margin-left: auto; white-space: nowrap; }
.tray { padding: 0 8px; font-family: var(--lcd); font-size: 22px; border: 1px solid var(--ph-dim); }

/* ===== Windows =====
   Outlined phosphor window with icon box + help box in the title bar, and a
   dimmer window stacked behind (the ::before). A .rwin must not be its own
   stacking context (no z-index/transform/opacity on it) or the stacked window
   would draw on top; the parent provides `isolation: isolate` instead. */
.rwin {
  --stack: 14px;
  position: relative;
  background: var(--screen);
  border: 2px solid var(--ph);
  box-shadow: var(--glow-box), inset 0 0 22px rgb(var(--ph-rgb) / .05);
  font-family: var(--ui);
  color: var(--ph);
}
.rwin::before {
  content: "";
  position: absolute; z-index: -1;
  top: calc(-1 * var(--stack)); left: calc(-1 * var(--stack));
  right: var(--stack); bottom: var(--stack);
  border: 2px solid var(--ph-dim);
  background: linear-gradient(var(--ph-dim) 0 2px, transparent 2px 14px, var(--ph-dim) 14px 16px, var(--bg) 16px);
}
.rwin-title {
  display: flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 8px;
  border-bottom: 2px solid var(--ph);
  background: var(--ph-faint);
  font-size: 14px; letter-spacing: 0.12em; white-space: nowrap;
  text-shadow: var(--glow);
}
.rwin-ico {
  flex: none; width: 18px; height: 18px;
  border: 2px solid var(--ph);
  background: linear-gradient(135deg, transparent 0 40%, var(--ph) 40% 60%, transparent 60%);
}
.rwin-ctrls { margin-left: auto; display: flex; gap: 4px; }
.rwin-ctrls i {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border: 2px solid var(--ph);
  font-style: normal; font-size: 13px; line-height: 1;
}
.rwin-menu {
  display: flex; gap: 18px; padding: 3px 10px;
  border-bottom: 2px solid var(--ph);
  font-size: 13px; letter-spacing: 0.08em; color: var(--ph-mid);
}
.rwin-menu-right { margin-left: auto; font-family: var(--lcd); font-size: 19px; line-height: 1.1; color: var(--ph); letter-spacing: 0.1em; }
.rwin-status {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 4px 10px;
  border-top: 2px solid var(--ph);
  font-size: 12px; letter-spacing: 0.1em; color: var(--ph-mid);
}
.rwin-progress { width: 140px; height: 14px; padding: 2px; border: 2px solid var(--ph); }
.rwin-progress span {
  display: block; height: 100%;
  background: repeating-linear-gradient(90deg, var(--ph) 0 6px, transparent 6px 8px);
  transition: width .3s;
}
.rwin-body { padding: 18px 22px 22px; }
.rwin-body > p { margin: 0 0 16px; font-family: var(--mono); }

/* Alert variant: inverted title bar */
.rwin-alert .rwin-title { background: var(--ph); color: var(--bg); text-shadow: none; }
.rwin-alert .rwin-ico, .rwin-alert .rwin-ctrls i { border-color: var(--bg); }
.rwin-alert .rwin-ico { background: linear-gradient(135deg, transparent 0 40%, var(--bg) 40% 60%, transparent 60%); }

/* Label / value rows, like INDEX / LOC. on the old terminals */
.fields {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0;
  font-family: var(--ui); font-size: 14px; letter-spacing: 0.1em;
}
.fields dt { color: var(--ph-mid); }
.fields dd { margin: 0; padding: 0 8px; border: 1px solid var(--ph-dim); background: var(--ph-faint); text-shadow: var(--glow); }

/* ===== Buttons (function-key style) ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  font-family: var(--ui); font-size: 15px; letter-spacing: 0.1em;
  text-decoration: none; white-space: nowrap;
  transition: transform .06s, box-shadow .1s, background .1s;
}
.btn-primary {
  color: #000;
  background: linear-gradient(to bottom, var(--key-top), var(--key-bottom));
  border: 2px solid #03130d;
  box-shadow: 0 0 0 2px var(--ph-dim), 0 0 14px rgb(var(--ph-rgb) / .35),
              inset -2px -2px 0 rgba(0, 0, 0, .25), inset 2px 2px 0 rgba(255, 255, 255, .5);
}
.btn-primary:hover { background: linear-gradient(to bottom, var(--key-hover-top), var(--key-hover-bottom)); }
.btn-primary:active { transform: translate(1px, 1px); box-shadow: 0 0 0 2px var(--ph-dim), inset 2px 2px 0 rgba(0, 0, 0, .25); }
.btn-ghost { color: var(--ph); border: 2px solid var(--ph); background: transparent; text-shadow: var(--glow); box-shadow: var(--glow-box); }
.btn-ghost:hover { background: var(--ph-faint); }
.btn-small { padding: 6px 12px; font-size: 13px; }

/* ===== Hero: terminal desktop ===== */
.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--ph-dim); }
.hero-stage {
  position: relative; isolation: isolate;
  max-width: 1280px; margin: 0 auto;
  padding: 162px 24px 210px;
  display: flex; justify-content: center;
}
.hero-main { position: relative; width: min(640px, 100%); }
.access {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  margin: 0; white-space: nowrap;
  font-family: var(--ui); font-size: 15px; letter-spacing: 0.16em;
  text-shadow: var(--glow);
}

.desk-icons {
  /* pinned to the left edge so it follows you down the page */
  position: fixed; z-index: 40;
  left: 20px; top: 50%; transform: translateY(-50%);
  display: grid; gap: 22px;
}
.desk-icons a {
  display: grid; justify-items: center; gap: 6px; width: 84px;
  font-family: var(--ui); font-size: 12px; letter-spacing: 0.08em;
  text-decoration: none; text-align: center; text-shadow: var(--glow);
}
.desk-icons svg { width: 40px; height: 40px; filter: drop-shadow(0 0 4px rgb(var(--ph-rgb) / .6)); }
.desk-icons .f { fill: var(--ph); }
.desk-icons .b { fill: var(--bg); }
.desk-icons a span { padding: 0 4px; }
.desk-icons a:hover span, .desk-icons a.active span { background: var(--ph); color: var(--bg); text-shadow: none; }

.hero-win { width: 100%; }
.hero-body { padding: 26px 32px 30px; }
.hero-head { display: flex; align-items: center; gap: 24px; max-width: 470px; }
.hero-head .fields { flex: 1; min-width: 0; }
.hero-mark {
  width: 92px; height: 92px;
  filter: drop-shadow(0 0 4px rgb(var(--ph-rgb) / .45)) drop-shadow(0 0 12px rgb(var(--ph-rgb) / .12));
}
/* the gear turns; the face and hands (stuck at 5:00) stay put */
.gear-spin { transform-box: fill-box; transform-origin: center; animation: spin 36s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo {
  margin: 26px 0 0;
  font-family: var(--lcd); font-weight: 400;
  font-size: clamp(72px, 12vw, 150px); line-height: .8; letter-spacing: 0.02em;
  color: var(--ph-hi);
  text-shadow:
    0 0 10px rgb(var(--ph-rgb) / .8), 0 0 28px rgb(var(--ph-rgb) / .35),
    3px 3px 0 var(--ph-mid), 6px 6px 0 var(--ph-dim);
  animation: glitch 8s steps(1) infinite;
}
.logo-games {
  display: block; margin-top: 14px;
  font-family: var(--ui); font-size: .2em; letter-spacing: .9em;
  color: var(--ph); text-shadow: var(--glow);
}
/* Every few seconds the logo jitters like a bad signal */
@keyframes glitch {
  0%, 93%, 100% { transform: none; filter: none; }
  94% { transform: translate(-4px, 1px) skewX(-8deg); filter: drop-shadow(-5px 0 0 rgba(255, 60, 120, .7)) drop-shadow(5px 0 0 rgba(60, 220, 255, .7)); }
  96% { transform: translate(3px, -1px); filter: drop-shadow(4px 0 0 rgba(255, 60, 120, .7)) drop-shadow(-4px 0 0 rgba(60, 220, 255, .7)); }
  98% { transform: translate(-1px, 0); filter: none; }
}
.press-start { margin: 22px 0 0; font-family: var(--lcd); font-size: 26px; letter-spacing: 0.25em; text-shadow: var(--glow); }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
/* the corner windows overlap the status bar's ends, so keep its text in the middle */
.hero-win .rwin-status { justify-content: center; gap: 28px; padding-inline: 72px; }
.hero-win .rwin-status > span { white-space: nowrap; }

.float { position: absolute; z-index: 2; isolation: isolate; }
/* Positioned off the main window's corners so they overlap it */
.float-notice { right: -200px; top: -22px; width: 270px; }
/* big and mostly tucked behind the main window, like it was open underneath */
.float-signal { z-index: -1; left: -300px; top: -60px; width: 540px; }
.scope { display: block; width: 100%; height: 160px; border-bottom: 2px solid var(--ph); }
.signal-row {
  display: flex; justify-content: flex-start; gap: 18px; align-items: center;
  padding: 6px 12px;
  font-size: 12px; letter-spacing: 0.12em; text-decoration: none; color: var(--ph-mid);
}
.signal-row #signal-online { color: var(--ph); text-shadow: var(--glow); }
.signal-label { display: inline-flex; align-items: center; gap: 8px; }

/* Discord logo, sized to the text it sits beside */
.discord-ico { width: 1.25em; height: 1.25em; flex: none; filter: drop-shadow(0 0 2px rgb(var(--ph-rgb) / .25)); }
.links b { display: inline-flex; align-items: center; gap: 10px; }
.links b .discord-ico { width: .9em; height: .9em; }
.btn .discord-ico { width: 1.2em; height: 1.2em; }
.signal-row:hover { background: var(--ph); color: var(--bg); }
.signal-row:hover #signal-online { color: var(--bg); text-shadow: none; }
.float-dir { right: -330px; bottom: -160px; width: 380px; }
.float-boot { left: -320px; bottom: -170px; width: 360px; }
.notice-body { display: flex; gap: 14px; align-items: center; padding: 16px 16px 8px; }
.notice-body p { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.5; }
.notice-body b { font-weight: 500; text-shadow: var(--glow); }
.notice-icon {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px;
  border: 2px solid var(--ph); box-shadow: var(--glow-box);
  font-family: var(--lcd); font-size: 30px; line-height: 1; text-shadow: var(--glow);
  padding-bottom: 5px; /* VT323's "!" sits low; lift it to center */
}
.notice-actions { display: flex; justify-content: flex-end; padding: 6px 16px 14px; }
.boot-log {
  margin: 0; padding: 10px 14px; min-height: 9.4em;
  font-family: var(--lcd); font-size: 19px; line-height: 1.25;
  white-space: pre-wrap; text-shadow: var(--glow);
}
.boot-log .cursor { animation: blink 1s steps(1) infinite; }

/* Directory list (folder rows with dates) */
.dir { list-style: none; margin: 0; padding: 8px; }
.dir a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 3px 8px;
  font-size: 13px; letter-spacing: 0.06em; text-decoration: none;
  text-shadow: var(--glow);
}
.dir a:hover, .dir a.sel { background: var(--ph); color: var(--bg); text-shadow: none; }
.dir-ico {
  position: relative; width: 18px; height: 13px; margin-top: 3px;
  border: 2px solid currentColor;
}
.dir-ico::before { content: ""; position: absolute; left: -2px; top: -6px; width: 8px; height: 4px; border: 2px solid currentColor; border-bottom: 0; }
.dir-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-date { color: inherit; opacity: .8; }

/* ===== Sections ===== */
.section { max-width: 1180px; margin: 0 auto; padding: 104px 24px 24px; }
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 44px; }
.section-num {
  padding: 0 10px;
  font-family: var(--lcd); font-size: 30px; line-height: 1.2;
  background: var(--ph); color: var(--bg);
  box-shadow: var(--glow-box);
}
.section-head h2 {
  margin: 0;
  font-family: var(--lcd); font-weight: 400; font-size: 56px; line-height: .9;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ph-hi);
  text-shadow: 0 0 10px rgb(var(--ph-rgb) / .7), 3px 3px 0 var(--ph-dim);
}
.section-rule { flex: 1; height: 0; border-top: 2px dashed var(--ph-dim); }
.section-lede { margin: -24px 0 44px; font-family: var(--ui); letter-spacing: 0.06em; color: var(--ph-mid); }

.stamp {
  display: inline-block; padding: 1px 8px;
  font-family: var(--ui); font-size: 12px; letter-spacing: 0.1em;
  border: 2px solid currentColor;
}
.stamp-on { background: var(--ph); color: var(--bg); border-color: var(--ph); box-shadow: var(--glow-box); }

/* ===== Featured game ===== */
.feature { display: grid; grid-template-columns: 1.55fr 1fr; gap: 52px; align-items: center; }
.feature-media { isolation: isolate; padding: 14px 0 0 14px; }
.rwin-view { position: relative; border-bottom: 2px solid var(--ph); background: #000; }
.rwin-view img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rwin-nav {
  position: absolute; z-index: 1; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  background: var(--ph); color: var(--bg);
  border: 2px solid var(--bg);
  font-size: 15px; cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.rwin-view:hover .rwin-nav, .rwin-nav:focus-visible { opacity: 1; }
.rwin-nav.prev { left: 10px; }
.rwin-nav.next { right: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px; }
.thumbs button {
  padding: 0; border: 2px solid var(--ph-dim); overflow: hidden;
  background: none; cursor: pointer; opacity: .45;
  transition: opacity .15s, border-color .15s;
}
.thumbs button:hover { opacity: .85; }
.thumbs button.active { opacity: 1; border-color: var(--ph); box-shadow: var(--glow-box); }
.thumbs img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.feature-meta { display: flex; align-items: center; gap: 14px; font-family: var(--ui); font-size: 12px; letter-spacing: 0.14em; color: var(--ph-mid); }
.feature-title {
  margin: 14px 0 0;
  font-family: var(--lcd); font-weight: 400; font-size: clamp(64px, 8vw, 104px); line-height: .85;
  color: var(--ph-hi);
  text-shadow: 0 0 10px rgb(var(--ph-rgb) / .8), 0 0 26px rgb(var(--ph-rgb) / .3), 3px 3px 0 var(--ph-mid), 6px 6px 0 var(--ph-dim);
}
.feature-sub { margin: 10px 0 18px; font-family: var(--ui); font-size: 14px; letter-spacing: 0.18em; text-shadow: var(--glow); }
.feature-desc { color: var(--text-soft); font-size: 15px; }
.feature-desc em { color: var(--ph-hi); font-style: normal; text-shadow: var(--glow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; }
.chips li { padding: 1px 8px; font-family: var(--ui); font-size: 12px; letter-spacing: 0.06em; border: 1px solid var(--ph-mid); }
.feature-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.feature-ost { display: inline-block; margin-top: 20px; font-family: var(--ui); font-size: 13px; text-decoration: none; text-shadow: var(--glow); }
.feature-ost:hover { background: var(--ph); color: var(--bg); text-shadow: none; }

/* ===== In Sink stats ===== */
.stats {
  isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 36px;
  margin-top: 40px; padding: 8px 0 0 8px;
}
.stat-win { --stack: 8px; }
.stat-win .rwin-title { height: 26px; font-size: 12px; }
.stat-win .rwin-ico { width: 14px; height: 14px; }
.stat-body { padding: 6px 14px 8px; }
.stat-value { font-family: var(--lcd); font-size: 38px; line-height: 1; color: var(--ph-hi); text-shadow: 0 0 10px rgb(var(--ph-rgb) / .7); }
.stat-value-word { font-size: 30px; line-height: 1.1; text-transform: uppercase; }
.stat-note { font-size: 12px; letter-spacing: 0.06em; color: var(--ph-mid); }
.stat-note b { color: var(--ph); font-weight: 400; }
.live { margin-left: auto; padding: 0 6px; background: var(--ph); color: var(--bg); text-shadow: none; animation: blink 1.4s steps(1) infinite; }
.meter { height: 12px; margin: 4px 0 4px; padding: 2px; border: 2px solid var(--ph); }
.meter-fill {
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--ph) 0 6px, transparent 6px 8px);
  transition: width .8s ease-out;
}

/* ===== Other games ===== */
.cards {
  isolation: isolate;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 48px 44px; padding: 14px 0 0 14px;
}
.game { display: flex; flex-direction: column; transition: box-shadow .12s; }
.game:hover { box-shadow: 0 0 26px rgb(var(--ph-rgb) / .45), inset 0 0 22px rgb(var(--ph-rgb) / .08); }
.game-media { position: relative; aspect-ratio: 460 / 215; overflow: hidden; background: #000; border-bottom: 2px solid var(--ph); }
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
/* Air Coots' cover is closer to square; show all of it instead of cropping */
.game-media-full { aspect-ratio: 630 / 500; }
/* screenshot strip under the wide headers, so they line up with Air Coots' taller cover */
.game-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; border-bottom: 2px solid var(--ph); }
.game-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--ph-dim); }
.specs { margin: 0 0 14px; font-size: 12px; gap: 4px 12px; }
.specs dd { padding: 0 6px; }
.game:hover .game-media img {
  filter: drop-shadow(-4px 0 0 rgba(255, 60, 120, .7)) drop-shadow(4px 0 0 rgba(60, 220, 255, .7));
}
.game-media .stamp { position: absolute; z-index: 1; top: 10px; right: 10px; }
.game-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.game-meta { margin: 0; font-size: 12px; letter-spacing: 0.14em; color: var(--ph-mid); }
.game-award { margin: 0; font-size: 12px; letter-spacing: 0.1em; text-shadow: var(--glow); }
.game h3 { margin: 0; font-family: var(--lcd); font-weight: 400; font-size: 32px; line-height: 1; color: var(--ph-hi); text-shadow: var(--glow); }
.game-desc { margin: 0 0 6px; flex: 1; font-family: var(--mono); font-size: 14px; color: var(--text-soft); }
.game-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-family: var(--lcd); font-size: 30px; line-height: 1; color: var(--ph-hi); text-shadow: var(--glow); }
.price-cur { font-size: 22px; color: var(--ph-mid); text-shadow: none; }

/* ===== Team: personnel files ===== */
.people {
  isolation: isolate;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 44px; padding: 14px 0 0 14px;
}
.person-body { display: flex; gap: 20px; align-items: center; padding: 18px; }
.person-photo {
  flex: none; display: grid; place-items: center;
  width: 108px; height: 108px;
  border: 2px solid var(--ph);
  background: radial-gradient(rgb(var(--ph-rgb) / .35) 1.2px, transparent 1.6px) 0 0 / 6px 6px, var(--bg);
  font-family: var(--lcd); font-size: 72px; line-height: 1; color: var(--ph-hi);
  text-shadow: 0 0 10px rgb(var(--ph-rgb) / .8);
  overflow: hidden;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-body .fields { flex: 1; font-size: 13px; }
.person-body .fields dd { border: 0; background: none; padding: 0; }
.person-name { font-family: var(--lcd); font-size: 30px; line-height: 1; color: var(--ph-hi); }

/* ===== Contact ===== */
.contact-wrap { isolation: isolate; max-width: 760px; padding: 14px 0 0 14px; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.links a {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 16px;
  text-decoration: none;
  border: 2px solid var(--ph);
  box-shadow: var(--glow-box);
  transition: background .1s, color .1s;
}
.links a:hover { background: var(--ph); color: var(--bg); }
.links b { font-family: var(--lcd); font-size: 32px; font-weight: 400; line-height: 1; text-shadow: var(--glow); }
.links a:hover b { text-shadow: none; }
.links small { display: flex; align-items: center; gap: 6px; font-family: var(--ui); font-size: 12px; letter-spacing: 0.06em; opacity: .85; }
.online-dot { width: 8px; height: 8px; background: currentColor; box-shadow: 0 0 6px currentColor; }

/* ===== Footer ===== */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  max-width: 1180px; margin: 96px auto 0; padding: 16px 24px;
  border-top: 2px dashed var(--ph-dim);
  font-family: var(--ui); font-size: 13px; letter-spacing: 0.12em; color: var(--ph-mid);
}

/* ===== Responsive ===== */
/* Below this the corner windows would run off-screen, so they stack */
/* The pinned icons need a clear left margin beside the 1180px content column */
@media (max-width: 1360px) {
  .desk-icons { display: none; }
}
@media (max-width: 1240px) {
  .hero-stage { padding-bottom: 64px; }
  .hero-main { display: flex; flex-direction: column; gap: 44px; }
  .float { position: relative; inset: auto; width: 100%; padding: 14px 0 0 14px; }
  .float-signal { display: none; } /* corner decoration only; skip it when the windows stack */
  .hero-win .rwin-status { justify-content: space-between; gap: 12px; padding-inline: 10px; } /* nothing overlaps it now */
}
@media (max-width: 1000px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-reviews { grid-column: 1 / -1; }
  .loc { display: none; }
}
@media (max-width: 720px) {
  .termbar { padding: 0 12px; gap: 10px; }
  .termbar-label, .tray { display: none; }
  .brand { font-size: 0; gap: 0; }
  .nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
  .nav a { padding: 2px 7px; font-size: 12px; }
  .access { font-size: 12px; letter-spacing: 0.08em; }
  .section { padding: 80px 16px 16px; }
  .section-head h2 { font-size: 42px; }
  .hero-stage { padding: 64px 16px 56px; }
  .hero-body { padding: 22px 20px 24px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .rwin-menu span:not(.rwin-menu-right) { display: none; }
  .rwin-progress { width: 80px; }
  .rwin-nav { opacity: 1; width: 30px; height: 30px; }
  .person-body { flex-direction: column; align-items: flex-start; }
  .hero-mark { width: 60px; height: 60px; }
  .hero-head { gap: 14px; }
  .hero-head .fields { font-size: 12px; gap: 6px 8px; }
  .access .blink { display: none; }
  .status-mem { display: none; }
  .float-notice, .float-boot { display: none; } /* desktop flavor; on phones they just push the content down */
}

@media (prefers-reduced-motion: reduce) {
  .blink, .cursor-block, .boot-log .cursor, .logo, .crt-scanlines, .live, .gear-spin { animation: none; }
  html { scroll-behavior: auto; }
}
