:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --sheet: #fffdf8;
  --ink: #15242d;
  --body: #3b4e55;
  --quiet: #5e6c6f;
  --line: #ded8c9;
  --navy: #14232c;
  --navy-deep: #0e1b23;
  --gold: #ffc368;
  --gold-soft: #ffebc5;
  --teal: #235b5d;
  --teal-soft: #e4efed;
  --danger: #8e3426;
  --display: Georgia, 'Times New Roman', serif;
  --text: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--text);
}
img { display: block; max-width: 100%; }
p, h1, h2, h3, ul, blockquote { margin: 0; }
p + p { margin-top: 10px; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1, h2 { font-family: var(--display); letter-spacing: -.045em; }
h1 { font-size: clamp(36px, 6vw, 61px); }
h2 { font-size: clamp(23px, 3.5vw, 31px); }
h3 { font-size: 17px; letter-spacing: -.02em; }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
input, select {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #a49e90;
  border-radius: 6px;
  background: var(--sheet);
  color: var(--ink);
}
input[type="checkbox"] { width: 19px; min-height: 0; height: 19px; margin: 0; accent-color: var(--teal); }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
:focus-visible { outline: 3px solid #a74c25; outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--gold); }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  z-index: 10; position: fixed; top: 8px; left: 8px; padding: 8px 10px;
  transform: translateY(-170%); background: var(--sheet); color: var(--ink);
}
.skip-link:focus { transform: none; }
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; min-height: 75px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none;
}
.brand-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  background: var(--navy-deep); color: var(--gold); font: italic 700 27px/1 var(--display);
}
.brand strong { display: block; font: 700 27px/.98 var(--display); letter-spacing: -.055em; }
.brand small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.1; color: var(--quiet); }
.site-nav { display: flex; align-items: center; gap: clamp(8px, 2.5vw, 25px); }
.site-nav a, .site-nav > button {
  padding: 6px 0; border: 0; background: none; font-size: 13px; font-weight: 650; text-decoration: none;
}
.site-nav a:hover, .site-nav > button:hover { text-decoration: underline; text-underline-offset: .25em; }
.locale {
  display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet);
}
.locale button {
  border: 0; background: transparent; border-radius: 3px; min-height: 30px; padding: 3px 7px; font-size: 11px; font-weight: 800;
}
.locale button[aria-pressed="true"] { color: white; background: var(--navy); }

.hero {
  min-height: 410px; display: grid; grid-template-columns: .9fr 1.1fr; position: relative;
  overflow: hidden; isolation: isolate; border: 1px solid var(--navy-deep); border-radius: 13px;
  background: var(--navy); color: #fff8e9; box-shadow: 0 15px 35px #15242d15;
}
.hero-copy { position: relative; z-index: 1; align-self: center; padding: clamp(28px, 5vw, 72px); }
.eyebrow {
  font-size: 11px; font-weight: 820; line-height: 1.35; letter-spacing: .11em;
  text-transform: uppercase; color: var(--teal);
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { margin: 10px 0 13px; font-size: clamp(60px, 8.7vw, 119px); line-height: .9; letter-spacing: -.08em; }
.hero-description { max-width: 31ch; color: #e3e8e6; font-size: clamp(15px, 2vw, 20px); line-height: 1.45; }
.hero-art { position: relative; margin-left: -12%; }
.hero-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-art::after {
  position: absolute; inset: 0; content: "";
  background: linear-gradient(90deg, var(--navy), #14232c52 18%, transparent 40%);
}
.hero-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hero-actions { margin-top: 24px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 4px 17px; margin-top: 9px; color: #fff3d4; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 8px 15px;
  border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 730;
  text-align: center; text-decoration: none; line-height: 1.25; transition: background .16s, color .16s;
}
.button.primary { background: var(--gold); color: #191e20; border-color: #aa732b; }
.button.primary:hover:not(:disabled) { background: #ffd48b; }
.button.ghost { border-color: #a2abb0; color: #fff7e8; background: #11232b48; }
.button.ghost:hover:not(:disabled) { background: #ffffff20; }
.button.outline { border-color: #a19d92; color: var(--ink); background: var(--sheet); }
.button.outline:hover:not(:disabled), .button.plain:hover:not(:disabled) { background: var(--teal-soft); }
.button.plain { color: var(--teal); background: none; }
.button.danger { color: white; background: var(--danger); }
.button.danger:hover { background: #702a1e; }
.button.compact { min-height: 36px; padding: 5px 10px; font-size: 13px; }
.text-button {
  border: 0; background: none; padding: 6px 0; color: inherit; font-size: 13px; font-weight: 680;
  text-decoration: underline; text-underline-offset: .24em;
}
.text-button:hover { text-decoration-thickness: 2px; }

.section { margin-top: clamp(29px, 4vw, 43px); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.section-heading h2 { font-size: clamp(32px, 4vw, 45px); }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.case-card, .panel {
  border: 1px solid var(--line); border-radius: 10px; background: var(--sheet);
}
.case-card { overflow: hidden; box-shadow: 0 7px 14px #1c292608; }
.case-art-link { display: block; }
.case-image { width: 100%; height: auto; aspect-ratio: 768 / 340; object-fit: cover; background: var(--navy); }
.case-card .case-image { transition: filter .18s; }
.case-card a:hover .case-image { filter: brightness(1.1); }
.case-card-copy { padding: 13px 15px 16px; }
.case-card h3 { margin: 4px 0 6px; font: 700 clamp(19px, 2vw, 24px)/1.1 var(--display); letter-spacing: -.031em; }
.case-card h3 a { text-decoration: none; }
.case-card h3 a:hover { text-decoration: underline; text-underline-offset: .15em; }
.case-card-copy > p:last-child { color: var(--body); font-size: 13px; line-height: 1.45; }
.studio-note {
  display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr); align-items: start; gap: 16px;
  padding: 23px 0 3px; border-top: 1px solid var(--line);
}
.studio-note p { max-width: 66ch; color: var(--body); }
.site-footer {
  margin-top: 27px; min-height: 64px; padding-block: 16px;
  border-top: 1px solid var(--line); color: var(--quiet);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px 14px; font-size: 12px;
}
.foot-brand { text-decoration: none; font-weight: 750; }
.foot-brand span { color: var(--teal); }

.panel { padding: clamp(16px, 2.6vw, 26px); }
.panel h1, .panel h2, .panel p { margin-bottom: 9px; }
.muted, .panel p.muted { color: var(--quiet); font-size: 13px; }
.stack { display: grid; gap: 12px; }
.entry, .case-detail {
  overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 970px; margin-inline: auto;
}
.entry { padding: 0; }
.entry-copy { padding: clamp(18px, 4vw, 38px); align-self: center; }
.entry-copy .stack { margin-top: 16px; }
.entry-art, .case-detail > .case-image { height: 100%; min-height: 245px; }
.entry-art .case-image { width: 100%; height: 100%; object-fit: cover; }
.code-field { letter-spacing: .16em; text-transform: uppercase; }
.case-detail > .case-image { border-radius: 10px 0 0 10px; }
.detail-panel { display: grid; align-content: center; border-radius: 0 10px 10px 0; }
.body-lead { color: var(--body); font-size: 17px; max-width: 45ch; }
.detail-panel .actions { margin-top: 6px; }

.game-back { margin: -5px 0 7px; color: var(--teal); }
.game-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .39fr);
  gap: 14px; align-items: start;
}
.game-header {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); align-items: stretch;
  margin-bottom: 14px; min-height: 184px; overflow: hidden; border-radius: 10px;
  background: var(--navy); color: #fff9ec;
}
.game-header > div { padding: clamp(16px, 3vw, 28px); align-self: center; }
.game-header h1 { font-size: clamp(33px, 5vw, 56px); margin: 4px 0 8px; }
.game-header h2 { font-size: clamp(21px, 3vw, 29px); letter-spacing: -.03em; margin-bottom: 7px; }
.game-header .eyebrow { color: var(--gold); }
.game-header p:not(.eyebrow) { max-width: 67ch; color: #e7eced; font-size: 14px; }
.game-header .case-image { width: 100%; height: 100%; object-fit: cover; }
.case-brief { padding: 0; overflow: hidden; }
.case-brief > div { padding: 15px; }

.portrait {
  display: block; flex: none; width: 53px; aspect-ratio: 1; border-radius: 6px;
  background-color: var(--navy); background-repeat: no-repeat; background-position: var(--x, 0%) var(--y, 0%);
}
.investigator { background-image: url('/detective-team.webp'); background-size: 200% 200%; }
.seat-1, .seat-3 { --x: 100%; }
.seat-2, .seat-3 { --y: 100%; }
.witness { background-image: url('/witness-portraits.webp'); background-size: 400% 400%; }
.witness-last-broadcast-archivist, .witness-missing-signature-buyer,
.witness-platform-zero-attendant, .witness-lemons-producer { --x: 33.3333%; }
.witness-last-broadcast-guard, .witness-missing-signature-cashier,
.witness-white-envelope-reporter, .witness-lemons-courier { --x: 66.6667%; }
.witness-last-broadcast-reporter, .witness-platform-zero-station,
.witness-white-envelope-jury, .witness-lemons-kitchen { --x: 100%; }
.witness-missing-signature-registrar, .witness-missing-signature-buyer,
.witness-missing-signature-cashier, .witness-platform-zero-station { --y: 33.3333%; }
.witness-platform-zero-control, .witness-platform-zero-attendant,
.witness-white-envelope-reporter, .witness-white-envelope-jury { --y: 66.6667%; }
.witness-white-envelope-coordinator, .witness-lemons-producer,
.witness-lemons-courier, .witness-lemons-kitchen { --y: 100%; }

.invite-box {
  display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap;
  padding: 10px 13px; margin: 12px 0; border-radius: 7px; background: var(--teal-soft);
}
.invite-box > strong { margin-right: auto; font-size: 30px; letter-spacing: .16em; line-height: 1.2; }
.invite-field { margin-bottom: 18px; }
.invite-field input { font-size: 13px; }
.seat-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px;
  list-style: none; padding: 0; margin-bottom: 13px;
}
.seat {
  display: flex; align-items: center; gap: 8px; padding: 7px; min-width: 0;
  border: 1px solid var(--line); border-radius: 7px; font-size: 13px;
}
.seat span:not(.portrait):not(.waiting-avatar) { display: block; color: var(--quiet); font-size: 12px; }
.seat strong, .contact-list strong { overflow-wrap: anywhere; }
.waiting-avatar {
  display: grid; flex: 0 0 53px; place-items: center; height: 53px; border: 1px dashed #aca99d;
  border-radius: 6px; color: var(--quiet); font-size: 20px;
}
.team-progress h2 { font-size: 21px; }
.team-progress ul { display: grid; gap: 6px; list-style: none; padding: 0; }
.team-progress li {
  display: grid; align-items: center; grid-template-columns: auto 1fr auto; gap: 8px;
  font-size: 13px; overflow-wrap: anywhere;
}
.team-progress .portrait { width: 30px; border-radius: 4px; }
.team-progress .submitted { color: var(--teal); }
#reveal-countdown { margin-top: 9px; }

.investigation-scene {
  max-width: 680px; margin: 0 auto; padding: 0; overflow: hidden;
  border-radius: 12px;
}
.game-back-guided { max-width: 680px; margin-inline: auto; }
.scene-cover { overflow: hidden; }
.scene-cover .case-image { width: 100%; display: block; }
.scene-cover .case-image { transform: scale(1.065); }
[data-animate-scene] .scene-cover .case-image { animation: case-push-in .9s cubic-bezier(.23, 1, .32, 1) both; }
.scene-body { display: grid; gap: 14px; padding: clamp(16px, 4vw, 28px); }
.scene-heading h1 { margin: 3px 0 0; font-size: clamp(29px, 6.5vw, 45px); overflow-wrap: anywhere; }
.scene-heading h1:focus { outline: none; }
.scene-story { font-size: 16px; max-width: 58ch; }
.scene-person { display: flex; align-items: center; gap: 13px; }
.scene-person > div { min-width: 0; }
.scene-person .portrait { width: clamp(70px, 22vw, 105px); border-radius: 7px; }
.scene-person .muted { margin-top: 3px; }
.scene-lead { background: var(--gold-soft); border-color: #e3c790; }
.scene-lead h1 { font-size: clamp(26px, 6.5vw, 40px); }
.scene-prompt { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 5px 10px; }
.scene-prompt span, .scene-caption { color: var(--teal); font-size: 13px; font-weight: 680; }
.scene-body .question {
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
  width: 100%; min-height: 47px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--sheet); text-align: left; font-size: 14px;
}
.scene-body .question:hover { background: var(--teal-soft); border-color: var(--teal); }
.scene-body .question > span { flex: none; color: var(--teal); }
.scene-document {
  display: grid; gap: 7px; padding: 12px 14px; margin: 0; background: var(--teal-soft);
  border-radius: 7px; border-inline-start: 3px solid var(--teal); font-size: 16px; line-height: 1.55;
}
.scene-flashback {
  position: relative; margin: 0; overflow: hidden; border-radius: 7px;
  border: 1px solid var(--line); background: var(--navy);
}
.scene-flashback .case-image { display: block; width: 100%; height: auto; aspect-ratio: 3.7; object-fit: cover; }
.scene-flashback time {
  position: absolute; bottom: 7px; left: 8px; padding: 2px 6px;
  color: var(--gold); background: var(--navy); font-weight: 750; font-variant-numeric: tabular-nums;
}
.scene-folder {
  display: grid; align-items: center; position: relative; overflow: hidden; padding: 9px 9px 15px;
  min-height: 66px; border-radius: 7px; background: #785642;
}
.scene-folder::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 11px;
  background: #a87950; pointer-events: none;
}
.scene-folder > p { color: #fff3df; padding: 3px; }
.record-display, .linked-record { display: flex; align-items: start; gap: 10px; }
.record-display .scene-folder { flex: 1; min-width: 0; }
.record-art { display: block; width: clamp(66px, 21vw, 115px); aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.linked-record { align-items: center; }
.linked-record .record-art { width: 46px; }
.linked-record strong { display: block; margin-top: 2px; }
.evidence-video { display: grid; gap: 8px; }
.recording-player {
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--navy); border-radius: 7px; background: var(--navy);
}
.recording-player > * { grid-area: 1 / 1; }
.recording-player video, .recording-player img, .shared-frame img {
  display: block; width: 100%; aspect-ratio: 960 / 426; object-fit: contain;
}
.recording-play { z-index: 1; box-shadow: 0 2px 12px #0008; }
.recording-play span { margin-inline-end: 3px; }
.team-frames summary { cursor: pointer; font-weight: 720; }
.clip-question { margin-bottom: 6px; font-weight: 650; }
.frame-options, .marked-frame { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.frame-options .button { font-variant-numeric: tabular-nums; }
.frame-options .button[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); }
.marked-frame { margin-top: 8px; }
.marked-frame small { color: var(--teal); }
.team-frames { max-width: 680px; padding: 10px 12px; margin: 0 auto 10px; }
.shared-frame { margin-top: 8px; }
.shared-frame summary { font-size: 14px; }
.shared-frame img { margin: 6px 0 2px; border-radius: 5px; background: var(--navy); }
.scene-record-sheet {
  display: grid; gap: 5px; padding: 10px; border-radius: 4px; background: #ffe8b8; color: #272419;
}
.scene-stamp {
  justify-self: end; margin-top: 3px; padding: 2px 5px; border: 1px solid currentColor;
  color: #78342b; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-4deg);
}
[data-animate-scene].scene-witness .witness, [data-animate-scene].scene-statement .witness {
  animation: witness-arrive .26s cubic-bezier(.23, 1, .32, 1) both;
}
[data-animate-scene].scene-statement .scene-document, [data-animate-scene] .scene-flashback {
  animation: statement-arrive .21s cubic-bezier(.23, 1, .32, 1) both;
}
[data-animate-scene] .scene-record-sheet { animation: record-arrive .29s cubic-bezier(.23, 1, .32, 1) both; }
[data-animate-scene] .scene-stamp { animation: stamp-arrive .17s .15s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes case-push-in { from { transform: scale(1); } to { transform: scale(1.065); } }
@keyframes witness-arrive { from { opacity: .2; transform: translateX(-18px); } }
@keyframes statement-arrive { from { opacity: .2; transform: translateY(-8px); } }
@keyframes record-arrive { from { opacity: .25; transform: translateY(36px); } }
@keyframes stamp-arrive { from { opacity: 0; transform: scale(1.15) rotate(-4deg); } }
.scene-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
  border-top: 1px solid var(--line); padding-top: 12px;
}
.scene-actions .primary { flex: 1; }
.scene-secondary { justify-self: start; }
.scene-body .team-progress { padding: 13px; }
.scene-body .verdict-requirement { color: var(--teal); font-size: 13px; font-weight: 650; }

.evidence-grid, .result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.evidence-card {
  min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 7px;
  background: #f7f2e7;
}
.evidence-card .paper-icon { color: var(--teal); font-size: 22px; line-height: 1; display: inline-block; margin-bottom: 4px; }
.evidence-card p { margin: 5px 0 6px; color: var(--body); font-size: 13px; }
.evidence-opened { background: var(--teal-soft); border-color: #bccec8; }
.choices { display: grid; gap: 6px; }
.choice {
  display: grid; gap: 3px; width: 100%; text-align: left; min-height: 44px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); font-size: 14px;
}
.choice span { color: var(--body); }
.choice.theory-choice { grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 7px; }
.choice.scene-proof { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.choice .choice-mark { color: var(--teal); font-weight: 800; }
.choice:hover:not(:disabled) { border-color: var(--teal); }
.choice[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); box-shadow: inset 3px 0 var(--teal); }

.final-sheet .evidence-grid { margin-bottom: 19px; }
.final-sheet .record-art { width: 100%; max-height: 115px; aspect-ratio: 2 / 1; margin-bottom: 7px; }
.final-sheet[data-animate-scene] .evidence-card,
.final-sheet[data-animate-scene] .result-card {
  animation: card-arrive .26s var(--arrive-delay, 0ms) cubic-bezier(.23, 1, .32, 1) both;
}
.final-sheet .evidence-card:nth-child(2) { --arrive-delay: 70ms; }
.result-card {
  border: 1px solid var(--line); border-radius: 7px; background: #f7f3e7;
  --arrive-delay: 170ms;
}
.result-card:nth-child(2) { --arrive-delay: 230ms; }
.result-card:nth-child(3) { --arrive-delay: 290ms; }
.result-card:nth-child(4) { --arrive-delay: 350ms; }
.result-card summary {
  display: flex; align-items: center; gap: 8px; list-style: none; padding: 8px; min-height: 54px; cursor: pointer;
}
.result-card summary::-webkit-details-marker { display: none; }
.result-card summary::after { content: "+"; margin-left: auto; color: var(--teal); font-weight: 800; }
.result-card[open] summary::after { content: "−"; }
.result-card summary small { display: block; color: var(--body); line-height: 1.15; }
.result-card strong { overflow-wrap: anywhere; }
.result-card p, .result-card ul { margin: 0 10px 8px; font-size: 13px; }
.result-card[open] > p { animation: verdict-open .18s ease-out both; }
@keyframes verdict-open {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes card-arrive {
  from { opacity: .2; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-card .portrait { width: 43px; }
.next-panel form { gap: 8px; }

.profile-panel, .invite-list { max-width: 700px; margin-inline: auto; }
.profile-panel .stack, .profile-panel .actions { margin-top: 13px; }
.profile-group { margin-top: 16px; }
.profile-group h2 { font-size: 24px; }
.contact-list { display: grid; gap: 5px; padding: 0; list-style: none; }
.contact-list > li {
  display: flex; justify-content: space-between; align-items: center; gap: 7px;
  padding: 7px 9px; background: #f6f3eb; border-radius: 6px;
}
.contact-list > li span { display: block; color: var(--body); font-size: 12px; }
.secret-panel {
  padding: 10px; border: 1px solid var(--line); background: var(--gold-soft); border-radius: 6px;
}
.secret-panel summary { cursor: pointer; font-weight: 750; }
.secret-panel p { margin: 6px 0; font-size: 13px; }
.secret-panel input { font: 12px/1.2 monospace; }
.check-label { display: flex; align-items: start; gap: 8px; }
#home-invites:not(:empty), .profile-panel + .invite-list { margin-top: 14px; }

.notice {
  position: fixed; z-index: 4; right: 14px; bottom: 14px; max-width: min(420px, calc(100% - 28px));
  padding: 10px 14px; background: var(--navy); color: white; border: 1px solid #5a6970;
  border-radius: 7px; box-shadow: 0 5px 20px #14232c29; font-size: 14px;
}
.notice-error { background: #792f24; border-color: #b16454; }
.copy-scratch { position: fixed; inset: 0 auto auto -3000px; }

@media (max-width: 820px) {
  .hero { min-height: 350px; }
  .hero-copy { padding: 28px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 24px); }
  .site-header { min-height: 59px; }
  .brand { gap: 6px; }
  .brand-icon { width: 30px; height: 31px; font-size: 22px; border-radius: 6px; }
  .brand strong { font-size: 23px; }
  .brand small { font-size: 9px; }
  .site-nav { gap: 8px; }
  .site-nav > button { font-size: 11px; }
  .site-nav .nav-cases { display: none; }
  .locale { padding: 2px; }
  .locale button { min-height: 28px; padding: 2px 5px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { order: -1; margin: 0; min-height: clamp(150px, 52vw, 275px); }
  .hero-art::after { background: linear-gradient(0deg, var(--navy), #14232c15 28%, transparent 55%); }
  .hero-art img { object-position: center 53%; }
  .hero-copy { padding: 1px 16px 16px; margin-top: -10px; }
  .hero h1 { font-size: clamp(61px, 17vw, 91px); margin: 4px 0 7px; }
  .hero .eyebrow { font-size: 10px; }
  .hero-description { font-size: 14px; }
  .hero-actions { margin-top: 12px; }
  .hero-links { margin-top: 4px; }
  .section { margin-top: 23px; }
  .section-heading { margin-bottom: 9px; }
  .case-grid { gap: 8px; }
  .case-card-copy { padding: 8px; }
  .case-card-copy .eyebrow { font-size: 9px; letter-spacing: .055em; }
  .case-card h3 { font-size: 18px; }
  .case-card-copy > p:last-child { font-size: 12px; }
  .studio-note { grid-template-columns: 1fr; gap: 7px; padding-top: 14px; }
  .site-footer { margin-top: 16px; }
  .entry, .case-detail, .game-layout, .game-header { grid-template-columns: 1fr; }
  .entry-art, .case-detail > .case-image { order: -1; min-height: 0; }
  .entry-art img, .case-detail > .case-image { height: auto; max-height: 195px; }
  .case-detail > .case-image { border-radius: 9px 9px 0 0; }
  .detail-panel { border-radius: 0 0 9px 9px; }
  .game-layout { gap: 9px; }
  .game-header .case-image { order: -1; height: auto; max-height: 122px; object-position: 50% 48%; }
  .game-header > div { padding: 13px; }
  .game-header h1 { font-size: 32px; }
  .game-header p:not(.eyebrow) { font-size: 13px; }
  .case-brief .case-image { max-height: 127px; }
  .seat { gap: 5px; padding: 5px; }
  .seat .portrait, .waiting-avatar { width: 39px; height: 39px; flex-basis: 39px; }
}
@media (max-width: 360px) {
  .brand small { display: none; }
  .evidence-grid, .result-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
