/* SCHIZLE.CO — Scheme B: Warm Manila Paper & Archival Print Edition */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-latin-opsz-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-latin-opsz-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #efe9dc;
  --bg-warm: #e6ddcb;
  --paper: #fbf8f1;
  --paper-manila: #f3ecdc;
  --paper-tab: #e5dac3;
  --panel: #fbf8f1;
  --ink: #181b1a;
  --ink-soft: #3c4240;
  --muted: #676c67;
  --muted-dim: #8a8d85;
  --hairline: rgba(24, 27, 26, 0.12);
  --hairline-strong: rgba(24, 27, 26, 0.22);
  --line: #d4c9b2;
  --vermilion: #b83a2a;
  --vermilion-hover: #9d2e20;
  --vermilion-soft: rgba(184, 58, 42, 0.09);
  --forest: #1d5948;
  --forest-soft: rgba(29, 89, 72, 0.1);
  --brass: #a37122;
  --brass-soft: rgba(163, 113, 34, 0.12);
  --gold: #a37122;
  --gold-bright: #e4bc6a;
  --mint: #1d5948;
  --red: #b83a2a;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: 'Plus Jakarta Sans', Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 3px;
}

/* Warm cotton archival paper ground with subtle daylight sheen & paper fiber grain */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 75% 55% at 18% 0%, rgba(255, 252, 245, 0.72), transparent 65%),
    radial-gradient(ellipse 55% 45% at 88% 100%, rgba(212, 198, 170, 0.38), transparent 65%),
    linear-gradient(180deg, #f3eee2 0%, #ebe3d3 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tactile fine archival paper grain (zero external requests) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(184, 58, 42, 0.18);
  color: #121413;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #c8bda6;
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #a89b82; }

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 3px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes stamp-ink {
  0% { opacity: 0; transform: scale(1.26) rotate(-5deg); }
  65% { opacity: 1; transform: scale(0.98) rotate(-1.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(-2deg); }
}
@keyframes sheet-open {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes led-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes toast-rise {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Workspace proportion */
.workspace {
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 30px;
  max-width: 1480px;
  padding: 20px 32px 26px;
}

/* Masthead: Crisp Editorial Newspaper Header */
.masthead {
  height: auto;
  min-height: 56px;
  padding: 4px 0 14px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid var(--ink);
  gap: 14px;
}
.brand-group { gap: 14px; }
.brand { gap: 12px; color: var(--ink); }
.brand-mark {
  width: 26px;
  height: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--paper-tab);
  transform: rotate(-4deg);
  transition: transform 0.22s var(--ease), background 0.2s ease;
}
.brand-mark:before {
  border-width: 1.5px;
  border-color: var(--ink);
  background: var(--paper-tab);
}
.brand-mark i {
  border-top: 1.5px solid var(--ink);
  box-shadow: 0 5px var(--ink);
}
.brand:hover .brand-mark {
  transform: rotate(0deg);
  background: #f0d7a0;
}
.brand strong {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand-dot { color: var(--vermilion); }
.brand small {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.icon-button {
  min-width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid #cfc4ae;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  box-shadow: 0 1px 2px rgba(32, 24, 12, 0.05);
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.icon-button:hover {
  color: var(--vermilion);
  border-color: var(--ink);
  background: #fffdf8;
}
.menu-button {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px;
}
.menu-button:hover {
  background: rgba(24, 27, 26, 0.06);
}
.menu-button span {
  height: 1.5px;
  background: var(--ink);
  transition: width 0.2s var(--ease), background 0.2s ease;
}
.menu-button:hover span { background: var(--vermilion); }
.menu-button:hover span:last-child { width: 19px; }

.night-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  margin-right: 4px;
  border: 1px solid #d5cab4;
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--forest);
}
.night-dot {
  margin-right: 0;
  width: 6px;
  height: 6px;
  background: var(--forest);
  box-shadow: 0 0 0 2px rgba(29, 89, 72, 0.18);
  animation: led-breathe 2.6s ease-in-out infinite;
}

.navigation {
  top: calc(100% + 6px);
  background: var(--paper);
  border: 1px solid #c9bda5;
  border-radius: 4px;
  padding: 8px;
  color: var(--ink);
  box-shadow: 0 22px 54px rgba(34, 24, 10, 0.18), 0 4px 12px rgba(34, 24, 10, 0.08);
  animation: fade-up 0.16s var(--ease);
}
.navigation button {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
  border-radius: var(--radius);
}
.navigation button:hover {
  background: var(--paper-manila);
  color: var(--vermilion);
}
.navigation-links { border-top-color: var(--hairline); }
.navigation-links a {
  font-size: 13.5px;
  color: var(--ink-soft);
}
.navigation-links a:hover {
  background: var(--paper-manila);
  color: var(--vermilion);
}

/* Mounted Darkroom Surveillance Frame (.game-frame) on the Archival Desk */
.game-frame {
  display: flex;
  flex-direction: column;
  border: 1px solid #c7baa1;
  border-radius: 6px;
  background: #0b141b;
  box-shadow:
    0 24px 60px rgba(38, 28, 14, 0.16),
    0 4px 14px rgba(38, 28, 14, 0.08),
    0 0 0 5px var(--paper);
}
.game-frame:after { display: none; }
.game-frame:before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(3, 8, 12, 0.1) 3px,
    rgba(3, 8, 12, 0.1) 4px
  );
  opacity: 0.42;
}
.scene-vignette {
  background:
    radial-gradient(ellipse 90% 85% at 65% 45%, transparent 28%, rgba(6, 12, 17, 0.48) 100%),
    linear-gradient(90deg, rgba(8, 15, 20, 0.85) 0%, rgba(10, 18, 24, 0.58) 46%, rgba(10, 18, 24, 0.12) 82%),
    linear-gradient(180deg, rgba(8, 14, 19, 0.68) 0%, transparent 18%, transparent 78%, rgba(8, 14, 19, 0.84) 100%);
}

/* Unified Zero-Collision Top Telemetry Bar inside the mounted Surveillance Plate */
.stage-hud {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(247, 242, 230, 0.12);
  background: linear-gradient(180deg, rgba(8, 15, 20, 0.72), rgba(8, 15, 20, 0.28));
  backdrop-filter: blur(6px);
}
.stage-hud .scene-topline,
.game-frame.is-playing .stage-hud .scene-topline {
  position: static;
  inset: auto;
  padding: 0;
  flex: 0 0 auto;
  color: rgba(246, 240, 226, 0.76);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.tiny-square {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #e8be6c;
}
.stage-hud .scene-caption,
.game-frame.is-playing .stage-hud .scene-caption,
.is-closed .stage-hud .scene-caption,
.is-results .stage-hud .scene-caption {
  position: static;
  inset: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: min(52%, 400px);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(246, 240, 226, 0.16);
  background: rgba(8, 15, 20, 0.62);
  color: #efe9d8;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.stage-hud .scene-caption #scene-location {
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-hud .scene-caption .camera-mark {
  flex: none;
  opacity: 0.78;
  margin-right: 4px;
}
.stage-hud .scene-caption b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0 0 0 6px;
  margin-left: 2px;
  border-left: 1px solid rgba(246, 240, 226, 0.18);
  border-radius: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #f49b89;
}
.stage-hud .scene-caption b:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f49b89;
  animation: led-breathe 1.8s ease-in-out infinite;
}
.stage-hud .scene-caption.is-inspecting {
  border-color: rgba(232, 190, 108, 0.65);
  background: rgba(232, 190, 108, 0.16);
  color: #fbe5b2;
}
.hud-date {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(246, 240, 226, 0.68);
  white-space: nowrap;
}

.frame-bottom {
  position: relative;
  inset: auto;
  z-index: 2;
  margin-top: auto;
  padding: 12px 22px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(246, 240, 226, 0.54);
}

/* Front Desk Hero over the Midnight Surveillance Plate */
.home-view {
  flex: 1 0 auto;
  padding: clamp(34px, 5.2vh, 62px) 44px 22px;
  width: 72%;
  max-width: 660px;
  color: #f7f2e6;
  animation: fade-up 0.34s var(--ease);
}
.home-view .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #ebd08f;
  gap: 12px;
}
.home-view .eyebrow > span {
  width: 24px;
  height: 1px;
  background: #ebd08f;
  opacity: 0.75;
}
.home-view h1 {
  font-family: var(--sans);
  font-size: clamp(44px, 4.4vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 18px 0 20px;
  color: #fbf7ee;
  text-shadow: 0 10px 30px rgba(4, 9, 13, 0.72);
}
.home-view h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.015em;
  color: #f3d288;
}
.home-intro {
  font-size: 15.5px;
  line-height: 1.65;
  color: #dbd6c8;
  max-width: 405px;
  margin: 0 0 26px;
}
.home-actions { gap: 14px; }
.home-view .text-button {
  color: #e8e1d0;
  text-decoration-color: rgba(232, 225, 208, 0.4);
}
.home-view .text-button:hover {
  color: #f5d896;
  text-decoration-color: #f5d896;
}
.home-detail {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(236, 230, 214, 0.72);
  gap: 10px;
}
.small-diamond {
  width: 5px;
  height: 5px;
  border-color: #ebd08f;
}
.detail-divider {
  border-left-color: rgba(246, 240, 226, 0.25);
}

/* Primary Buttons: Crisp Carbon Ink on Paper; Warm Cream Paper CTA on Dark Front Desk */
.primary-button {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #faf6ec;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.005em;
  border-radius: var(--radius);
  padding: 12px 20px;
  box-shadow: 0 2px 6px rgba(24, 27, 26, 0.14);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s var(--ease), box-shadow 0.16s ease;
}
.primary-button:hover:not(:disabled) {
  background: var(--vermilion);
  border-color: var(--vermilion);
  color: #fffdf8;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(184, 58, 42, 0.24);
}
.primary-button:active:not(:disabled) {
  transform: translateY(0);
}
.primary-button:disabled {
  background: #dcd4c3;
  border-color: #cfc6b2;
  color: #8c897f;
  box-shadow: none;
  opacity: 1;
}
/* Hero Clock-in button on dark photographic scene: Warm Archival Cream + Vermilion Hover */
.clock-in {
  min-width: 312px;
  padding: 14px 20px;
  font-size: 15.5px;
  background: #fbf7ee;
  border-color: #fbf7ee;
  color: #161918;
  box-shadow: 0 12px 30px rgba(4, 10, 14, 0.42);
}
.clock-in:hover:not(:disabled) {
  background: #f3d288;
  border-color: #f3d288;
  color: #141716;
  box-shadow: 0 14px 36px rgba(243, 210, 136, 0.3);
}
.clock-in .case-icon,
.clock-in .case-icon:before {
  border-color: #181b1a;
}
.button-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding-left: 20px;
  opacity: 0.65;
}

.secondary-button {
  background: var(--paper-manila);
  border: 1px solid #cbbda2;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 550;
  padding: 11px 16px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.secondary-button:hover {
  background: #ece3cf;
  border-color: var(--ink);
  color: var(--ink);
}
.text-button {
  color: var(--ink-soft);
  text-decoration-color: rgba(24, 27, 26, 0.28);
  text-underline-offset: 5px;
  font-weight: 500;
}
.text-button:hover {
  color: var(--vermilion);
  text-decoration-color: var(--vermilion);
}

/* Front Desk 3-Card Physical Manila Case Folders tucked over the Midnight Scene */
.shift-preview {
  position: static;
  margin: 8px 26px 6px;
  gap: 12px;
}
.preview-file {
  padding: 13px 15px 14px;
  border: 1px solid #d4c8af;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  backdrop-filter: none;
  box-shadow: 0 12px 28px rgba(4, 10, 14, 0.36);
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}
.preview-file:before {
  left: 13px;
  top: -5px;
  width: 38px;
  height: 5px;
  background: var(--paper-tab);
  border: 1px solid #d4c8af;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
.preview-file[data-difficulty="easy"]:before { background: #cfe3da; border-color: #9ec4b5; }
.preview-file[data-difficulty="medium"]:before { background: #efe0bd; border-color: #d6bc82; }
.preview-file[data-difficulty="hard"]:before { background: #efd0ca; border-color: #d79c92; }
.preview-file:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 16px 34px rgba(4, 10, 14, 0.46);
}
.preview-meta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.preview-file strong {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 6px;
  max-width: none;
}
.preview-file .preview-scene {
  font-family: var(--mono);
  font-size: 10px !important;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--vermilion);
  margin-top: 7px;
}
.preview-file.is-filed {
  background: #f5f9f6;
  border-color: #9cc3b3;
}
.preview-file.is-filed:before {
  background: #1d5948;
  border-color: #1d5948;
}
.preview-file.is-filed .preview-meta {
  color: var(--forest);
}

/* Active Case Dossier: Physical Cotton-Paper Case File Laid Over the Live Scene */
.case-view,
.game-frame.is-playing .case-view {
  flex: 1 0 auto;
  padding: 20px 26px 14px;
}
.case-panel {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #d4c8af;
  border-top: 3px solid var(--vermilion);
  border-radius: 4px;
  backdrop-filter: none;
  box-shadow: 0 28px 68px rgba(4, 10, 14, 0.52);
  padding: 20px 24px;
  animation: fade-up 0.24s var(--ease);
}
.case-meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 10px;
}
.case-meta > span:first-child { color: var(--forest); font-weight: 600; }
.score-chip {
  background: var(--paper-manila);
  border: 1px solid #d2c4a8;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.case-title-row { margin-top: 12px; }
.case-category {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--vermilion);
}
.difficulty {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid var(--hairline-strong);
  color: var(--ink-soft);
}
.difficulty[data-difficulty="easy"] { color: var(--forest); border-color: rgba(29, 89, 72, 0.36); background: var(--forest-soft); }
.difficulty[data-difficulty="medium"] { color: #8c5c12; border-color: rgba(163, 113, 34, 0.4); background: var(--brass-soft); }
.difficulty[data-difficulty="hard"] { color: var(--vermilion); border-color: rgba(184, 58, 42, 0.4); background: var(--vermilion-soft); }

.case-panel h2 {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 6px 0 8px;
}
.case-summary {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.section-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hairline-strong);
  margin-bottom: 8px !important;
}
.section-label small {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
.report-label { color: var(--vermilion); }

/* Evidence Exhibits: Crisp Archival Ruled Entries on Cream Paper */
.evidence-list { gap: 4px; }
.evidence-card {
  padding: 10px 11px;
  border: 1px solid transparent;
  border-bottom-color: var(--hairline);
  border-radius: var(--radius);
  background: transparent;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.evidence-card:hover {
  background: var(--paper-manila);
  border-color: #d7ccb6;
}
.evidence-card.active {
  background: #f6ebd1;
  border-color: #c8a253;
}
.evidence-number {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--vermilion);
  width: 22px;
  padding-top: 1px;
}
.evidence-card b {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 2px;
}
.evidence-card.active b { color: #7a520e; }
.evidence-card p {
  font-size: 14.5px;
  line-height: 1.48;
  color: var(--ink);
}

/* Suspect Report Cards: Tactile Print Statements */
.report-list { gap: 7px; }
.report-card {
  padding: 11px 12px;
  border: 1px solid #d5cab4;
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.report-letter {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  background: var(--paper-manila);
  border: 1px solid #c9bda3;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.report-text {
  font-size: 14.5px;
  line-height: 1.48;
  color: var(--ink);
}
.report-card:hover:not(:disabled) {
  background: #f8f2e4;
  border-color: #8f8878;
}
.report-card.selected {
  background: rgba(184, 58, 42, 0.065);
  border-color: var(--vermilion);
  box-shadow: 0 0 0 1px rgba(184, 58, 42, 0.2);
}
.report-card.selected .report-letter {
  background: var(--vermilion);
  border-color: var(--vermilion);
  color: #fffdf8;
}
.report-card.eliminated {
  opacity: 0.56;
  background: var(--paper-manila);
  border-style: dashed;
  border-color: #c8bca4;
}
.report-card.eliminated .report-text {
  text-decoration: line-through;
  text-decoration-color: rgba(184, 58, 42, 0.6);
  color: var(--muted);
}
.report-card.eliminated .report-letter {
  color: var(--forest);
  background: var(--forest-soft);
  border-color: rgba(29, 89, 72, 0.35);
}

.hint-button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid #d4c8b0;
  background: var(--paper-manila);
}
.hint-button > span { color: var(--brass); }
.hint-button small { color: var(--muted); }
.hint-button:hover:not(:disabled) {
  border-color: var(--ink);
  background: #ece3ce;
  color: var(--ink);
}
.give-up { color: var(--muted); }
.feedback, .hint-box {
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 9px 13px;
  animation: fade-up 0.2s var(--ease);
}
.feedback {
  border-left: 3px solid var(--vermilion);
  background: rgba(184, 58, 42, 0.085);
  color: #6f2117;
}
.hint-box {
  border-left: 3px solid var(--brass);
  background: rgba(163, 113, 34, 0.1);
  color: #563b0b;
}

/* Case Closed & Results: Stamped Archival Cotton Paper + Recessed Dark Microfiche Diagram */
.case-closed-view,
.results-view {
  flex: 1 0 auto;
  padding: 24px clamp(16px, 2.5vw, 32px) 16px;
  align-items: center;
}
.closed-panel,
.results-panel {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #d4c8af;
  border-top: 3px solid var(--forest);
  border-radius: 4px;
  backdrop-filter: none;
  box-shadow: 0 28px 72px rgba(4, 10, 14, 0.54);
  animation: fade-up 0.26s var(--ease);
}
.results-panel { border-top-color: var(--vermilion); }

/* Authentic Inked Rubber Stamp */
.stamp {
  border: 2px solid var(--forest);
  border-radius: 2px;
  background: rgba(29, 89, 72, 0.06);
  color: var(--forest);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px rgba(29, 89, 72, 0.45);
  animation: stamp-ink 0.38s var(--ease) both;
}
.stamp.unsolved {
  border-color: var(--vermilion);
  color: var(--vermilion);
  background: rgba(184, 58, 42, 0.06);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px rgba(184, 58, 42, 0.45);
}
.closed-panel .eyebrow,
.results-panel > .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.results-panel > .eyebrow { color: var(--vermilion); }
.results-panel > .eyebrow > span { background: var(--vermilion); }
.closed-panel h2,
.results-panel h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.closed-panel h2 { font-size: 32px; }
.results-panel h2 { font-size: 36px; line-height: 1.1; }
.results-panel h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--vermilion);
}
#result-subtitle { color: var(--muted); }
.closed-score strong {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--forest);
}
.closed-score span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
/* Dark Microfiche Aperture mounted cleanly inside the Cream Paper Dossier */
.case-reconstruction {
  border: 1px solid #c7baa1;
  border-radius: var(--radius);
  padding: 4px;
  background: #0c1920;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45);
}
.closed-panel .explanation {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}
.closed-panel .reveal-story,
.reveal-story {
  border: 0;
  border-left: 2.5px solid var(--vermilion);
  border-radius: 0;
  background: var(--paper-manila);
  padding: 10px 14px;
}
.reveal-story span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--vermilion);
}
.reveal-story p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 4px;
}
.result-total strong {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--vermilion);
}
.result-total > span { color: var(--ink-soft); }
.result-total small { color: var(--muted); }
.result-case { border-top-color: var(--hairline); }
.result-case-text strong { color: var(--ink); }
.result-case-text small { color: var(--muted); }
.result-case > strong { color: var(--forest); font-weight: 600; }
.result-case-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--forest);
  box-shadow: none;
}
.result-case-dot.yellow { background: #cf9129; }
.result-case-dot.grey { background: #a8a499; }
.result-note { color: var(--muted); }

/* Footer on Archival Paper */
.game-footer {
  padding: 14px 2px 6px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  margin-top: 16px;
}
.game-footer .text-button { color: var(--ink-soft); }
.footer-page-links {
  background: var(--paper);
  border-color: #c9bda5;
  box-shadow: 0 16px 40px rgba(34, 24, 10, 0.16);
}
.footer-page-links a { color: var(--ink-soft); }
.footer-page-links a:hover {
  background: var(--paper-manila);
  color: var(--vermilion);
}
.save-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* Right Side-Rail: Physical Manila Desk Column */
.side-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 14px;
}
.rail-top-label {
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.advertisement:empty { display: none; }

/* Physical Manila Assignment Folder */
.assignment-card {
  margin-bottom: 0;
  border: 1px solid #cfc2a8;
  border-radius: 0 4px 4px 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(38, 28, 14, 0.08);
}
.folder-tab {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 6px 12px 5px;
  background: var(--paper-tab);
  color: var(--ink);
  border-color: #cfc2a8;
  border-radius: 3px 3px 0 0;
}
.assignment-body { padding: 18px 20px 16px; }
.assignment-date {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--vermilion);
  margin-bottom: 7px;
}
.assignment-body h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.assignment-body > p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 15px;
}
.assignment-case {
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--ink);
  border-top-color: var(--hairline);
}
.assignment-case > span:first-child {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid #cfc3ab;
  background: var(--paper-manila);
  border-radius: 2px;
  padding: 2px 5px;
}
.assignment-case.is-filed > span:first-child {
  color: var(--forest);
  border-color: rgba(29, 89, 72, 0.4);
  background: var(--forest-soft);
}
.assignment-case > small { color: var(--forest); font-weight: 600; }
.assignment-bottom {
  border-top-color: var(--hairline);
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.status-dot { background: var(--forest); }

/* Live Shift Radar: Printed Bureau Dispatch Ledger */
.presence-dot, .radar-live-dot {
  background: var(--forest);
  box-shadow: 0 0 0 2px rgba(29, 89, 72, 0.18);
  animation: led-breathe 2.4s ease-in-out infinite;
}
.presence-pill {
  margin-left: auto;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid #cfc3ab;
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  box-shadow: 0 1px 2px rgba(32, 24, 12, 0.05);
  gap: 8px;
}
.presence-pill:hover {
  border-color: var(--ink);
  background: #fffdf8;
}
.presence-pill-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
}
.presence-pill-count { color: var(--forest); font-weight: 600; }
.presence-pill-count strong { color: var(--ink); font-weight: 700; }
.presence-pill-sep { color: #b8ae99; }
.presence-you-tag {
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--vermilion-soft);
  color: var(--vermilion);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
#presence-you-geo { color: var(--ink); font-weight: 500; }
#presence-you-station { color: var(--vermilion); font-weight: 600; }

.presence-card {
  margin-top: 0;
  padding: 16px 18px 15px;
  border: 1px solid #cfc2a8;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(38, 28, 14, 0.07);
}
.presence-card-head {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.presence-card-title { color: var(--forest); }
.presence-card-count {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.presence-you-box {
  padding: 0 0 11px 12px;
  margin-bottom: 13px;
  border: 0;
  border-left: 2.5px solid var(--vermilion);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  gap: 2px;
}
.presence-you-kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--vermilion);
}
.presence-you-box strong {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}
.presence-you-box small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--forest);
  font-weight: 500;
}
.presence-rooms { gap: 9px; }
.presence-room-top { font-size: 12.5px; }
.presence-room-name { color: var(--muted); gap: 7px; }
.presence-room-name i { color: #8c8577; }
.presence-room.is-here .presence-room-name { color: var(--ink); font-weight: 600; }
.presence-room.is-here .presence-room-name i { color: var(--vermilion); }
.presence-room-name em {
  background: var(--vermilion-soft);
  color: var(--vermilion);
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.1em;
}
.presence-room-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.presence-room.is-here .presence-room-count { color: var(--vermilion); font-weight: 700; }
.presence-bar {
  height: 3px;
  background: #e5dcc9;
}
.presence-bar span { background: var(--forest); }
.presence-room.is-here .presence-bar span,
.radar-row.is-here .presence-bar span { background: var(--vermilion); }
.presence-radar-link {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  width: 100%;
  text-align: left;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.presence-radar-link:hover { color: var(--vermilion); }

/* Director's Field Note: Editorial Pull-Quote Directly on the Cotton Paper Desk */
.field-note {
  padding: 18px 4px;
  border: 0;
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.field-note-head {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.paperclip { border-color: var(--brass); }
.field-note p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 13px 0 10px;
}
.field-note small {
  font-size: 12.5px;
  color: var(--muted);
}

/* Personnel Service Record Index Card */
.record-button {
  padding: 14px 15px;
  border: 1px solid #cfc2a8;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(38, 28, 14, 0.05);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s var(--ease);
}
.record-button:hover {
  border-color: var(--ink);
  background: #fffdf8;
  color: var(--vermilion);
  transform: translateY(-1px);
}
.record-icon {
  color: var(--vermilion);
  font-size: 19px;
}
.record-button small { color: var(--muted); font-size: 12px; }
.record-plus {
  color: var(--muted);
  transition: transform 0.2s var(--ease), color 0.2s ease;
}
.record-button:hover .record-plus {
  transform: rotate(90deg);
  color: var(--vermilion);
}

/* Archival Paper Modals (How to Play, Archive, Record, Share, Live Radar) */
.modal {
  width: min(630px, calc(100% - 28px));
  border: 1px solid #c9bda5;
  border-top: 3px solid var(--vermilion);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 32px 96px rgba(24, 18, 8, 0.36);
}
.modal[open] { animation: sheet-open 0.2s var(--ease); }
.modal::backdrop {
  background: rgba(24, 21, 16, 0.62);
  backdrop-filter: blur(5px);
}
.modal-head {
  padding: 14px 24px;
  background: var(--paper-manila);
  border-bottom: 1px solid #d6cab4;
}
.modal:has(.guide-topic) .modal-head { background: var(--paper-manila); }
.modal-head > span {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.modal-head .icon-button {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  box-shadow: none;
}
.modal-head .icon-button:hover {
  background: rgba(24, 27, 26, 0.08);
  color: var(--vermilion);
}
#modal-content { padding: 24px; }
.modal h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.modal p { font-size: 14.5px; color: var(--ink-soft); }
.modal h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vermilion);
}
.modal .fine-print { color: var(--muted); }
.guide-steps { color: var(--ink-soft); }
.guide-steps li::marker { color: var(--vermilion); font-weight: 700; }
.guide-steps strong { color: var(--ink); }
.guide-topic { border-top-color: var(--hairline); }
.guide-topic summary { color: var(--ink); }
.guide-topic summary:hover { color: var(--vermilion); }

.stat-box {
  border: 1px solid #d5cab4;
  border-radius: var(--radius);
  background: var(--paper-manila);
}
.stat-box strong {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--vermilion);
}
.stat-box span { color: var(--muted); }
.history-row {
  border-top-color: var(--hairline);
  color: var(--ink-soft);
}
.history-row strong { color: var(--forest); font-weight: 600; }

.archive-shift { border-top-color: var(--hairline); }
.archive-shift summary { color: var(--ink); }
.archive-shift summary small { color: var(--muted); }
.archive-case {
  border: 1px solid #d5cab4;
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
}
.archive-case > span:first-child { color: var(--vermilion); }
.archive-case small { color: var(--muted); }
.archive-case > .archive-status { color: var(--forest); font-weight: 600; }
.archive-case:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--paper-manila);
}

.copy-area {
  background: var(--paper-manila);
  border: 1px solid #cbbda3;
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--mono);
}

/* Radar Modal on Warm Paper */
.radar-hero {
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  padding: 4px 0 16px;
}
.radar-hero strong {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 36px;
  color: var(--forest);
}
.radar-hero span { color: var(--ink); }
.radar-you-card {
  border: 0;
  border-left: 3px solid var(--vermilion);
  border-radius: 0;
  background: var(--paper-manila);
  padding: 12px 16px;
}
.radar-you-kicker { color: var(--vermilion); }
.radar-you-grid small { color: var(--muted); }
.radar-you-grid strong { color: var(--ink); }
.radar-row-head { color: var(--ink); }
.radar-row-num { color: var(--ink); }
.radar-city {
  border-color: #d5cab4;
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
}
.radar-city.is-here {
  border-color: var(--vermilion);
  background: rgba(184, 58, 42, 0.06);
}
.radar-city strong { color: var(--forest); }
.here-badge {
  border-radius: 2px;
  background: var(--vermilion-soft);
  color: var(--vermilion);
}

/* Share Modal on Warm Paper */
.share-lead { color: var(--muted); }
.share-tab {
  border-radius: var(--radius);
  border-color: #d4c8b0;
  background: var(--paper-manila);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.share-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #faf6ec;
}
.share-card-preview {
  border-radius: var(--radius);
  border: 1px solid #d4c8b0;
  background: linear-gradient(150deg, #faf6ec, #f1e9d8);
  color: var(--ink);
}
.share-card-top { color: var(--vermilion); }
.share-card-mid strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.share-card-mid small { color: var(--muted); }
.share-card-score strong { color: var(--vermilion); }
.share-card-score span { color: var(--muted); }
.share-square.is-mint { background: var(--forest); }
.share-square.is-gold { background: #cf9129; }
.share-square.is-grey { background: #a8a499; }
.share-card-domain { color: var(--forest); }
.share-platforms-head { color: var(--muted); }
.share-platform {
  border-radius: var(--radius);
  border-color: #d4c8b0;
  background: #fffdf8;
  color: var(--ink);
}
.share-platform svg { color: var(--ink); }
.share-platform:hover {
  border-color: var(--vermilion);
  background: var(--paper-manila);
  color: var(--vermilion);
}
.share-platform:hover svg { color: var(--vermilion); }

/* Toast: Ink Stamp Ribbon */
.toast {
  border-radius: 999px;
  padding: 10px 20px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #faf6ec;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 36px rgba(24, 18, 8, 0.28);
  animation: toast-rise 0.2s var(--ease);
}

/* 404 Archival Dossier Card */
.missing-file {
  padding: 40px 36px;
  border-radius: 4px;
  border: 1px solid #cfc2a8;
  border-top: 3px solid var(--vermilion);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 54px rgba(38, 28, 14, 0.14);
}
.missing-file h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  margin: 0 0 10px;
}
.missing-file p { color: var(--ink-soft); }

/* Responsive Harmony */
@media (max-width: 1250px) {
  .workspace { padding: 16px 22px; gap: 24px; }
  .presence-pill { max-width: 310px; }
  .presence-pill #presence-you-geo,
  .presence-pill .presence-station-sep { display: none; }
}
@media (max-width: 1080px) {
  .workspace { grid-template-columns: minmax(0, 1fr); max-width: 920px; }
  .side-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 4px;
  }
  .presence-card { grid-column: 1 / -1; }
  .field-note {
    grid-column: 1;
    padding: 14px 4px;
    border-top: 1px solid var(--hairline-strong);
    border-bottom: 1px solid var(--hairline-strong);
  }
  .record-button {
    grid-column: 2;
    align-self: center;
  }
}
@media (max-width: 700px) {
  .workspace { padding: 6px 10px 20px; gap: 16px; }
  .masthead {
    min-height: 50px;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 8px;
    padding: 6px 0 10px;
    margin-bottom: 12px;
  }
  .brand-group { min-width: 0; flex: 1 1 auto; gap: 8px; }
  .brand { min-width: 0; gap: 8px; }
  .brand strong { font-size: 19px; letter-spacing: 0.02em; }
  .brand small { font-size: 9px; letter-spacing: 0.12em; white-space: nowrap; }
  .header-actions { flex: 0 0 auto; gap: 6px; }
  .header-actions .icon-button { min-width: 36px; width: 36px; height: 36px; padding: 7px; }
  .menu-button { min-width: 32px; width: 32px; height: 36px; }
  .presence-pill {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
    max-width: none;
    width: 100%;
    min-height: 32px;
    padding: 5px 11px;
    justify-content: space-between;
    font-size: 10.5px;
  }
  .presence-pill .presence-pill-sep { display: none; }
  .presence-pill .presence-you-tag { display: inline-block; }
  .presence-pill #presence-you-geo { display: inline; }
  .presence-pill .presence-station-sep { display: inline; }
  .presence-pill .presence-pill-you { justify-content: flex-end; max-width: 66%; }

  .game-frame { box-shadow: 0 14px 36px rgba(38, 28, 14, 0.14), 0 0 0 3px var(--paper); }
  .stage-hud { padding: 9px 12px; gap: 8px; }
  .stage-hud .scene-topline { display: none; }
  .stage-hud .scene-caption,
  .game-frame.is-playing .stage-hud .scene-caption {
    max-width: 68%;
    font-size: 10px;
    padding: 2px 8px;
  }
  .hud-date { font-size: 10px; }

  .home-view { padding: 22px 16px 14px; width: 100%; }
  .home-view h1 { font-size: clamp(38px, 10.5vw, 50px); margin: 12px 0 14px; }
  .home-detail { max-width: none; font-size: 10.5px; gap: 6px; }
  .shift-preview { margin: 8px 12px 6px; gap: 6px; }
  .preview-file { padding: 10px 9px; }
  .preview-file strong { font-size: 14px; }

  .game-frame.is-playing .case-view { padding: calc(var(--scene-band) - 34px) 6px 8px; }
  .case-panel { padding: 14px 12px; }
  .case-panel h2 { font-size: 24px; }
  .case-closed-view, .results-view { padding: 16px 8px 10px; }
  .closed-panel, .results-panel { padding: 18px 14px; }
  .closed-panel h2, .results-panel h2 { font-size: 26px; }
  .frame-bottom { padding: 10px 12px 12px; font-size: 9.5px; }

  .side-rail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .field-note { text-align: left; max-width: none; }
  .field-note-head { justify-content: flex-start; }
  .record-button { max-width: none; }
}

/* Reduced Motion */
body.no-motion *,
body.no-motion *:before,
body.no-motion *:after {
  animation: none !important;
  transition-duration: 0.01ms !important;
}
body.no-motion .game-frame:before { opacity: 0.18; }


/* Below-the-fold Homepage Editorial Field Reference & FAQ (SEO + GEO Authority Section) */
.editorial-dossier {
  max-width: 1480px;
  margin: 26px auto 0;
  padding: 36px 32px 64px;
}
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 44px;
  padding-top: 32px;
  border-top: 1.5px solid var(--ink);
}
.editorial-kicker {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--vermilion);
}
.editorial-dossier h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.editorial-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 62ch;
}
.editorial-lead strong { color: var(--ink); }
.editorial-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.editorial-step {
  padding: 16px;
  border: 1px solid #d4c8b0;
  border-radius: var(--radius);
  background: var(--paper);
}
.editorial-step span {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--vermilion);
  margin-bottom: 6px;
}
.editorial-step h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.25;
}
.editorial-step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.editorial-topics {
  margin-bottom: 24px;
}
.editorial-topics h3 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.topic-tags li {
  padding: 5px 11px;
  border: 1px solid #cfc2a8;
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}
.fact-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 18px 20px;
  margin: 0;
  border: 1px solid #cfc2a8;
  border-left: 3px solid var(--forest);
  border-radius: var(--radius);
  background: var(--paper);
}
.fact-ledger dt {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 3px;
}
.fact-ledger dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink);
  line-height: 1.4;
}
.faq-list {
  border-top: 1px solid var(--hairline-strong);
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item summary {
  padding: 13px 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 16px;
  color: var(--vermilion);
  flex: none;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--vermilion); }
.faq-item p {
  margin: 0 0 14px;
  padding-right: 16px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-soft);
}
.faq-item code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--forest-soft);
  color: var(--forest);
}
.editorial-guides {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-strong);
}
.editorial-guides > span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}
.editorial-guides > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.editorial-guides a {
  font-size: 13.5px;
  font-weight: 550;
  color: var(--forest);
  text-underline-offset: 4px;
}
.editorial-guides a:hover { color: var(--vermilion); }

@media (max-width: 1080px) {
  .editorial-dossier { max-width: 920px; padding: 24px 24px 48px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 700px) {
  .editorial-dossier { padding: 18px 12px 40px; }
  .editorial-steps { grid-template-columns: 1fr; gap: 10px; }
  .fact-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
}
