/* ════════════════════════════════════════════════════════════════════
   games.cog-bot.ai — consolidated site stylesheet
   Ported verbatim from the cogbot-ai wave1 landing (f-synthesis-v10 design
   system, src/app/globals.css). Interior-page helpers (top nav, arcade grid,
   cast gallery, adopt band) added below the ported block.
   ════════════════════════════════════════════════════════════════════ */

/* ─── v10 canonical tokens ─── */
:root {
  --bg: #07060b;
  --bg2: #0c0a12;
  --panel: #100e17;
  --panel2: #15121e;
  --line: #221e2e;
  --line2: #2f2940;
  --cyan: #72e2e9;
  --cyan-glow: #8cf3f7;
  --cyan-dim: #3e8f95;
  --pink: #eab1b9;
  --pink-deep: #d894a0;
  --pink-dark: #b06f7e;
  --pewter: #978790;
  --pewter-hi: #b8abb2;
  --pewter-lo: #5d545b;
  --charcoal: #3d394a;
  --mauve: #6d515f;
  --copper: #bca59d;
  --amber: #ffc266;
  --ink: #d9d4e4;
  --ink-dim: #8f88a3;
  --ink-faint: #5c5570;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1.125rem;
  --s4: 1.75rem;
  --s5: 2.75rem;
  --s6: 4.5rem;
  --rad: 14px;
}

* { box-sizing: border-box; margin: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  position: relative;
}
::selection { background: rgba(114, 226, 233, 0.25); }
html { scrollbar-color: var(--line2) var(--bg); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line2); border: 3px solid var(--bg); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--charcoal); }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.landing { position: relative; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan-glow); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.chip {
  display: inline-block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line2);
  border-radius: 999px; padding: 2px 9px 1px; color: var(--ink-dim);
  vertical-align: middle; white-space: nowrap;
}
.chip.live { color: var(--cyan); border-color: rgba(114, 226, 233, 0.4); }
.chip.concept { color: var(--pink); border-color: rgba(234, 177, 185, 0.35); }
.chip.private { color: var(--pewter); border-color: rgba(151, 135, 144, 0.4); }
.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--cyan-dim); margin-bottom: var(--s2);
}
.h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.lede { color: var(--ink-dim); max-width: 56ch; }
.mono { font-family: var(--mono); }
.sect { position: relative; padding: var(--s6) 0; }
.sect + .sect { padding-top: var(--s4); }

/* ─── ambient motes ─── */
.motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mote-layer {
  position: absolute; left: 0; right: 0; top: -520px; bottom: -520px;
  background-repeat: repeat; background-size: 460px 520px; opacity: 0.5;
}
.mote-layer.m1 {
  background-image:
    radial-gradient(1.6px 1.6px at 40px 60px, rgba(140, 243, 247, 0.5), transparent 100%),
    radial-gradient(1.2px 1.2px at 190px 340px, rgba(234, 177, 185, 0.4), transparent 100%),
    radial-gradient(2px 2px at 330px 150px, rgba(140, 243, 247, 0.35), transparent 100%),
    radial-gradient(1.2px 1.2px at 410px 430px, rgba(217, 212, 228, 0.3), transparent 100%);
}
.mote-layer.m2 {
  background-image:
    radial-gradient(1.4px 1.4px at 110px 480px, rgba(140, 243, 247, 0.4), transparent 100%),
    radial-gradient(1.8px 1.8px at 260px 40px, rgba(217, 212, 228, 0.28), transparent 100%),
    radial-gradient(1.2px 1.2px at 370px 300px, rgba(234, 177, 185, 0.32), transparent 100%);
  opacity: 0.4;
}
@media (prefers-reduced-motion: no-preference) {
  .mote-layer.m1 { animation: motedrift 52s linear infinite; }
  .mote-layer.m2 { animation: motedrift 76s linear infinite reverse; }
  @keyframes motedrift { from { transform: translateY(0); } to { transform: translateY(520px); } }
}

/* ─── ring-pins ─── */
.pin { position: absolute; z-index: 40; width: 26px; height: 26px; }
.pin-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan);
  box-shadow: 0 0 8px rgba(114, 226, 233, 0.45), inset 0 0 5px rgba(114, 226, 233, 0.35);
}
.pin-ring::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 7px var(--cyan-glow);
}
@media (prefers-reduced-motion: no-preference) {
  .pin-ring { animation: pinpulse 2.6s ease-in-out infinite; }
  @keyframes pinpulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.15); opacity: 1; } }
}
.pin-card {
  position: absolute; left: 32px; top: 50%; transform: translateY(-50%);
  width: max-content; max-width: min(240px, 58vw); background: var(--panel2);
  border: 1px solid var(--line2); border-radius: 10px; padding: 9px 12px;
  font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55); text-align: left;
}
.pin-card b { color: var(--cyan); font-weight: 600; display: block; margin-bottom: 2px; }
.pin:hover .pin-card, .pin:focus-visible .pin-card, .pin.open .pin-card { opacity: 1; pointer-events: auto; }
.pin:focus-visible .pin-ring { outline: 2px solid var(--cyan-glow); outline-offset: 3px; }
.pin.flip .pin-card { left: auto; right: 32px; }
.sect-pin { position: absolute; top: var(--s5); right: clamp(4px, 3vw, 28px); }
@media (max-width: 640px) { .sect-pin { display: none; } }

/* ─── hero: the head is the terminal; the limbs run the page ─── */
.land-hero {
  position: relative; padding: clamp(24px, 4vw, 52px) 0 var(--s5);
  overflow: hidden; background: radial-gradient(1200px 640px at 50% -8%, #16102a 0%, var(--bg) 62%);
}
.land-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(90deg, transparent 0 6%, rgba(114, 226, 233, 0.16) 6% 6.15%, transparent 6.15% 18%, rgba(114, 226, 233, 0.1) 18% 18.12%, transparent 18.12%),
    linear-gradient(270deg, transparent 0 6%, rgba(199, 111, 162, 0.16) 6% 6.15%, transparent 6.15% 18%, rgba(199, 111, 162, 0.1) 18% 18.12%, transparent 18.12%),
    radial-gradient(60% 40% at 50% 118%, rgba(114, 226, 233, 0.06), transparent 70%);
  background-repeat: no-repeat; background-position: bottom left, bottom right, center bottom;
  background-size: 100% 62%, 100% 62%, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 40%, #000 100%);
}
/* side port-arms — emerge from behind the keeper's body (z-index below the
   render) so the base tucks under the silhouette and the limb reads as part
   of the organism, curling outward to frame the hero. Anchored to .headwrap. */
.hero-bg-arm { position: absolute; z-index: -1; width: 62%; opacity: 0.9; pointer-events: none; overflow: visible; }
.hero-bg-arm img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55)); }
.hero-bg-arm-l { top: 40%; right: 52%; transform: scaleX(-1); }
.hero-bg-arm-r { top: 33%; left: 54%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg-arm img { animation: cogArmEmerge 7.5s ease-in-out infinite; transform-origin: 50% 30%; }
  .hero-bg-arm-r img { animation: cogArmEmerge 8.5s ease-in-out -2s infinite; }
  @keyframes cogArmEmerge {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    38% { transform: translate(4px, -6px) rotate(-2.5deg); }
    68% { transform: translate(2px, -3px) rotate(1.5deg); }
  }
}
@media (max-width: 760px) { .hero-bg-arm { display: none; } }

/* site-wide organism motif — a single tentacle curling in from the lower-right
   screen edge on the interior pages, echoing the landing keeper. */
.page-tentacle {
  position: fixed; z-index: 0; right: -30px; bottom: -40px;
  width: clamp(200px, 21vw, 300px); opacity: 0.38; pointer-events: none;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
}
.page-tentacle img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .page-tentacle { animation: pageTentacleSway 9s ease-in-out infinite; transform-origin: 85% 85%; }
  @keyframes pageTentacleSway {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5px, -7px) rotate(-2deg); }
  }
}
@media (max-width: 820px) { .page-tentacle { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .sway { transform-origin: 50% 0; animation: sway 9s ease-in-out infinite; }
  @keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
}

.creature { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.headwrap { position: relative; width: min(560px, 88vw); }
.keeper-hero {
  --kscreen-top: 30.2%; --kscreen-left: 31.3%; --kscreen-width: 25.8%; --kscreen-height: 19.9%;
}
.keeper-img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.6)) brightness(0.97);
}
.keeper-hero .screenmount {
  position: absolute; left: var(--kscreen-left); top: var(--kscreen-top);
  width: var(--kscreen-width); height: var(--kscreen-height);
  container-type: inline-size; z-index: 6;
}
.keeper-hero .screen { aspect-ratio: auto; height: 100%; }
.screen {
  position: relative; aspect-ratio: 384 / 200; border-radius: 3.4% / 5.8%;
  background: linear-gradient(180deg, #0c1116 0%, #090d12 100%);
  box-shadow: inset 0 0 0 1px #1c2630, inset 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 34px rgba(114, 226, 233, 0.08);
  overflow: hidden; display: flex; flex-direction: column;
}
.screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(0deg, rgba(140, 243, 247, 0.045) 0 1px, transparent 1px 3px);
}
.screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(130% 80% at 50% 0%, rgba(140, 243, 247, 0.07), transparent 55%);
}
.term-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 2.4cqi 3.4cqi 1cqi; font-family: var(--mono); font-size: clamp(8px, 2.7cqi, 11px);
  color: var(--ink-faint); letter-spacing: 0.1em; flex: none; position: relative; z-index: 4;
}
.dock {
  flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; pointer-events: none; position: relative; z-index: 2;
}
.dockface {
  font-family: var(--mono); font-size: clamp(24px, 15cqi, 56px); color: var(--cyan);
  text-shadow: 0 0 18px var(--cyan-glow), 0 0 44px rgba(114, 226, 233, 0.5); line-height: 1.1;
}
@media (prefers-reduced-motion: no-preference) {
  .dockface { animation: facebreathe 5s ease-in-out infinite; }
  @keyframes facebreathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
}
.docksub {
  font-family: var(--mono); font-size: clamp(7px, 2.2cqi, 10px); color: var(--ink-faint);
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 1.2cqi; min-height: 1.1em;
}

/* ─── nav pill hanging from a tentacle cord ─── */
.hangnav { position: absolute; z-index: 6; top: 0; right: clamp(8px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; }
.hangnav .cord {
  width: 5px; height: clamp(48px, 9vw, 110px);
  background: linear-gradient(180deg, var(--charcoal), var(--mauve));
  border-radius: 3px; box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}
.hangnav .cord::after {
  content: ""; display: block; width: 11px; height: 11px; margin: -2px auto 0;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan-glow);
}
.hangnav ul {
  list-style: none; padding: 10px 14px; margin-top: 2px; background: var(--panel2);
  border: 1px solid var(--line2); border-radius: 12px; font-family: var(--mono);
  font-size: 12px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(114, 226, 233, 0.28), inset 0 -1px 0 rgba(199, 111, 162, 0.24);
}
@media (max-width: 760px) { .hangnav { display: none; } }

.hero-copy { position: relative; z-index: 5; text-align: center; margin-top: var(--s4); }
.hero-copy h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.3; max-width: 30ch; margin: 0 auto;
}
.hero-copy p { color: var(--ink-dim); max-width: 52ch; margin: var(--s2) auto 0; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: var(--s3); }
.btn {
  display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em;
  border: 1px solid rgba(114, 226, 233, 0.45); border-radius: 10px; padding: 11px 20px; color: var(--cyan);
  box-shadow: inset 1px 0 0 rgba(114, 226, 233, 0.3), inset -1px 0 0 rgba(199, 111, 162, 0.24);
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s cubic-bezier(0.34, 1.45, 0.5, 1);
}
.btn:hover {
  background: rgba(114, 226, 233, 0.08); text-decoration: none;
  box-shadow: 0 0 18px rgba(114, 226, 233, 0.2), 0 3px 10px rgba(0, 0, 0, 0.35); transform: translateY(-1.5px);
}
.btn:active { transform: translateY(0.5px) scale(0.985); transition-duration: 0.06s; }
.btn.ghost { border-color: var(--line2); color: var(--ink-dim); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.04); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }

/* ─── the cog's own body panels ─── */
.weave-host { position: relative; z-index: 0; }
.screen-plate {
  position: relative; z-index: 2;
  background:
    radial-gradient(140% 90% at 20% -10%, rgba(184, 171, 178, 0.10), transparent 55%),
    linear-gradient(175deg, var(--panel2) 0%, var(--panel) 55%, var(--panel) 100%);
  border: 1px solid var(--copper); border-radius: var(--rad);
  padding: clamp(20px, 4vw, 40px) clamp(20px, 4.4vw, 46px); overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(188, 165, 157, 0.14), inset 0 1px 0 rgba(184, 171, 178, 0.08);
}
.screen-plate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(122deg, rgba(184, 171, 178, 0.05) 0 2px, transparent 2px 10px); opacity: 0.5;
}
.screen-plate::after {
  content: ""; position: absolute; inset: 7px; border: 1px solid var(--pewter-lo);
  border-radius: calc(var(--rad) - 6px); pointer-events: none; opacity: 0.6;
}
.sp-corner { position: absolute; width: 15px; height: 15px; border: 1.5px solid var(--pewter-hi); pointer-events: none; opacity: 0.55; z-index: 1; }
.sp-corner.tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.sp-corner.tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.sp-corner.bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; }
.sp-corner.br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }
.sp-rivet {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--pewter-hi), var(--copper) 55%, var(--pewter-lo) 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.25); pointer-events: none; z-index: 1; opacity: 0.9;
}
.sp-rivet.tl { top: 4px; left: 22px; }
.sp-rivet.tr { top: 4px; right: 22px; }
.sp-rivet.bl { bottom: 4px; left: 22px; }
.sp-rivet.br { bottom: 4px; right: 22px; }

/* fleet key art backdrop */
.fleet-bg-art {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background-image: url("../assets/images/fleet-keyart.png"); background-size: cover; background-position: center;
  opacity: 0.08; filter: blur(2px);
  -webkit-mask-image: radial-gradient(ellipse 55% 90% at 50% 50%, transparent 0%, transparent 45%, #000 78%);
  mask-image: radial-gradient(ellipse 55% 90% at 50% 50%, transparent 0%, transparent 45%, #000 78%);
}

/* ─── the fleet / cog roster ─── */
.vitals { position: relative; z-index: 2; padding-top: clamp(14px, 2.4vw, 20px); border-top: 1px solid var(--line2); max-width: 680px; margin: 0 auto; }
.roster-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); padding-bottom: 10px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.roster-head .rh-l { font-size: 13.5px; color: var(--ink); }
.vrow { display: flex; justify-content: space-between; gap: 14px; font-family: var(--mono); font-size: 13px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.vrow:last-of-type { border-bottom: 0; }
.vrow .k { color: var(--ink); }
.vrow .v { color: var(--ink-dim); text-align: right; }
.roster-foot { margin-top: 12px; text-align: right; }
@media (max-width: 640px) {
  .roster-foot { text-align: left; }
  .roster-foot .chip { white-space: normal; line-height: 1.5; }
  .vrow { font-size: 12px; gap: 10px; }
}

/* ─── constellation router (territories) ─── */
.router { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: var(--s4); position: relative; }
.rnode { background: var(--panel); border: 1px solid var(--line2); border-radius: var(--rad); padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.2s, box-shadow 0.25s, transform 0.22s cubic-bezier(0.3, 1.35, 0.45, 1); position: relative; z-index: 1; }
.rnode:hover { border-color: rgba(114, 226, 233, 0.4); box-shadow: 0 0 22px rgba(114, 226, 233, 0.1), 0 8px 24px rgba(0, 0, 0, 0.4); transform: translateY(-3px); text-decoration: none; }
.rnode .dom { font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
.rnode .why { font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; }
.rnode.lit { border-color: rgba(114, 226, 233, 0.5); box-shadow: 0 0 22px rgba(114, 226, 233, 0.12), inset 0 0 0 1px rgba(114, 226, 233, 0.14); }
.rnode.lit .dom { color: var(--cyan); text-shadow: 0 0 10px rgba(114, 226, 233, 0.35); }

.whatis-lines { margin-top: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.whatis-lines .lede { margin-top: 0; }
.whatis-more { margin-top: var(--s3); font-size: 12.5px; }

/* ─── footer ─── */
.foot { border-top: 1px solid var(--line); padding: var(--s5) 0 var(--s6); color: var(--ink-faint); font-size: 13.5px; position: relative; overflow: hidden; }
.foot .wrap { position: relative; z-index: 1; }
.foot .mono { font-size: 12px; }
.foot .mono a { color: var(--cyan); text-decoration: none; }
.foot .mono a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-flex { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }

/* ════════════════════════════════════════════════════════════════════
   INTERIOR-PAGE HELPERS (added for the consolidated multi-page site)
   ════════════════════════════════════════════════════════════════════ */

/* top nav — consistent bar across interior pages (arcade / gallery / about) */
.sitenav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(7, 6, 11, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line2);
}
.sitenav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--ink); letter-spacing: 0.02em; }
.sitenav .brand:hover { text-decoration: none; }
.sitenav .brand img { width: 28px; height: 28px; border-radius: 7px; }
.sitenav .brand b { color: var(--cyan); font-weight: 600; }
.sitenav ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; font-family: var(--mono); font-size: 12.5px; }
.sitenav ul a { display: inline-block; padding: 6px 11px; border-radius: 8px; color: var(--ink-dim); border: 1px solid transparent; }
.sitenav ul a:hover { color: var(--cyan); border-color: var(--line2); text-decoration: none; }
.sitenav ul a.here { color: var(--cyan); border-color: rgba(114, 226, 233, 0.4); }
.sitenav .brand span { white-space: nowrap; }
@media (max-width: 480px) {
  .sitenav { flex-wrap: wrap; gap: 8px 12px; padding: 10px clamp(14px, 4vw, 40px); }
  .sitenav .brand { font-size: 13px; }
  .sitenav ul { width: 100%; justify-content: center; gap: 4px; font-size: 11.5px; }
  .sitenav ul a { padding: 5px 9px; }
}

/* page header block for interior pages */
.pagehead { position: relative; padding: clamp(36px, 6vw, 68px) 0 var(--s4); text-align: center; overflow: hidden; background: radial-gradient(1000px 500px at 50% -20%, #16102a 0%, var(--bg) 62%); }
.pagehead h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.pagehead .lede { margin: var(--s2) auto 0; text-align: center; }

/* arcade cabinet grid */
.arcade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; margin-top: var(--s3); }
.gcard {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(175deg, var(--panel2) 0%, var(--panel) 60%);
  border: 1px solid var(--line2); border-radius: var(--rad); padding: 18px 18px 16px;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.22s cubic-bezier(0.3, 1.35, 0.45, 1);
}
.gcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: var(--rad) 0 0 var(--rad); background: var(--ph, var(--cyan)); opacity: 0.85; }
.gcard:hover { border-color: rgba(114, 226, 233, 0.4); box-shadow: 0 0 22px rgba(114, 226, 233, 0.1), 0 10px 26px rgba(0, 0, 0, 0.45); transform: translateY(-3px); text-decoration: none; }
.gcard .gc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gcard .gc-title { font-family: var(--mono); font-size: 15px; color: var(--ink); font-weight: 600; }
.gcard:hover .gc-title { color: var(--cyan); }
.gcard .gc-blurb { color: var(--ink-dim); font-size: 13.5px; line-height: 1.5; }
.gcard .gc-controls { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.03em; margin-top: 2px; }
.gcard .gc-play { font-family: var(--mono); font-size: 12px; color: var(--cyan); margin-top: 4px; }

/* cast gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: var(--s3); }
.castcard { background: var(--panel); border: 1px solid var(--line2); border-radius: var(--rad); overflow: hidden; transition: border-color 0.2s, box-shadow 0.25s, transform 0.22s cubic-bezier(0.3, 1.35, 0.45, 1); }
.castcard:hover { border-color: rgba(114, 226, 233, 0.4); box-shadow: 0 0 22px rgba(114, 226, 233, 0.1), 0 10px 26px rgba(0, 0, 0, 0.45); transform: translateY(-3px); }
.castcard .frame { aspect-ratio: 1 / 1; background: radial-gradient(120% 120% at 50% 0%, #1a1430 0%, #0a0812 70%); display: grid; place-items: center; overflow: hidden; }
.castcard .frame img { width: 100%; height: 100%; object-fit: cover; }
.castcard .cap { padding: 12px 14px 14px; }
.castcard .cap .nm { font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
.castcard .cap .role { font-size: 12.5px; color: var(--ink-dim); margin-top: 3px; line-height: 1.45; }

/* adopt-a-cog band */
.adopt { max-width: 720px; margin: 0 auto; }
.adopt .plate { text-align: left; }
.adopt ul.roles { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 10px; }
.adopt ul.roles li { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); padding-left: 18px; position: relative; }
.adopt ul.roles li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }
.note { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: var(--s3); }

.center { text-align: center; }
.mt3 { margin-top: var(--s3); }
.mt4 { margin-top: var(--s4); }

/* ─── reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
