/* arcade build: insane-five-2026-08-05 */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Special+Elite&family=VT323&display=swap');
:root {
  --void: #08080a;
  --void-2: #111318;
  --ink: #f4eedb;
  --paper: #fff8df;
  --muted: #b7ad93;
  --red: #da2222;
  --yellow: #f2cb3d;
  --blue: #1975b0;
  --green: #1ea47e;
  --orange: #ef6b3e;
  --brown: #562611;
  --line: #000;
  --focus: #58ffca;
  --shadow: 8px 8px 0 #000;
  /* arcade palette defaults so Loot_OS widgets render on every theme;
     .theme-games and games-skin-* override these on game pages */
  --games-bg: #070019;
  --games-deep: #050012;
  --games-ink: #fafdff;
  --games-window: #d8eeff;
  --games-accent: #00f6ff;
  --games-hot: #ff4fd8;
  --games-lime: #b8ff2e;
  --games-gold: #ffe45c;
  --games-orange: #ff8a00;
  --games-purple: #5d32ff;
  --games-shadow: rgba(0, 246, 255, 0.45);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-cutout: 'Special Elite', cursive;
  --font-crt: 'VT323', 'Share Tech Mono', monospace;
  color-scheme: dark;
  font-family: var(--font-mono);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--void);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 15%, rgba(218, 34, 34, 0.2), transparent 22rem),
    radial-gradient(circle at 80% 0%, rgba(25, 117, 176, 0.2), transparent 28rem),
    var(--void);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.08) 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 17px, rgba(0, 0, 0, 0.35) 17px 19px);
  mix-blend-mode: screen;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
  transition: color 0.1s;
}
a:hover {
  font-family: var(--font-cutout);
  color: var(--red);
  background-color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.55rem 0.75rem;
  color: #00130e;
  background: var(--focus);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  border-bottom: 4px solid #000;
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: stretch;
  min-width: max-content;
  color: #000;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-block;
  padding: 0.28rem 0.45rem;
  border: 3px solid #000;
  background: var(--yellow);
}

.brand-mark.alt {
  color: var(--ink);
  background: var(--red);
  transform: translate(-3px, 5px);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.primary-nav a,
.nav-mode-button,
.button-link,
.fake-post-form button {
  border: 3px solid #000;
  color: #050505;
  background: var(--paper);
  box-shadow: 4px 4px 0 #000;
  text-decoration: none;
}

.primary-nav a {
  display: inline-block;
  padding: 0.42rem 0.55rem;
  transition: transform 0.05s, font-family 0.01s;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  font-family: var(--font-cutout);
  background: var(--red) !important;
  color: var(--ink) !important;
  transform: rotate(3deg) scale(1.1);
  box-shadow: -4px -4px 0 #000;
}

.primary-nav a:nth-child(2n) {
  background: var(--green);
}

.primary-nav a:nth-child(3n) {
  color: var(--ink);
  background: var(--blue);
}

.primary-nav a[aria-current="page"] {
  color: #000;
  background: var(--yellow);
  transform: rotate(-1deg);
}

.nav-mode-button,
.button-link,
.fake-post-form button {
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
  font: 700 0.8rem Consolas, "Courier New", monospace;
  cursor: pointer;
  text-transform: uppercase;
}

.mode-collage,
.nav-collage .mode-practical {
  display: none;
}

.nav-collage .mode-collage {
  display: inline;
}

.nav-collage .primary-nav {
  justify-content: end;
  gap: 0.12rem;
}

.nav-collage .primary-nav a {
  margin-inline: -0.15rem;
  transform: rotate(var(--tilt, 2deg));
}

.nav-collage .primary-nav a:nth-child(1) { --tilt: -6deg; }
.nav-collage .primary-nav a:nth-child(2) { --tilt: 5deg; }
.nav-collage .primary-nav a:nth-child(3) { --tilt: -3deg; }
.nav-collage .primary-nav a:nth-child(4) { --tilt: 7deg; }
.nav-collage .primary-nav a:nth-child(5) { --tilt: -8deg; }
.nav-collage .primary-nav a:nth-child(6) { --tilt: 3deg; }

.home-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(110px, auto);
  gap: 0.85rem;
  width: min(1500px, calc(100% - 1.5rem));
  margin: 1rem auto 0;
}

.home-title-block,
.portal-tile,
.portal-art,
.dispatch-link,
.map-list a,
.game-cabinet,
.project-row,
.project-legend,
.altar,
.entity-box,
.thread-row,
.fake-post-form,
.moderation-note,
.qa-item,
.stub-room,
.error-room {
  border: 4px solid #000;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.home-title-block {
  grid-column: span 5;
  grid-row: span 3;
  padding: clamp(1.25rem, 2vw, 2rem);
  color: #000;
  background: var(--yellow);
}

.kicker,
.tile-label,
.status-line,
.project-status,
.altar-stamp,
.thread-id {
  margin: 0 0 0.6rem;
  font: 700 0.75rem Consolas, "Courier New", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0 0 0.75rem;
  line-height: 0.98;
}

h1 {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.6rem, 7vw, 7.5rem);
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.5rem);
}

p {
  margin: 0 0 1rem;
}

.portal-tile {
  position: relative;
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem;
  color: #000;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.portal-tile:hover {
  transform: translate(-2px, -2px) rotate(-0.4deg);
  filter: contrast(1.08);
}

.portal-tile strong {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.55rem, 2.7vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.tile-games {
  grid-column: span 3;
  grid-row: span 2;
  background: var(--red);
  color: var(--ink);
}

.tile-projects {
  grid-column: span 4;
  grid-row: span 2;
  background: var(--blue);
  color: var(--ink);
}

.tile-shrine {
  grid-column: span 3;
  grid-row: span 2;
  background: var(--green);
}

.tile-community {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--orange);
}

.portal-art {
  grid-column: span 7;
  grid-row: span 3;
  overflow: hidden;
  background: #000;
}

.portal-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.portal-art figcaption {
  padding: 0.45rem 0.65rem;
  border-top: 4px solid #000;
  color: #000;
  background: var(--paper);
  font: 700 0.78rem Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.tile-writing {
  grid-column: span 3;
  background: var(--paper);
}

.tile-nostalgia {
  grid-column: span 3;
  background: #008080;
  color: #fff;
}

.tile-corkboard {
  grid-column: span 3;
  background: var(--brown);
  color: var(--ink);
}

.tile-photos {
  grid-column: span 3;
  background: #d9d6cd;
}

.tile-about {
  grid-column: span 3;
  background: var(--yellow);
}

.secret-link {
  position: absolute;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 3px solid #000;
  color: #000;
  background: var(--focus);
  font: 900 1rem Consolas, "Courier New", monospace;
  text-decoration: none;
  box-shadow: 4px 4px 0 #000;
}

.secret-one {
  right: 4rem;
  top: 42%;
  transform: rotate(12deg);
}

.secret-two {
  left: 8%;
  bottom: 13%;
  transform: rotate(-9deg);
}

.ticker-strip {
  width: min(1500px, calc(100% - 1.5rem));
  margin: 1.5rem auto;
  overflow: hidden;
  border-block: 4px solid #000;
  color: #000;
  background: var(--paper);
  font: 700 0.95rem Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.ticker-strip p {
  width: max-content;
  margin: 0;
  padding: 0.65rem 1rem;
}

.dispatch-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 1rem;
  width: min(1500px, calc(100% - 1.5rem));
  margin: 0 auto 2rem;
}

.dispatch-grid > div {
  padding: 1rem;
  border-left: 6px solid var(--red);
  background: rgba(0, 0, 0, 0.35);
}

.dispatch-link {
  display: flex;
  min-height: 9rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  color: #000;
  background: var(--green);
  text-decoration: none;
}

.dispatch-link:nth-child(3) {
  background: var(--orange);
}

.dispatch-link:nth-child(4) {
  background: var(--yellow);
}

.dispatch-link span {
  font: 700 0.75rem Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.dispatch-link strong {
  font-size: 1.35rem;
}

.site-footer {
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  text-align: center;
  font: 0.85rem Consolas, "Courier New", monospace;
}

.site-footer p {
  margin: 0;
}

.page-shell {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 1.5rem auto 3rem;
}

.page-intro {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 4px solid #000;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: var(--shadow);
}

.page-intro p {
  max-width: 66ch;
}

.theme-games {
  --games-bg: #070019;
  --games-deep: #050012;
  --games-ink: #fafdff;
  --games-window: #d8eeff;
  --games-accent: #00f6ff;
  --games-hot: #ff4fd8;
  --games-lime: #b8ff2e;
  --games-gold: #ffe45c;
  --games-orange: #ff8a00;
  --games-purple: #5d32ff;
  --games-shadow: rgba(0, 246, 255, 0.45);
  color: var(--games-ink);
  background-color: var(--games-bg);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0, 246, 255, 0.12) 0 2px, transparent 2px 24px),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 79, 216, 0.12) 18px 20px),
    linear-gradient(135deg, #070019 0 25%, #1a0b4d 25% 50%, #050012 50% 75%, #161900 75% 100%);
  background-size: auto, 24px 24px, auto, 64px 64px;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  overflow-x: clip;
}

.theme-games.games-skin-stickerbomb {
  --games-accent: #00f6ff;
  --games-hot: #ff4fd8;
  --games-lime: #b8ff2e;
  --games-gold: #ffe45c;
}

.theme-games.games-skin-terminal {
  --games-accent: #00ff66;
  --games-hot: #e7ff00;
  --games-lime: #9cffbf;
  --games-gold: #ffffff;
  background-color: #001407;
  background-image:
    repeating-linear-gradient(0deg, rgba(156, 255, 191, 0.14) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(0, 255, 102, 0.16) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #001407 0 50%, #031f0b 50% 100%);
}

.theme-games.games-skin-winamp {
  --games-accent: #ff8a00;
  --games-hot: #7a5cff;
  --games-lime: #00f6ff;
  --games-gold: #fff06a;
  background-color: #11002b;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 138, 0, 0.18) 0 7px, transparent 7px 16px),
    repeating-linear-gradient(0deg, rgba(122, 92, 255, 0.18) 0 6px, transparent 6px 18px),
    linear-gradient(135deg, #11002b, #001f3d);
}

.theme-games.games-skin-casino {
  --games-accent: #ffe45c;
  --games-hot: #ff1744;
  --games-lime: #00d46a;
  --games-gold: #fff7a8;
  background-color: #250006;
  background-image:
    linear-gradient(45deg, rgba(255, 23, 68, 0.45) 25%, transparent 25% 75%, rgba(255, 23, 68, 0.45) 75%),
    linear-gradient(45deg, rgba(255, 228, 92, 0.28) 25%, transparent 25% 75%, rgba(255, 228, 92, 0.28) 75%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 6px);
  background-position: 0 0, 18px 18px, 0 0;
  background-size: 36px 36px, 36px 36px, auto;
}

.theme-games.games-skin-bsod {
  --games-accent: #ffffff;
  --games-hot: #00f6ff;
  --games-lime: #ffff00;
  --games-gold: #ffffff;
  cursor: crosshair;
  background-color: #001dbe;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 20px);
}

.theme-games .site-header {
  border-bottom: 3px ridge #d8eeff;
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(138, 233, 255, 0.93) 42%, rgba(22, 102, 244, 0.95) 43%, rgba(6, 0, 65, 0.96));
  box-shadow: 0 4px 0 var(--games-hot), 0 0 24px var(--games-shadow);
}

.theme-games .brand {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.65));
}

.theme-games .brand-mark {
  border: 2px outset #ffffff;
  color: #00145c;
  background: linear-gradient(180deg, #ffffff, var(--games-accent) 42%, #7a5cff);
}

.theme-games .brand-mark.alt {
  color: #ffffff;
  background: linear-gradient(180deg, #fff06a, var(--games-hot) 45%, #5d004e);
}

.theme-games .primary-nav a,
.theme-games .nav-mode-button {
  border: 2px outset #ffffff;
  color: #04001a;
  background: linear-gradient(180deg, #ffffff, #b9f9ff 55%, var(--games-accent));
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.45);
}

.theme-games .primary-nav a:nth-child(2n) {
  background: linear-gradient(180deg, #ffffff, #d5ff77 55%, var(--games-lime));
}

.theme-games .primary-nav a:nth-child(3n) {
  color: #ffffff;
  background: linear-gradient(180deg, #ffb8ee, var(--games-hot) 50%, #72005c);
}

.theme-games .primary-nav a[aria-current="page"] {
  color: #050012;
  background: linear-gradient(180deg, #ffffff, var(--games-gold) 46%, var(--games-orange));
  transform: rotate(-2deg) scale(1.04);
}

.games-shell {
  position: relative;
  width: min(1280px, calc(100% - 1.5rem));
  isolation: isolate;
}

.games-shell::before {
  position: absolute;
  inset: -1rem;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.5;
  background-image:
    linear-gradient(90deg, transparent 0 90%, rgba(255, 228, 92, 0.42) 90% 94%, transparent 94%),
    linear-gradient(0deg, transparent 0 88%, rgba(0, 246, 255, 0.34) 88% 92%, transparent 92%);
  background-size: 96px 84px;
}

.arcade-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1rem;
  overflow: hidden;
  border: 5px ridge var(--games-window);
  border-radius: 8px;
  color: var(--games-ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(0, 246, 255, 0.72) 15%, rgba(255, 79, 216, 0.82) 36%, rgba(20, 18, 100, 0.96) 66%, rgba(4, 0, 18, 0.98));
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.7),
    0 0 26px var(--games-shadow),
    0 0 0 4px rgba(255, 79, 216, 0.42);
}

.arcade-intro::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, #ffffff 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, transparent 0 18px, #ffffff 18px 20px);
  mix-blend-mode: overlay;
}

.intro-copy,
.boot-panel {
  position: relative;
  z-index: 1;
}

.intro-copy h1 {
  color: #ffffff;
  font-size: 5.7rem;
  line-height: 0.82;
  text-shadow:
    3px 3px 0 var(--games-hot),
    6px 6px 0 var(--games-accent),
    9px 9px 0 #050012;
}

.intro-copy h1 span {
  display: block;
}

.arcade-intro .kicker,
.loot-os .kicker,
.status-line,
.floor-label {
  color: var(--games-lime);
  font-family: "MS Gothic", "Trebuchet MS", Consolas, monospace;
  text-shadow: 1px 1px 0 #050012;
}

.boot-panel,
.loot-console,
.inventory-console,
.arcade-bank-console,
.slot-console,
.pet-console {
  border: 4px ridge var(--games-window);
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(13, 0, 52, 0.98), rgba(5, 0, 18, 0.98));
  box-shadow:
    inset 0 0 26px rgba(0, 246, 255, 0.24),
    0 0 18px rgba(255, 79, 216, 0.28);
}

.boot-panel {
  align-self: stretch;
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.55rem;
  border-bottom: 2px solid #ffffff;
  color: #ffffff;
  background: linear-gradient(90deg, #001dbe, #7a5cff 42%, #ff4fd8);
  font: 700 0.78rem "MS Gothic", Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.boot-readout {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.8rem;
}

.boot-readout div,
.wallet-bar div {
  border: 3px inset var(--games-window);
  background: #050012;
}

.boot-readout dt,
.wallet-bar span {
  display: block;
  padding: 0.25rem 0.4rem;
  color: #050012;
  background: var(--games-gold);
  font: 700 0.72rem "MS Gothic", Consolas, monospace;
  text-transform: uppercase;
}

.boot-readout dd,
.wallet-bar strong {
  display: block;
  margin: 0;
  padding: 0.45rem 0.5rem;
  color: var(--games-accent);
  font: 900 1.1rem "Arial Black", Impact, sans-serif;
  text-shadow: 2px 2px 0 #000;
}

.malware-ticker {
  margin: 1rem 0;
  overflow: hidden;
  contain: layout paint;
  border: 4px groove var(--games-window);
  color: #20002a;
  background: linear-gradient(90deg, var(--games-gold), var(--games-lime), var(--games-accent), var(--games-hot));
  box-shadow: 0 0 18px rgba(255, 228, 92, 0.32);
  font: 900 0.92rem "MS Gothic", Consolas, monospace;
  text-transform: uppercase;
}

.malware-ticker p {
  width: max-content;
  margin: 0;
  padding: 0.55rem 1rem;
  animation: tickerGlide 18s linear infinite;
}

.loot-os {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.loot-console,
.inventory-console,
.arcade-bank-console,
.slot-console,
.pet-console {
  min-width: 0;
  padding: 0 1rem 1rem;
}

.loot-console .window-chrome,
.inventory-console .window-chrome,
.arcade-bank-console .window-chrome,
.slot-console .window-chrome,
.pet-console .window-chrome {
  margin: 0 -1rem 1rem;
}

.loot-console h2,
.inventory-console h2,
.arcade-bank-console h2,
.slot-console h2,
.pet-console h2 {
  margin: 0 0 0.5rem;
  color: var(--games-gold);
  font-family: "Arial Black", Impact, Haettenschweiler, sans-serif;
  font-size: 2.35rem;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow:
    2px 2px 0 var(--games-hot),
    4px 4px 0 #050012;
}

.wallet-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.arcade-bank-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.arcade-bank-readout div,
.mini-bank {
  border: 3px inset var(--games-window);
  background: #050012;
}

.arcade-bank-readout span,
.mini-bank span {
  display: block;
  padding: 0.25rem 0.4rem;
  color: #050012;
  background: var(--games-gold);
  font: 700 0.72rem "MS Gothic", Consolas, monospace;
  text-transform: uppercase;
}

.arcade-bank-readout strong,
.mini-bank strong {
  display: block;
  padding: 0.5rem;
  color: var(--games-accent);
  font: 900 1.35rem "Arial Black", Impact, sans-serif;
  text-shadow: 2px 2px 0 #000;
}

.arcade-clicker {
  width: 100%;
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1rem 0;
  padding: 0.55rem;
  border: 4px ridge var(--games-window);
  background: #000;
}

.slot-reels span {
  display: grid;
  min-height: 4.25rem;
  place-items: center;
  border: 3px outset #ffffff;
  color: #050012;
  background: linear-gradient(180deg, #ffffff, var(--games-gold) 55%, var(--games-orange));
  font: 900 1.1rem "Arial Black", Impact, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

@keyframes heavyShake {
  0% { transform: translate(4px, 4px) rotate(0deg) scale(1); }
  10% { transform: translate(-4px, -6px) rotate(-5deg) scale(1.05); }
  20% { transform: translate(-8px, 0px) rotate(5deg) scale(1); }
  30% { transform: translate(6px, 6px) rotate(0deg) scale(1.05); }
  40% { transform: translate(4px, -4px) rotate(3deg) scale(1); }
  50% { transform: translate(-4px, 6px) rotate(-3deg) scale(1.08); }
  60% { transform: translate(-8px, 4px) rotate(0deg) scale(1); }
  70% { transform: translate(6px, 4px) rotate(-4deg) scale(1.05); }
  80% { transform: translate(-4px, -4px) rotate(2deg) scale(1); }
  90% { transform: translate(4px, 6px) rotate(0deg) scale(1.08); }
  100% { transform: translate(4px, -6px) rotate(-2deg) scale(1); }
}

.slot-console.is-spinning {
  animation: heavyShake 500ms infinite, backgroundColorCycle 250ms infinite;
  box-shadow: 0 0 100px var(--games-hot), inset 0 0 30px #fff;
  transform: scale(1.05);
}

@keyframes backgroundColorCycle {
  0% { background-color: var(--games-hot); color: #fff; }
  33% { background-color: var(--games-gold); color: #000; }
  66% { background-color: var(--games-accent); color: #fff; }
  100% { background-color: var(--games-hot); color: #fff; }
}

.slot-console.is-spinning .slot-reels span {
  animation: reelJitter 120ms steps(2, end) infinite;
  filter: blur(2px);
  color: transparent;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.case-machine {
  position: relative;
  overflow: hidden;
  padding: 0.75rem;
  border: 4px inset var(--games-window);
  background:
    repeating-linear-gradient(45deg, rgba(255, 79, 216, 0.2) 0 10px, rgba(0, 246, 255, 0.18) 10px 20px),
    #09002a;
}

.case-lid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.case-lid span {
  height: 0.8rem;
  border: 2px outset #ffffff;
  background: var(--games-lime);
  box-shadow: 0 0 10px var(--games-lime);
  animation: ledBlink 900ms steps(2, end) infinite;
}

.case-lid span:nth-child(2) {
  background: var(--games-hot);
  box-shadow: 0 0 10px var(--games-hot);
  animation-delay: -140ms;
}

.case-lid span:nth-child(3) {
  background: var(--games-accent);
  box-shadow: 0 0 10px var(--games-accent);
  animation-delay: -280ms;
}

.case-lid span:nth-child(4) {
  background: var(--games-gold);
  box-shadow: 0 0 10px var(--games-gold);
  animation-delay: -420ms;
}

.case-reel {
  display: flex;
  min-width: 0;
  min-height: 7rem;
  align-items: stretch;
  gap: 0.5rem;
  overflow: hidden;
  padding: 0.5rem;
  border: 4px ridge var(--games-window);
  background: #000000;
  box-shadow: inset 0 0 24px rgba(0, 246, 255, 0.3);
}

.case-reel.is-rolling {
  animation: heavyShake 400ms infinite;
  box-shadow: inset 0 0 100px var(--games-hot), 0 0 50px var(--games-hot);
  background: #ff0055;
}

.case-reel.is-rolling .reel-card {
  animation: reelJitter 140ms steps(2, end) infinite;
  filter: blur(4px) contrast(300%);
  transform: scale(1.2) skewX(-20deg);
}

.reel-card {
  display: grid;
  flex: 1 0 8rem;
  min-width: 0;
  min-height: 5.6rem;
  place-items: center;
  padding: 0.5rem;
  border: 3px outset var(--games-window);
  color: #050012;
  background: linear-gradient(180deg, #ffffff, var(--games-accent));
  font: 900 0.9rem "MS Gothic", Consolas, monospace;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.case-button,
.skin-action {
  min-height: 2.3rem;
  border: 3px outset #ffffff;
  color: #050012;
  background: linear-gradient(180deg, #ffffff, var(--games-gold) 52%, var(--games-orange));
  box-shadow: 0 0 12px rgba(255, 228, 92, 0.42);
  font: 900 0.8rem "MS Gothic", Consolas, monospace;
  cursor: pointer;
  text-transform: uppercase;
}

.case-button {
  padding: 0.45rem 0.7rem;
}

.case-button.secondary,
.skin-action.sell {
  background: linear-gradient(180deg, #ffffff, #d8eeff 54%, var(--games-accent));
}

.case-button:disabled,
.skin-action:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8);
  opacity: 0.62;
}

.drop-result,
.noscript-note {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.65rem;
  border: 2px dotted var(--games-lime);
  color: var(--games-lime);
  background: rgba(0, 0, 0, 0.74);
  font: 700 0.86rem "MS Gothic", Consolas, monospace;
}

.skin-grid,
.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.65rem;
}

.skin-card,
.pet-card {
  display: grid;
  gap: 0.5rem;
  min-height: 12rem;
  padding: 0.7rem;
  border: 3px ridge var(--games-window);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(0, 0, 0, 0.12)),
    #130545;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.09);
}

.skin-card.is-equipped {
  border-color: var(--games-gold);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.12),
    0 0 18px var(--games-gold);
}

.pet-card.is-equipped {
  border-color: var(--games-lime);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.12),
    0 0 18px var(--games-lime);
}

.pet-card.is-locked {
  filter: grayscale(0.9);
  opacity: 0.66;
}

.pet-glyph {
  display: grid;
  min-height: 3rem;
  place-items: center;
  border: 3px inset var(--games-window);
  color: var(--games-lime);
  background: #000;
  font: 900 1.45rem Consolas, "Courier New", monospace;
  text-shadow: 0 0 10px var(--games-lime);
}

.skin-card h3,
.pet-card h3 {
  margin: 0;
  color: #ffffff;
  font: 900 1rem "Arial Black", Impact, sans-serif;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050012;
}

.skin-card p,
.pet-card p {
  margin: 0;
  font: 700 0.78rem "MS Gothic", Consolas, monospace;
}

.skin-count {
  width: fit-content;
  padding: 0.25rem 0.4rem;
  color: #050012;
  background: var(--games-lime);
  font: 900 0.75rem "MS Gothic", Consolas, monospace;
}

.skin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-self: end;
}

.skin-action {
  flex: 1 1 4.8rem;
  padding: 0.35rem 0.45rem;
}

.cosmetic-swatch {
  min-height: 2.3rem;
  border: 2px inset #ffffff;
  background: var(--games-accent);
}

.swatch-stickerbomb {
  background:
    linear-gradient(45deg, #ff4fd8 0 25%, #00f6ff 25% 50%, #b8ff2e 50% 75%, #ffe45c 75%);
}

.swatch-terminal {
  background:
    repeating-linear-gradient(0deg, #001407 0 6px, #00ff66 6px 8px);
}

.swatch-winamp {
  background:
    linear-gradient(90deg, #ff8a00, #7a5cff 45%, #00f6ff);
}

.swatch-casino {
  background:
    linear-gradient(45deg, #ff1744 25%, #111 25% 50%, #ffe45c 50% 75%, #00d46a 75%);
}

.swatch-bsod {
  background:
    linear-gradient(180deg, #001dbe 0 70%, #ffffff 70% 78%, #001dbe 78%);
}

.rarity-common .skin-count,
.reel-card.rarity-common {
  background: #d8eeff;
}

.rarity-rare {
  border-color: var(--games-accent);
}

.rarity-rare .skin-count {
  background: var(--games-accent);
}

.reel-card.rarity-rare {
  background: linear-gradient(180deg, #ffffff, var(--games-accent));
}

.rarity-epic {
  border-color: var(--games-hot);
}

.rarity-epic .skin-count {
  color: #ffffff;
  background: var(--games-hot);
}

.reel-card.rarity-epic {
  color: #ffffff;
  background: linear-gradient(180deg, #ffd1f4, var(--games-hot) 54%, #4b003e);
}

.rarity-legendary {
  border-color: var(--games-gold);
}

.rarity-legendary .skin-count {
  background: var(--games-gold);
}

.reel-card.rarity-legendary {
  background: linear-gradient(180deg, #ffffff, var(--games-gold) 48%, var(--games-orange));
  box-shadow: inset 0 0 18px #ffffff, 0 0 14px var(--games-gold);
}

.game-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.game-cabinet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 552px) 1fr;
  gap: 1rem;
  overflow: hidden;
  padding: 0 1rem 1rem;
  border: 6px ridge var(--games-window);
  border-radius: 8px;
  color: var(--games-ink);
  background:
    linear-gradient(180deg, rgba(255, 79, 216, 0.28), rgba(0, 246, 255, 0.12)),
    #120530;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.18),
    0 0 22px rgba(0, 246, 255, 0.26);
}

.featured-game {
  background:
    repeating-linear-gradient(90deg, rgba(255, 228, 92, 0.16) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, rgba(255, 79, 216, 0.32), rgba(0, 246, 255, 0.12)),
    #16002b;
}

.cabinet-marquee {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 -1rem 0.3rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 4px groove var(--games-window);
  color: var(--games-gold);
  background:
    repeating-linear-gradient(90deg, rgba(255, 228, 92, 0.22) 0 5px, transparent 5px 10px),
    #050012;
  font: 900 0.78rem "MS Gothic", Consolas, monospace;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--games-hot);
}

.cabinet-marquee span {
  padding: 0.12rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  animation: chromaFlicker 1.4s steps(3, end) infinite;
}

.cabinet-marquee span:nth-child(2) {
  color: var(--games-accent);
  animation-delay: -320ms;
}

.cabinet-marquee span:nth-child(3) {
  color: var(--games-lime);
  animation-delay: -720ms;
}

.itch-frame {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 0.55rem;
  border: 6px groove var(--games-window);
  background:
    repeating-linear-gradient(45deg, rgba(0, 246, 255, 0.22) 0 7px, rgba(255, 79, 216, 0.18) 7px 14px),
    #050505;
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.72);
}

.itch-frame::before {
  position: absolute;
  left: 0.45rem;
  top: 0.4rem;
  z-index: 1;
  padding: 0.16rem 0.35rem;
  color: #050012;
  background: var(--games-lime);
  content: "IFRAME SLOT";
  font: 900 0.66rem "MS Gothic", Consolas, monospace;
}

.itch-frame iframe {
  width: 100%;
  max-width: 552px;
  height: 167px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.game-copy {
  align-self: center;
}

.game-copy h2 {
  color: #ffffff;
  font-family: "Arial Black", Impact, Haettenschweiler, sans-serif;
  text-shadow:
    2px 2px 0 var(--games-hot),
    4px 4px 0 #050012;
}

.status-line {
  display: inline-block;
  width: fit-content;
  padding: 0.28rem 0.45rem;
  border: 2px outset var(--games-window);
  color: #050012;
  background: var(--games-lime);
  text-shadow: none;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.theme-games .button-link {
  border: 3px outset #ffffff;
  color: #050012;
  background: linear-gradient(180deg, #ffffff, var(--games-gold) 50%, var(--games-orange));
  box-shadow: 0 0 12px rgba(255, 228, 92, 0.45);
}

.quiet-link {
  font: 700 0.85rem Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.theme-games .quiet-link {
  color: var(--games-accent);
  font-family: "MS Gothic", Consolas, "Courier New", monospace;
  text-shadow: 1px 1px 0 #050012;
}

.arcade-floor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.75rem;
  border: 5px ridge var(--games-window);
  background:
    linear-gradient(90deg, rgba(255, 79, 216, 0.32), rgba(0, 246, 255, 0.24), rgba(184, 255, 46, 0.24)),
    #050012;
}

.arcade-floor div {
  min-height: 5rem;
  padding: 0.65rem;
  border: 3px inset var(--games-window);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    #09002a;
}

.arcade-floor strong {
  display: block;
  color: var(--games-gold);
  font: 900 2rem "Arial Black", Impact, sans-serif;
  line-height: 1;
  text-shadow: 2px 2px 0 var(--games-hot), 4px 4px 0 #050012;
}

@keyframes tickerGlide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes chromaFlicker {
  0%, 100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.65) saturate(1.5);
  }
}

@keyframes reelJitter {
  0% { transform: translateY(0); }
  25% { transform: translateY(-0.8rem) translateX(0.2rem); }
  50% { transform: translateY(0.4rem) translateX(-0.1rem); }
  75% { transform: translateY(-0.6rem) translateX(-0.2rem); }
  100% { transform: translateY(0); }
}

@keyframes ledBlink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.32;
  }
}

.theme-projects {
  background-color: #0b1111;
  background-image:
    linear-gradient(90deg, rgba(30, 164, 126, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(242, 203, 61, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
}

.dossier-intro,
.project-hero {
  color: var(--ink);
  background: #0d2421;
}

.project-index {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr 2fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: #000;
  background: var(--paper);
  text-decoration: none;
}

.project-row:hover {
  background: var(--yellow);
}

.project-status {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.45rem;
  border: 3px solid #000;
  color: #000;
  background: var(--paper);
}

.status-active { background: var(--green); }
.status-prototype { background: var(--yellow); }
.status-haunted { color: var(--ink); background: var(--brown); }

.project-legend {
  margin-top: 1.5rem;
  padding: 1rem;
  color: #000;
  background: var(--green);
}

.project-page {
  max-width: 1050px;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font: 700 0.85rem Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.project-hero {
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 4px solid #000;
  box-shadow: var(--shadow);
}

.lan-hero {
  background: #1b1708;
}

.poem-hero {
  background: #1d1320;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dossier-grid > div {
  padding: 1rem;
  border: 4px solid #000;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: var(--shadow);
}

.theme-shrine {
  --shrine-black: #050403;
  --shrine-lacquer: #36070b;
  --shrine-red: #bc1421;
  --shrine-gold: #f8c84f;
  --shrine-chrome: #dbe7f3;
  --shrine-cyan: #66f5ff;
  --shrine-violet: #6d3dff;
  --shrine-cream: #fff1c1;
  --shrine-smoke: rgba(219, 231, 243, 0.66);
  color: var(--shrine-cream);
  background-color: #090604;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(248, 200, 79, 0.25), transparent 24rem),
    radial-gradient(circle at 82% 8%, rgba(102, 245, 255, 0.16), transparent 25rem),
    radial-gradient(circle at 68% 78%, rgba(188, 20, 33, 0.18), transparent 28rem),
    repeating-linear-gradient(90deg, rgba(248, 200, 79, 0.07) 0 1px, transparent 1px 19px),
    linear-gradient(130deg, transparent 0 48%, rgba(248, 200, 79, 0.18) 49% 51%, transparent 52% 100%);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

.theme-shrine::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.36;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 241, 193, 0.26), transparent 21rem),
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 255, 255, 0.055) 18px 20px);
  mix-blend-mode: screen;
}

.shrine-shell {
  width: min(1400px, calc(100% - 2.25rem));
}

.shrine-hero {
  position: relative;
  min-height: min(78vh, 780px);
  overflow: hidden;
  border: 5px ridge var(--shrine-gold);
  border-radius: 6px;
  background: #000;
  box-shadow:
    0 0 0 4px #000,
    0 0 42px rgba(248, 200, 79, 0.28),
    var(--shadow);
  isolation: isolate;
}

.shrine-hero::before,
.shrine-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.shrine-hero::before {
  opacity: 0.32;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 52% 14%, rgba(255, 255, 255, 0.82), transparent 12rem);
  mix-blend-mode: screen;
  animation: shrinePulse 4.8s ease-in-out infinite;
}

.shrine-hero::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 28%, transparent 68%, rgba(0, 0, 0, 0.48)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 44%);
}

.shrine-light {
  position: absolute;
  left: 50%;
  top: -20%;
  z-index: 2;
  width: min(58rem, 82vw);
  height: min(58rem, 82vw);
  border-radius: 50%;
  pointer-events: none;
  background:
    repeating-conic-gradient(from 9deg, rgba(255, 255, 255, 0.4) 0 4deg, transparent 4deg 12deg),
    radial-gradient(circle, rgba(255, 255, 255, 0.86), rgba(248, 200, 79, 0.24) 32%, transparent 66%);
  filter: blur(0.6px);
  opacity: 0.72;
  transform: translateX(-50%);
  mix-blend-mode: screen;
}

.shrine-hero-image {
  display: block;
  width: 100%;
  height: min(78vh, 780px);
  min-height: 560px;
  object-fit: cover;
}

.shrine-hero-copy {
  position: absolute;
  left: clamp(0.8rem, 4vw, 3rem);
  bottom: clamp(0.8rem, 4vw, 3rem);
  z-index: 3;
  width: min(720px, calc(100% - 1.6rem));
  padding: clamp(1rem, 3vw, 2rem);
  border: 4px double var(--shrine-gold);
  color: #fff7d7;
  background:
    linear-gradient(135deg, rgba(5, 4, 3, 0.82), rgba(54, 7, 11, 0.72)),
    rgba(0, 0, 0, 0.82);
  box-shadow:
    inset 0 0 30px rgba(248, 200, 79, 0.18),
    7px 7px 0 #000;
  backdrop-filter: blur(5px);
}

.shrine-hero-copy h1 {
  color: var(--shrine-gold);
  font-size: clamp(4.4rem, 13vw, 12rem);
  line-height: 0.78;
  text-shadow:
    3px 3px 0 var(--shrine-red),
    7px 7px 0 #000,
    0 0 32px rgba(248, 200, 79, 0.72);
}

.shrine-hero-copy p:last-child {
  max-width: 61ch;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
}

.symbol-cloud {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.symbol-cloud span {
  position: absolute;
  display: grid;
  width: clamp(2.2rem, 4vw, 4.2rem);
  height: clamp(2.2rem, 4vw, 4.2rem);
  place-items: center;
  border: 3px solid #000;
  border-radius: 50%;
  color: #000;
  background:
    radial-gradient(circle at 35% 28%, #ffffff, var(--shrine-chrome) 38%, var(--shrine-gold) 70%);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.7),
    4px 4px 0 #000;
  font: 900 clamp(1rem, 2vw, 2rem) Georgia, "Times New Roman", serif;
  transform: rotate(var(--symbol-tilt, 0deg));
}

.symbol-cloud span:nth-child(1) { left: 4%; top: 12%; --symbol-tilt: -12deg; }
.symbol-cloud span:nth-child(2) { right: 8%; top: 15%; --symbol-tilt: 9deg; }
.symbol-cloud span:nth-child(3) { left: 15%; bottom: 17%; --symbol-tilt: 18deg; }
.symbol-cloud span:nth-child(4) { right: 18%; bottom: 24%; --symbol-tilt: -7deg; }
.symbol-cloud span:nth-child(5) { left: 48%; top: 8%; --symbol-tilt: 4deg; }
.symbol-cloud span:nth-child(6) { right: 3%; bottom: 8%; --symbol-tilt: 15deg; }
.symbol-cloud span:nth-child(7) { left: 2%; bottom: 40%; --symbol-tilt: -19deg; }
.symbol-cloud span:nth-child(8) { right: 38%; top: 30%; --symbol-tilt: 10deg; }

.relic-marquee {
  margin: 1rem 0;
  overflow: hidden;
  border-block: 4px solid #000;
  color: #000;
  background:
    linear-gradient(90deg, var(--shrine-gold), var(--shrine-chrome), var(--shrine-cyan), var(--shrine-red));
  box-shadow: var(--shadow);
  font: 900 0.9rem Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.relic-marquee p {
  width: max-content;
  margin: 0;
  padding: 0.55rem 1rem;
  animation: tickerGlide 22s linear infinite;
}

.shrine-chaos-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: stretch;
  gap: 1rem;
  margin-top: 1rem;
}

.relic-card,
.relic-image,
.trading-card-vault {
  position: relative;
  overflow: hidden;
  border: 4px solid #000;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.relic-card,
.trading-card-vault {
  min-height: 18rem;
  padding: 1rem;
}

.relic-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #000;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent 34%),
    var(--shrine-cream);
}

.relic-card::after,
.trading-card-vault::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.8) 12px 14px),
    radial-gradient(circle at 80% 12%, #ffffff, transparent 8rem);
  mix-blend-mode: overlay;
}

.relic-card h2,
.trading-card-vault h2,
.shrine-spirit-box h2 {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(248, 200, 79, 0.55);
}

.relic-card-large {
  grid-column: span 5;
  grid-row: span 2;
  min-height: 25rem;
  color: var(--shrine-cream);
  background:
    radial-gradient(circle at 20% 18%, rgba(248, 200, 79, 0.48), transparent 8rem),
    linear-gradient(135deg, #080606, #36070b);
}

.relic-card-red {
  grid-column: span 3;
  background: var(--shrine-red);
}

.relic-card-blue {
  grid-column: span 4;
  color: #001014;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.8), transparent 6rem),
    var(--shrine-cyan);
}

.relic-card-black {
  grid-column: span 4;
  color: var(--shrine-chrome);
  background:
    linear-gradient(135deg, rgba(102, 245, 255, 0.18), transparent),
    #080a0d;
}

.relic-card-yellow {
  grid-column: span 4;
  background: var(--shrine-gold);
}

.relic-image {
  min-height: 28rem;
  border-color: var(--shrine-gold);
  background: #000;
}

.relic-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.relic-image figcaption {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 3px solid #000;
  color: #000;
  background: rgba(248, 200, 79, 0.9);
  box-shadow: 4px 4px 0 #000;
  font: 900 0.76rem Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.idol-case {
  grid-column: span 4;
  grid-row: span 2;
}

.ancestry-image {
  grid-column: span 5;
  grid-row: span 3;
}

.altar-stamp {
  display: inline-block;
  padding: 0.25rem 0.4rem;
  border: 3px solid #000;
  color: #000;
  background: var(--shrine-chrome);
  box-shadow: 3px 3px 0 #000;
}

.trading-card-vault {
  grid-column: span 7;
  color: var(--shrine-cream);
  background:
    radial-gradient(circle at 50% 0%, rgba(248, 200, 79, 0.32), transparent 14rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 4px, transparent 4px 12px),
    #090506;
}

.idol-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.idol-card {
  position: relative;
  display: flex;
  min-height: 11rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.65rem;
  border: 4px ridge var(--shrine-chrome);
  border-radius: 8px;
  color: #070303;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(219, 231, 243, 0.55) 28%, rgba(188, 20, 33, 0.64)),
    var(--shrine-chrome);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.65),
    0 0 15px rgba(102, 245, 255, 0.35);
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.idol-card::before {
  position: absolute;
  inset: 0.45rem;
  border: 2px solid rgba(0, 0, 0, 0.62);
  border-radius: 5px;
  content: "";
}

.idol-card span,
.idol-card strong {
  position: relative;
  z-index: 1;
}

.idol-card span {
  width: fit-content;
  padding: 0.15rem 0.3rem;
  border: 2px solid #000;
  background: var(--shrine-gold);
  font-weight: 900;
}

.idol-card strong {
  max-width: 8ch;
  font: 900 1.1rem Impact, Haettenschweiler, "Arial Black", sans-serif;
  text-shadow: 1px 1px 0 #ffffff;
}

.idol-card.rare {
  background:
    linear-gradient(135deg, #ffffff, var(--shrine-gold) 36%, var(--shrine-red));
}

.idol-card.ultra {
  color: #fff;
  background:
    conic-gradient(from 20deg, var(--shrine-violet), var(--shrine-cyan), var(--shrine-gold), var(--shrine-red), var(--shrine-violet));
  text-shadow: 2px 2px 0 #000;
}

.entity-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  color: var(--ink);
  background: #0e1620;
}

.shrine-spirit-box {
  position: relative;
  overflow: hidden;
  border-color: var(--shrine-gold);
  color: #fff7d7;
  background:
    radial-gradient(circle at 82% 0%, rgba(102, 245, 255, 0.24), transparent 14rem),
    linear-gradient(135deg, rgba(54, 7, 11, 0.92), rgba(4, 4, 6, 0.96));
  box-shadow:
    0 0 32px rgba(248, 200, 79, 0.22),
    var(--shadow);
}

.shrine-spirit-box::after {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background:
    radial-gradient(circle at 20% 40%, var(--shrine-smoke), transparent 4rem),
    radial-gradient(circle at 78% 30%, var(--shrine-smoke), transparent 5rem),
    radial-gradient(circle at 54% 70%, var(--shrine-smoke), transparent 6rem);
  filter: blur(12px);
}

@keyframes shrinePulse {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(1.03);
  }
}

.ashtray {
  position: relative;
  min-height: 64vh;
  display: grid;
  align-content: center;
  gap: 1rem;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 4px solid #000;
  border-radius: 6px;
  color: #050505;
  background:
    repeating-linear-gradient(90deg, #c91520 0 16.66%, #f4d21f 16.66% 33.33%, #14913b 33.33% 50%),
    var(--green);
  box-shadow: var(--shadow);
}

.ashtray::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.36;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.62), transparent 0.35rem),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.58), transparent 0.42rem),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.45) 0 5px, transparent 5px 13px);
  mix-blend-mode: hard-light;
}

.ashtray::after {
  position: absolute;
  inset: auto 1rem 1rem auto;
  z-index: 1;
  width: 8.5rem;
  height: 8.5rem;
  border: 5px dashed #000;
  border-radius: 50%;
  content: "420";
  display: grid;
  place-items: center;
  color: #f4d21f;
  background: #14913b;
  box-shadow: 0 0 0 8px #c91520, 7px 7px 0 #000;
  font: 900 3rem Impact, Haettenschweiler, "Arial Black", sans-serif;
  transform: rotate(13deg);
}

.ashtray > * {
  position: relative;
  z-index: 2;
}

.ashtray-shell {
  width: min(1320px, calc(100% - 1.5rem));
}

.ash-marquee {
  border: 4px ridge #f4d21f;
  color: #f4d21f;
  background: #000;
  font: 900 1rem "Comic Sans MS", "Arial Black", cursive;
  text-transform: uppercase;
  text-shadow: 2px 2px #c91520, -2px -2px #14913b;
}

.ash-marquee-top {
  margin-bottom: 0.25rem;
}

.ash-marquee-bottom {
  margin-top: 0.5rem;
}

.ashtray-badges {
  display: grid;
  grid-template-columns: 220px 160px minmax(220px, 280px);
  align-items: center;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.75rem;
  border: 5px outset #f4d21f;
  background: #000;
  box-shadow: 7px 7px 0 #000;
}

.gif-badge {
  display: block;
  image-rendering: pixelated;
  border: 4px solid #000;
  background: #fff;
}

.rasta-badge {
  width: 220px;
  height: 120px;
}

.leaf-badge {
  width: 130px;
  height: 130px;
  padding: 0.25rem;
  border-radius: 0;
  background: #111;
  transform: rotate(-8deg);
}

.blunt-badge {
  width: min(280px, 100%);
  height: 90px;
  background: #260f05;
  transform: rotate(3deg);
}

.ashtray-copy {
  width: min(920px, 100%);
  padding: clamp(1rem, 3vw, 2rem);
  border: 6px double #000;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(247, 210, 24, 0.8)),
    #f4d21f;
  box-shadow: 9px 9px 0 #000;
}

.ashtray-copy h1 {
  margin-bottom: 0.2rem;
  color: #c91520;
  font-family: "Comic Sans MS", Impact, Haettenschweiler, "Arial Black", cursive;
  font-size: clamp(3rem, 11vw, 9rem);
  line-height: 0.82;
  overflow-wrap: normal;
  word-break: normal;
  text-shadow:
    4px 4px 0 #f4d21f,
    8px 8px 0 #14913b,
    12px 12px 0 #000;
  transform: skew(-6deg);
}

.ashtray-copy h1 span {
  color: #000;
}

.spliff-quote {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  border: 4px dashed #000;
  color: #f4d21f;
  background: #14913b;
  box-shadow: 5px 5px 0 #c91520, 9px 9px 0 #000;
  font: 900 clamp(1.25rem, 3vw, 2.7rem) "Comic Sans MS", Impact, Haettenschweiler, "Arial Black", cursive;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000, 4px 4px 0 #c91520;
  transform: rotate(-1.2deg);
}

.oracle-line {
  max-width: 16ch;
  color: #000;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2rem, 6vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 #14913b;
}

.oracle-button {
  width: fit-content;
  color: #000;
  background: #f4d21f;
  box-shadow: 5px 5px 0 #c91520, 9px 9px 0 #000;
}

.blunt-scene {
  min-height: 8rem;
  display: grid;
  place-items: center;
  border: 5px groove #14913b;
  background:
    radial-gradient(circle at 75% 50%, rgba(255, 82, 23, 0.45), transparent 8rem),
    #120806;
  box-shadow: inset 0 0 30px rgba(244, 210, 31, 0.35), 8px 8px 0 #000;
}

.css-blunt {
  position: relative;
  width: min(620px, 82vw);
  height: 5rem;
  transform: rotate(-4deg);
}

.paper-tip,
.blunt-body,
.ember {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.paper-tip {
  left: 0;
  width: 4.4rem;
  height: 2.2rem;
  border: 4px solid #000;
  background: repeating-linear-gradient(90deg, #fff 0 9px, #e5d6b8 9px 12px);
}

.blunt-body {
  left: 4rem;
  right: 3.5rem;
  height: 2rem;
  border: 4px solid #000;
  background:
    linear-gradient(#c88a48, #6b3515),
    #8b4a1e;
}

.ember {
  right: 1.9rem;
  width: 3.2rem;
  height: 3.2rem;
  border: 4px solid #000;
  border-radius: 50%;
  background: radial-gradient(circle, #fff394 0 18%, #ff5a13 19% 57%, #390900 58% 100%);
  box-shadow: 0 0 24px #ff5a13, 0 0 48px #f4d21f;
  animation: emberPulse 560ms steps(2, end) infinite;
}

.css-blunt::before,
.css-blunt::after {
  position: absolute;
  right: 0.4rem;
  bottom: 3.3rem;
  width: 6rem;
  height: 6rem;
  border: 5px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  content: "";
  filter: blur(1px);
  animation: smokeFloat 2.4s ease-in-out infinite;
}

.css-blunt::after {
  right: 4.2rem;
  bottom: 4.7rem;
  animation-delay: -1.1s;
  opacity: 0.65;
}

.spark {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid #000;
  background: #f4d21f;
  box-shadow: 0 0 13px #ff5a13;
  animation: sparkJump 900ms steps(4, end) infinite;
}

.spark-one {
  right: 17%;
  top: 57%;
}

.spark-two {
  right: 24%;
  top: 48%;
  animation-delay: -260ms;
}

.spark-three {
  right: 12%;
  top: 42%;
  animation-delay: -520ms;
}

.giphy-smoke-window {
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(18rem, 1.25fr);
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  border: 6px ridge #fff;
  color: #fff8df;
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.28), transparent 10rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 6px, rgba(0, 0, 0, 0.4) 6px 12px),
    #141414;
  box-shadow: 9px 9px 0 #000;
}

.giphy-copy h2 {
  color: #f4d21f;
  font-family: "Comic Sans MS", Impact, Haettenschweiler, "Arial Black", cursive;
  font-size: clamp(1.9rem, 4.5vw, 5rem);
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #c91520, 6px 6px 0 #14913b, 9px 9px 0 #000;
  transform: rotate(-1deg);
}

.giphy-copy p:last-child {
  color: #d7ffd7;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.giphy-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 5px solid #000;
  background: #000;
  box-shadow: inset 0 0 0 5px #f4d21f, 6px 6px 0 #c91520;
}

.giphy-frame::before {
  position: absolute;
  left: 0.45rem;
  top: 0.45rem;
  z-index: 1;
  padding: 0.18rem 0.35rem;
  content: "GIF SMOKE";
  color: #000;
  background: #f4d21f;
  font: 900 0.72rem Consolas, "Courier New", monospace;
}

.giphy-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.giphy-credit {
  grid-column: 1 / -1;
  margin: 0;
}

.giphy-credit a {
  display: inline-block;
  padding: 0.35rem 0.5rem;
  border: 3px solid #000;
  color: #000;
  background: #f4d21f;
  box-shadow: 4px 4px 0 #c91520;
  font: 900 0.85rem Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.ashtray-radio {
  display: grid;
  grid-template-columns: minmax(16rem, 0.75fr) minmax(18rem, 1.25fr);
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  border: 6px ridge #f4d21f;
  color: #f4d21f;
  background:
    repeating-linear-gradient(0deg, rgba(20, 145, 59, 0.38) 0 8px, transparent 8px 16px),
    #070707;
  box-shadow: 9px 9px 0 #000;
}

.radio-copy h2 {
  color: #00ff00;
  font-family: "Comic Sans MS", Impact, Haettenschweiler, "Arial Black", cursive;
  font-size: clamp(1.8rem, 4vw, 4.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #c91520, 6px 6px 0 #000;
}

.radio-copy p:last-child {
  color: #fff8df;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.radio-frame {
  position: relative;
  min-height: 352px;
  border: 5px solid #000;
  background: #000;
  box-shadow: inset 0 0 0 5px #c91520, 6px 6px 0 #14913b;
}

.radio-frame::before {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 1;
  padding: 0.2rem 0.35rem;
  content: "SPOTIFY RADIO";
  color: #000;
  background: #f4d21f;
  font: 900 0.72rem Consolas, "Courier New", monospace;
}

.radio-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 352px;
  border: 0;
}

.radio-fallback {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 0.35rem 0.5rem;
  border: 3px solid #000;
  color: #000;
  background: #f4d21f;
  box-shadow: 4px 4px 0 #c91520;
}

.smoke-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.smoke-ring,
.smoke-gif {
  position: absolute;
  opacity: 0.74;
  filter: blur(0.4px);
  mix-blend-mode: screen;
}

.smoke-ring {
  width: 11rem;
  height: 11rem;
  border: 9px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: smokeDrift 7s ease-in-out infinite;
}

.smoke-one {
  left: 8%;
  top: 56%;
}

.smoke-two {
  left: 48%;
  top: 22%;
  width: 16rem;
  height: 16rem;
  animation-delay: -2.7s;
}

.smoke-three {
  right: 6%;
  top: 44%;
  width: 9rem;
  height: 9rem;
  animation-delay: -4.1s;
}

.smoke-gif-one {
  left: 72%;
  top: 10%;
  width: 180px;
  transform: rotate(12deg);
}

.smoke-gif-two {
  left: 5%;
  bottom: 8%;
  width: 150px;
  transform: rotate(-18deg);
}

.web-2000-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.7rem;
  border: 5px ridge #fff;
  color: #00ff00;
  background: #000;
  font: 900 1rem "Comic Sans MS", "Arial Black", cursive;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 2px 2px #c91520;
}

.web-2000-panel p {
  margin: 0;
  padding: 0.5rem;
  border: 3px dotted #f4d21f;
}

.counter {
  color: #f4d21f;
  background: #1b0710;
}

@keyframes emberPulse {
  0%, 100% {
    transform: translateY(-50%) scale(0.92);
    filter: saturate(1);
  }
  50% {
    transform: translateY(-50%) scale(1.12);
    filter: saturate(1.6);
  }
}

@keyframes smokeFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.25);
  }
  25% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(4rem, -7rem) scale(1.3);
  }
}

@keyframes smokeDrift {
  0%, 100% {
    transform: translate(0, 0) scale(0.65) rotate(0deg);
    opacity: 0.25;
  }
  45% {
    transform: translate(4rem, -3rem) scale(1.25) rotate(18deg);
    opacity: 0.8;
  }
}

@keyframes sparkJump {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  35% {
    transform: translate(1.2rem, -1.8rem) rotate(28deg);
    opacity: 1;
  }
  70% {
    transform: translate(2.4rem, 0.6rem) rotate(63deg);
    opacity: 0.45;
  }
}

.theme-community {
  --bbs-bg: #071013;
  --bbs-panel: #dfe4d2;
  --bbs-paper: #f6f1d1;
  --bbs-ink: #141414;
  --bbs-blue: #234f9d;
  --bbs-orange: #f37021;
  --bbs-green: #49ff9a;
  --bbs-pink: #ff3bbd;
  --bbs-cyan: #50e8ff;
  --bbs-rule: #0b0b0b;
  color: #f6f1d1;
  background-color: var(--bbs-bg);
  background-image:
    repeating-linear-gradient(0deg, rgba(80, 232, 255, 0.11) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(90deg, rgba(255, 59, 189, 0.1) 0 1px, transparent 1px 37px),
    linear-gradient(135deg, rgba(35, 79, 157, 0.36), transparent 42%),
    linear-gradient(315deg, rgba(243, 112, 33, 0.2), transparent 44%),
    var(--bbs-bg);
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.theme-community::before {
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(0, 0, 0, 0.46) 21px 23px);
}

.board-shell {
  width: min(1360px, calc(100% - 1.5rem));
}

.board-console {
  position: relative;
  isolation: isolate;
}

.board-console::before {
  position: absolute;
  inset: -0.75rem;
  z-index: -1;
  border: 2px dotted rgba(80, 232, 255, 0.35);
  content: "";
  transform: skewX(-1.8deg);
}

.board-hero,
.story-rack,
.thread-reader,
.post-terminal,
.bbs-log {
  border: 4px solid var(--bbs-rule);
  border-radius: 4px;
  box-shadow: 7px 7px 0 #000;
}

.board-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 0.75rem;
  overflow: hidden;
  color: var(--bbs-ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(246, 241, 209, 0.92)),
    repeating-linear-gradient(90deg, var(--bbs-orange) 0 14px, var(--bbs-blue) 14px 18px, var(--bbs-paper) 18px 34px);
}

.board-hero-copy {
  padding: clamp(1rem, 3vw, 2rem);
}

.board-hero h1 {
  position: relative;
  margin-bottom: 0.45rem;
  color: #101010;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.84;
  text-shadow:
    3px 0 0 var(--bbs-cyan),
    -3px 0 0 var(--bbs-pink),
    7px 7px 0 rgba(0, 0, 0, 0.14);
}

.board-hero h1::after {
  position: absolute;
  left: 0.05em;
  top: 0.52em;
  overflow: hidden;
  width: 88%;
  height: 0.18em;
  content: "";
  color: var(--bbs-pink);
  transform: translateX(0.04em);
}

.modem-status {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-left: 4px solid var(--bbs-rule);
  color: var(--bbs-green);
  background:
    repeating-linear-gradient(0deg, rgba(73, 255, 154, 0.14) 0 2px, transparent 2px 9px),
    #00180d;
  font-family: Consolas, "Courier New", monospace;
}

.modem-leds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.modem-leds span {
  height: 0.95rem;
  border: 2px inset #dfe4d2;
  background: var(--bbs-green);
  box-shadow: 0 0 12px var(--bbs-green);
  animation: bbsLedBlink 1.1s steps(2, end) infinite;
}

.modem-leds span:nth-child(2) {
  background: var(--bbs-orange);
  box-shadow: 0 0 12px var(--bbs-orange);
  animation-delay: -180ms;
}

.modem-leds span:nth-child(3) {
  background: var(--bbs-cyan);
  box-shadow: 0 0 12px var(--bbs-cyan);
  animation-delay: -360ms;
}

.modem-leds span:nth-child(4) {
  background: var(--bbs-pink);
  box-shadow: 0 0 12px var(--bbs-pink);
  animation-delay: -540ms;
}

.modem-status dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.modem-status div {
  border: 2px solid rgba(73, 255, 154, 0.55);
  background: #000;
}

.modem-status dt,
.modem-status dd {
  margin: 0;
  padding: 0.35rem 0.45rem;
}

.modem-status dt {
  color: #00180d;
  background: var(--bbs-green);
  font-weight: 900;
  text-transform: uppercase;
}

.board-marquee {
  margin: 0.8rem 0;
  overflow: hidden;
  border: 4px solid #000;
  color: #fff;
  background:
    linear-gradient(90deg, var(--bbs-blue), var(--bbs-pink), var(--bbs-orange), var(--bbs-blue));
  font: 900 0.88rem Consolas, "Courier New", monospace;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 #000;
}

.board-marquee p {
  width: max-content;
  margin: 0;
  padding: 0.5rem 1rem;
  animation: tickerGlide 20s linear infinite;
}

.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.board-tabs button,
.vote-button,
.comment-button,
.post-terminal button {
  border: 3px solid #000;
  color: #101010;
  background: var(--bbs-panel);
  box-shadow: 4px 4px 0 #000;
  font: 900 0.8rem Consolas, "Courier New", monospace;
  text-transform: uppercase;
  cursor: pointer;
}

.board-tabs button {
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
}

.board-tabs button:nth-child(2) {
  background: var(--bbs-cyan);
}

.board-tabs button:nth-child(3) {
  background: var(--bbs-orange);
}

.board-tabs button:nth-child(4) {
  color: #00180d;
  background: var(--bbs-green);
}

.board-tabs button.is-active {
  color: #fff;
  background: var(--bbs-blue);
  transform: translate(-2px, -2px);
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(20rem, 0.72fr);
  gap: 0.85rem;
  align-items: start;
}

.story-rack {
  overflow: hidden;
  color: var(--bbs-ink);
  background: var(--bbs-panel);
}

.rack-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 4px solid #000;
  color: #fff;
  background: var(--bbs-blue);
  font-family: Consolas, "Courier New", monospace;
}

.rack-header h2,
.rack-header p {
  margin: 0;
}

.rack-header h2 {
  font: 900 1rem Verdana, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.story-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-item {
  display: grid;
  grid-template-columns: 3.2rem 4.25rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
  border-bottom: 2px solid #9aa08e;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44), transparent),
    var(--bbs-paper);
}

.story-item:nth-child(2n) {
  background:
    linear-gradient(90deg, rgba(80, 232, 255, 0.14), transparent),
    #e8ecd8;
}

.story-item.is-selected {
  background:
    linear-gradient(90deg, rgba(255, 59, 189, 0.22), rgba(73, 255, 154, 0.16)),
    #fff9c7;
}

.story-rank {
  color: #4d4d4d;
  font: 900 1.05rem Consolas, "Courier New", monospace;
  text-align: right;
}

.vote-cell {
  display: grid;
  align-content: start;
  justify-items: stretch;
  gap: 0.25rem;
}

.vote-button,
.comment-button {
  min-height: 2rem;
  padding: 0.2rem 0.35rem;
}

.vote-button {
  color: #fff;
  background: var(--bbs-orange);
}

.vote-button.is-voted {
  color: #00180d;
  background: var(--bbs-green);
}

.score-readout {
  color: var(--bbs-blue);
  font: 900 0.82rem Consolas, "Courier New", monospace;
  text-align: center;
}

.story-main {
  min-width: 0;
}

.story-title {
  display: inline;
  padding: 0;
  border: 0;
  color: #111;
  background: transparent;
  font: 900 clamp(1rem, 1.8vw, 1.28rem) Verdana, Arial, Helvetica, sans-serif;
  text-align: left;
  cursor: pointer;
}

.story-title:hover {
  color: var(--bbs-blue);
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.story-title::selection,
.reader-body ::selection,
.post-terminal ::selection {
  color: #000;
  background: var(--bbs-green);
}

.story-domain,
.story-meta,
.story-body {
  font-family: Consolas, "Courier New", monospace;
}

.story-domain {
  color: #596050;
  font-size: 0.78rem;
}

.story-meta {
  margin: 0.2rem 0 0;
  color: #4a4a4a;
  font-size: 0.78rem;
}

.story-body {
  margin: 0.35rem 0 0.45rem;
  color: #111;
  font-size: 0.9rem;
}

.comment-button {
  width: fit-content;
  color: #fff;
  background: var(--bbs-blue);
}

.thread-reader,
.post-terminal,
.bbs-log {
  color: var(--bbs-green);
  background:
    repeating-linear-gradient(0deg, rgba(73, 255, 154, 0.12) 0 1px, transparent 1px 5px),
    #020905;
  font-family: Consolas, "Courier New", monospace;
}

.thread-reader {
  position: sticky;
  top: 5.2rem;
}

.reader-chrome {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.55rem;
  border-bottom: 3px solid #000;
  color: #fff;
  background: linear-gradient(90deg, var(--bbs-blue), var(--bbs-pink));
  font-weight: 900;
  text-transform: uppercase;
}

.reader-body {
  min-height: 19rem;
  padding: 1rem;
}

.reader-body h2 {
  color: var(--bbs-green);
  font: 900 clamp(1.4rem, 3vw, 2.35rem) Consolas, "Courier New", monospace;
  line-height: 1;
  text-shadow: 2px 0 0 var(--bbs-pink), -2px 0 0 var(--bbs-cyan);
}

.reader-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.reader-stats span {
  padding: 0.3rem 0.45rem;
  border: 2px solid var(--bbs-green);
  color: #00180d;
  background: var(--bbs-green);
  font-weight: 900;
}

.post-terminal {
  grid-column: 2;
  padding: 1rem;
}

.post-terminal fieldset {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.post-terminal legend {
  padding: 0;
  color: var(--bbs-cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.post-terminal label {
  font-weight: 900;
  text-transform: uppercase;
}

.post-terminal input,
.post-terminal select,
.post-terminal textarea {
  width: 100%;
  border: 3px inset #c8cfbb;
  color: var(--bbs-green);
  background: #000;
  font: 1rem Consolas, "Courier New", monospace;
}

.post-terminal input,
.post-terminal select {
  min-height: 2.25rem;
}

.post-terminal textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.terminal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.post-terminal button {
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  color: #00180d;
  background: var(--bbs-green);
}

.post-terminal button.secondary {
  color: #fff;
  background: var(--bbs-pink);
}

.form-status {
  margin: 0;
  color: #c8ffd9;
  font-size: 0.83rem;
}

.bbs-log {
  grid-column: 2;
  padding: 1rem;
}

.bbs-log h2 {
  margin-bottom: 0.5rem;
  color: var(--bbs-cyan);
  font: 900 1.1rem Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.bbs-log ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbs-log li {
  overflow-wrap: anywhere;
}

@keyframes bbsLedBlink {
  0%, 100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

.theme-community {
  --bbs-page: #cfcfcf;
  --bbs-board: #eef2ff;
  --bbs-post: #f0e0d6;
  --bbs-post-alt: #e7d6c9;
  --bbs-bar: #2f4f90;
  --bbs-link: #0000ee;
  --bbs-visited: #551a8b;
  --bbs-text: #111111;
  --bbs-muted: #666666;
  --bbs-rule: #8b8b8b;
  color: var(--bbs-text);
  background: var(--bbs-page);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.theme-community::before {
  display: none;
}

.theme-community .site-header {
  position: static;
  border-bottom: 1px solid #000;
  background: #d7d7d7;
  backdrop-filter: none;
}

.theme-community .primary-nav {
  font-size: 0.78rem;
}

.theme-community .primary-nav a,
.theme-community .nav-mode-button {
  border: 1px solid #777;
  color: #000;
  background: #e9e9e9;
  box-shadow: none;
}

.theme-community .primary-nav a:nth-child(2n),
.theme-community .primary-nav a:nth-child(3n),
.theme-community .primary-nav a[aria-current="page"] {
  color: #000;
  background: #ffffff;
  transform: none;
}

.theme-community a {
  color: var(--bbs-link);
}

.theme-community a:visited {
  color: var(--bbs-visited);
}

.bbs-shell {
  width: min(980px, calc(100% - 1rem));
  margin-top: 0.75rem;
}

.bbs-frame {
  border: 1px solid #777;
  color: var(--bbs-text);
  background: #ffffff;
}

.bbs-head {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #777;
  color: #ffffff;
  background: var(--bbs-bar);
}

.bbs-head h1 {
  margin: 0.15rem 0 0.35rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  line-height: 1.1;
  text-transform: none;
}

.bbs-head p {
  max-width: 72ch;
  margin: 0;
}

.bbs-path {
  color: #dfe7ff;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
}

.bbs-rules,
.bbs-post-form,
.bbs-thread,
.bbs-admin-note {
  margin: 0.75rem;
  border: 1px solid var(--bbs-rule);
  background: #f7f7f7;
}

.bbs-rules h2,
.bbs-thread-head,
.bbs-admin-note h2,
.bbs-post-form legend {
  margin: 0;
  padding: 0.25rem 0.45rem;
  color: #ffffff;
  background: var(--bbs-bar);
  font: 700 0.9rem Arial, Helvetica, sans-serif;
  text-transform: none;
}

.bbs-rules ul {
  margin: 0;
  padding: 0.55rem 0.75rem 0.65rem 1.65rem;
}

.bbs-rules li {
  margin: 0.18rem 0;
}

.bbs-post-form {
  background: var(--bbs-board);
}

.bbs-post-form fieldset {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem;
  border: 0;
}

.bbs-post-form legend {
  width: calc(100% + 1.1rem);
  margin: -0.55rem -0.55rem 0.1rem;
}

.bbs-post-form label {
  font-weight: 700;
}

.bbs-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: end;
}

.bbs-field-row div {
  display: grid;
  gap: 0.25rem;
}

.bbs-post-form input,
.bbs-post-form textarea {
  width: 100%;
  border: 1px solid #777;
  border-radius: 0;
  color: #000;
  background: #ffffff;
  font: 14px Arial, Helvetica, sans-serif;
}

.bbs-post-form input {
  min-height: 1.75rem;
  padding: 0.2rem 0.25rem;
}

.bbs-post-form textarea {
  min-height: 9rem;
  padding: 0.3rem;
  resize: vertical;
}

.bbs-post-form button {
  width: fit-content;
  min-height: 1.8rem;
  border: 1px solid #555;
  border-radius: 0;
  color: #000;
  background: #e6e6e6;
  box-shadow: none;
  font: 14px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.bbs-post-form button:active {
  background: #d0d0d0;
}

.bbs-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bbs-form-status {
  margin: 0;
  color: var(--bbs-muted);
  font-size: 0.85rem;
}

.bbs-thread {
  background: #fff;
}

.bbs-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.bbs-thread-head h2,
.bbs-thread-head p {
  margin: 0;
  font: inherit;
}

.bbs-posts {
  padding: 0.45rem;
}

.bbs-empty {
  margin: 0.35rem;
  color: var(--bbs-muted);
}

.bbs-post {
  margin: 0 0 0.45rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #c3a999;
  background: var(--bbs-post);
}

.bbs-post:nth-child(2n) {
  background: var(--bbs-post-alt);
}

.bbs-post-meta {
  margin: 0 0 0.35rem;
  color: var(--bbs-muted);
  font-size: 0.86rem;
}

.bbs-post-subject {
  color: #cc1105;
}

.bbs-post-name {
  color: #117743;
  font-weight: 700;
}

.bbs-post-message {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bbs-admin-note {
  padding: 0 0 0.6rem;
  background: #ffffee;
}

.bbs-admin-note p {
  margin: 0;
  padding: 0.55rem 0.65rem 0;
}

@media (max-width: 620px) {
  .bbs-shell {
    width: min(100% - 0.5rem, 100%);
  }

  .bbs-rules,
  .bbs-post-form,
  .bbs-thread,
  .bbs-admin-note {
    margin: 0.45rem;
  }

  .bbs-field-row {
    grid-template-columns: 1fr;
  }

  .bbs-post-form button {
    width: 100%;
  }
}

.theme-faq {
  color: #111;
  background:
    linear-gradient(90deg, rgba(25, 117, 176, 0.25), transparent),
    #d7e6f4;
}

.faq-intro,
.qa-item {
  color: #111;
  background: #fdf8d8;
}

.qa-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.qa-item {
  padding: 1rem;
}

.qa-item h2 {
  font: 700 1.2rem Arial, Helvetica, sans-serif;
  color: #223f8f;
}

.qa-item span {
  display: inline-block;
  padding: 0.25rem 0.45rem;
  color: #fff;
  background: #2d7b26;
  font: 700 0.75rem Arial, Helvetica, sans-serif;
}

.best-answer {
  border-color: #2d7b26;
}

.theme-map,
.theme-stub {
  background-color: #111318;
}

.map-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.map-list a {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1rem;
  padding: 1rem;
  color: #000;
  background: var(--paper);
  text-decoration: none;
}

.map-list a:nth-child(3n) {
  background: var(--yellow);
}

.map-list a:nth-child(4n) {
  background: var(--green);
}

.stub-room {
  min-height: 58vh;
  display: grid;
  align-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  color: #000;
  background: var(--yellow);
}

.writing-stub {
  color: var(--ink);
  background: #151515;
}

.photo-stub {
  background: #d9d6cd;
}

.links-stub {
  background: var(--green);
}

.theme-corkboard {
  background: #201409;
}

.corkboard-controls {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  display: flex;
  gap: 0.5rem;
}

.corkboard-controls button {
  border: 3px solid #000;
  padding: 0.45rem 0.65rem;
  font: 700 0.8rem Consolas, "Courier New", monospace;
  background: var(--paper);
  color: #000;
  box-shadow: 4px 4px 0 #000;
  text-transform: uppercase;
  cursor: pointer;
}

.corkboard-controls button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.corkboard-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  cursor: grab;
  background: #110902;
}

.corkboard-viewport:active {
  cursor: grabbing;
}

.corkboard-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 5000px;
  height: 5000px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 2px, transparent 2px),
    linear-gradient(rgba(0, 0, 0, 0.4) 2px, transparent 2px),
    #694424;
  background-size: 60px 60px;
  transform-origin: 0 0;
}

.string-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.conspiracy-string {
  stroke: var(--red);
  stroke-width: 4px;
  filter: drop-shadow(2px 4px 2px rgba(0,0,0,0.6));
  stroke-linecap: round;
}

.cb-pin {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 8px 12px rgba(0,0,0,0.6);
  cursor: grab;
  user-select: none;
}

.cb-pin:active {
  cursor: grabbing;
  z-index: 50;
  box-shadow: 10px 14px 20px rgba(0,0,0,0.6);
}

.pin-polaroid {
  width: 280px;
  min-height: 320px;
  padding: 1rem 1rem 4rem 1rem;
  background: #fff;
  border: 1px solid #ddd;
  color: #111;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  transform: rotate(-3deg);
}

.pin-scrap {
  width: 250px;
  padding: 1.5rem;
  background: #f4eaad; /* yellow legal pad */
  color: #000;
  font-family: Consolas, monospace;
  border-left: 2px solid #e26363;
  transform: rotate(2deg);
  clip-path: polygon(0% 0%, 100% 2%, 98% 98%, 2% 100%);
}

.pin-note {
  width: 220px;
  padding: 1rem;
  background: #a9e0ff;
  color: #000;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  transform: rotate(5deg);
  box-shadow: 2px 4px 6px rgba(0,0,0,0.3);
}

.pin-newspaper {
  width: 320px;
  padding: 1rem;
  background: #eee8db;
  color: #222;
  font-family: "Times New Roman", Times, serif;
  transform: rotate(-1deg);
  border: 1px solid #ccc;
}

.pin-newspaper h3 {
  margin-top: 0;
  font-family: Impact, sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  border-bottom: 2px solid #222;
  padding-bottom: 0.2rem;
}

.pin-tape {
  position: absolute;
  width: 100px;
  height: 25px;
  background: rgba(240, 240, 220, 0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  z-index: 3;
}

.tape-top {
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
}

.tape-corner {
  top: -5px;
  left: -20px;
  transform: rotate(-45deg);
}

.pin-thumbtack {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 30% 30%, #ddd, #555);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 2px 4px 4px rgba(0,0,0,0.4);
  z-index: 3;
}

.scrawl {
  font-family: "Comic Sans MS", cursive, sans-serif;
  color: var(--red);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  transform: rotate(-2deg);
}

.scrawl-link {
  font-family: "Comic Sans MS", cursive, sans-serif;
  color: var(--blue);
  font-size: 1.1rem;
  text-decoration: underline;
  margin-top: 0.5rem;
  display: inline-block;
}

.theme-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, #000 0 18px, #151515 18px 20px),
    var(--void);
}

.error-room {
  width: min(780px, calc(100% - 1.5rem));
  padding: clamp(1.5rem, 6vw, 4rem);
  color: #000;
  background: var(--red);
}

.error-room h1 {
  font-size: clamp(5rem, 22vw, 13rem);
}

.error-room nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.error-room a {
  padding: 0.45rem 0.65rem;
  border: 3px solid #000;
  color: #000;
  background: var(--paper);
  font: 700 0.9rem Consolas, "Courier New", monospace;
  text-decoration: none;
  text-transform: uppercase;
}

.theme-football {
  --football-case: #eee0bd;
  --football-case-dark: #c9b68f;
  --football-case-light: #fff6dd;
  --football-black: #151515;
  --football-blue: #1d8dc3;
  --football-red: #e94330;
  --football-orange: #f18a19;
  --football-green: #248d48;
  --football-led: #ff2b1f;
  --football-led-dim: rgba(255, 42, 28, 0.46);
  --football-panel-shadow: rgba(42, 20, 5, 0.45);
  --games-window: #d8eeff;
  --games-accent: #00f6ff;
  --games-hot: #ff4fd8;
  --games-lime: #b8ff2e;
  --games-gold: #ffe45c;
  --games-orange: #ff8a00;
  color: #f7ead0;
  background:
    radial-gradient(circle at 50% 0%, rgba(236, 208, 143, 0.16), transparent 28rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #14100c;
  background-size: auto, 28px 28px, 28px 28px, auto;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: clip;
}

.theme-football::before {
  opacity: 0.1;
}

.theme-football .site-header {
  border-bottom-color: #050505;
  background: rgba(20, 16, 12, 0.94);
}

.football-page {
  min-height: calc(100vh - 8rem);
}

.football-stage {
  display: grid;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.25rem) 0.75rem 0;
  place-items: center;
}

.football-handheld {
  position: relative;
  display: grid;
  width: min(28rem, calc(100vw - 1.5rem));
  min-height: 43rem;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 0.9rem;
  padding: 1.2rem 1.2rem 1.6rem;
  border: 3px solid #6d5f45;
  border-radius: 1.15rem 1.15rem 1.75rem 1.75rem;
  color: #111;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent 18% 82%, rgba(80, 45, 16, 0.16)),
    linear-gradient(180deg, var(--football-case-light), var(--football-case) 38%, #dfcda7 100%);
  box-shadow:
    inset 0 0 0 0.32rem rgba(255, 255, 255, 0.18),
    inset 0 -0.7rem 1.2rem rgba(88, 58, 20, 0.22),
    0 1.5rem 2.4rem rgba(0, 0, 0, 0.55);
}

.football-handheld::before,
.football-handheld::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.football-handheld::before {
  inset: 0.65rem 0.7rem auto;
  height: 4.9rem;
  border-radius: 0.75rem 0.75rem 4.4rem 4.4rem;
  background:
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 0.28rem, rgba(93, 77, 52, 0.23) 0.3rem 0.36rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(160, 124, 73, 0.2));
}

.football-handheld::after {
  left: 50%;
  top: 0.75rem;
  width: 0.18rem;
  height: 5.1rem;
  background: rgba(82, 68, 44, 0.38);
  box-shadow: -9.2rem 0 0 rgba(82, 68, 44, 0.38), 9.2rem 0 0 rgba(82, 68, 44, 0.38);
  transform: translateX(-50%);
}

.football-top-label {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(18rem, 74%);
  padding: 0.24rem 0.45rem;
  border: 2px inset rgba(255, 255, 255, 0.75);
  color: #e7fbff;
  background: linear-gradient(180deg, #29a4d1, #126d9e);
  font: 900 1.1rem "Arial Black", Impact, sans-serif;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #05384f;
}

.football-display-housing {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.28rem;
  margin-top: 0.25rem;
  padding: 0.45rem 0.8rem 0.7rem;
  border-radius: 3.8rem / 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(145, 114, 72, 0.2)),
    var(--football-case);
  box-shadow:
    inset 0 0.22rem 0.55rem rgba(255, 255, 255, 0.55),
    inset 0 -0.35rem 0.7rem rgba(89, 62, 28, 0.22);
}

.football-score-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  width: 78%;
  margin: 0 auto;
}

.football-score-strip div {
  min-width: 0;
  border: 2px solid #070707;
  color: #fbf0d0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px),
    #18120f;
}

.football-score-strip span,
.football-score-strip strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  text-overflow: clip;
}

.football-score-strip span {
  padding: 0.12rem 0.15rem 0;
  color: #8a7f66;
  font: 700 0.44rem Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.football-score-strip strong {
  padding: 0 0.1rem 0.12rem;
  color: var(--football-led);
  font: 900 clamp(0.62rem, 2.4vw, 0.8rem) Consolas, "Courier New", monospace;
  text-shadow: 0 0 0.5rem rgba(255, 43, 31, 0.72);
}

.football-field-bezel {
  display: grid;
  grid-template-columns: 0.8rem minmax(0, 1fr) 0.8rem;
  align-items: center;
  gap: 0.25rem;
  padding: 0.42rem;
  border: 0.32rem solid var(--football-green);
  border-radius: 1.7rem;
  background: #222;
}

.football-goal {
  position: relative;
  height: 2.65rem;
  border-block: 0.16rem solid #e7f8ff;
}

.football-goal::before {
  position: absolute;
  top: 50%;
  width: 0.55rem;
  height: 1.1rem;
  border-block: 0.14rem solid #e7f8ff;
  content: "";
  transform: translateY(-50%);
}

.football-goal.left::before {
  left: 0;
  border-left: 0.14rem solid #e7f8ff;
}

.football-goal.right::before {
  right: 0;
  border-right: 0.14rem solid #e7f8ff;
}

.football-led-field {
  display: grid;
  height: clamp(4.5rem, 18vw, 5.8rem);
  grid-template-columns: repeat(9, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 0.18rem solid #daeef7;
  background:
    linear-gradient(90deg, #2c2a25 0 10%, #111 10% 90%, #2c2a25 90%),
    #111;
}

.football-led-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.72);
}

.football-led-cell:nth-child(9n + 1) {
  border-left: 0;
}

.football-led-cell::before,
.football-led-cell::after {
  position: absolute;
  left: 50%;
  width: 0.12rem;
  height: 0.38rem;
  background: rgba(255, 255, 255, 0.85);
  content: "";
  transform: translateX(-50%);
}

.football-led-cell::before {
  top: 0;
}

.football-led-cell::after {
  bottom: 0;
}

.football-led-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.72rem;
  height: 0.25rem;
  border-radius: 999px;
  opacity: 0;
  background: var(--football-led);
  box-shadow: 0 0 0.55rem rgba(255, 43, 31, 0.9);
  transform: translate(-50%, -50%);
}

.football-led-cell.is-defender .football-led-dot {
  opacity: 0.58;
  background: var(--football-led-dim);
  box-shadow: 0 0 0.25rem rgba(255, 43, 31, 0.5);
}

.football-led-cell.is-runner .football-led-dot {
  opacity: 1;
  height: 0.32rem;
  box-shadow: 0 0 0.3rem #fff3ef, 0 0 0.85rem rgba(255, 43, 31, 0.95);
}

.football-led-cell.is-tackler .football-led-dot {
  animation: footballBlink 180ms steps(2, end) infinite;
}

.football-panel {
  display: grid;
  grid-template-columns: 3.45rem 3.45rem 1fr 3.25rem 3.25rem;
  grid-template-rows: 3.15rem 3.15rem 1.8rem;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.1rem;
  padding: 0.8rem;
  border-radius: 0.16rem;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.08), transparent 1.8rem),
    var(--football-black);
  box-shadow:
    inset 0 0 0 0.18rem #070707,
    inset 0 0.45rem 0.75rem rgba(255, 255, 255, 0.08),
    0 0.45rem 0.8rem var(--football-panel-shadow);
}

.football-button {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 0.32rem;
  color: #ecffff;
  box-shadow:
    inset 0 0.18rem 0 rgba(255, 255, 255, 0.36),
    inset 0 -0.18rem 0 rgba(0, 0, 0, 0.28),
    0 0.24rem 0 #050505;
  font: 900 1.35rem "Arial Black", Impact, sans-serif;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.42);
}

.football-button:active {
  transform: translateY(0.16rem);
  box-shadow:
    inset 0 0.18rem 0 rgba(255, 255, 255, 0.2),
    inset 0 -0.18rem 0 rgba(0, 0, 0, 0.26),
    0 0.08rem 0 #050505;
}

.football-button-blue {
  background: linear-gradient(180deg, #38b5de, #1378ad);
}

.football-button-kick {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  height: 3.5rem;
  background: linear-gradient(180deg, #33a8d3, #096a9f);
}

.football-button-red {
  background: linear-gradient(180deg, #ff705f, var(--football-red) 55%, #b8261b);
}

.football-button-orange {
  background: linear-gradient(180deg, #ffb347, var(--football-orange) 58%, #b9520a);
}

[data-football-status] {
  grid-column: 1;
  grid-row: 1;
}

[data-football-score-button] {
  grid-column: 1;
  grid-row: 2;
}

[data-football-move="left"] {
  grid-column: 4;
  grid-row: 1;
}

[data-football-move="right"] {
  grid-column: 4;
  grid-row: 2;
}

[data-football-move="up"] {
  grid-column: 5;
  grid-row: 1;
}

[data-football-move="down"] {
  grid-column: 5;
  grid-row: 2;
}

.football-arrow {
  display: block;
  width: 0;
  height: 0;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
}

.football-arrow-up {
  border-right: 0.55rem solid transparent;
  border-bottom: 0.9rem solid #fff7e6;
  border-left: 0.55rem solid transparent;
}

.football-arrow-down {
  border-top: 0.9rem solid #fff7e6;
  border-right: 0.55rem solid transparent;
  border-left: 0.55rem solid transparent;
}

.football-arrow-left {
  border-top: 0.5rem solid transparent;
  border-right: 0.88rem solid #fff7e6;
  border-bottom: 0.5rem solid transparent;
}

.football-arrow-right {
  border-top: 0.5rem solid transparent;
  border-bottom: 0.5rem solid transparent;
  border-left: 0.88rem solid #fff7e6;
}

.football-power {
  display: grid;
  grid-column: 2 / span 3;
  grid-row: 3;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 0.22rem;
  align-self: end;
  color: #ece6d8;
  font: 700 0.62rem Arial, Helvetica, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.football-power button {
  min-width: 0;
  min-height: 1.5rem;
  padding: 0.12rem 0.18rem;
  border: 0;
  border-radius: 0.12rem;
  color: #f3ead5;
  background: #080808;
  box-shadow: inset 0 0 0 1px #3e3e3e;
  font: inherit;
  cursor: pointer;
}

.football-power button[aria-pressed="true"] {
  color: #111;
  background: linear-gradient(180deg, #ded1b0, #8a7a5d);
  box-shadow: inset 0 0 0 1px #050505, 0 0 0.55rem rgba(255, 43, 31, 0.55);
}

.football-message-window {
  min-height: 2.2rem;
  padding: 0.45rem 0.55rem;
  border: 0.18rem inset #0f0f0f;
  color: var(--football-led);
  background:
    repeating-linear-gradient(0deg, rgba(255, 45, 31, 0.08) 0 1px, transparent 1px 4px),
    #120705;
  font: 900 0.78rem Consolas, "Courier New", monospace;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 0.48rem rgba(255, 43, 31, 0.82);
}

.football-lower {
  position: relative;
  display: grid;
  min-height: 8.4rem;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  align-items: end;
  padding-top: 0.2rem;
}

.football-speaker {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  width: 8.8rem;
  max-width: 100%;
  padding-left: 0.45rem;
}

.football-speaker span {
  display: block;
  height: 0.22rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(97, 80, 51, 0.55), rgba(255, 255, 255, 0.36));
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.22);
}

.football-emboss {
  position: absolute;
  right: 3.6rem;
  bottom: 2.3rem;
  width: 4.3rem;
  height: 3.3rem;
  border: 0.18rem solid rgba(98, 80, 50, 0.26);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.football-emboss::before,
.football-emboss::after,
.football-emboss span {
  position: absolute;
  content: "";
}

.football-emboss::before {
  left: 50%;
  top: -0.42rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 0.18rem solid rgba(98, 80, 50, 0.28);
  border-radius: 50%;
  transform: translateX(-50%);
}

.football-emboss::after {
  left: 50%;
  top: 0.45rem;
  width: 0.12rem;
  height: 1.5rem;
  background: rgba(98, 80, 50, 0.32);
  box-shadow: -0.45rem 0.28rem 0 rgba(98, 80, 50, 0.28), 0.45rem 0.28rem 0 rgba(98, 80, 50, 0.28);
  transform: translateX(-50%);
}

.football-badge {
  justify-self: end;
  align-self: end;
  padding: 0.2rem 0.42rem;
  border: 2px inset rgba(255, 255, 255, 0.7);
  color: #e7fbff;
  background: linear-gradient(180deg, #2da8d5, #126d9e);
  font: 900 1rem "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #05384f;
}

.football-listing .football-mini-link {
  display: grid;
  min-height: 11rem;
  place-items: center;
  border: 4px ridge var(--games-window);
  color: #111;
  background:
    radial-gradient(ellipse at 50% 16%, var(--football-case-light), transparent 4.8rem),
    linear-gradient(180deg, var(--football-case), #d1bf98);
  text-decoration: none;
}

.football-mini-toy {
  display: grid;
  width: min(16rem, 86%);
  gap: 0.35rem;
  padding: 0.65rem;
  border: 3px solid #6d5f45;
  border-radius: 0.75rem;
  background: var(--football-case);
  box-shadow: 0 0.7rem 0 #0b0b0b;
}

.football-mini-label {
  justify-self: center;
  padding: 0.15rem 0.45rem;
  color: #e7fbff;
  background: #126d9e;
  font: 900 0.78rem "Arial Black", Impact, sans-serif;
}

.football-mini-field {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  height: 2.8rem;
  border: 0.24rem solid var(--football-green);
  background: #111;
}

.football-mini-field span {
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.7);
}

.football-mini-field span:first-child {
  border-left: 0;
}

.football-mini-field span:nth-child(2)::before,
.football-mini-field span:nth-child(5)::before,
.football-mini-field span:nth-child(8)::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.6rem;
  height: 0.22rem;
  border-radius: 999px;
  background: var(--football-led);
  box-shadow: 0 0 0.5rem var(--football-led);
  content: "";
  transform: translate(-50%, -50%);
}

.football-mini-panel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.28rem;
  padding: 0.4rem;
  background: #111;
}

.football-mini-panel span {
  height: 1.2rem;
  border-radius: 0.18rem;
  background: var(--football-blue);
}

.football-mini-panel span:nth-child(3) {
  background: var(--football-orange);
}

.football-mini-panel span:nth-child(n+4) {
  background: var(--football-red);
}

@keyframes footballBlink {
  0%, 100% {
    opacity: 0.18;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .football-stage {
    padding-top: 0.75rem;
  }

  .football-handheld {
    min-height: auto;
    gap: 0.62rem;
    padding: 0.9rem 0.82rem 1.1rem;
  }

  .football-top-label {
    font-size: 0.92rem;
  }

  .football-display-housing {
    padding-inline: 0.48rem;
  }

  .football-score-strip {
    width: 86%;
  }

  .football-panel {
    grid-template-columns: 3rem 3rem 1fr 2.8rem 2.8rem;
    grid-template-rows: 2.75rem 2.75rem 1.75rem;
    gap: 0.42rem;
    padding: 0.62rem;
  }

  .football-button {
    font-size: 1.1rem;
  }

  .football-lower {
    min-height: 6.8rem;
  }
}

@media (max-width: 420px) {
  .football-panel {
    grid-template-columns: 2.45rem 2.45rem 1fr 2.35rem 2.35rem;
    grid-template-rows: 2.35rem 2.35rem 1.65rem;
    gap: 0.33rem;
    padding: 0.5rem;
  }

  .football-button-kick {
    height: 2.8rem;
  }

  .football-power {
    font-size: 0.52rem;
  }

  .football-score-strip span {
    font-size: 0.38rem;
  }

  .football-message-window {
    font-size: 0.68rem;
  }
}

.theme-basketball,
.theme-baseball {
  --games-window: #d8eeff;
  --games-accent: #00f6ff;
  --games-hot: #ff4fd8;
  --games-lime: #b8ff2e;
  --games-gold: #ffe45c;
  --games-orange: #ff8a00;
  color: #f7ead0;
  background:
    radial-gradient(circle at 50% 0%, rgba(236, 208, 143, 0.15), transparent 28rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #14100c;
  background-size: auto, 28px 28px, 28px 28px, auto;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: clip;
}

.theme-basketball::before,
.theme-baseball::before {
  opacity: 0.1;
}

.theme-basketball .site-header,
.theme-baseball .site-header {
  border-bottom-color: #050505;
  background: rgba(20, 16, 12, 0.94);
}

.basketball-stage,
.baseball-stage {
  display: grid;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.25rem) 0.75rem 0;
  place-items: center;
}

.basketball-handheld,
.baseball-handheld {
  position: relative;
  width: min(28rem, calc(100vw - 1.5rem));
  min-height: 43rem;
  padding: 1.25rem 1.25rem 1.55rem;
  border: 3px solid #6d5f45;
  border-radius: 1.05rem 1.05rem 1.45rem 1.45rem;
  color: #111;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent 18% 82%, rgba(80, 45, 16, 0.16)),
    linear-gradient(180deg, #fff6dd, #eee0bd 38%, #dfcda7 100%);
  box-shadow:
    inset 0 0 0 0.32rem rgba(255, 255, 255, 0.18),
    inset 0 -0.7rem 1.2rem rgba(88, 58, 20, 0.22),
    0 1.5rem 2.4rem rgba(0, 0, 0, 0.55);
}

.basketball-display-housing,
.baseball-field {
  position: relative;
  border-radius: 1.1rem;
  background:
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 0.28rem, rgba(92, 76, 50, 0.2) 0.3rem 0.36rem),
    #eee0bd;
  box-shadow:
    inset 0 0.2rem 0.55rem rgba(255, 255, 255, 0.55),
    inset 0 -0.34rem 0.7rem rgba(89, 62, 28, 0.2);
}

.basketball-display-housing {
  display: grid;
  height: 17.5rem;
  padding: 1.7rem 1.1rem 1.35rem;
}

.basketball-clock-window {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  z-index: 3;
  min-width: 5.2rem;
  padding: 0.18rem 0.45rem;
  border: 0.18rem inset #050505;
  color: #ff2b1f;
  background:
    repeating-linear-gradient(0deg, rgba(255, 45, 31, 0.08) 0 1px, transparent 1px 4px),
    #120705;
  font: 900 0.82rem Consolas, "Courier New", monospace;
  text-align: center;
  text-shadow: 0 0 0.5rem rgba(255, 43, 31, 0.82);
  transform: translateX(-50%);
}

.basketball-court {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  overflow: hidden;
  border: 0.22rem solid #f7f7f7;
  background:
    linear-gradient(#f4f4f4, #f4f4f4) 50% 0 / 0.16rem 100% no-repeat,
    radial-gradient(circle at 50% 19%, transparent 0 2rem, #f4f4f4 2.05rem 2.18rem, transparent 2.22rem),
    radial-gradient(circle at 50% 72%, transparent 0 2.2rem, #f4f4f4 2.25rem 2.38rem, transparent 2.42rem),
    linear-gradient(90deg, rgba(188, 91, 29, 0.72) 0 9%, transparent 9% 91%, rgba(188, 91, 29, 0.72) 91%),
    repeating-linear-gradient(90deg, rgba(184, 82, 26, 0.62) 0 0.18rem, transparent 0.18rem 0.55rem),
    #171717;
}

.basketball-court::before,
.basketball-court::after {
  position: absolute;
  left: 50%;
  z-index: 1;
  content: "";
  transform: translateX(-50%);
}

.basketball-court::before {
  top: 0.55rem;
  width: 3.2rem;
  height: 4.5rem;
  border: 0.14rem solid #f4f4f4;
  border-top: 0;
}

.basketball-court::after {
  top: 0.35rem;
  width: 1.25rem;
  height: 0.55rem;
  border: 0.13rem solid #f4f4f4;
  border-top: 0;
}

.basketball-led-cell {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
}

.basketball-led-cell > span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.55rem;
  height: 0.2rem;
  border-radius: 999px;
  opacity: 0;
  background: #ff2b1f;
  box-shadow: 0 0 0.45rem rgba(255, 43, 31, 0.9);
  transform: translate(-50%, -50%);
}

.basketball-led-cell.is-defense > span {
  opacity: 0.45;
  box-shadow: 0 0 0.22rem rgba(255, 43, 31, 0.55);
}

.basketball-led-cell.is-offense > span,
.basketball-led-cell.is-ball > span {
  opacity: 1;
  height: 0.28rem;
  box-shadow: 0 0 0.24rem #fff3ef, 0 0 0.8rem rgba(255, 43, 31, 0.95);
}

.basketball-led-cell.is-ball > span {
  border-radius: 50%;
  width: 0.36rem;
  height: 0.36rem;
}

.basketball-hoop-light {
  position: absolute;
  left: 50%;
  top: 2.62rem;
  z-index: 4;
  width: 0.7rem;
  height: 0.26rem;
  border-radius: 999px;
  opacity: 0;
  background: #ff2b1f;
  box-shadow: 0 0 0.7rem #ff2b1f;
  transform: translateX(-50%);
}

.basketball-hoop-light.is-lit {
  opacity: 1;
  animation: footballBlink 180ms steps(2, end) 5;
}

.basketball-panel {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr 3.2rem;
  grid-template-rows: 3.15rem 3.15rem 3.15rem 1.75rem;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0.78rem;
  border-radius: 0.16rem;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.06), transparent 4rem),
    #151515;
  box-shadow:
    inset 0 0 0 0.18rem #070707,
    inset 0 0.45rem 0.75rem rgba(255, 255, 255, 0.08),
    0 0.45rem 0.8rem rgba(42, 20, 5, 0.45);
}

.basketball-shoot,
.basketball-arrow,
.baseball-button {
  border: 0;
  cursor: pointer;
  box-shadow:
    inset 0 0.18rem 0 rgba(255, 255, 255, 0.36),
    inset 0 -0.18rem 0 rgba(0, 0, 0, 0.28),
    0 0.24rem 0 #050505;
}

.basketball-shoot:active,
.basketball-arrow:active,
.baseball-button:active {
  transform: translateY(0.16rem);
  box-shadow:
    inset 0 0.18rem 0 rgba(255, 255, 255, 0.2),
    inset 0 -0.18rem 0 rgba(0, 0, 0, 0.26),
    0 0.08rem 0 #050505;
}

.basketball-shoot {
  display: grid;
  place-items: center;
  border-radius: 0.24rem;
  background: linear-gradient(180deg, #38b5de, #1378ad);
}

.basketball-shoot-left {
  grid-column: 1;
  grid-row: 1;
}

.basketball-shoot-right {
  grid-column: 3;
  grid-row: 1;
}

.basketball-shoot span {
  width: 1.55rem;
  height: 1.55rem;
  border: 0.16rem solid #dff9ff;
  border-radius: 50%;
  background:
    linear-gradient(#dff9ff, #dff9ff) 50% 0 / 0.14rem 100% no-repeat,
    linear-gradient(90deg, #dff9ff, #dff9ff) 0 50% / 100% 0.14rem no-repeat,
    transparent;
}

.basketball-arrow {
  position: relative;
  justify-self: center;
  width: 4.2rem;
  height: 3.25rem;
  border-radius: 0.42rem;
  background: linear-gradient(180deg, #ff5b47, #db261e 60%, #9f1712);
}

.basketball-arrow::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  content: "";
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
  transform: translate(-50%, -50%);
}

.basketball-up {
  grid-column: 2;
  grid-row: 1;
}

.basketball-left {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
}

.basketball-right {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

.basketball-down {
  grid-column: 2;
  grid-row: 3;
}

.basketball-up::before {
  border-right: 0.72rem solid transparent;
  border-bottom: 1.05rem solid #fff7e6;
  border-left: 0.72rem solid transparent;
}

.basketball-down::before {
  border-top: 1.05rem solid #fff7e6;
  border-right: 0.72rem solid transparent;
  border-left: 0.72rem solid transparent;
}

.basketball-left::before {
  border-top: 0.72rem solid transparent;
  border-right: 1.05rem solid #fff7e6;
  border-bottom: 0.72rem solid transparent;
}

.basketball-right::before {
  border-top: 0.72rem solid transparent;
  border-bottom: 0.72rem solid transparent;
  border-left: 1.05rem solid #fff7e6;
}

.basketball-power,
.baseball-power {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 0.22rem;
  color: #ece6d8;
  font: 700 0.62rem Arial, Helvetica, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.basketball-power {
  grid-column: 1 / span 3;
  grid-row: 4;
}

.basketball-power button,
.baseball-power button {
  min-width: 0;
  min-height: 1.5rem;
  padding: 0.12rem 0.18rem;
  border: 0;
  border-radius: 0.12rem;
  color: #f3ead5;
  background: #080808;
  box-shadow: inset 0 0 0 1px #3e3e3e;
  font: inherit;
  cursor: pointer;
}

.basketball-power button[aria-pressed="true"],
.baseball-power button[aria-pressed="true"] {
  color: #111;
  background: linear-gradient(180deg, #ded1b0, #8a7a5d);
  box-shadow: inset 0 0 0 1px #050505, 0 0 0.55rem rgba(255, 43, 31, 0.55);
}

.basketball-speaker {
  display: grid;
  gap: 0.34rem;
  width: 10rem;
  margin: 1.15rem 0 0 0.35rem;
}

.basketball-speaker span {
  height: 0.22rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(97, 80, 51, 0.55), rgba(255, 255, 255, 0.36));
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.22);
}

.basketball-badge,
.baseball-badge {
  position: absolute;
  right: 1.45rem;
  bottom: 1.4rem;
  padding: 0.22rem 0.45rem;
  border: 2px inset rgba(255, 255, 255, 0.7);
  color: #f8f2e0;
  background: #111;
  font: 900 1rem "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000;
}

.basketball-badge {
  color: #ff7a22;
}

.baseball-handheld {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 0.8rem;
}

.baseball-scoreboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.22rem;
  width: 88%;
  margin: 0 auto -1.15rem;
  padding: 0.28rem;
  border: 0.18rem inset #9a8a67;
  background: #eee0bd;
  z-index: 2;
}

.baseball-scoreboard div {
  min-width: 0;
  border: 2px solid #070707;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px),
    #18120f;
}

.baseball-scoreboard span,
.baseball-scoreboard strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
}

.baseball-scoreboard span {
  padding-top: 0.1rem;
  color: #8a7f66;
  font: 700 0.48rem Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.baseball-scoreboard strong {
  padding-bottom: 0.08rem;
  color: #ff2b1f;
  font: 900 0.84rem Consolas, "Courier New", monospace;
  text-shadow: 0 0 0.45rem rgba(255, 43, 31, 0.82);
}

.baseball-field {
  height: 22rem;
  overflow: hidden;
  border-radius: 1.8rem 1.8rem 4rem 4rem;
  background:
    repeating-radial-gradient(ellipse at 50% 20%, transparent 0 0.28rem, rgba(92, 76, 50, 0.2) 0.3rem 0.36rem),
    #eee0bd;
}

.baseball-field::before,
.baseball-field::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.baseball-field::before {
  top: 2.2rem;
  width: 18rem;
  height: 17rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 2rem),
    linear-gradient(135deg, transparent 16%, #3dc36c 16% 84%, transparent 84%),
    #3dc36c;
  clip-path: polygon(50% 0, 100% 45%, 50% 100%, 0 45%);
}

.baseball-field::after {
  top: 6.9rem;
  width: 7.1rem;
  height: 10.5rem;
  border-radius: 999px;
  background: #251713;
}

.baseball-light {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 1.05rem;
  height: 1.05rem;
  place-items: center;
}

.baseball-light::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.82rem;
  height: 0.82rem;
  border: 0.12rem solid rgba(255, 255, 255, 0.82);
  background: #17110d;
  content: "";
  transform: translate(-50%, -50%);
}

.baseball-light[class*="fielder"]::before,
.baseball-light[class*="pitch"]::before {
  width: 0.92rem;
  height: 0.72rem;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 0.18rem;
}

.baseball-light[class*="path"]::before {
  width: 0.62rem;
  height: 0.62rem;
  border-color: rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.baseball-light i {
  position: relative;
  z-index: 1;
  display: block;
  width: 0.7rem;
  height: 0.34rem;
  border-radius: 999px;
  opacity: 0;
  background: #ff2b1f;
  box-shadow: 0 0 0.55rem rgba(255, 43, 31, 0.9);
}

.baseball-light.is-on i,
.baseball-light.is-pitch i,
.baseball-light.is-runner i {
  opacity: 1;
}

.baseball-light.is-runner i {
  box-shadow: 0 0 0.24rem #fff3ef, 0 0 0.8rem rgba(255, 43, 31, 0.95);
}

.baseball-light.is-field i {
  opacity: 0.68;
}

.baseball-light.is-flash i,
.baseball-field.is-homer .baseball-light i {
  animation: footballBlink 180ms steps(2, end) infinite;
  opacity: 1;
}

.base-home { left: 50%; bottom: 2.6rem; transform: translateX(-50%); }
.base-first { right: 5.8rem; bottom: 8.1rem; }
.base-second { left: 50%; top: 4.55rem; transform: translateX(-50%); }
.base-third { left: 5.8rem; bottom: 8.1rem; }
.path-1a { right: 9.8rem; bottom: 5rem; }
.path-1b { right: 6.5rem; bottom: 6.35rem; }
.path-2a { right: 6.7rem; top: 8.55rem; }
.path-2b { right: 9.7rem; top: 5.9rem; }
.path-3a { left: 9.7rem; top: 5.9rem; }
.path-3b { left: 6.7rem; top: 8.55rem; }
.path-4a { left: 6.5rem; bottom: 6.35rem; }
.path-4b { left: 9.8rem; bottom: 5rem; }
.pitch-mound { left: 50%; top: 10.1rem; transform: translateX(-50%); }
.pitch-mid { left: 50%; top: 12.65rem; transform: translateX(-50%); }
.pitch-zone { left: 50%; bottom: 4.45rem; transform: translateX(-50%); }
.fielder-left { left: 5rem; top: 5.2rem; }
.fielder-center { left: 50%; top: 2.55rem; transform: translateX(-50%); }
.fielder-right { right: 5rem; top: 5.2rem; }
.fielder-deep-first { right: 3.8rem; top: 9.05rem; }
.fielder-deep-third { left: 3.8rem; top: 9.05rem; }

.baseball-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.78rem;
  border-radius: 0.16rem;
  background: #151515;
  box-shadow:
    inset 0 0 0 0.18rem #070707,
    inset 0 0.45rem 0.75rem rgba(255, 255, 255, 0.08),
    0 0.45rem 0.8rem rgba(42, 20, 5, 0.45);
}

.baseball-button {
  min-height: 3rem;
  border-radius: 0.34rem;
  color: #f7ffff;
  background: linear-gradient(180deg, #38b5de, #1378ad);
  font: 900 0.86rem "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.42);
}

.baseball-button.pitch,
.baseball-button.run {
  background: linear-gradient(180deg, #ffb347, #f18a19 58%, #b9520a);
}

.baseball-button.hit {
  background: linear-gradient(180deg, #ff705f, #e94330 55%, #b8261b);
}

.baseball-power {
  grid-column: 1 / span 4;
}

.baseball-message {
  min-height: 2.2rem;
  padding: 0.45rem 0.55rem;
  border: 0.18rem inset #0f0f0f;
  color: #ff2b1f;
  background:
    repeating-linear-gradient(0deg, rgba(255, 45, 31, 0.08) 0 1px, transparent 1px 4px),
    #120705;
  font: 900 0.78rem Consolas, "Courier New", monospace;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 0.48rem rgba(255, 43, 31, 0.82);
}

.sports-mini-link {
  display: grid;
  min-height: 11rem;
  place-items: center;
  border: 4px ridge var(--games-window);
  color: #111;
  background:
    radial-gradient(ellipse at 50% 16%, #fff6dd, transparent 4.8rem),
    linear-gradient(180deg, #eee0bd, #d1bf98);
  text-decoration: none;
}

.sports-mini-toy {
  display: grid;
  width: min(16rem, 86%);
  gap: 0.35rem;
  padding: 0.65rem;
  border: 3px solid #6d5f45;
  border-radius: 0.75rem;
  background: #eee0bd;
  box-shadow: 0 0.7rem 0 #0b0b0b;
}

.sports-mini-face {
  position: relative;
  height: 4.3rem;
  border: 0.24rem solid #eee0bd;
  background: #111;
}

.sports-mini-face.basketball {
  background:
    radial-gradient(circle at 50% 24%, transparent 0 0.9rem, #f4f4f4 0.92rem 1rem, transparent 1.02rem),
    linear-gradient(#f4f4f4, #f4f4f4) 50% 0 / 0.12rem 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(184, 82, 26, 0.62) 0 0.16rem, transparent 0.16rem 0.52rem),
    #171717;
}

.sports-mini-face.baseball {
  background:
    linear-gradient(135deg, transparent 18%, #3dc36c 18% 82%, transparent 82%),
    #eee0bd;
}

.sports-mini-face.football {
  background:
    linear-gradient(90deg, transparent 48%, #fff 48% 52%, transparent 52%),
    repeating-linear-gradient(90deg, transparent 0 20%, rgba(255,255,255,0.4) 20% 21%),
    #227c42;
}

.sports-mini-face span {
  position: absolute;
  width: 0.55rem;
  height: 0.22rem;
  border-radius: 999px;
  background: #ff2b1f;
  box-shadow: 0 0 0.45rem #ff2b1f;
}

.sports-mini-face span:nth-child(1) { left: 20%; top: 28%; }
.sports-mini-face span:nth-child(2) { left: 48%; top: 52%; }
.sports-mini-face span:nth-child(3) { right: 20%; bottom: 23%; }

.sports-mini-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.28rem;
  padding: 0.4rem;
  background: #111;
}

.sports-mini-panel span {
  height: 1.2rem;
  border-radius: 0.18rem;
  background: #1d8dc3;
}

.sports-mini-panel span:nth-child(n+2) {
  background: #e94330;
}

.football-stage,
.basketball-stage,
.baseball-stage {
  grid-template-columns: minmax(0, auto) minmax(14rem, 20rem);
  align-items: start;
  gap: 1rem;
}

.handheld-extra-panel {
  width: min(20rem, calc(100vw - 1.5rem));
  margin-top: 1rem;
  padding: 0 0.85rem 0.85rem;
  border: 4px ridge var(--games-window);
  border-radius: 6px;
  color: #fafdff;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(13, 0, 52, 0.98), rgba(5, 0, 18, 0.98));
  box-shadow:
    inset 0 0 26px rgba(0, 246, 255, 0.24),
    0 0 18px rgba(255, 79, 216, 0.28);
}

.handheld-extra-panel .window-chrome {
  margin: 0 -0.85rem 0.85rem;
}

.mini-bank {
  margin-bottom: 0.65rem;
}

.handheld-theme-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.handheld-theme-buttons button {
  min-height: 2.25rem;
  border: 3px outset #ffffff;
  color: #050012;
  background: linear-gradient(180deg, #ffffff, #d8eeff 54%, var(--games-accent));
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.26);
  font: 900 0.72rem "MS Gothic", Consolas, monospace;
  cursor: pointer;
  text-transform: uppercase;
}

.handheld-theme-buttons button[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffffff, var(--games-gold) 52%, var(--games-orange));
  box-shadow: 0 0 14px var(--games-gold);
}

.handheld-theme-night .football-handheld,
.handheld-theme-night .basketball-handheld,
.handheld-theme-night .baseball-handheld {
  border-color: #363d55;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 18% 82%, rgba(0, 0, 0, 0.22)),
    linear-gradient(180deg, #27334f, #161b2d 44%, #090d18);
  box-shadow:
    inset 0 0 0 0.32rem rgba(255, 255, 255, 0.08),
    inset 0 -0.7rem 1.2rem rgba(0, 0, 0, 0.42),
    0 1.5rem 2.4rem rgba(0, 0, 0, 0.65);
}

.handheld-theme-night .football-display-housing,
.handheld-theme-night .basketball-display-housing,
.handheld-theme-night .baseball-field {
  background:
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 0.28rem, rgba(172, 210, 255, 0.12) 0.3rem 0.36rem),
    #182033;
}

.handheld-theme-night .football-badge,
.handheld-theme-night .basketball-badge,
.handheld-theme-night .baseball-badge {
  background: #05070d;
}

.handheld-theme-candy .football-handheld,
.handheld-theme-candy .basketball-handheld,
.handheld-theme-candy .baseball-handheld {
  border-color: #c33da8;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 18% 82%, rgba(123, 0, 109, 0.16)),
    linear-gradient(180deg, #fff7fd, #ffc7f2 42%, #9ff6ff);
}

.handheld-theme-candy .football-display-housing,
.handheld-theme-candy .basketball-display-housing,
.handheld-theme-candy .baseball-field {
  background:
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 0.28rem, rgba(195, 61, 168, 0.18) 0.3rem 0.36rem),
    #ffe0f8;
}

.handheld-theme-candy .football-panel,
.handheld-theme-candy .basketball-panel,
.handheld-theme-candy .baseball-panel {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.12), transparent 4rem),
    #3b1438;
}

.handheld-theme-casino .football-handheld,
.handheld-theme-casino .basketball-handheld,
.handheld-theme-casino .baseball-handheld {
  border-color: #d4b550;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32), transparent 18% 82%, rgba(0, 0, 0, 0.25)),
    linear-gradient(180deg, #235235, #14351e 44%, #080d08);
}

.handheld-theme-casino .football-display-housing,
.handheld-theme-casino .basketball-display-housing,
.handheld-theme-casino .baseball-field {
  background:
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 0.28rem, rgba(255, 225, 92, 0.2) 0.3rem 0.36rem),
    #183d25;
}

.handheld-theme-casino .football-badge,
.handheld-theme-casino .basketball-badge,
.handheld-theme-casino .baseball-badge {
  color: #ffe45c;
  background: #150707;
}

.site-pet {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 10001;
  display: grid;
  min-width: 6.5rem;
  gap: 0.18rem;
  padding: 0.45rem;
  border: 3px outset #ffffff;
  color: var(--games-lime, #b8ff2e);
  background:
    repeating-linear-gradient(0deg, rgba(184, 255, 46, 0.12) 0 1px, transparent 1px 4px),
    #050012;
  box-shadow: 0 0 16px rgba(184, 255, 46, 0.35);
  font: 900 0.72rem Consolas, "Courier New", monospace;
  text-align: center;
  text-transform: uppercase;
}

.site-pet strong {
  color: #ffffff;
  font-size: 1.1rem;
  text-shadow: 0 0 10px currentColor;
}

.site-pet span {
  color: var(--games-gold, #ffe45c);
}

@media (max-width: 760px) {
  .football-stage,
  .basketball-stage,
  .baseball-stage {
    grid-template-columns: 1fr;
    padding-top: 0.75rem;
  }

  .basketball-handheld,
  .baseball-handheld {
    min-height: auto;
    padding: 0.9rem 0.82rem 1.1rem;
  }

  .basketball-display-housing {
    height: 15.4rem;
    padding: 1.35rem 0.75rem 1.2rem;
  }

  .basketball-panel {
    grid-template-columns: 2.8rem 1fr 2.8rem;
  }

  .basketball-arrow {
    width: 3.45rem;
    height: 2.85rem;
  }

  .baseball-field {
    height: 19rem;
  }

  .base-home { bottom: 2.3rem; }
  .base-first { right: 4.7rem; bottom: 7rem; }
  .base-second { top: 4rem; }
  .base-third { left: 4.7rem; bottom: 7rem; }
  .path-1a { right: 8.4rem; bottom: 4.5rem; }
  .path-1b { right: 5.6rem; bottom: 5.55rem; }
  .path-2a { right: 5.7rem; top: 7.45rem; }
  .path-2b { right: 8.35rem; top: 5.25rem; }
  .path-3a { left: 8.35rem; top: 5.25rem; }
  .path-3b { left: 5.7rem; top: 7.45rem; }
  .path-4a { left: 5.6rem; bottom: 5.55rem; }
  .path-4b { left: 8.4rem; bottom: 4.5rem; }
  .pitch-mound { top: 8.7rem; }
  .pitch-mid { top: 10.95rem; }
  .pitch-zone { bottom: 4rem; }
  .fielder-left { left: 4.15rem; top: 4.6rem; }
  .fielder-center { top: 2.25rem; }
  .fielder-right { right: 4.15rem; top: 4.6rem; }
  .fielder-deep-first { right: 3.15rem; top: 7.95rem; }
  .fielder-deep-third { left: 3.15rem; top: 7.95rem; }
}

@media (max-width: 420px) {
  .basketball-panel {
    grid-template-columns: 2.35rem 1fr 2.35rem;
    gap: 0.32rem;
    padding: 0.52rem;
  }

  .basketball-shoot {
    min-height: 2.4rem;
  }

  .basketball-arrow {
    width: 2.85rem;
    height: 2.45rem;
  }

  .basketball-power,
  .baseball-power {
    font-size: 0.52rem;
  }

  .baseball-scoreboard {
    width: 96%;
    gap: 0.12rem;
  }

  .baseball-scoreboard span {
    font-size: 0.38rem;
  }

  .baseball-button {
    min-height: 2.55rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    justify-content: start;
  }

  .home-board,
  .dispatch-grid,
  .arcade-intro,
  .loot-os,
  .game-cabinet,
  .arcade-floor,
  .dossier-grid,
  .altar-grid,
  .shrine-chaos-grid,
  .board-hero,
  .board-grid {
    grid-template-columns: 1fr;
  }

  .relic-card,
  .relic-card-large,
  .relic-card-red,
  .relic-card-blue,
  .relic-card-black,
  .relic-card-yellow,
  .relic-image,
  .idol-case,
  .ancestry-image,
  .trading-card-vault {
    grid-column: span 1;
    grid-row: span 1;
  }

  .idol-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intro-copy h1 {
    font-size: 4.4rem;
  }

  .home-title-block,
  .portal-tile,
  .portal-art,
  .tile-games,
  .tile-projects,
  .tile-shrine,
  .tile-community,
  .tile-writing,
  .tile-nostalgia,
  .tile-corkboard,
  .tile-photos,
  .tile-about {
    grid-column: span 1;
  }

  .project-row,
  .map-list a {
    grid-template-columns: 1fr;
  }

  .thread-row {
    grid-template-columns: 1fr;
  }

  .thread-row p {
    grid-column: 1;
  }

  .modem-status {
    border-top: 4px solid var(--bbs-rule);
    border-left: 0;
  }

  .thread-reader,
  .post-terminal,
  .bbs-log {
    position: static;
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .home-board,
  .page-shell,
  .games-shell,
  .dispatch-grid,
  .ticker-strip,
  .board-shell {
    width: min(100% - 0.8rem, 100%);
  }

  .malware-ticker p {
    width: 100%;
    white-space: nowrap;
  }

  .site-header {
    padding: 0.45rem;
  }

  .primary-nav a {
    padding: 0.35rem 0.42rem;
    font-size: 0.78rem;
  }

  .home-title-block,
  .portal-tile,
  .page-intro,
  .game-cabinet,
  .project-row,
  .altar,
  .relic-card,
  .relic-image,
  .trading-card-vault,
  .entity-box,
  .thread-row,
    .fake-post-form,
    .moderation-note,
    .board-hero,
    .story-rack,
    .thread-reader,
    .post-terminal,
    .bbs-log,
    .qa-item,
    .stub-room {
    box-shadow: 5px 5px 0 #000;
  }

  .theme-games .page-intro,
  .theme-games .game-cabinet {
    box-shadow: 0 0 18px var(--games-shadow);
  }

  .arcade-intro {
    padding: 1rem;
  }

  .intro-copy h1 {
    font-size: 3.2rem;
  }

  .shrine-hero,
  .shrine-hero-image {
    min-height: 72vh;
  }

  .shrine-hero-image {
    height: 72vh;
  }

  .shrine-hero-copy {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    width: auto;
    padding: 0.85rem;
  }

  .shrine-hero-copy h1 {
    font-size: clamp(3.4rem, 22vw, 6rem);
  }

  .symbol-cloud span:nth-child(n+5) {
    display: none;
  }

  .relic-image {
    min-height: 22rem;
  }

  .idol-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idol-card {
    min-height: 9rem;
  }

  .loot-console h2,
  .inventory-console h2,
  .arcade-bank-console h2,
  .slot-console h2,
  .pet-console h2 {
    font-size: 1.75rem;
  }

  .wallet-bar,
  .arcade-bank-readout,
  .arcade-floor {
    grid-template-columns: 1fr;
  }

  .case-actions {
    display: grid;
  }

  .case-reel {
    min-height: 6rem;
  }

  .reel-card {
    flex-basis: 0;
    font-size: 0.72rem;
  }

  .game-cabinet {
    padding: 0 0.7rem 0.7rem;
  }

  .cabinet-marquee {
    margin-inline: -0.7rem;
  }

  .arcade-floor strong {
    font-size: 1.5rem;
  }

  .portal-tile {
    min-height: 9rem;
  }

  .secret-one {
    right: 1rem;
  }

  .secret-two {
    left: 1rem;
    bottom: 8%;
  }

  .pin-field {
    min-height: 470px;
  }

  .pin {
    width: 13rem;
  }

  .board-console::before {
    inset: -0.35rem;
  }

  .board-hero-copy,
  .reader-body,
  .post-terminal,
  .bbs-log {
    padding: 0.75rem;
  }

  .story-item {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.55rem;
  }

  .vote-cell {
    grid-column: 1;
  }

  .story-main {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .story-rank {
    font-size: 0.85rem;
  }

  .vote-button,
  .comment-button {
    font-size: 0.72rem;
  }

  .note-two {
    right: 5%;
  }

  .note-three {
    left: 12%;
  }

  .ashtray {
    padding: 0.65rem;
  }

  .ashtray::after {
    width: 5.5rem;
    height: 5.5rem;
    font-size: 2rem;
  }

  .ashtray-badges,
  .web-2000-panel,
  .ashtray-radio,
  .giphy-smoke-window {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .radio-fallback,
  .giphy-credit {
    grid-column: 1;
  }

  .gif-badge {
    margin-inline: auto;
  }

  .ashtray-copy h1 {
    font-size: clamp(2.5rem, 16vw, 5rem);
    text-shadow:
      2px 2px 0 #f4d21f,
      4px 4px 0 #14913b,
      7px 7px 0 #000;
  }

  .oracle-line {
    max-width: 11ch;
  }
}

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

  .smoke-layer {
    display: none;
  }
}

/* SECRET TERMINAL */
.terminal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}
.terminal-overlay.hidden { display: none; }
.terminal-window {
  width: 80%; max-width: 800px; height: 60vh;
  background: var(--void);
  border: 2px solid var(--focus);
  color: var(--focus);
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(88, 255, 202, 0.2);
}
.terminal-header {
  background: var(--focus);
  color: var(--void);
  padding: 5px 10px;
  font-weight: bold;
  text-transform: uppercase;
}
.terminal-output {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  line-height: 1.4;
}
.terminal-input-line {
  display: flex;
  padding: 10px;
  border-top: 1px solid rgba(88, 255, 202, 0.3);
}
.terminal-input-line .prompt {
  margin-right: 10px;
}
#terminal-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--focus);
  font-family: var(--font-mono);
  outline: none;
}

/* INVENTORY SYSTEM */
.global-inventory {
  position: fixed;
  bottom: 4.5rem;
  left: 1rem;
  background: var(--void);
  border: 2px solid var(--muted);
  color: var(--muted);
  font-family: var(--font-mono);
  padding: 0.5rem;
  z-index: 1000;
  box-shadow: 4px 4px 0 #000;
  pointer-events: none;
}
.global-inventory strong {
  display: block;
  border-bottom: 1px solid var(--muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.global-inventory ul {
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.85rem;
}

/* PET ANIMATIONS */
@keyframes petSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes petBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes petWobble {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}
.pet-anim-spin { animation: petSpin 2s linear infinite; }
.pet-anim-bounce { animation: petBounce 1s ease-in-out infinite; }
.pet-anim-wobble { animation: petWobble 0.5s ease-in-out infinite; }

/* TRINKETS SHELF */
.global-trinket-shelf {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.5);
  border: 2px solid #fff;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  z-index: 9998;
}
.trinket {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border: 2px inset #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
@keyframes snowGlobe {
  0% { box-shadow: inset 0 0 10px #fff; background-position: 0 0; }
  100% { box-shadow: inset 0 0 20px #fff; background-position: 0 50px; }
}
.trinket-snowglobe {
  background: radial-gradient(circle, transparent 20%, #fff 100%);
  animation: snowGlobe 2s infinite linear;
}
@keyframes lavaLamp {
  0%, 100% { background: linear-gradient(0deg, #ff0055, #ff0055 20%, transparent 50%); }
  50% { background: linear-gradient(0deg, #ff0055, transparent 20%, #ff0055 80%); }
}
.trinket-lavalamp {
  border-radius: 10px;
  animation: lavaLamp 3s infinite ease-in-out;
}
@keyframes plasmaBall {
  0% { background: radial-gradient(circle, #00f6ff, transparent); filter: hue-rotate(0deg); }
  100% { background: radial-gradient(circle, #00f6ff, transparent); filter: hue-rotate(360deg); }
}
.trinket-plasma {
  animation: plasmaBall 1s infinite linear;
}

/* ===== MEGA CRAZY MODE BATCH (2026-07-17) ===== */

/* SITE STATUS RACK (home page) */
.status-rack {
  max-width: 520px;
  margin: 2rem auto;
  background: var(--void-2);
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
}
.status-led-list {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}
.status-led-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px dashed var(--muted);
  padding: 0.35rem 0.6rem;
  text-transform: uppercase;
}
.status-led-list li strong {
  margin-left: auto;
  color: var(--yellow);
}
.status-led {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
  animation: ledBlink 1.6s steps(2) infinite;
}
.led-green { background: #22ff66; box-shadow: 0 0 8px #22ff66; }
.led-blue { background: #00cfff; box-shadow: 0 0 8px #00cfff; animation-delay: 0.4s; }
.led-amber { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); animation-delay: 0.8s; }
.led-red { background: var(--red); box-shadow: 0 0 8px var(--red); animation-delay: 1.2s; }
@keyframes ledBlink {
  50% { opacity: 0.25; }
}

/* FAKE POP-UP AD NETWORK */
.ego-ad {
  position: fixed;
  z-index: 9996;
  width: min(320px, 82vw);
  border: 4px outset #fff;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  color: #000;
}
.ad-variant-1 { background: #b8ff2e; }
.ad-variant-2 { background: #ff4fd8; }
.ad-variant-3 { background: #00f6ff; }
.ego-ad-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  text-transform: uppercase;
}
.ego-ad-close {
  background: var(--red);
  color: #fff;
  border: 2px outset #fff;
  font-family: var(--font-mono);
  font-weight: bold;
  cursor: pointer;
  padding: 0 0.4rem;
  transition: transform 0.12s ease-out;
}
.ego-ad-body {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  color: inherit;
  text-align: center;
  padding: 0.8rem 0.6rem 0.4rem;
  cursor: pointer;
}
.ego-ad-body strong {
  display: block;
  font-size: 1.05rem;
  text-transform: uppercase;
  animation: adTitleBlink 0.9s steps(2) infinite;
}
.ego-ad-body span {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}
.ego-ad-body em {
  display: block;
  font-style: normal;
  font-weight: bold;
  margin-top: 0.5rem;
  text-decoration: underline;
}
@keyframes adTitleBlink {
  50% { color: var(--red); }
}
.ego-ad-foot {
  margin: 0;
  padding: 0.3rem 0.4rem;
  font-size: 0.65rem;
  text-align: center;
  border-top: 1px dashed #000;
}
.ego-infected {
  filter: invert(1) hue-rotate(180deg);
}
.ego-infected-shake {
  animation: egoShake 0.4s linear infinite;
}
@keyframes egoShake {
  0% { transform: translate(2px, 1px); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(2px, -2px); }
  75% { transform: translate(-2px, -1px); }
  100% { transform: translate(0, 0); }
}
.ego-infection-static {
  position: fixed;
  inset: -4px;
  z-index: 10003;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0 2px, transparent 2px 4px);
  animation: staticFlicker 0.12s steps(2) infinite;
}
@keyframes staticFlicker {
  50% { opacity: 0.12; }
}
.ego-cure-notice {
  position: fixed;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10004;
  background: #000;
  color: #22ff66;
  border: 2px solid #22ff66;
  font-family: var(--font-mono);
  padding: 0.6rem 1rem;
  box-shadow: var(--shadow);
}

/* DUBIOUS HONORS (toasts + shelf) */
.honor-toast-stack {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  z-index: 10006;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.honor-toast {
  display: grid;
  gap: 0.15rem;
  min-width: 240px;
  max-width: 320px;
  background: #0d0d0f;
  color: var(--ink);
  border: 3px solid var(--yellow);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  padding: 0.6rem 0.9rem;
  animation: toastIn 0.3s ease-out;
}
.honor-toast.is-leaving {
  opacity: 0;
  transition: opacity 0.45s;
}
.honor-toast-head {
  color: var(--yellow);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}
.honor-toast-name {
  font-weight: bold;
  text-transform: uppercase;
}
.honor-toast-blurb {
  font-size: 0.8rem;
  color: var(--muted);
}
@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
}
.honor-card.is-locked {
  opacity: 0.55;
}
.honor-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--yellow);
}
.honor-date {
  font-size: 0.75rem;
  color: var(--muted);
}

/* CURSOR RACK + TRAILS */
.cursor-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--focus);
}
.cursor-particle {
  position: fixed;
  z-index: 9990;
  pointer-events: none;
  font-family: var(--font-mono);
  animation: cursorFade 0.8s ease-out forwards;
}
@keyframes cursorFade {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-16px); }
}
@keyframes cursorFall {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(18px); }
}
.cursor-trail-sparkle {
  color: var(--yellow);
  text-shadow: 0 0 6px var(--yellow);
}
.cursor-trail-byte {
  color: #22ff66;
  font-size: 0.8rem;
}
.cursor-trail-smoke {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(200, 200, 200, 0.5);
  filter: blur(3px);
}
.cursor-trail-skull {
  font-size: 0.9rem;
  animation-name: cursorFall;
}
.cursor-trail-dollar {
  color: #7cfc00;
  font-weight: bold;
  animation-name: cursorFall;
}

/* SITE FX: byte rain, curse, jackpot */
.byte-rain-canvas {
  position: fixed;
  inset: 0;
  z-index: 9985;
  pointer-events: none;
  opacity: 0.55;
}
.cursed-site {
  filter: invert(1) hue-rotate(180deg);
}
.jackpot-banner {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10007;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-mono);
  font-weight: bold;
  text-align: center;
  padding: 1rem 1.5rem;
  border: 4px solid #000;
  box-shadow: 0 0 30px var(--yellow);
  animation: jackpotPulse 0.5s linear infinite;
}
.jackpot-done {
  background: var(--focus);
  box-shadow: 0 0 30px var(--focus);
}
@keyframes jackpotPulse {
  50% { transform: translateX(-50%) scale(1.06); }
}
body.jackpot-strobe::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9984;
  pointer-events: none;
  background: rgba(242, 203, 61, 0.18);
  animation: strobe 0.18s steps(2) infinite;
}
@keyframes strobe {
  50% { opacity: 0; }
}

/* HIT COUNTER + SITE WEATHER */
.hit-counter {
  display: inline-block;
  background: #000;
  color: var(--yellow);
  border: 2px inset var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
}
.site-weather {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.weather-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.weather-fog {
  background: linear-gradient(180deg, rgba(183, 173, 147, 0.14), rgba(183, 173, 147, 0.05) 40%, rgba(183, 173, 147, 0.16));
}
.weather-storm {
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.06) 3px 4px);
  animation: stormFlicker 3s steps(3) infinite;
}
@keyframes stormFlicker {
  50% { opacity: 0.35; }
}
.weather-drizzle {
  background-image: repeating-linear-gradient(100deg, transparent 0 23px, rgba(88, 255, 202, 0.06) 23px 24px);
  animation: drizzleDrift 1.2s linear infinite;
}
@keyframes drizzleDrift {
  to { background-position: 0 24px; }
}
.weather-cursed {
  background: radial-gradient(circle at 50% 120%, rgba(218, 34, 34, 0.18), transparent 60%);
}
.weather-clear {
  opacity: 0;
}

/* VOID CHAT (#the-void) */
.void-chat {
  position: fixed;
  bottom: 6rem;
  right: 1rem;
  z-index: 9995;
  width: min(320px, 90vw);
  font-family: var(--font-mono);
}
.void-chat-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: #000;
  color: var(--focus);
  border: 2px solid var(--focus);
  font-family: var(--font-mono);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.void-chat-badge {
  background: var(--red);
  color: #fff;
  border-radius: 1rem;
  font-size: 0.75rem;
  padding: 0 0.5rem;
}
.void-chat-window {
  display: none;
}
.void-chat:not(.is-collapsed) .void-chat-window {
  display: flex;
  flex-direction: column;
  height: 260px;
  background: rgba(8, 8, 10, 0.96);
  border: 2px solid var(--focus);
  border-top: none;
}
.void-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink);
}
.void-chat-line {
  margin: 0.15rem 0;
  word-break: break-word;
}
.void-chat-line strong {
  color: var(--yellow);
}
.void-chat-line.is-mine strong {
  color: var(--focus);
}
.void-chat-form {
  display: flex;
  border-top: 1px solid rgba(88, 255, 202, 0.3);
}
.void-chat-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--focus);
  font-family: var(--font-mono);
  padding: 0.4rem;
}
.void-chat-form button {
  background: var(--focus);
  color: #000;
  border: none;
  font-family: var(--font-mono);
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

/* VENDING MACHINE (hidden shrine page) */
.vend-machine {
  max-width: 720px;
  margin: 2rem auto;
  background: var(--void-2);
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  padding-bottom: 1rem;
}
.vend-machine .kicker,
.vend-machine h1,
.vend-machine > p {
  padding-inline: 1rem;
}
.vend-balance-line {
  padding-inline: 1rem;
  color: var(--muted);
}
.vend-balance-line strong {
  color: var(--yellow);
}
.vend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1rem;
}
.vend-item {
  border: 2px dashed var(--muted);
  padding: 0.8rem;
}
.vend-item h3 {
  margin-top: 0;
  text-transform: uppercase;
}
.vend-item p {
  font-size: 0.85rem;
}
.vend-price {
  color: var(--yellow);
  font-weight: bold;
}
.vend-msg {
  min-height: 1.5em;
  padding-inline: 1rem;
  color: var(--yellow);
  font-weight: bold;
}
.vend-kick {
  margin: 0 1rem;
  padding: 1rem;
  border: 3px solid var(--red);
  text-align: center;
}
.vend-kick-btn {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem 2rem;
  background: var(--red);
  color: #fff;
  border: 3px outset #fff;
  cursor: pointer;
}
.vending-secret {
  opacity: 0.12;
  font-size: 0.8rem;
}
.vending-secret:hover {
  opacity: 1;
}

/* ===== EGO-VISION / TV PAGE (2026-07-20) ===== */
/* the den: wood paneling, TV glow, one cat */
.theme-tv {
  --tv-glow: #8fa7d9;
  --tv-wood-hi: #3a2415;
  --tv-wood-lo: #1c100a;
  --tv-cabinet: #6b4a2c;
  --tv-cabinet-dark: #46301b;
  --tv-phosphor: #d8ffd8;
  background:
    radial-gradient(ellipse 60rem 30rem at 50% 30rem, rgba(143, 167, 217, 0.07), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 7px, rgba(0, 0, 0, 0.18) 7px 9px, transparent 9px 56px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, var(--tv-wood-hi) 0%, #241610 55%, var(--tv-wood-lo) 100%);
}

.tv-room {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

.tv-masthead {
  max-width: 720px;
  margin-bottom: 2.5rem;
  padding: 1.2rem 1.4rem;
  border-left: 6px solid var(--tv-glow);
  background: rgba(0, 0, 0, 0.35);
}
.tv-masthead h1 {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--font-crt);
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: #e8ecf4;
  text-shadow:
    3px 0 0 rgba(255, 60, 60, 0.55),
    -3px 0 0 rgba(60, 220, 255, 0.5),
    0 0 24px rgba(143, 167, 217, 0.6);
}
.tv-masthead-reg {
  font-size: 0.35em;
  vertical-align: super;
  color: var(--muted);
}
.tv-masthead-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 52ch;
}

/* stage: glow + set + remote + cat */
.tv-stage {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 2.5rem 3rem;
  padding: 2rem 0 1rem;
}
.tv-glow {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 130%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--tv-glow), transparent 72%);
  opacity: 0.28;
  filter: blur(36px);
  pointer-events: none;
  transition: background 1.2s ease, opacity 1.2s ease;
  animation: tv-glow-pulse 5s ease-in-out infinite alternate;
}
@keyframes tv-glow-pulse {
  from { opacity: 0.2; }
  to { opacity: 0.36; }
}
.tv-stage:has(.tv-set.is-off) .tv-glow {
  opacity: 0.03;
  animation: none;
}

/* the set itself */
.tv-set {
  position: relative;
  z-index: 1;
  flex: 0 1 640px;
  min-width: min(640px, 100%);
}
.tv-top-vent {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 auto -3px;
  width: 70%;
}
.tv-top-vent span {
  width: 34px;
  height: 7px;
  border-radius: 4px 4px 0 0;
  background: #17100a;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.8);
}
.tv-body {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 14px;
  padding: 18px;
  border: 4px solid #17100a;
  border-radius: 22px 22px 10px 10px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, var(--tv-cabinet) 0%, var(--tv-cabinet-dark) 78%);
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.65),
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    inset 0 -6px 12px rgba(0, 0, 0, 0.4);
}
.tv-screen-shell {
  padding: 14px;
  border-radius: 16px;
  background: #100b07;
  box-shadow: inset 0 0 0 3px #050302, inset 0 4px 10px rgba(0, 0, 0, 0.9);
}
.tv-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 26px / 22px;
  background: #020204;
  box-shadow:
    inset 0 0 90px rgba(0, 0, 0, 0.85),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
}
.tv-static-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tv-set.show-static .tv-static-canvas {
  opacity: 1;
}
.tv-channel-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tv-set.is-off .tv-channel-layer {
  opacity: 0;
  transform: scaleY(0.004);
  transition: opacity 0.12s ease 0.18s, transform 0.3s cubic-bezier(0.6, 0, 0.9, 0.4);
}
.tv-set.is-off .tv-screen::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  background: #fff;
  box-shadow: 0 0 18px 4px rgba(255, 255, 255, 0.9);
  animation: tv-crt-off-line 0.7s ease-out forwards;
}
@keyframes tv-crt-off-line {
  0% { opacity: 1; left: 6%; right: 6%; }
  55% { opacity: 1; left: 46%; right: 46%; }
  100% { opacity: 0; left: 50%; right: 50%; }
}
.tv-set.tv-live:not(.is-off) .tv-channel-layer {
  animation: tv-crt-on 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes tv-crt-on {
  0% { transform: scaleY(0.004) scaleX(0.6); filter: brightness(4); }
  45% { transform: scaleY(1) scaleX(1); filter: brightness(2.2); }
  100% { transform: none; filter: brightness(1); }
}
.tv-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.26) 0 1px, transparent 1px 3px);
  animation: tv-scan-flicker 0.14s steps(2) infinite;
}
@keyframes tv-scan-flicker {
  0% { opacity: 0.85; }
  100% { opacity: 1; }
}
.tv-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.62) 100%);
}
.tv-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 26% 14% at 22% 12%, rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.09) 0%, transparent 26%);
}
.tv-set.is-off .tv-scanlines,
.tv-set.is-off .tv-glass {
  opacity: 0.25;
}

/* on-screen display */
.tv-osd {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--font-crt);
  color: var(--tv-phosphor);
  text-shadow: 0 0 8px rgba(120, 255, 150, 0.8);
}
.tv-osd-ch {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.7rem;
}
.tv-osd-msg {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 90px;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tv-osd-msg.is-shown {
  opacity: 1;
}
.tv-osd-vol {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}
.tv-set.is-off .tv-osd {
  opacity: 0;
}

.tv-nosignal {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--font-crt);
  color: #9aa2b5;
}
.tv-nosignal strong {
  font-size: 2rem;
  letter-spacing: 0.2em;
}
.tv-live .tv-nosignal {
  display: none;
}

/* right-hand control panel */
.tv-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tv-speaker {
  flex: 1;
  min-height: 96px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, #1d130b 0 5px, #3a2817 5px 9px);
  box-shadow: inset 0 0 0 3px #17100a, inset 0 4px 8px rgba(0, 0, 0, 0.7);
}
.tv-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tv-ctl-btn,
.tv-ctl-knob {
  font-family: var(--font-crt);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #e8dcc2;
  padding: 0.5rem 0.2rem;
  border: 2px solid #17100a;
  border-radius: 8px;
  background: linear-gradient(180deg, #4c4a44, #26241f);
  box-shadow: 0 3px 0 #17100a;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.tv-ctl-btn:active,
.tv-ctl-knob:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #17100a;
}
.tv-power {
  background: linear-gradient(180deg, #a33327, #5d1712);
  color: #ffd9d2;
}
.tv-ctl-knob {
  position: relative;
  border-radius: 50%;
  padding: 0.85rem 0.2rem;
}
.tv-ctl-knob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 3px;
  height: 9px;
  margin-left: -1.5px;
  background: #e8dcc2;
  border-radius: 2px;
}
.tv-coin-door {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.6rem;
  border: 2px solid #17100a;
  border-radius: 8px;
  background: linear-gradient(180deg, #57534a, #33302a);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}
.tv-coin-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #b7ad93;
}
.tv-coin-value {
  font-family: var(--font-crt);
  font-size: 1.35rem;
  color: #ffb000;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.7);
}
.tv-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 0 10px;
}
.tv-brand-name {
  font-family: var(--font-crt);
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  color: #c9b48c;
}
.tv-brand-name em {
  font-style: normal;
  letter-spacing: 0.12em;
  color: #8f7d5c;
}
.tv-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35e07a;
  box-shadow: 0 0 8px 2px rgba(53, 224, 122, 0.8);
  animation: tv-led-blink 3.4s steps(1) infinite;
}
.tv-set.is-off .tv-led {
  background: #a3322a;
  box-shadow: 0 0 6px 1px rgba(163, 50, 42, 0.7);
  animation: none;
}
@keyframes tv-led-blink {
  0%, 92% { opacity: 1; }
  93%, 96% { opacity: 0.35; }
  97%, 100% { opacity: 1; }
}
.tv-legs {
  display: flex;
  justify-content: space-between;
  padding: 0 12%;
}
.tv-legs span {
  width: 16px;
  height: 44px;
  background: linear-gradient(180deg, var(--tv-cabinet-dark), #241610);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}
.tv-legs span:first-child {
  transform: rotate(7deg);
}
.tv-legs span:last-child {
  transform: rotate(-7deg);
}

/* the cat (watches the TV, judges you) */
.tv-cat {
  position: absolute;
  right: -84px;
  bottom: 44px;
  width: 96px;
  height: 66px;
  filter: drop-shadow(0 0 6px rgba(143, 167, 217, 0.4));
}
.tv-cat-body {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78px;
  height: 52px;
  background: #0a0a0d;
  border-radius: 46% 52% 40% 44%;
  box-shadow: inset -4px -3px 0 rgba(255, 255, 255, 0.04);
}
.tv-cat-ear {
  position: absolute;
  top: -11px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid #0a0a0d;
}
.tv-cat-ear-l { left: 8px; transform: rotate(-8deg); }
.tv-cat-ear-r { right: 12px; transform: rotate(8deg); }
.tv-cat-eye {
  position: absolute;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tv-phosphor);
  box-shadow: 0 0 6px rgba(216, 255, 216, 0.9);
  animation: tv-cat-blink 5.2s ease-in-out infinite;
}
.tv-cat-eye-l { left: 12px; }
.tv-cat-eye-r { left: 30px; }
@keyframes tv-cat-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%, 96% { transform: scaleY(0.08); }
}
.tv-cat-tail {
  position: absolute;
  right: 66px;
  bottom: 4px;
  width: 9px;
  height: 44px;
  background: #0a0a0d;
  border-radius: 6px;
  transform-origin: bottom center;
  animation: tv-cat-tail 3.6s ease-in-out infinite alternate;
}
@keyframes tv-cat-tail {
  from { transform: rotate(-18deg); }
  to { transform: rotate(14deg); }
}
.tv-stage:has(.tv-set.is-off) .tv-cat-eye {
  background: #555a66;
  box-shadow: none;
  animation: none;
}

/* the remote, lying on the carpet */
.remote {
  position: relative;
  z-index: 1;
  width: 210px;
  margin: 2rem auto 0;
  padding: 14px 12px 10px;
  border: 3px solid #000;
  border-radius: 16px 16px 20px 20px;
  background: linear-gradient(180deg, #33333b, #1c1c22 70%, #141419);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: rotate(3.5deg);
}
.remote-top,
.remote-mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.remote-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.remote-btn {
  font-family: var(--font-crt);
  font-size: 1rem;
  color: #d6d6de;
  padding: 0.42rem 0.2rem;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #4a4a55, #2c2c34);
  box-shadow: 0 3px 0 #0c0c10;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.05s ease, background 0.2s ease;
}
.remote-btn:hover {
  background: linear-gradient(180deg, #585866, #34343e);
}
.remote-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0c0c10;
}
.remote-power {
  background: linear-gradient(180deg, #a33327, #5d1712);
  color: #ffd9d2;
}
.remote-key {
  font-size: 1.15rem;
}
.remote-note {
  margin: 10px 0 0;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-align: center;
  color: #7d7d8a;
}
.tv-room-hint {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
.tv-room-hint strong {
  color: var(--ink);
}

/* channel scenes (rendered into .tv-channel-layer by site.js) */
.tv-ch {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-family: var(--font-crt);
}
.tv-ch-title {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 1px 1px 0 #000;
}

/* CH 00 — the snow */
.ch-static-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26%;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 10px #000;
  opacity: 0;
  animation: ch-static-whisper 11s ease-in-out infinite;
}
@keyframes ch-static-whisper {
  0%, 55%, 100% { opacity: 0; }
  62%, 78% { opacity: 0.85; }
}
.ch-static-tithe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: #b8ffcf;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

/* CH 01 — fish cam */
.ch-fish-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ch-fish-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}
.ch-fish-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 6px rgba(255, 59, 48, 0.9);
  animation: tv-led-blink 1.6s steps(1) infinite;
}
.ch-fish-lower {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 12px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
}
.ch-fish-feed {
  position: absolute;
  right: 12px;
  bottom: 34px;
  font-family: var(--font-crt);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  color: #04222b;
  background: #59e6ff;
  border: 3px solid #04222b;
  border-radius: 8px;
  box-shadow: 0 3px 0 #04222b;
  cursor: pointer;
}
.ch-fish-feed:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #04222b;
}
.ch-fish-feed:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* CH 02 — emergency broadcast */
.ch-ebs {
  background: #101014;
  display: flex;
  flex-direction: column;
}
.ch-ebs-bar {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  text-align: center;
  color: #fff;
  background: #c1121f;
}
.ch-ebs-bar-bottom {
  background: #14213d;
  font-size: 1rem;
}
.ch-ebs-body {
  flex: 1;
  display: grid;
  place-content: center;
  padding: 1.2rem;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: #ffd60a;
}
.ch-ebs.is-flashing .ch-ebs-body {
  animation: ch-ebs-flash 0.5s steps(2) 3;
}
@keyframes ch-ebs-flash {
  0% { background: transparent; color: #ffd60a; }
  100% { background: #ffd60a; color: #101014; }
}

/* CH 03 — 3am infomercial */
.ch-info {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 0, 128, 0.16) 0 26px, transparent 26px 52px),
    linear-gradient(180deg, #2b0a3d, #4a0d18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 1rem;
}
.ch-info-call {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: #fff200;
  text-shadow: 2px 2px 0 #ff0080;
  animation: ch-info-blink 0.8s steps(2) infinite;
}
@keyframes ch-info-blink {
  0% { opacity: 1; }
  100% { opacity: 0.25; }
}
.ch-info-product {
  width: 74px;
  height: 74px;
  margin: 4px 0;
  border: 4px solid #fff200;
  border-radius: 12px;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.85) 0 8%, transparent 20%),
    conic-gradient(#00e5ff, #ff0080, #fff200, #00e5ff);
  box-shadow: 0 0 26px rgba(255, 0, 128, 0.75);
  animation: ch-info-spin 3.2s linear infinite;
}
@keyframes ch-info-spin {
  to { transform: rotate(360deg); }
}
.ch-info-name {
  font-size: 1.7rem;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
}
.ch-info-pitch {
  max-width: 34ch;
  font-size: 1rem;
  color: #ffd9ec;
}
.ch-info-price {
  font-size: 1.9rem;
  color: #fff200;
  text-shadow: 2px 2px 0 #000;
}
.ch-info-buy {
  font-family: var(--font-crt);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  padding: 0.45rem 1.4rem;
  color: #4a0d18;
  background: #fff200;
  border: 3px solid #000;
  border-radius: 10px;
  box-shadow: 0 4px 0 #000;
  cursor: pointer;
}
.ch-info-buy:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #000;
}
.ch-info-buy:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ch-info-timer {
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: #ff5c8a;
}
.ch-info-ops {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}

/* CH 04 — hypno wheel */
.ch-hypno {
  background: #000;
  display: grid;
  place-items: center;
}
.ch-hypno-wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(#0a0a0a 0deg 14deg, #e8e4d8 14deg 28deg);
  animation: ch-hypno-spin 9s linear infinite;
}
@keyframes ch-hypno-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.ch-hypno-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 12%, rgba(0, 0, 0, 0.82) 78%);
}
.ch-hypno-text {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  letter-spacing: 0.3em;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 14px #000, 0 0 4px #000;
  animation: ch-hypno-pulse 3.4s ease-in-out infinite;
}
@keyframes ch-hypno-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.03); }
}
.ch-hypno-blink {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14%;
  z-index: 1;
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: #ff5c5c;
  text-shadow: 1px 1px 0 #000;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ch-hypno-blink.is-shown {
  opacity: 1;
}

/* CH 05 — news 4 the void */
.ch-news {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0b1f3a 0%, #123156 60%, #0b1f3a 100%);
}
.ch-news-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #c1121f;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
}
.ch-news-banner strong {
  padding: 1px 8px;
  background: #fff;
  color: #c1121f;
}
.ch-news-desk {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 16px;
}
.ch-news-anchor {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #1c2c44 0 26%, transparent 27%),
    radial-gradient(ellipse 60% 42% at 50% 88%, #1c2c44 0 60%, transparent 61%),
    linear-gradient(180deg, #31517c, #1b2c47);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}
.ch-news-headline {
  font-size: 1.45rem;
  line-height: 1.25;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  min-height: 3.4em;
}
.ch-news-weather {
  padding: 4px 16px 8px;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: #9fd3ff;
}
.ch-news-ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  background: #06101f;
  border-top: 3px solid #ffd60a;
  color: #ffd60a;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}
.ch-news-ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: ch-news-scroll 26s linear infinite;
}
@keyframes ch-news-scroll {
  to { transform: translateX(-100%); }
}

/* CH 06 — test pattern */
.ch-bars {
  background: linear-gradient(90deg,
    #c8c8c8 0 14.28%, #c8c800 0 28.57%, #00c8c8 0 42.85%,
    #00c800 0 57.14%, #c800c8 0 71.42%, #c80000 0 85.71%, #0028c8 0 100%);
}
.ch-bars-standby {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  animation: ch-bars-cycle 12s steps(1) infinite;
}
@keyframes ch-bars-cycle {
  0%, 44% { opacity: 0; }
  45%, 74% { opacity: 1; }
  75%, 100% { opacity: 0; }
}
.ch-bars-standby strong {
  display: block;
  font-size: 2rem;
  letter-spacing: 0.3em;
}
.ch-bars-rings {
  width: 110px;
  height: 110px;
  margin: 10px auto;
  border-radius: 50%;
  border: 4px solid #fff;
  background:
    radial-gradient(circle, #fff 0 8%, transparent 9% 22%, #fff 23% 26%, transparent 27% 42%, #fff 43% 46%, transparent 47% 64%, #fff 65% 67%, transparent 68%);
  box-shadow: 0 0 0 4px #000;
}
.ch-bars-tone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}

/* CH 07 — the hallway (portal-ring tunnel) */
.ch-hall {
  background:
    linear-gradient(180deg, #14120e 0 46%, #241d15 46% 100%);
}
.ch-hall-carpet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54%;
  background:
    repeating-linear-gradient(45deg, rgba(120, 60, 40, 0.35) 0 10px, transparent 10px 22px),
    repeating-linear-gradient(-45deg, rgba(60, 40, 90, 0.3) 0 12px, transparent 12px 26px),
    #2a2018;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
}
.ch-hall-light {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 34%;
  height: 12px;
  transform: translateX(-50%);
  background: #fff8dc;
  box-shadow: 0 0 24px 8px rgba(255, 248, 220, 0.55);
  animation: ch-hall-flicker 4.2s steps(1) infinite;
}
@keyframes ch-hall-flicker {
  0%, 68% { opacity: 1; }
  69%, 72% { opacity: 0.2; }
  73%, 76% { opacity: 0.9; }
  77%, 79% { opacity: 0.3; }
  80%, 100% { opacity: 1; }
}
.ch-hall-ring {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 20px;
  height: 14px;
  margin: -7px 0 0 -10px;
  border: 5px solid #b8a888;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8), inset 0 0 8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: ch-hall-travel 7s linear infinite;
}
.ch-hall-ring:nth-child(4) { animation-delay: 0s; }
.ch-hall-ring:nth-child(5) { animation-delay: 1.16s; }
.ch-hall-ring:nth-child(6) { animation-delay: 2.33s; }
.ch-hall-ring:nth-child(7) { animation-delay: 3.5s; }
.ch-hall-ring:nth-child(8) { animation-delay: 4.66s; }
.ch-hall-ring:nth-child(9) { animation-delay: 5.83s; }
@keyframes ch-hall-travel {
  0% { transform: scale(0.1); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: scale(26); opacity: 0; }
}
.ch-hall-end {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 10px;
  height: 8px;
  margin: -4px 0 0 -5px;
  background: #050403;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.9);
}
.ch-hall-cam {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
}

/* CH 08 — the signal (not listed) */
.ch-signal {
  background: #000;
  display: grid;
  place-items: center;
}
.ch-signal-face {
  position: relative;
  width: 150px;
  height: 170px;
}
.ch-signal-eye {
  position: absolute;
  top: 34px;
  width: 34px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.75);
  transition: transform 0.12s linear;
}
.ch-signal-eye-l { left: 16px; }
.ch-signal-eye-r { right: 16px; }
.ch-signal-mouth {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 64px;
  height: 34px;
  margin-left: -32px;
  background: #000;
  border: 3px solid #fff;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
  animation: ch-signal-speak 1.1s steps(2) infinite;
}
@keyframes ch-signal-speak {
  0% { height: 12px; }
  100% { height: 34px; }
}
.ch-signal-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: 0.26em;
  color: #fff;
  text-shadow: 0 0 12px #fff;
}
.ch-signal-count {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: #ff5c5c;
}

/* the TV guide: a xeroxed zine page in a dark den */
.tv-guide {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 2rem clamp(1rem, 4vw, 3rem) 2.4rem;
  color: #1a1610;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 0, 0, 0.08), transparent 26%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.03) 0 2px, transparent 2px 4px),
    #efe6c8;
  border: 4px solid #000;
  box-shadow: var(--shadow);
}
.tv-guide-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  border-bottom: 3px solid #1a1610;
  padding-bottom: 0.8rem;
  margin-bottom: 1.4rem;
}
.tv-guide-head h2 {
  margin: 0.2rem 0 0;
  font-family: var(--font-cutout);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: 0.02em;
}
.tv-guide-head .kicker {
  color: #6b5b3e;
}
.tv-guide-count {
  margin: 0;
  font-family: var(--font-crt);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}
.tv-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.tv-guide-card {
  position: relative;
  padding: 0.9rem 1rem 1.1rem;
  border: 2px solid #1a1610;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tv-guide-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #1a1610;
}
.tv-guide-num {
  font-family: var(--font-crt);
  font-size: 2.4rem;
  line-height: 1;
  color: #8a1c1c;
}
.tv-guide-card h3 {
  margin: 0.3rem 0 0.4rem;
  font-family: var(--font-cutout);
  font-size: 1.15rem;
}
.tv-guide-card p {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #42392a;
}
.tv-guide-flag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: var(--font-crt);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  padding: 0 6px;
  color: #6b5b3e;
  border: 1px dashed #6b5b3e;
  transform: rotate(-3deg);
}
.tv-guide-flag.is-watched {
  color: #136b3f;
  border: 2px solid #136b3f;
  transform: rotate(-6deg);
}
.tv-guide-footnote {
  margin: 1.2rem 0 0;
  font-size: 0.72rem;
  font-style: italic;
  color: #6b5b3e;
}

/* home portal tile for the TV section */
.tile-tv {
  background: #10131c;
  color: var(--tv-phosphor);
  border-color: #000;
}
.tile-tv .tile-label {
  color: #9aa3b8;
}
.tile-tv strong {
  color: #fff;
  text-shadow: 2px 0 rgba(255, 60, 60, 0.5), -2px 0 rgba(60, 220, 255, 0.45);
}

/* broadcast notes */
.tv-notes {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 1rem 3rem;
}
.tv-notes h2 {
  font-family: var(--font-crt);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.06em;
  margin: 0.3rem 0 1.2rem;
}
.tv-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.tv-note {
  padding: 1rem 1.1rem;
  border: 3px solid var(--muted);
  background: rgba(0, 0, 0, 0.35);
}
.tv-note h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-crt);
  font-size: 1.3rem;
  letter-spacing: 0.14em;
}
.tv-note p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.tv-note-warn {
  border-color: var(--red);
  transform: rotate(-0.6deg);
}
.tv-note-warn h3 {
  color: var(--red);
}
.tv-notes-return {
  margin-top: 1.6rem;
  font-size: 0.85rem;
}

/* small screens: pull the remote under the set, retire the cat */
@media (max-width: 860px) {
  .tv-cat {
    display: none;
  }
  .remote {
    transform: none;
  }
  .tv-body {
    grid-template-columns: 1fr;
  }
  .tv-panel {
    flex-direction: row;
    align-items: stretch;
  }
  .tv-speaker {
    min-height: 0;
    min-width: 60px;
  }
  .tv-controls {
    flex: 1;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-glow,
  .tv-scanlines,
  .tv-cat-tail,
  .tv-cat-eye,
  .tv-led,
  .ch-hypno-wheel,
  .ch-info-product,
  .ch-info-call,
  .ch-hypno-text,
  .ch-news-ticker span,
  .ch-hall-ring,
  .ch-hall-light,
  .ch-signal-mouth,
  .ch-fish-dot {
    animation: none !important;
  }
  .ch-hall-ring {
    opacity: 0.5;
    transform: scale(8);
  }
  .ch-news-ticker span {
    padding-left: 0;
  }
  .tv-set.tv-live:not(.is-off) .tv-channel-layer {
    animation: none;
  }
}

/* ============================================
   BYTE STONKS EXCHANGE (Loot_OS panel)
   ============================================ */

.stonks-console .stonks-tape {
  overflow: hidden;
  white-space: nowrap;
  margin: 0.75rem 0;
  padding: 0.35rem 0.6rem;
  border: 1px dashed var(--games-lime);
  color: var(--games-lime);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-overflow: ellipsis;
}

.stonks-table {
  display: grid;
  gap: 0.4rem;
}

.stonks-row {
  display: grid;
  grid-template-columns: 3.8rem 3.1rem 2.7rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-width: 0;
}

.stonks-ticker {
  font-weight: bold;
  color: var(--games-gold);
  cursor: help;
}

.stonks-price {
  color: var(--games-ink);
}

.stonks-change {
  font-style: normal;
  color: var(--muted);
}

.stonks-change.is-up {
  color: var(--games-lime);
}

.stonks-change.is-down {
  color: var(--games-hot);
}

.stonks-holding {
  color: var(--muted);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stonks-trade {
  padding: 0.2rem 0.4rem;
  border: 2px outset var(--games-window);
  background: var(--games-deep);
  color: var(--games-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.stonks-trade:hover:not(:disabled) {
  background: var(--games-accent);
  color: #000;
}

.stonks-trade:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stonks-news {
  margin-top: 0.75rem;
  border-top: 1px dashed var(--games-purple);
  padding-top: 0.5rem;
}

.stonks-news p {
  margin: 0.25rem 0;
  font-size: 0.82rem;
  color: var(--games-window);
  font-family: var(--font-mono);
}

@media (max-width: 640px) {
  .stonks-row {
    grid-template-columns: 3.4rem 2.8rem 2.4rem minmax(0, 1fr) auto auto;
    font-size: 0.72rem;
    gap: 0.25rem;
  }
  .stonks-holding {
    display: none;
  }
}

/* ============================================
   THE BUTTON (docked, forbidden)
   ============================================ */

.the-button-dock {
  position: fixed;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  pointer-events: none;
}

.the-button-msg {
  max-width: 70vw;
  padding: 0.15rem 0.5rem;
  background: #000;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  min-height: 1.2em;
}

.the-button-msg:empty {
  visibility: hidden;
}

.the-forbidden-button {
  pointer-events: auto;
  padding: 0.55rem 1.3rem;
  border: 3px outset #ff8080;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(218, 34, 34, 0.7);
}

.the-forbidden-button:hover {
  font-family: var(--font-mono);
  background: #ff2020;
}

.the-forbidden-button:active {
  border-style: inset;
  transform: translateY(1px);
}

/* on narrow screens the bottom row is crowded (LOOT_OS, chat, pet),
   so the forbidden button floats one level higher */
@media (max-width: 700px) {
  .the-button-dock {
    bottom: 4.4rem;
  }
}

body.the-button-shake {
  animation: button-shake 0.4s linear;
}

@keyframes button-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5px, 2px); }
  40% { transform: translate(5px, -2px); }
  60% { transform: translate(-4px, -1px); }
  80% { transform: translate(3px, 1px); }
}

/* ============================================
   THE GHOST PIANO
   ============================================ */

.ghost-piano-overlay {
  position: fixed;
  inset: 0;
  z-index: 10500;
  overflow-y: auto;
  background: rgba(2, 0, 10, 0.92);
  padding: 2rem 1rem;
}

.ghost-piano-overlay.hidden {
  display: none;
}

.ghost-piano-window {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 3px solid var(--games-purple);
  background: linear-gradient(180deg, #12002a, #05000f);
  box-shadow: 0 0 40px rgba(93, 50, 255, 0.4);
}

.ghost-piano-keys {
  display: flex;
  gap: 4px;
  margin: 1.25rem 0;
  min-height: 160px;
}

.ghost-piano-key {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.2rem;
  min-height: 150px;
  border: 2px solid #2a1a4a;
  border-bottom-width: 6px;
  background: linear-gradient(180deg, #efe8ff, #b9a8e8);
  color: #1a0a33;
  cursor: pointer;
  transition: background 0.08s;
}

.ghost-piano-key.is-struck {
  background: linear-gradient(180deg, var(--games-accent), #7fe9f2);
  border-bottom-width: 3px;
  transform: translateY(3px);
}

.piano-key-note {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 1rem;
}

.piano-key-char {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.05rem 0.35rem;
  border: 1px solid #2a1a4a;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
}

.ghost-piano-status {
  min-height: 1.4em;
  font-family: var(--font-mono);
  color: var(--games-accent);
  font-style: italic;
}

.ghost-piano-close {
  margin-top: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  font-family: var(--font-mono);
  cursor: pointer;
}

@media (max-width: 640px) {
  .ghost-piano-key {
    min-height: 110px;
  }
  .piano-key-char {
    display: none;
  }
}

/* ============================================
   THE EVIDENCE BAG
   ============================================ */

.evidence-drop {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-size: 0.95rem;
  line-height: 1;
  color: rgba(88, 255, 202, 0.5);
  text-decoration: none;
  border: 1px dotted rgba(88, 255, 202, 0.35);
  border-radius: 3px;
  opacity: 0.75;
}

.evidence-drop:hover {
  color: var(--focus);
  background-color: rgba(88, 255, 202, 0.12);
  font-family: inherit;
}

.evidence-drop.is-bagged {
  color: var(--muted);
  border-color: rgba(183, 173, 147, 0.4);
  opacity: 0.5;
  cursor: default;
}

.evidence-glyph-inline {
  color: var(--focus);
}

.evidence-card .evidence-swatch {
  color: var(--focus);
}

.evidence-toast {
  position: fixed;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  max-width: 80vw;
  padding: 0.6rem 1rem;
  background: #000;
  border: 2px solid var(--focus);
  color: var(--focus);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  box-shadow: 0 0 18px rgba(88, 255, 202, 0.4);
  transition: opacity 0.4s;
}

.evidence-toast.is-leaving {
  opacity: 0;
}

/* ============================================
   KERNEL RITUAL (fake crash)
   ============================================ */

.kernel-ritual {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  background: #010109;
  padding: 1rem;
}

.kernel-ritual.hidden {
  display: none;
}

.kernel-ritual-window {
  width: min(720px, 94vw);
  padding: 1.5rem;
  border: 2px solid var(--red);
  background: #050510;
  box-shadow: 0 0 60px rgba(218, 34, 34, 0.35);
}

.kernel-ritual-log {
  margin: 0;
  min-height: 10rem;
  max-height: 50vh;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--games-lime);
}

.kernel-ritual-log div {
  margin: 0.15rem 0;
}

.kernel-ritual-ritual {
  margin: 1rem 0 0;
  padding: 0.75rem;
  border: 2px dashed var(--yellow);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-weight: bold;
  text-align: center;
  animation: kernel-blink 0.9s step-start infinite;
}

@keyframes kernel-blink {
  50% { opacity: 0.55; }
}

body.kernel-shake .kernel-ritual-window {
  animation: kernel-jitter 0.35s linear infinite;
}

@keyframes kernel-jitter {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -2px); }
}

@media (prefers-reduced-motion: reduce) {
  body.the-button-shake {
    animation: none;
  }
  .kernel-ritual-ritual {
    animation: none;
  }
  body.kernel-shake .kernel-ritual-window {
    animation: none;
  }
  .ghost-piano-key.is-struck {
    transform: none;
  }
}
