:root {
  --bg: #120f0b;
  --cabinet: #1c1711;
  --cabinet-2: #251e16;
  --cabinet-inset: #0d0a07;
  --chrome: #d8ccb4;
  --chrome-dim: #8a7f6a;
  --led-amber: #ffb01f;
  --led-amber-soft: #d98a16;
  --reel-red: #e23b2e;
  --reel-green: #4fd36a;
  --ink: #f6ecd6;
  --muted: #b3a387;
  --soft: #7d705b;
  --line: rgba(216, 204, 180, 0.16);
  --line-strong: rgba(216, 204, 180, 0.30);
  --font-display: "Chakra Petch", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(125% 78% at 50% -12%, rgba(255, 176, 31, 0.11), transparent 58%),
    linear-gradient(180deg, #17120c, var(--bg) 46%);
  background-attachment: fixed;
  font-family: var(--font-body);
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: var(--led-amber);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 16px rgba(255, 176, 31, 0.7);
}

.site-header {
  position: relative;
  z-index: 100;
  background:
    linear-gradient(180deg, var(--cabinet-2), var(--cabinet));
  border-bottom: 1px solid var(--line-strong);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 2px 0 rgba(216, 204, 180, 0.06);
}

.header-shell,
.floor-console,
.reel,
.content-section,
.footer-grid,
.footer-bottom,
.archive-hero,
.article-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.brand-logo {
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-copy span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.led-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--reel-green);
  box-shadow: 0 0 8px rgba(79, 211, 106, 0.9);
}

.led-dot[data-blink] {
  animation: led-blink 1.7s steps(1, end) infinite;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a,
.search-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-nav a:hover,
.search-button:hover {
  color: var(--led-amber);
}

.search-button {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: none;
}

.search-button::before,
.search-button::after {
  content: "";
  position: absolute;
  display: block;
}

.search-button::before {
  width: 13px;
  height: 13px;
  top: 9px;
  left: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-button::after {
  width: 8px;
  height: 2px;
  top: 23px;
  left: 21px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--cabinet-2);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.site-main {
  min-height: 68vh;
}

.section-kicker,
.eyebrow,
.review-kicker,
.plate-kicker {
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.led-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  color: var(--led-amber);
  background: var(--cabinet-inset);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
}

.led-readout {
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-shadow: 0 0 10px rgba(255, 176, 31, 0.55);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 22px;
  padding: 12px 20px;
  color: var(--cabinet-inset);
  background: linear-gradient(180deg, var(--led-amber), var(--led-amber-soft));
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 0 rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.button-primary:hover {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 0 rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ---- Home: floor console hero ---- */
.floor-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 20px;
  padding: 52px 0 30px;
}

.console-deck,
.main-screen,
.reel-window,
.symbol-card,
.spec-plate,
.metric-panel,
.post-card,
.review-card,
.side-module {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cabinet-2), var(--cabinet));
  box-shadow: inset 0 1px 0 rgba(216, 204, 180, 0.06), 0 12px 30px rgba(0, 0, 0, 0.42);
}

.console-deck {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding: 34px;
}

.console-deck h1 {
  margin: 16px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.console-deck > p {
  max-width: 600px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.06rem;
}

.button-bank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.button-bank a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  color: var(--ink);
  background: linear-gradient(180deg, #2c241a, #1f1913);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(216, 204, 180, 0.08), 0 3px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.08s ease, color 0.15s ease;
}

.button-bank a:hover {
  transform: translateY(1px);
  color: var(--led-amber);
}

.button-bank span {
  display: grid;
  place-items: center;
  width: 42px;
  padding: 4px 0;
  color: var(--led-amber);
  background: var(--cabinet-inset);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
}

.main-screen {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: linear-gradient(180deg, #0f0c08, var(--cabinet-inset));
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen-bar .led-readout {
  margin-left: auto;
}

.screen-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px;
}

.screen-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 176, 31, 0.04) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.screen-feature h2 {
  margin: 13px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.8vw, 2.55rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.screen-feature h2 a {
  transition: color 0.15s ease;
}

.screen-feature h2 a:hover {
  color: var(--led-amber);
}

.screen-feature p {
  margin: 0;
  color: var(--muted);
}

.random-slot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 416px) 190px;
  gap: 14px;
  align-items: center;
  margin: 22px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 176, 31, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 176, 31, 0.05), transparent 40%),
    var(--cabinet-inset);
  box-shadow:
    inset 0 1px 0 rgba(255, 213, 129, 0.1),
    0 0 0 1px rgba(255, 176, 31, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.random-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 31, 0.18), transparent);
  opacity: 0.35;
}

.slot-sparkles {
  position: absolute;
  inset: -7px 7px 7px -7px;
  z-index: 2;
  pointer-events: none;
}

.slot-sparkles span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(180deg, #fff3b0, var(--led-amber));
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  filter: drop-shadow(0 0 5px rgba(255, 214, 120, 0.8));
  opacity: 0.42;
  animation: slot-star-twinkle 2.4s ease-in-out infinite;
}

.slot-sparkles span:nth-child(1) {
  top: 8px;
  left: 16px;
}

.slot-sparkles span:nth-child(2) {
  top: -3px;
  left: 46%;
  width: 8px;
  height: 8px;
  animation-delay: 0.35s;
}

.slot-sparkles span:nth-child(3) {
  top: 13px;
  right: 96px;
  animation-delay: 0.7s;
}

.slot-sparkles span:nth-child(4) {
  right: 22px;
  bottom: 11px;
  width: 8px;
  height: 8px;
  animation-delay: 1.05s;
}

.slot-sparkles span:nth-child(5) {
  bottom: -2px;
  left: 58%;
  width: 6px;
  height: 6px;
  animation-delay: 1.4s;
}

.slot-sparkles span:nth-child(6) {
  bottom: 18px;
  left: 22px;
  width: 7px;
  height: 7px;
  animation-delay: 1.75s;
}

.random-slot.is-spinning .slot-sparkles span {
  animation-duration: 0.7s;
  filter: drop-shadow(0 0 8px rgba(255, 214, 120, 0.95));
}

.slot-result {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 416px;
  height: 96px;
  min-width: 0;
  padding: 14px;
  background: #080604;
  border: 1px solid rgba(255, 176, 31, 0.34);
  border-radius: 3px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 8px rgba(0, 0, 0, 0.78),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 18px rgba(255, 176, 31, 0.1);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.slot-result:not([href]) {
  cursor: default;
}

.slot-result[href]:hover {
  border-color: rgba(255, 176, 31, 0.58);
  box-shadow:
    inset 0 1px 8px rgba(0, 0, 0, 0.78),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 22px rgba(255, 176, 31, 0.22);
}

.slot-result::before,
.slot-result::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slot-result::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    repeating-linear-gradient(180deg, rgba(255, 176, 31, 0.05) 0 1px, transparent 1px 5px);
}

.slot-result::after {
  width: 45%;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 226, 160, 0.22), transparent);
  opacity: 0.45;
}

.random-slot.is-spinning .slot-result {
  animation: slot-window-pulse 0.14s steps(2, end) infinite;
}

.random-slot.is-spinning .slot-result::after {
  animation: slot-sheen 0.42s linear infinite;
}

.slot-result h2 {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.28;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.slot-result[href]:hover h2 {
  color: var(--led-amber);
}

.slot-result p {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  overflow: hidden;
}

.slot-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 190px;
}

.slot-actions .button-primary {
  box-sizing: border-box;
  margin-top: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.slot-button {
  justify-content: center;
  flex: 0 0 96px;
  width: 96px;
}

.slot-actions .button-primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

@keyframes reel-flicker {
  0% {
    color: var(--led-amber);
    transform: translateY(-1px);
  }
  100% {
    color: var(--reel-green);
    transform: translateY(1px);
  }
}

@keyframes slot-window-pulse {
  0% {
    border-color: rgba(255, 176, 31, 0.32);
    box-shadow:
      inset 0 1px 8px rgba(0, 0, 0, 0.78),
      inset 0 0 0 1px rgba(255, 255, 255, 0.03),
      0 0 16px rgba(255, 176, 31, 0.12);
  }
  100% {
    border-color: rgba(92, 255, 121, 0.48);
    box-shadow:
      inset 0 1px 8px rgba(0, 0, 0, 0.78),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04),
      0 0 22px rgba(92, 255, 121, 0.16);
  }
}

@keyframes slot-sheen {
  0% {
    transform: translateX(-130%) skewX(-18deg);
  }
  100% {
    transform: translateX(260%) skewX(-18deg);
  }
}

@keyframes slot-star-twinkle {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.78) rotate(0deg);
  }
  45% {
    opacity: 0.96;
    transform: scale(1.18) rotate(18deg);
  }
  68% {
    opacity: 0.45;
    transform: scale(0.9) rotate(34deg);
  }
}

/* ---- Home: reels ---- */
.reel {
  padding: 8px 0 30px;
}

.reel-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.reel-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.reel-head .plate-kicker {
  order: -1;
  flex: 0 0 auto;
}

.reel-head h2 {
  flex: 0 0 auto;
}

.reel-all {
  margin-left: auto;
  align-self: center;
  color: var(--reel-green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
}

.reel-all:hover {
  color: var(--led-amber);
}

.reel-window {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  max-width: 100%;
  padding: 16px;
  background: linear-gradient(180deg, #0f0c08, var(--cabinet-inset));
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  scrollbar-color: var(--led-amber-soft) var(--cabinet-inset);
  scrollbar-width: thin;
}

.reel-window::-webkit-scrollbar {
  height: 8px;
}

.reel-window::-webkit-scrollbar-track {
  background: var(--cabinet-inset);
}

.reel-window::-webkit-scrollbar-thumb {
  background: var(--led-amber-soft);
  border-radius: 4px;
}

.reel-track {
  display: flex;
  gap: 14px;
  width: max-content;
  max-width: none;
}

.symbol-card {
  display: flex;
  flex: 0 0 308px;
  flex-direction: column;
  min-height: 210px;
  padding: 18px;
}

.symbol-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.symbol-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}

.symbol-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.symbol-card .foot {
  margin-top: auto;
  align-self: flex-start;
}

.symbol-card h3 a:hover {
  color: var(--led-amber);
}

/* ---- Sections / grids ---- */
.content-section {
  padding: 46px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-heading a {
  flex: 0 0 auto;
  color: var(--reel-green);
  font-family: var(--font-display);
  font-weight: 700;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.post-card-body,
.review-card-link {
  display: flex;
  height: 260px;
  min-height: 260px;
  flex-direction: column;
  padding: 18px;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.post-card h3,
.review-card h3 {
  margin: 13px 0 10px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.post-card p,
.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.post-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.post-card:hover h3,
.review-card:hover h3 {
  color: var(--led-amber);
}

.review-card-link {
  gap: 10px;
}

.review-meta {
  margin-top: auto;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* ---- Archive ---- */
.archive-hero {
  padding: 54px 0 0;
}

.archive-hero h1 {
  margin: 16px 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.archive-hero p {
  max-width: 760px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.08rem;
}

.archive-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.archive-list article {
  display: grid;
  grid-template-columns: 135px minmax(0, 0.78fr) minmax(240px, 1fr);
  gap: 22px;
  min-height: 118px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.archive-list time {
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.archive-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.archive-list h3 a:hover {
  color: var(--led-amber);
}

.archive-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.pagination.is-empty,
.pagination:not(:has(a)) {
  display: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin: 32px auto 0;
  padding: 6px 12px;
  color: var(--muted);
  background: rgba(8, 6, 4, 0.74);
  border: 1px solid rgba(216, 204, 180, 0.15);
  border-radius: 4px;
  font-family: var(--font-mono);
  box-shadow:
    inset 0 1px 0 rgba(255, 213, 129, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.pagination .page-number,
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  white-space: nowrap;
}

.pagination .page-number {
  min-width: 94px;
  padding: 0 8px;
  color: var(--soft);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.pagination a {
  min-width: 0;
  padding: 0 3px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: none;
  transition: color 0.12s ease;
}

.pagination a:hover {
  color: var(--led-amber);
}

.pagination.has-numbers {
  gap: 9px;
}

.pagination.has-numbers .page-number {
  display: none;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination.has-numbers a,
.pagination-page,
.pagination-ellipsis {
  width: auto;
  min-width: 16px;
  min-height: 28px;
  padding: 0 2px;
}

.pagination.has-numbers .pagination-page,
.pagination.has-numbers .pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.pagination.has-numbers .pagination-page {
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.pagination.has-numbers .pagination-page:hover,
.pagination.has-numbers .pagination-page.is-current {
  color: var(--led-amber);
}

.pagination.has-numbers .pagination-page.is-current {
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 176, 31, 0.26);
}

.pagination.has-numbers .pagination-ellipsis {
  min-width: 22px;
  width: 22px;
  color: var(--muted);
}

.pagination.has-numbers .pagination-edge {
  min-width: 18px;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0;
}

/* ---- Article ---- */
.article-shell {
  padding: 54px 0 0;
}

.spec-plate {
  width: min(880px, 100%);
  margin-inline: auto;
  padding: 26px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cabinet-2), var(--cabinet));
  box-shadow: inset 0 1px 0 rgba(216, 204, 180, 0.06), 0 12px 30px rgba(0, 0, 0, 0.42);
}

.article-meta,
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.spec-plate h1 {
  margin: 16px 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.spec-plate > p {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.article-feature {
  width: min(800px, 100%);
  margin: 32px auto 0;
}

.article-feature img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: var(--cabinet-inset);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.35), 0 10px 26px rgba(0, 0, 0, 0.4);
}

.article-feature figcaption {
  margin-top: 10px;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
}

.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 800px);
  justify-content: center;
  gap: 44px;
  align-items: start;
  margin-top: 42px;
}

.article-layout.toc-empty,
.article-layout.single {
  grid-template-columns: minmax(0, 800px);
}

.article-toc {
  position: sticky;
  top: 24px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--cabinet);
  color: var(--muted);
}

.article-toc.is-empty {
  display: none;
}

.article-toc span {
  display: block;
  margin-bottom: 12px;
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc-link {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
}

.toc-link.child {
  padding-left: 22px;
}

.toc-link:hover {
  color: var(--led-amber);
  border-left-color: var(--led-amber);
}

.article-content {
  min-width: 0;
  color: #e7dcc4;
  font-size: 1.07rem;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 2.1em 0 0.7em;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.article-content h2 {
  font-size: 1.95rem;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line);
}

.article-content h3 {
  font-size: 1.42rem;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin: 0 0 1.25em;
}

.article-content a {
  color: var(--reel-green);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-content blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--reel-red);
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.62;
}

.article-content pre,
.article-content code {
  font-family: var(--font-mono);
}

.article-content code {
  padding: 2px 6px;
  background: var(--cabinet-inset);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.9em;
}

.article-content pre {
  overflow: auto;
  padding: 18px;
  background: var(--cabinet-inset);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}

.article-content pre code {
  padding: 0;
  background: none;
  border: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.article-content th {
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.article-content .kg-image-card img,
.article-content .kg-gallery-image img {
  border: 1px solid var(--line);
  border-radius: 4px;
}

.article-content .kg-embed-card,
.article-content .kg-video-card,
.article-content .kg-file-card {
  width: 100%;
  margin: 2.2em 0;
}

.article-content .kg-embed-card iframe,
.article-content .kg-video-card video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.article-content .kg-embed-card iframe[src*="youtube"],
.article-content .kg-embed-card iframe[src*="youtu.be"] {
  min-height: 450px;
}

.article-content .kg-card figcaption {
  margin-top: 10px;
  color: var(--soft);
  font-size: 0.84rem;
  text-align: center;
}

.article-content .kg-width-wide {
  width: min(1040px, calc(100vw - 40px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .kg-width-full img {
  width: 100%;
}

.related-section {
  padding-top: 48px;
}

/* ---- Contact page ---- */
.contact-shell {
  padding-top: 58px;
}

.contact-hero {
  width: min(960px, 100%);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  width: min(960px, 100%);
  margin: 28px auto 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cabinet-2), var(--cabinet));
  box-shadow: inset 0 1px 0 rgba(216, 204, 180, 0.06), 0 12px 30px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.contact-main {
  --contact-control-width: 280px;
  padding: 30px;
}

.contact-main h2 {
  margin: 14px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.16;
}

.contact-main p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.contact-handle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  justify-items: center;
  width: min(100%, var(--contact-control-width));
  max-width: 100%;
  margin: 22px auto 0;
  padding: 12px 14px;
  color: var(--led-amber);
  background: var(--cabinet-inset);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.62);
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.contact-handle::after {
  content: "COPY";
  justify-self: stretch;
  padding-left: 12px;
  color: var(--soft);
  border-left: 1px solid rgba(216, 204, 180, 0.16);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-align: center;
}

.contact-handle:hover,
.contact-handle.is-copied {
  color: var(--ink);
  border-color: rgba(255, 176, 31, 0.46);
  box-shadow:
    inset 0 1px 6px rgba(0, 0, 0, 0.62),
    0 0 18px rgba(255, 176, 31, 0.14);
}

.contact-handle.is-copied::after {
  content: "COPIED";
  color: var(--reel-green);
}

.contact-action {
  display: flex;
  justify-content: center;
  width: min(100%, var(--contact-control-width));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.contact-side {
  display: grid;
  align-content: stretch;
  border-left: 1px solid var(--line-strong);
  background: var(--cabinet-inset);
}

.contact-readout {
  display: grid;
  align-content: center;
  gap: 9px;
  min-height: 104px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.contact-readout:last-child {
  border-bottom: 0;
}

.contact-readout span {
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.contact-readout strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.contact-notes {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  width: min(960px, 100%);
  margin: 16px auto 0;
}

.contact-notes article {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(36, 29, 21, 0.94), rgba(24, 19, 14, 0.96));
}

.contact-notes h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
}

.contact-notes p,
.contact-notes ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-notes ul {
  padding-left: 1.2em;
}

.contact-notes li + li {
  margin-top: 7px;
}

/* ---- Page / error ---- */
.page-shell .article-layout {
  margin-top: 0;
}

.error-hero {
  padding: 90px 0;
  text-align: center;
}

.button.primary {
  display: inline-flex;
  margin-top: 8px;
  padding: 12px 22px;
  color: var(--cabinet-inset);
  background: linear-gradient(180deg, var(--led-amber), var(--led-amber-soft));
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 0 rgba(0, 0, 0, 0.5);
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 70px;
  padding: 44px 0 26px;
  color: var(--muted);
  background: linear-gradient(180deg, var(--cabinet), #0c0906);
  border-top: 1px solid var(--line-strong);
  box-shadow: inset 0 2px 0 rgba(216, 204, 180, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(170px, 0.55fr));
  gap: 38px;
}

.footer-brand {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-grid p {
  max-width: 520px;
  margin: 12px 0 0;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: var(--led-amber);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid section:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-grid section:not(:first-child) a:hover {
  color: var(--led-amber);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.footer-bottom a:hover {
  color: var(--led-amber);
}

/* ---- Load choreography ---- */
@keyframes led-blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.22; }
}

@keyframes boot-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.floor-console > *,
.reel,
.archive-hero,
.spec-plate {
  animation: boot-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.console-deck { animation-delay: 0.02s; }
.main-screen { animation-delay: 0.1s; }
.reel:nth-of-type(2) { animation-delay: 0.16s; }
.reel:nth-of-type(3) { animation-delay: 0.22s; }
.reel:nth-of-type(4) { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .floor-console > *,
  .reel,
  .archive-hero,
  .spec-plate,
  .led-dot[data-blink] {
    animation: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1040px) {
  .floor-console,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .console-deck {
    min-height: auto;
  }

  .article-toc {
    display: none;
  }

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

  .archive-list article {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .archive-list p {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .header-shell,
  .floor-console,
  .reel,
  .content-section,
  .footer-grid,
  .footer-bottom,
  .archive-hero,
  .article-shell {
    width: min(calc(100% - 28px), 1180px);
  }

  .header-shell {
    min-height: 66px;
  }

  .brand-copy span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 66px 14px auto 14px;
    z-index: 120;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--cabinet-2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .search-button {
    width: 100%;
    padding: 12px 10px;
    text-align: left;
  }

  .search-button {
    width: 42px;
    height: 42px;
    padding: 0;
    text-align: center;
  }

  .floor-console {
    padding-top: 32px;
  }

  .console-deck {
    padding: 22px;
  }

  .console-deck h1 {
    font-size: clamp(2.1rem, 10vw, 2.9rem);
  }

  .button-bank {
    grid-template-columns: 1fr;
  }

  .random-slot {
    grid-template-columns: 1fr;
    margin: 18px 0 0;
    padding: 13px;
  }

  .slot-sparkles {
    inset: -5px 4px 5px 4px;
  }

  .slot-sparkles span:nth-child(3) {
    right: 16px;
  }

  .slot-result {
    width: 100%;
    height: 104px;
  }

  .slot-actions {
    grid-column: auto;
    grid-row: auto;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
  }

  .slot-actions .button-primary {
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
  }

  .symbol-card {
    flex-basis: 78vw;
  }

  .post-grid,
  .post-grid.compact,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .post-card-body,
  .review-card-link {
    height: auto;
    min-height: 230px;
  }

  .content-section {
    padding: 38px 0;
  }

  .pagination {
    width: max-content;
    flex-wrap: wrap;
    margin-top: 24px;
  }

  .pagination .page-number,
  .pagination a {
    flex: 0 0 auto;
    min-width: 0;
  }

  .pagination.has-numbers {
    justify-content: center;
  }

  .pagination.has-numbers .pagination-pages {
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination.has-numbers .pagination-page,
  .pagination.has-numbers .pagination-edge,
  .pagination.has-numbers .pagination-ellipsis {
    flex: 0 0 auto;
    width: auto;
    min-width: 16px;
  }

  .pagination.has-numbers .pagination-ellipsis {
    flex-basis: auto;
    width: 22px;
    min-width: 22px;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 10px;
  }

  .archive-list article {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .archive-list p {
    grid-column: auto;
  }

  .spec-plate {
    padding: 20px;
  }

  .spec-plate h1 {
    font-size: clamp(1.85rem, 8vw, 2.3rem);
    line-break: anywhere;
  }

  .contact-shell {
    padding-top: 38px;
  }

  .contact-panel,
  .contact-notes {
    grid-template-columns: 1fr;
  }

  .contact-main,
  .contact-notes article {
    padding: 20px;
  }

  .contact-main {
    --contact-control-width: 100%;
  }

  .contact-main h2 {
    font-size: 1.65rem;
  }

  .contact-handle {
    grid-template-columns: minmax(0, 1fr) 60px;
    font-size: 0.94rem;
    letter-spacing: 0.05em;
  }

  .contact-handle::after {
    padding-left: 10px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .contact-side {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .contact-readout {
    min-height: 86px;
  }

  .archive-hero h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
    line-break: anywhere;
  }

  .article-content {
    font-size: 1.02rem;
  }

  .article-content h2 {
    font-size: 1.65rem;
  }

  .article-content .kg-embed-card iframe[src*="youtube"],
  .article-content .kg-embed-card iframe[src*="youtu.be"] {
    min-height: 204px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}


/* ---- Dual theme toggle ---- */
.header-shell {
  justify-content: flex-start;
}

.site-nav {
  margin-left: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.theme-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.theme-toggle::before,
.theme-toggle::after {
  content: "";
  position: absolute;
  display: block;
}

.theme-toggle::before {
  width: 15px;
  height: 15px;
  top: 9px;
  left: 10px;
  background: currentColor;
  border-radius: 50%;
}

.theme-toggle::after {
  width: 13px;
  height: 13px;
  top: 6px;
  left: 16px;
  background: var(--cabinet);
  border-radius: 50%;
}

.theme-toggle:hover {
  color: var(--led-amber);
  background: rgba(255, 176, 31, 0.08);
}

html[data-theme="light"] .theme-toggle {
  color: var(--ink);
}

html[data-theme="light"] .theme-toggle::before {
  width: 11px;
  height: 11px;
  top: 10px;
  left: 10px;
  background: transparent;
  border: 2px solid currentColor;
  box-shadow:
    0 -7px 0 -5px currentColor,
    0 7px 0 -5px currentColor,
    7px 0 0 -5px currentColor,
    -7px 0 0 -5px currentColor,
    5px 5px 0 -5px currentColor,
    -5px -5px 0 -5px currentColor,
    5px -5px 0 -5px currentColor,
    -5px 5px 0 -5px currentColor;
}

html[data-theme="light"] .theme-toggle::after {
  display: none;
}

html[data-theme="light"] .theme-toggle:hover {
  color: var(--accent-blue);
  background: rgba(74, 123, 245, 0.08);
}

@media (max-width: 760px) {
  .header-shell {
    gap: 10px;
  }

  .header-actions {
    margin-left: auto;
    gap: 6px;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .theme-toggle::before {
    top: 12px;
    left: 13px;
  }

  .theme-toggle::after {
    top: 9px;
    left: 19px;
  }

  html[data-theme="light"] .theme-toggle::before {
    top: 13px;
    left: 13px;
  }
}

/* ---- Scoped light arcade variant ---- */
html[data-theme="light"] {
  --bg: #f7f8fb;
  --cabinet: #ffffff;
  --cabinet-2: rgba(255, 255, 255, 0.86);
  --cabinet-inset: #f1f3f7;
  --chrome: #252735;
  --chrome-dim: #6f7484;
  --led-amber: #d88300;
  --led-amber-soft: #f0a01c;
  --accent-blue: #4a7bf5;
  --accent-blue-soft: rgba(74, 123, 245, 0.12);
  --reel-red: #d94034;
  --reel-green: #168b45;
  --ink: #15161f;
  --muted: #565d6d;
  --soft: #7a8190;
  --line: rgba(15, 15, 30, 0.09);
  --line-strong: rgba(15, 15, 30, 0.16);
}html[data-theme="light"] body {
  color: var(--ink);
  background:
    radial-gradient(760px 420px at 12% -8%, rgba(216, 131, 0, 0.16), transparent 62%),
    radial-gradient(780px 480px at 88% 2%, rgba(74, 123, 245, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 42%, #eef2f7 100%);
  background-attachment: fixed;
}html[data-theme="light"] .reading-progress {
  background: linear-gradient(90deg, var(--led-amber), #4a7bf5);
  box-shadow: 0 0 16px rgba(74, 123, 245, 0.22);
}html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  box-shadow:
    0 1px 2px rgba(15, 15, 30, 0.03),
    0 8px 24px rgba(15, 15, 30, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}html[data-theme="light"] .brand-copy strong,
html[data-theme="light"] .console-deck h1,
html[data-theme="light"] .screen-feature h2,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .reel-head h2,
html[data-theme="light"] .archive-hero h1,
html[data-theme="light"] .article-hero h1,
html[data-theme="light"] .contact-main h2,
html[data-theme="light"] .contact-readout strong,
html[data-theme="light"] .footer-brand {
  color: var(--ink);
}html[data-theme="light"] .brand-copy span,
html[data-theme="light"] .site-nav,
html[data-theme="light"] .console-deck p,
html[data-theme="light"] .screen-feature p,
html[data-theme="light"] .post-card p,
html[data-theme="light"] .review-card p,
html[data-theme="light"] .archive-hero p,
html[data-theme="light"] .archive-list p,
html[data-theme="light"] .article-hero p,
html[data-theme="light"] .article-content,
html[data-theme="light"] .contact-main p,
html[data-theme="light"] .site-footer p {
  color: var(--muted);
}html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .search-button:hover,
html[data-theme="light"] .archive-list h3 a:hover,
html[data-theme="light"] .screen-feature h2 a:hover,
html[data-theme="light"] .slot-result[href]:hover h2,
html[data-theme="light"] .symbol-card h3 a:hover,
html[data-theme="light"] .post-card:hover h3,
html[data-theme="light"] .review-card:hover h3,
html[data-theme="light"] .reel-all,
html[data-theme="light"] .reel-all:hover {
  color: var(--accent-blue);
}html[data-theme="light"] .search-button {
  color: var(--ink);
}html[data-theme="light"] .search-button:hover {
  background: rgba(74, 123, 245, 0.08);
}html[data-theme="light"] .console-deck,
html[data-theme="light"] .main-screen,
html[data-theme="light"] .spec-plate,
html[data-theme="light"] .contact-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 2px rgba(15, 15, 30, 0.03),
    0 14px 36px rgba(15, 15, 30, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}html[data-theme="light"] .reel {
  background: transparent;
  border: 0;
  box-shadow: none;
}html[data-theme="light"] .button-bank a,
html[data-theme="light"] .random-slot,
html[data-theme="light"] .slot-result,
html[data-theme="light"] .symbol-card,
html[data-theme="light"] .post-card-body,
html[data-theme="light"] .review-card-link,
html[data-theme="light"] .article-toc,
html[data-theme="light"] .contact-notes article {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
  box-shadow:
    0 1px 2px rgba(15, 15, 30, 0.03),
    0 8px 20px rgba(15, 15, 30, 0.05);
}html[data-theme="light"] .button-bank a:hover,
html[data-theme="light"] .symbol-card:hover,
html[data-theme="light"] .post-card-body:hover,
html[data-theme="light"] .review-card-link:hover {
  border-color: rgba(74, 123, 245, 0.24);
  box-shadow:
    0 1px 2px rgba(15, 15, 30, 0.04),
    0 12px 28px rgba(74, 123, 245, 0.09);
}html[data-theme="light"] .button-bank a:hover {
  color: var(--accent-blue);
  background: linear-gradient(180deg, rgba(74, 123, 245, 0.08), rgba(255, 255, 255, 0.94));
}html[data-theme="light"] .slot-result[href]:hover {
  border-color: rgba(74, 123, 245, 0.28);
  box-shadow:
    0 1px 2px rgba(15, 15, 30, 0.04),
    0 12px 28px rgba(74, 123, 245, 0.11);
}html[data-theme="light"] .archive-list {
  border-top-color: var(--line);
}html[data-theme="light"] .archive-list article {
  background: transparent;
  border-bottom-color: var(--line);
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}html[data-theme="light"] .archive-list article:hover {
  background: linear-gradient(90deg, rgba(74, 123, 245, 0.07), rgba(74, 123, 245, 0.02));
  border-bottom-color: rgba(74, 123, 245, 0.2);
}html[data-theme="light"] .archive-list time {
  color: var(--led-amber);
}html[data-theme="light"] .archive-list h3 {
  color: var(--ink);
}html[data-theme="light"] .main-screen,
html[data-theme="light"] .reel-window,
html[data-theme="light"] .slot-result {
  background:
    repeating-linear-gradient(180deg, rgba(74, 123, 245, 0.035) 0 1px, transparent 1px 5px),
    rgba(255, 255, 255, 0.88);
}html[data-theme="light"] .screen-feature::before {
  background: repeating-linear-gradient(180deg, rgba(74, 123, 245, 0.035) 0 1px, transparent 1px 5px);
  mix-blend-mode: multiply;
}html[data-theme="light"] .screen-bar,
html[data-theme="light"] .reel-head,
html[data-theme="light"] .footer-bottom {
  border-color: var(--line);
}html[data-theme="light"] .button-primary,
html[data-theme="light"] .slot-actions .button-primary,
html[data-theme="light"] .contact-action {
  color: #15161f;
  background: linear-gradient(180deg, #ffc247, #f0a01c);
  border: 1px solid rgba(216, 131, 0, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 3px 0 rgba(159, 98, 0, 0.2),
    0 8px 20px rgba(216, 131, 0, 0.14);
}html[data-theme="light"] .button-primary:hover,
html[data-theme="light"] .slot-actions .button-primary:hover,
html[data-theme="light"] .contact-action:hover {
  color: #15161f;
  background: linear-gradient(180deg, #ffd271, #f3a928);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 2px 0 rgba(159, 98, 0, 0.18),
    0 10px 24px rgba(216, 131, 0, 0.18);
}html[data-theme="light"] .led-chip,
html[data-theme="light"] .contact-handle,
html[data-theme="light"] .pagination .page-number,
html[data-theme="light"] .pagination-page {
  color: var(--led-amber);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(216, 131, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}html[data-theme="light"] .contact-handle:hover,
html[data-theme="light"] .contact-handle.is-copied {
  color: var(--ink);
  border-color: rgba(74, 123, 245, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 18px rgba(74, 123, 245, 0.12);
}html[data-theme="light"] .contact-side {
  background: rgba(244, 247, 252, 0.8);
}html[data-theme="light"] .contact-readout {
  border-color: var(--line);
}html[data-theme="light"] .article-content a {
  color: var(--accent-blue);
}html[data-theme="light"] .article-content blockquote {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border-left-color: var(--led-amber);
}html[data-theme="light"] .article-content pre {
  background: #15161f;
  color: #f7f8fb;
}html[data-theme="light"] .article-content code {
  background: rgba(15, 15, 30, 0.06);
  color: var(--ink);
}html[data-theme="light"] .article-content pre code {
  color: inherit;
  background: transparent;
}html[data-theme="light"] .article-content .kg-image-card img,
html[data-theme="light"] .article-content .kg-gallery-image img,
html[data-theme="light"] .article-feature img {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(15, 15, 30, 0.08);
}html[data-theme="light"] .pagination {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  box-shadow:
    0 1px 2px rgba(15, 15, 30, 0.03),
    0 8px 20px rgba(15, 15, 30, 0.06);
}html[data-theme="light"] .pagination.has-numbers .pagination-page {
  color: var(--muted);
  background: transparent;
}html[data-theme="light"] .pagination.has-numbers .pagination-page:hover,
html[data-theme="light"] .pagination.has-numbers .pagination-page.is-current {
  color: var(--accent-blue);
  background: transparent;
}html[data-theme="light"] .pagination.has-numbers .pagination-page.is-current {
  text-shadow: 0 0 12px rgba(74, 123, 245, 0.24);
}html[data-theme="light"] .site-footer {
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(238, 242, 247, 0.92));
  border-top-color: var(--line);
}html[data-theme="light"] .site-footer a:hover {
  color: var(--accent-blue);
}@media (max-width: 760px) {
html[data-theme="light"] .site-nav {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--line-strong);
    box-shadow: 0 24px 60px rgba(15, 15, 30, 0.18);
  }

}

