:root {
  --bg: #070b0d;
  --panel: #101719;
  --panel-2: #0c1214;
  --line: #284347;
  --text: #d8fff3;
  --muted: #7ba39d;
  --green: #63f7a1;
  --cyan: #65d8ff;
  --amber: #f5cc6b;
  --red: #ff6f7d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #122023 0, var(--bg) 42rem);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  letter-spacing: 0;
}

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

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.terminal-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 15, .88);
  padding: 20px;
  box-shadow: 0 0 32px rgba(99, 247, 161, .08);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.site-logo {
  width: clamp(44px, 6vw, 62px);
  height: clamp(44px, 6vw, 62px);
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 14px rgba(101, 216, 255, .32));
}
.author-session {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--green);
}

.prompt { margin: 0 0 8px; color: var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(26px, 4vw, 46px); color: var(--cyan); }
h2 { color: var(--green); }
h3 { color: var(--cyan); }
.version, .muted, .hint { color: var(--muted); }

.panel, .result-panel, .deduction-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 23, 25, .96), rgba(8, 12, 14, .96));
  padding: 24px;
}

.intro-panel {
  margin-top: 18px;
  border: 1px solid rgba(101, 216, 255, .35);
  background:
    linear-gradient(180deg, rgba(12, 18, 20, .96), rgba(5, 9, 10, .96));
  padding: 24px;
}
.start-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(248, 230, 170, .22), transparent 36%),
    radial-gradient(ellipse at 50% 110%, rgba(13, 57, 66, .42), transparent 54%),
    #020607;
  cursor: pointer;
  animation: startFadeIn 1s ease both;
}
.start-screen.hidden {
  pointer-events: none;
  animation: startDiveOut .7s ease both;
}
.start-screen-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.12) brightness(.82);
  animation: startDrift 11s ease-in-out infinite alternate, startPulse 4.8s ease-in-out infinite;
}
.start-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 238, 174, .24), transparent 34%),
    linear-gradient(180deg, rgba(101, 216, 255, .16), transparent 26%, rgba(7, 11, 13, .35)),
    repeating-linear-gradient(180deg, rgba(101, 216, 255, .09) 0 1px, transparent 1px 8px),
    linear-gradient(108deg, transparent 0 31%, rgba(255, 238, 174, .18) 42%, rgba(101, 216, 255, .14) 52%, transparent 68% 100%);
  mix-blend-mode: screen;
  opacity: .45;
  animation: startScan 6s linear infinite, startSweep 5.6s ease-in-out infinite;
}
.start-screen::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 2;
  background:
    linear-gradient(118deg, transparent 0 36%, rgba(245, 204, 107, .16) 44%, rgba(101, 216, 255, .08) 56%, transparent 67%),
    radial-gradient(circle at 18% 24%, rgba(101, 216, 255, .12), transparent 18%),
    radial-gradient(circle at 78% 32%, rgba(245, 204, 107, .08), transparent 16%),
    radial-gradient(circle at 50% 58%, transparent 0 35%, rgba(2, 6, 7, .36) 68%, rgba(2, 6, 7, .86) 100%);
  opacity: .72;
  animation: startFog 9s ease-in-out infinite alternate;
}
.start-screen-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 17% 23%, rgba(216, 255, 243, .11) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 6px);
  mix-blend-mode: overlay;
  opacity: .12;
  animation: startNoise 1.2s steps(2, end) infinite;
}
.start-screen-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 36%, rgba(2, 6, 7, .42) 70%, rgba(2, 6, 7, .9) 100%),
    linear-gradient(180deg, rgba(2, 6, 7, .18), transparent 38%, rgba(2, 6, 7, .72));
  animation: startFlicker 5.4s linear infinite;
}
@keyframes startFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes startDiveOut {
  from { opacity: 1; filter: blur(0); transform: scale(1); }
  to { opacity: 0; visibility: hidden; filter: blur(10px); transform: scale(1.035); }
}
@keyframes startDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.075) translate3d(0, -16px, 0); }
}
@keyframes startPulse {
  0%, 100% { filter: saturate(1.06) contrast(1.08) brightness(.84); }
  44% { filter: saturate(1.18) contrast(1.14) brightness(.91); }
  48% { filter: saturate(.92) contrast(1.24) brightness(.78); }
  52% { filter: saturate(1.12) contrast(1.1) brightness(.88); }
}
@keyframes startScan {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 100px, 0 72px; }
}
@keyframes startSweep {
  0%, 100% { transform: translateX(-18%); opacity: .22; }
  44%, 58% { opacity: .52; }
  50% { transform: translateX(18%); }
}
@keyframes startFog {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); opacity: .62; }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); opacity: .82; }
}
@keyframes startNoise {
  0%, 100% { transform: translate(0, 0); opacity: .09; }
  35% { transform: translate(2px, -1px); opacity: .16; }
  70% { transform: translate(-1px, 2px); opacity: .11; }
}
@keyframes startFlicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: .72; }
  98% { opacity: .94; }
  99% { opacity: .66; }
}
.intro-kicker {
  color: var(--amber);
  margin-bottom: 10px;
}
.intro-panel h2 {
  color: var(--cyan);
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 14px;
}
.intro-panel p {
  max-width: 760px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 8px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.case-card, .clue-card, .question-card, .suspect-chip {
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 16px;
}

.case-card {
  display: grid;
  gap: 8px;
  transition: border-color .18s, transform .18s;
}
.case-card:hover { border-color: var(--green); transform: translateY(-2px); }
.dossier-card { position: relative; min-height: 150px; }
.dossier-card::after {
  content: "CLASSIFIED";
  position: absolute;
  right: 14px;
  top: 14px;
  color: rgba(245, 204, 107, .28);
  border: 1px solid rgba(245, 204, 107, .28);
  padding: 3px 6px;
  font-size: 11px;
}
.case-id { color: var(--amber); font-size: 13px; }
.meta, small { color: var(--muted); line-height: 1.6; }
.hidden { display: none !important; }
.case-filter-bar {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}
.case-search {
  border: 1px solid var(--line);
  background: #05090a;
  padding: 11px 12px;
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(99, 247, 161, .08);
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 92px;
}
.case-tags em,
.status-tag,
.difficulty-tag {
  border: 1px solid rgba(123, 163, 157, .45);
  color: var(--muted);
  padding: 2px 6px;
  font-size: 11px;
  font-style: normal;
}
.status-tag { color: var(--green); border-color: rgba(99, 247, 161, .38); }
.difficulty-tag.easy { color: var(--green); }
.difficulty-tag.normal { color: var(--amber); }
.difficulty-tag.hard { color: var(--red); }

.briefing { white-space: pre-line; line-height: 1.85; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.suspect-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.suspect-chip { display: grid; gap: 8px; }

.actions, .toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  border: 1px solid var(--line);
  background: #0f1719;
  color: var(--text);
  padding: 9px 13px;
  font: inherit;
  cursor: pointer;
}
.btn:hover, .btn.primary { border-color: var(--green); color: var(--green); }
.btn.danger { border-color: rgba(255, 111, 125, .7); color: var(--red); }
.btn.disabled {
  opacity: .55;
  pointer-events: none;
}
.save-code-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.save-code-text {
  min-height: 130px;
  word-break: break-all;
}
.save-summary,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0 4px;
}
.save-summary span,
.stat-grid > div {
  border: 1px solid rgba(40, 67, 71, .75);
  background: rgba(5, 9, 10, .62);
  padding: 10px;
}
.stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stat-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
}
.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #081013;
  padding: 10px 12px;
  color: var(--cyan);
  font-size: 13px;
}

.interrogation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  margin-top: 14px;
}
.suspect-panel, .console, .profile {
  border: 1px solid var(--line);
  background: rgba(9, 14, 16, .94);
  padding: 16px;
}
.suspect-panel {
  margin-top: 12px;
}
.suspect-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.suspect-tab {
  width: 100%;
  display: grid;
  gap: 6px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 12px;
  font: inherit;
  cursor: pointer;
}
.suspect-tab.active { border-color: var(--green); box-shadow: inset 3px 0 0 var(--green); }
.suspect-tab span { color: var(--muted); font-size: 13px; }
.suspect-tab em { color: var(--amber); font-style: normal; }
.suspect-tab b { color: var(--green); font-weight: 400; }
.suspect-tab i { color: var(--cyan); font-style: normal; }
.evidence-option {
  display: grid;
  gap: 6px;
  text-align: left;
  border: 1px solid rgba(245, 204, 107, .45);
  background: rgba(245, 204, 107, .06);
  color: var(--text);
  padding: 12px;
  font: inherit;
  cursor: pointer;
}
.evidence-option:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.evidence-option span {
  color: var(--muted);
  font-size: 13px;
}

.interrogation-subject {
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 10px;
}
.interrogation-subject h2 {
  margin-bottom: 8px;
}

.dialogue-log {
  height: 430px;
  overflow: auto;
  padding-right: 8px;
}
.line { margin-bottom: 12px; line-height: 1.7; }
.line.player { color: var(--cyan); }
.line.answer { color: var(--text); }
.line.clue { color: var(--amber); }
.line.observe { color: var(--muted); font-style: italic; }
.line.observe:has(+ .line.answer) { margin-bottom: 8px; }
.line.thinking { color: var(--muted); }
.line.system-log { color: var(--cyan); font-size: 13px; }
.state-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.state-tags span {
  border: 1px solid rgba(101, 216, 255, .3);
  color: var(--cyan);
  background: rgba(101, 216, 255, .06);
  padding: 4px 7px;
  font-size: 12px;
}
.suggestion-chip {
  display: inline-block;
  max-width: 100%;
  margin: 0 8px 10px 0;
  border: 1px solid rgba(101, 216, 255, .45);
  background: rgba(101, 216, 255, .08);
  color: var(--cyan);
  padding: 7px 9px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
  padding: 8px 4px;
}
select, textarea {
  border: 1px solid var(--line);
  background: #05090a;
  color: var(--text);
  font: inherit;
  outline: none;
  padding: 8px;
}

.pressure-label { margin-top: 18px; color: var(--cyan); }
.state-box {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid rgba(101, 216, 255, .24);
  background: rgba(101, 216, 255, .04);
}
.state-box h3 { margin: 0 0 4px; }
.state-box p {
  margin: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px;
}
.state-box strong { color: var(--cyan); font-weight: 400; }
.profile-facts {
  display: grid;
  gap: 7px;
  margin: 10px 0 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-facts p {
  margin: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px;
  line-height: 1.55;
}
.profile-facts strong {
  color: var(--cyan);
  font-weight: 400;
}
.profile-facts span {
  color: var(--text);
  overflow-wrap: anywhere;
}
.pressure-bar {
  height: 14px;
  margin: 8px 0 14px;
  background: #162124;
  border: 1px solid var(--line);
}
.pressure-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
  transition: width .2s;
}
.mini-clues { display: grid; gap: 6px; margin: 10px 0 12px; }
.mini-clues span {
  border: 1px solid rgba(99, 247, 161, .25);
  color: var(--green);
  padding: 6px 8px;
  font-size: 12px;
}

@media (max-width: 860px) {
  .shell {
    width: min(100vw - 12px, 1180px);
    padding-top: 8px;
  }
  .terminal-header {
    padding: 14px;
  }
  .site-logo {
    width: 54px;
    height: 54px;
  }
  .toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(7, 11, 13, .96);
    padding: 8px 0;
  }
  .interrogation-layout {
    grid-template-columns: 1fr;
  }
  .suspect-panel-grid {
    grid-template-columns: 1fr;
  }
  .dialogue-log {
    height: 420px;
  }
  .profile {
    order: -1;
  }
}

.clue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.clue-card p { color: var(--muted); line-height: 1.7; }
.clue-card.locked { opacity: .55; }
.clue-card:not(.locked) { cursor: pointer; }
.clue-state-badge,
.clue-category-badge {
  display: inline-block;
  margin: 6px 0 8px;
  border: 1px solid rgba(123, 163, 157, .45);
  color: var(--muted);
  padding: 3px 6px;
  font-size: 11px;
}
.clue-category-badge {
  margin-left: 6px;
  color: var(--cyan);
  border-color: rgba(101, 216, 255, .5);
}
.clue-card.hidden { display: none; }
.deduction-gate h2 { margin-bottom: 8px; }
.deduction-gate p { margin: 6px 0; }
.progress-meter {
  height: 10px;
  border: 1px solid rgba(101, 216, 255, .42);
  background: rgba(2, 6, 7, .72);
  overflow: hidden;
  margin: 10px 0 12px;
}
.progress-meter span {
  display: block;
  height: 100%;
  max-width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  box-shadow: 0 0 14px rgba(101, 216, 255, .38);
}
.clue-state-hinted { border-color: rgba(245, 204, 107, .5); }
.clue-state-hinted .clue-state-badge { color: var(--amber); border-color: rgba(245, 204, 107, .6); }
.clue-state-partial { border-color: rgba(101, 216, 255, .45); }
.clue-state-partial .clue-state-badge { color: var(--cyan); border-color: rgba(101, 216, 255, .55); }
.clue-state-verified { border-color: rgba(99, 247, 161, .75); box-shadow: inset 0 0 0 1px rgba(99, 247, 161, .18); }
.clue-state-verified .clue-state-badge,
.clue-state-unlocked .clue-state-badge { color: var(--green); border-color: rgba(99, 247, 161, .58); }
.clue-state-false,
.clue-state-contradicted { border-color: rgba(255, 111, 125, .55); }
.clue-state-false .clue-state-badge,
.clue-state-contradicted .clue-state-badge { color: var(--red); border-color: rgba(255, 111, 125, .65); }
.clue-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.clue-source-list small {
  border: 1px solid rgba(40, 67, 71, .9);
  padding: 3px 6px;
  background: rgba(5, 9, 10, .55);
}
.clue-dialog {
  max-width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 20px;
}

.question-card {
  margin: 0 0 16px;
}
.question-card legend {
  color: var(--green);
  padding: 0 8px;
}
.option {
  display: block;
  padding: 10px 0;
  cursor: pointer;
}
.option input { width: auto; margin-right: 8px; }
.submit-wide { width: 100%; margin-top: 8px; }
.evidence-basis { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

.score {
  color: var(--green);
  font-size: 54px;
  margin-bottom: 6px;
}
.result-rank { color: var(--amber); font-size: 24px; }
.share-card {
  width: min(720px, 100%);
  margin: 18px auto 0;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 18, 20, .98), rgba(5, 9, 10, .98));
  padding: 28px;
  text-align: center;
  box-shadow: 0 0 36px rgba(101, 216, 255, .08);
}
.share-card .stat-grid { text-align: left; }
.review-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(40, 67, 71, .55);
}
.review-row.ok strong { color: var(--green); }
.review-row.bad strong { color: var(--red); }
.warning-panel { border-color: var(--amber); color: var(--amber); }
.success-panel { border-color: var(--green); color: var(--green); }
.error-panel { border-color: var(--red); color: var(--red); }
.author-table { display: grid; gap: 14px; margin-top: 18px; }
.json-view, .json-editor {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  background: #05090a;
  color: var(--text);
  padding: 14px;
  overflow: auto;
  font: inherit;
  line-height: 1.55;
}
.json-editor { resize: vertical; }
.kv-grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 8px 14px;
}
.kv-grid span { color: var(--muted); }
.generator-form label { display: grid; gap: 8px; color: var(--cyan); }
.generator-input { min-height: 180px; }
.generator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.timeline-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(40, 67, 71, .55);
}
.timeline-row strong { color: var(--amber); }
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}
.preview-grid > div {
  border: 1px solid var(--line);
  background: rgba(5, 9, 10, .78);
  padding: 10px;
}
.preview-grid span,
.preview-row span { color: var(--muted); }
.preview-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
}
.preview-table {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
}
.preview-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  border: 1px solid rgba(40, 67, 71, .8);
  background: rgba(5, 9, 10, .62);
  padding: 10px;
  line-height: 1.55;
}
.preview-table.compact .preview-row { grid-template-columns: minmax(180px, 1.2fr) repeat(auto-fit, minmax(120px, 1fr)); }
.checker-card.pass { border-color: rgba(99, 247, 161, .8); }
.checker-card.warning { border-color: rgba(245, 204, 107, .8); }
.checker-card.error { border-color: rgba(255, 111, 125, .8); }
.checker-status {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 3px 8px;
  margin-bottom: 8px;
}
.checker-status.pass { color: var(--green); }
.checker-status.warning { color: var(--amber); }
.checker-status.error { color: var(--red); }
.footer-note { margin-top: 18px; color: var(--muted); text-align: center; }

@media (max-width: 920px) {
  .interrogation-layout { grid-template-columns: 1fr; }
  .dialogue-log { height: 340px; }
  .suspects {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
  }
  .suspects h2 {
    flex: 0 0 auto;
    margin: 10px 4px 0 0;
  }
  .suspect-tab {
    flex: 0 0 min(230px, 72vw);
    margin-bottom: 0;
  }
  .profile { order: 2; }
  .console { order: 3; }
}

@media (max-width: 640px) {
  .shell {
    width: min(100vw - 18px, 1180px);
    padding: 12px 0 88px;
  }
  .terminal-header {
    display: block;
    padding: 14px;
  }
  .brand-lockup {
    gap: 12px;
  }
  .site-logo {
    width: 46px;
    height: 46px;
  }
  .start-screen-image {
    object-position: center 18%;
    transform: scale(1.05);
  }
  .start-screen::before {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(255, 238, 174, .3), transparent 38%),
      linear-gradient(180deg, rgba(101, 216, 255, .18), transparent 30%, rgba(7, 11, 13, .45)),
      repeating-linear-gradient(180deg, rgba(101, 216, 255, .08) 0 1px, transparent 1px 8px),
      linear-gradient(112deg, transparent 0 27%, rgba(255, 238, 174, .2) 44%, rgba(101, 216, 255, .12) 56%, transparent 76% 100%);
  }
  .start-screen-vignette {
    background:
      radial-gradient(circle at 50% 36%, transparent 0 28%, rgba(2, 6, 7, .5) 66%, rgba(2, 6, 7, .94) 100%),
      linear-gradient(180deg, rgba(2, 6, 7, .12), transparent 34%, rgba(2, 6, 7, .78));
  }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  .panel, .result-panel, .deduction-panel, .share-card {
    padding: 16px;
  }
  .case-grid { grid-template-columns: 1fr; }
  .case-tags { padding-right: 0; }
  .dossier-card::after { display: none; }
  .toolbar, .actions { gap: 8px; }
  .save-code-panel { grid-template-columns: 1fr; }
  .btn { min-height: 42px; }
  .status-strip { font-size: 12px; }
  .dialogue-log { height: 52vh; }
  .input-row {
    position: sticky;
    bottom: 0;
    z-index: 5;
    grid-template-columns: auto minmax(0, 1fr);
    background: rgba(7, 11, 13, .96);
    padding: 12px 0 0;
  }
  .input-row .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .clue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .clue-card, .question-card, .suspect-chip { padding: 12px; }
  .clue-card h2 { font-size: 16px; }
  .option {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(40, 67, 71, .45);
  }
  .review-row, .timeline-row, .kv-grid {
    grid-template-columns: 1fr;
  }
  .score { font-size: 42px; }
  .result-rank { font-size: 20px; }
  .preview-table.compact .preview-row,
  .preview-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .start-screen,
  .start-screen.hidden,
  .start-screen-image,
  .start-screen::before,
  .start-screen::after,
  .start-screen-noise,
  .start-screen-vignette {
    animation: none;
  }
}
