:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --navy: #08131f;
  --panel: rgba(15, 29, 43, 0.94);
  --panel-light: #172b3e;
  --ink: #f3f0e7;
  --muted: #aebdca;
  --gold: #d5a84b;
  --gold-light: #f0cf7a;
  --danger: #b95050;
  --success: #4aaa7b;
  --line: rgba(240, 207, 122, 0.25);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body {
  background: #03080e;
  color: var(--ink);
}

button { font: inherit; }

.game-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #03080e;
}

.game-shell {
  --game-scale: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1600px;
  height: 900px;
  min-width: 0;
  min-height: 0;
  margin: -450px 0 0 -800px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(213, 168, 75, 0.15), transparent 28%),
    linear-gradient(145deg, #102438, var(--navy) 50%, #050b12);
  border: 1px solid #26394a;
  isolation: isolate;
  container-type: size;
  background-position: center;
  background-size: cover;
  transform: scale(var(--game-scale));
  transform-origin: center;
  transition: background-image .45s ease;
}

.game-viewport--mobile .game-shell {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: none;
}

.game-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3,9,15,.82), rgba(3,9,15,.42) 55%, rgba(3,9,15,.72));
}
.loading-screen {
  position: absolute;
  z-index: 70;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  background: radial-gradient(circle at center, rgba(18,38,54,.94), rgba(3,8,14,.98));
  text-align: center;
}
.loading-screen strong { font-family: Georgia, serif; font-size: clamp(1.35rem, 3cqw, 2.2rem); letter-spacing: .08em; }
.loading-screen__progress { color: var(--gold-light); font-weight: 800; }
.game-shell[data-scene="start"], .game-shell[data-scene="howTo"] { background-image: url("../assets/images/detective-office.png"); }
.game-shell[data-scene="briefing"] { background-image: url("../assets/images/museum-crime-scene.png"); }
.game-shell[data-scene="round-1"] { background-image: url("../assets/images/museum-crime-scene.png"); }
.game-shell[data-scene="round-2"] { background-image: url("../assets/images/interrogation-room.png"); }
.game-shell[data-scene="round-3"] { background-image: url("../assets/images/evidence-board.png"); background-position: center center; }
.game-shell[data-scene="decision"],
.game-shell[data-scene="transition"],
.game-shell[data-scene="review"] { background-image: url("../assets/images/evidence-board.png"); }
.game-shell[data-scene="caseClosed"] { background-image: url("../assets/images/detective-office.png"); animation: case-background-in .55s ease-out both; }
.game-shell[data-scene="caseClosed"]::before { background: radial-gradient(circle at 50% 42%, rgba(3,9,15,.62), rgba(3,9,15,.76) 72%, rgba(1,4,7,.88)); }
.game-shell[data-scene="round-1"]::before { background: linear-gradient(rgba(3,9,15,.48), rgba(3,9,15,.74)); }
.game-shell[data-scene="round-2"]::before { background: linear-gradient(90deg, rgba(3,9,15,.76), rgba(3,9,15,.42), rgba(3,9,15,.76)); }
.game-shell[data-scene="round-3"]::before,
.game-shell[data-scene="review"]::before { background: rgba(3,9,15,.7); }

.scene { position: relative; }
.scene--start { align-items: flex-start; padding-right: min(40cqw, 600px); text-align: left; }
.start-content { position: relative; z-index: 2; width: min(760px, 100%); }
.scene--start h1 { font-size: clamp(2.2rem, 5.25cqw, 4.9rem); }
.start-content .button-row { justify-content: center; gap: 14px; }
.start-brief { width: min(520px, 100%); margin: 16px auto 14px; padding: 20px 26px; text-align: center; }
.start-brief p { margin: 0; }
.alex-hero {
  position: absolute;
  z-index: 1;
  right: clamp(1%, 5cqw, 8%);
  bottom: -3%;
  width: clamp(280px, 34cqw, 520px);
  height: 92%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(-20px 20px 25px rgba(0,0,0,.65));
  transform-origin: bottom center;
  animation: none;
  pointer-events: none;
}

.audio-control {
  position: absolute;
  z-index: 60;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(240,207,122,.3);
  border-radius: 999px;
  background: rgba(4,12,19,.78);
  box-shadow: 0 7px 20px rgba(0,0,0,.3);
  backdrop-filter: blur(7px);
}
.audio-control__speaker {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.audio-control__speaker:hover { background: rgba(255,255,255,.1); transform: scale(1.07); }
.audio-control__speaker:active { transform: scale(.94); }
.audio-control__slider { width: 104px; accent-color: var(--gold-light); cursor: pointer; }

.crosshair-active,
.crosshair-active button,
.crosshair-active [data-answer],
.crosshair-active [data-suspect] { cursor: none; }

.crosshair {
  --crosshair-scale: 1;
  position: absolute;
  z-index: 50;
  width: 38px;
  height: 38px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(var(--crosshair-scale));
  filter: drop-shadow(0 1px 2px #000) drop-shadow(0 0 4px rgba(255,255,255,.35));
  transition: opacity .12s, transform .12s;
}
.crosshair--visible { opacity: 1; }
.crosshair--targeting { --crosshair-scale: .78; }
.crosshair--recoil { animation: crosshair-recoil .2s ease-out; }
.crosshair__ring { position: absolute; inset: 4px; border: 1.5px solid rgba(247, 241, 219, .95); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(4,12,19,.48); }
.crosshair__line { position: absolute; display: block; background: rgba(247,241,219,.95); box-shadow: 0 0 2px #000; }
.crosshair__line--h { left: 0; right: 0; top: 50%; height: 1px; }
.crosshair__line--v { top: 0; bottom: 0; left: 50%; width: 1px; }
.crosshair__dot { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-light); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px rgba(5,12,18,.55), 0 0 7px var(--gold-light); }

.shot-flash { position: absolute; z-index: 49; width: 12px; height: 12px; pointer-events: none; border-radius: 50%; background: #fff7cb; box-shadow: 0 0 12px 5px rgba(240,207,122,.85); transform: translate(-50%, -50%); animation: shot-flash .18s ease-out forwards; }
.score-popup { position: absolute; z-index: 48; pointer-events: none; color: #8ff0ba; font-size: 1.25rem; text-shadow: 0 2px 8px #000; transform: translate(-50%, -50%); animation: score-rise .9s ease-out forwards; }
.wrong-edge-glow { position: absolute; z-index: 45; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px 16px rgba(190,48,48,.72); animation: wrong-glow .46s ease-out forwards; }

.alex-guide {
  position: absolute;
  z-index: 47;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .42s ease;
}
.alex-guide--visible { opacity: 1; }
.alex-guide--leaving { opacity: 0; }
.alex-guide__stage {
  position: absolute;
  right: clamp(12px, 2.5cqw, 38px);
  bottom: 0;
  height: clamp(440px, 74cqh, 800px);
  aspect-ratio: 2 / 3;
  transform: translateX(90px);
  transition: transform .52s ease;
  animation: alex-guide-idle 5.5s ease-in-out infinite;
}
.alex-guide__figure {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(-10px 12px 18px rgba(0,0,0,.65));
}
.alex-guide--visible .alex-guide__stage { transform: translateX(0); }
.alex-guide--leaving .alex-guide__stage { transform: translateX(75px); }
.alex-guide__bubble {
  position: absolute;
  z-index: 2;
  right: 70%;
  top: 5%;
  width: clamp(175px, 17cqw, 240px);
  padding: clamp(14px, 2cqw, 20px);
  color: #192433;
  background: linear-gradient(145deg, #fff4d4, #e9d7ab);
  border: 1px solid rgba(113,82,32,.55);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.65);
  font-size: clamp(1rem, 1.9cqw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  transform: translateX(28px);
  transition: transform .52s ease;
}
.alex-guide__bubble::after {
  content: "";
  position: absolute;
  right: -17px;
  bottom: 22px;
  width: 34px;
  height: 28px;
  background: #ead8ad;
  clip-path: polygon(0 0, 100% 68%, 0 100%);
  filter: drop-shadow(2px 2px 1px rgba(70,45,15,.18));
}
.alex-guide--visible .alex-guide__bubble { transform: translateX(0); }
.alex-guide--leaving .alex-guide__bubble { transform: translateX(24px); }

.screen {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin-inline: auto;
  padding: clamp(24px, 5cqw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.screen--game { justify-content: flex-start; }
.eyebrow { margin: 0; color: var(--gold-light); letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-family: Georgia, serif; font-size: clamp(2.5rem, 7cqw, 6.5rem); letter-spacing: .04em; }
h2 { font-family: Georgia, serif; font-size: clamp(1.8rem, 4cqw, 3.4rem); }
.subtitle, .muted { color: var(--muted); }
.subtitle { font-size: clamp(1rem, 2cqw, 1.4rem); }

.panel {
  width: min(920px, 100%);
  margin-inline: auto;
  padding: clamp(22px, 4cqw, 42px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0,0,0,.4);
}

.button-row, .answer-grid, .suspect-grid, .hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn, .answer, .word {
  border: 1px solid rgba(240, 207, 122, .45);
  border-radius: 9px;
  color: var(--ink);
  background: linear-gradient(#243b50, #17293a);
  padding: 13px 22px;
  cursor: pointer;
  box-shadow: 0 5px 0 #07101a;
  transition: transform .15s, filter .15s, box-shadow .15s, border-color .15s;
}

.btn:hover, .answer:hover, .word:hover { transform: translateY(-3px) scale(1.015); filter: brightness(1.13); border-color: rgba(240,207,122,.72); box-shadow: 0 8px 18px rgba(0,0,0,.34), 0 5px 0 #07101a; }
.btn:active, .answer:active, .word:active { transform: translateY(2px); box-shadow: 0 2px 0 #07101a; }
.btn--primary { color: #17120a; background: linear-gradient(var(--gold-light), var(--gold)); font-weight: 800; }
.btn--ghost { background: transparent; }

.modal-backdrop, .overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 5, 9, .84);
}

.how-to-panel { text-align: center; }
.instructions { width: min(580px, 100%); margin: 0 auto 22px; display: grid; gap: 9px; text-align: center; font-size: 1.1rem; line-height: 1.55; }
.instructions p { margin: 0; text-align: center; text-wrap: balance; }
.instruction-icon { width: 1.15em; height: 1.15em; margin-right: .28em; color: var(--gold-light); vertical-align: -.2em; }
.briefing-copy { display: grid; gap: 8px; font-size: 1.08rem; }
.briefing-copy p { margin: 0; }
.suspect-grid { width: min(1000px, 100%); margin-inline: auto; align-items: stretch; }
.suspect-card { flex: 1 1 220px; min-width: 0; padding: 14px; overflow: hidden; border-radius: 12px; background: rgba(16,31,45,.92); border: 1px solid var(--line); box-shadow: 0 18px 35px rgba(0,0,0,.38); }
.suspect-portrait { height: clamp(180px, 27cqh, 300px); overflow: hidden; margin-bottom: 16px; border-radius: 8px; background: #111e2a; }
.suspect-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 22%; transition: transform .35s ease, filter .35s ease; }
.suspect-card:hover { border-color: rgba(240,207,122,.72); box-shadow: 0 16px 40px rgba(0,0,0,.48), 0 0 22px rgba(213,168,75,.2); }
.suspect-card:hover .suspect-portrait img { transform: scale(1.045); }
.suspect-grid--final { width: min(1100px, 100%); }
.suspect-grid--final .suspect-card { flex-basis: 260px; }
.decision-screen { justify-content: flex-start; gap: 0; padding-top: clamp(24px, 4cqh, 48px); padding-bottom: clamp(20px, 3cqh, 38px); }
.decision-header {
  width: min(760px, 92%);
  margin-inline: auto;
  padding: clamp(14px, 2.3cqh, 22px) clamp(22px, 4cqw, 48px);
  border: 1px solid rgba(240,207,122,.4);
  border-radius: 15px;
  background: linear-gradient(100deg, rgba(5,14,22,.52), rgba(12,27,40,.76), rgba(5,14,22,.52));
  box-shadow: 0 15px 38px rgba(0,0,0,.35), 0 0 22px rgba(213,168,75,.08);
  backdrop-filter: blur(5px);
}
.decision-header .eyebrow { margin-bottom: 7px; }
.decision-header h2 { margin: 0; color: #fffdf5; font-size: clamp(1.8rem, 3.8cqw, 3.3rem); text-shadow: 0 3px 18px rgba(0,0,0,.75); }
.decision-prompt { width: fit-content; margin: 14px 0 16px; padding: 8px 20px; color: var(--ink); background: rgba(6,17,27,.78); border: 1px solid rgba(240,207,122,.42); border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.decision-screen .suspect-grid { margin-top: 0; }
.decision-error-slot { position: relative; z-index: 4; width: min(620px, 94%); min-height: 74px; margin: 20px auto 0; display: grid; place-items: start center; }
.decision-error {
  width: fit-content;
  max-width: 100%;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 10px;
  color: #f4ead6;
  background: rgba(18,16,22,.9);
  border: 1px solid rgba(146,68,73,.72);
  border-radius: 11px;
  box-shadow: 0 12px 26px rgba(0,0,0,.42);
  text-align: center;
  animation: decision-error-in .32s ease-out both;
}
.decision-error strong { color: #cf8385; }
.decision-error span { color: #f1e8d6; }
.decision-evidence-button { margin-top: clamp(18px, 2.5cqh, 24px); color: var(--ink); background: rgba(6,17,27,.82); border-color: rgba(240,207,122,.62); box-shadow: 0 5px 0 #07101a, 0 0 14px rgba(213,168,75,.1); }
.decision-evidence-button:hover { transform: translateY(-2px) scale(1.025); box-shadow: 0 8px 20px rgba(0,0,0,.35), 0 0 19px rgba(213,168,75,.28), 0 5px 0 #07101a; }
.portrait { height: 110px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 8px; background: linear-gradient(135deg, #31475b, #111e2a); font-size: 3rem; }
.suspect-card h3 { margin-bottom: 5px; }

.hud { width: 100%; margin-inline: auto; justify-content: space-between; align-items: center; padding: 12px 18px; background: rgba(3, 9, 15, .65); border-radius: 10px; }
.hud button { padding: 8px 12px; }
.question-number { color: var(--gold-light); }
.question { font-size: clamp(1.45rem, 3.3cqw, 2.55rem); line-height: 1.55; }
.words { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.word { font-size: clamp(1.05rem, 2.4cqw, 1.55rem); padding: 9px 13px; }
.answer-grid { margin-top: 20px; }
.answer { min-width: 170px; font-size: 1.05rem; font-weight: 700; }
.answer--correct,
.answer--correct:disabled {
  color: #07130d;
  background: linear-gradient(#83e1af, #43a574);
  border-color: #a4f1c7;
  box-shadow: 0 0 24px rgba(74, 170, 123, .48), 0 5px 0 #173d2b;
  opacity: 1;
}
.answer:disabled { cursor: default; }
.answer:disabled:hover { transform: none; filter: none; }
.target-hit { animation: target-hit .34s ease-out; }
.target-hit--correct { box-shadow: 0 0 28px rgba(74,170,123,.72), 0 5px 0 #173d2b; }
.target-hit--wrong { color: #fff; background: linear-gradient(#a64b4b, #67282e); border-color: #f08a8a; box-shadow: 0 0 25px rgba(185,80,80,.64), 0 5px 0 #3b151a; }
.feedback { min-height: 32px; margin: 18px 0 0; font-weight: 750; }
.feedback--correct { color: #79d9a7; }
.feedback--wrong { color: #f08a8a; }
.corrected { color: #79d9a7; font-weight: 750; }
.resolved-sentence {
  margin: 24px 0 4px;
  padding: 16px;
  border: 1px solid rgba(121, 217, 167, .35);
  border-radius: 10px;
  background: rgba(74, 170, 123, .09);
}
.correct-word {
  display: inline-block;
  color: #8ff0ba;
  font-weight: 850;
  text-shadow: 0 0 16px rgba(74, 170, 123, .72);
}

.evidence-list, .review-list { display: grid; gap: 12px; text-align: left; max-height: 55cqh; overflow: auto; padding-right: 8px; }
.evidence-card, .review-item { padding: 14px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.045); }
.evidence-card p, .review-item p { margin: 3px 0; }
.evidence-button--received { animation: evidence-received .32s ease-out; }
.new-evidence-card {
  position: absolute;
  z-index: 46;
  left: 50%;
  top: 50%;
  width: min(780px, 92%, 132cqh);
  aspect-ratio: 3 / 2;
  padding: 0;
  background: url("../assets/images/alex-notebook.png") center/contain no-repeat;
  border: 0;
  border-radius: 3%;
  box-shadow: 0 22px 58px rgba(0,0,0,.58);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.92);
  opacity: 0;
  animation: evidence-arrive .28s ease-out forwards;
  transition: transform .62s cubic-bezier(.4,0,.2,1), opacity .62s ease;
}
.new-evidence-card__note {
  position: absolute;
  left: 55%;
  top: 22%;
  width: 37%;
  height: 58%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 2cqw, 24px);
  color: #17283c;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: clamp(.9rem, 2cqw, 1.38rem);
  font-style: italic;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}
.new-evidence-card strong { width: 100%; color: #14263c; font-family: Georgia, serif; font-size: clamp(1rem, 2.5cqw, 1.75rem); font-style: normal; letter-spacing: .08em; text-align: center; white-space: normal; word-break: normal; }
.new-evidence-card span { width: 100%; text-align: center; text-wrap: balance; white-space: normal; word-break: normal; overflow-wrap: normal; }
.new-evidence-card--clone {
  position: fixed;
  z-index: 1000;
  margin: 0;
  animation: none;
  opacity: 1;
  transform: none;
  transform-origin: center;
  transition: none;
  will-change: transform, opacity;
}
.overlay--evidence { background: linear-gradient(rgba(1,5,9,.72), rgba(1,5,9,.87)), url("../assets/images/evidence-board.png") center/cover; }
.evidence-panel { background: rgba(10,22,33,.91); backdrop-filter: blur(4px); }
.transition-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.transition-list span { padding: 12px; background: rgba(255,255,255,.05); }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 12px; margin: 22px 0; }
.stat { padding: 16px; background: rgba(255,255,255,.05); }
.stat strong { display: block; margin-top: 5px; color: var(--gold-light); font-size: 1.3rem; }
.case-closed { color: var(--gold-light); }
.case-closed-screen .eyebrow, .case-closed-screen .case-closed { animation: case-content-in .45s .18s ease-out both; }
.case-closed-panel { position: relative; overflow: hidden; padding-right: clamp(180px, 27cqw, 310px); background: rgba(10,23,35,.88); border-color: rgba(240,207,122,.42); box-shadow: 0 24px 58px rgba(0,0,0,.48); animation: case-content-in .48s .48s ease-out both; }
.case-report-button { animation: case-content-in .42s .82s ease-out both; }
.bees-knees-badge { display: block; width: clamp(190px, 22cqw, 300px); line-height: 0; transition: transform .18s ease, filter .18s ease; }
.bees-knees-badge:hover { transform: scale(1.025); filter: drop-shadow(0 0 10px rgba(240,207,122,.28)); }
.bees-knees-badge img { display: block; width: 100%; height: auto; }
.alex-victory { position: absolute; right: 0; bottom: -18%; width: clamp(190px, 26cqw, 300px); height: 118%; object-fit: cover; object-position: 78% center; filter: drop-shadow(-10px 10px 15px rgba(0,0,0,.55)); }
.error-message { color: #ffb1b1; }

@keyframes crosshair-recoil { 45% { transform: translate(-50%, -50%) scale(1.28); } }
@keyframes shot-flash { to { opacity: 0; transform: translate(-50%, -50%) scale(2.4); } }
@keyframes score-rise { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -145%); } }
@keyframes wrong-glow { from { opacity: 1; } to { opacity: 0; } }
@keyframes target-hit { 45% { transform: scale(.96); } }
@keyframes evidence-arrive { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes evidence-received { 50% { transform: scale(1.09); box-shadow: 0 0 22px rgba(240,207,122,.55); } }
@keyframes alex-idle { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.006); } }
@keyframes alex-guide-idle { 0%, 100% { margin-bottom: 0; scale: 1; } 50% { margin-bottom: 3px; scale: 1.012; } }
@keyframes case-background-in { from { filter: brightness(.72); } to { filter: brightness(1); } }
@keyframes case-content-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes decision-error-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 650px) {
  .game-shell { min-height: 0; }
  .screen { padding: 20px 14px; }
  .game-shell[data-scene^="round-"] .screen--game { padding-top: 68px; }
  .hud { justify-content: center; }
  .panel { padding: 20px 15px; }
  .answer { flex: 1 1 100%; }
  .audio-control { top: 8px; right: 8px; }
  .audio-control__slider { width: 76px; }
  .scene--start { align-items: center; padding-right: 14px; padding-bottom: 34vh; text-align: center; }
  .start-content .button-row { justify-content: center; }
  .alex-hero { right: 50%; width: min(72vw, 330px); height: 42%; transform: translateX(50%); animation: none; }
  .suspect-portrait { height: 210px; }
  .case-closed-panel { padding-right: 15px; padding-bottom: 260px; }
  .bees-knees-badge { width: min(240px, 64vw); }
  .alex-victory { right: 50%; width: 230px; height: 280px; transform: translateX(50%); }
  .instructions { font-size: 1rem; gap: 7px; }
  .new-evidence-card { width: min(94%, 680px, 132vh); }
  .new-evidence-card__note { font-size: clamp(.72rem, 3vw, 1rem); gap: clamp(7px, 1.8vw, 13px); }
  .new-evidence-card strong { font-size: clamp(.8rem, 3.5vw, 1.15rem); }
  .alex-guide__stage { right: clamp(3px, 1.5vw, 10px); height: clamp(300px, 58vh, 470px); }
  .alex-guide__bubble { right: 64%; top: 4%; width: clamp(140px, 39vw, 205px); font-size: clamp(.82rem, 3.1vw, 1rem); }
  .decision-screen { gap: 12px; padding-top: 18px; padding-bottom: 18px; }
  .decision-header { width: min(94%, 620px); padding: 12px 16px; }
  .decision-header h2 { font-size: clamp(1.55rem, 7vw, 2.2rem); }
  .decision-prompt { padding: 7px 16px; }
}

@media (max-width: 420px) {
  .alex-guide__stage { height: clamp(250px, 52vh, 360px); }
  .alex-guide__bubble { right: 61%; top: 3%; width: min(38vw, 180px); padding: 10px 12px; }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .crosshair { display: none; }
  .crosshair-active, .crosshair-active button, .crosshair-active [data-answer], .crosshair-active [data-suspect] { cursor: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
