:root {
  --ld-ink: #152038;
  --ld-muted: #596477;
  --ld-paper: #f4f0e8;
  --ld-card: #fffdf8;
  --ld-line: #d9d5ca;
  --ld-navy: #18243d;
  --ld-burgundy: #8e3f43;
  --ld-brass: #c08a34;
  --ld-blue: #345af5;
  --ld-green: #267a5b;
  --ld-red: #b94349;
  color-scheme: light;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
.game-site-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 22px 16px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(21,32,56,.14); font-size: .72rem; }
.game-site-links a { color: inherit; font-weight: 750; opacity: .72; text-decoration: none; }
.game-site-links a:hover, .game-site-links a:focus-visible { opacity: 1; }
html { min-width: 300px; background: var(--ld-paper); }
body {
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 92% 6%, rgba(192, 138, 52, 0.18), transparent 27rem),
    radial-gradient(circle at 4% 92%, rgba(142, 63, 67, 0.12), transparent 25rem),
    linear-gradient(rgba(24, 36, 61, 0.025) 1px, transparent 1px),
    var(--ld-paper);
  background-size: auto, auto, 100% 26px, auto;
  color: var(--ld-ink);
  text-rendering: optimizeLegibility;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ld-blue); outline-offset: 3px; }
.ld-visually-hidden { position: fixed; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.ld-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid rgba(21, 32, 56, 0.14);
  background: rgba(244, 240, 232, 0.91);
  backdrop-filter: blur(16px);
}
.ld-brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-size: .92rem; font-weight: 950; letter-spacing: -.04em; }
.ld-brand-mark { position: relative; display: inline-block; width: 30px; height: 30px; overflow: hidden; border-radius: 9px; background: var(--ld-navy); }
.ld-brand-mark::after { position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: rgba(255,255,255,.28); content: ""; }
.ld-brand-mark i { position: absolute; width: 8px; height: 8px; border-radius: 50%; }
.ld-brand-mark i:first-child { top: 5px; left: 7px; background: #e5866e; }
.ld-brand-mark i:last-child { right: 7px; bottom: 5px; background: #d5b25a; }
.ld-header-actions { display: flex; align-items: center; gap: 18px; }
.ld-header-actions > a { display: inline-flex; min-height: 44px; align-items: center; font-size: .82rem; font-weight: 850; }
.ld-icon-button { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid rgba(21,32,56,.2); border-radius: 12px; background: rgba(255,255,255,.76); cursor: pointer; font-size: .78rem; font-weight: 850; }

.ld-page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: clamp(24px, 4vw, 52px) 0 max(42px, env(safe-area-inset-bottom)); }
.ld-eyebrow { margin: 0 0 10px; color: #596378; font-family: "SFMono-Regular", Consolas, monospace; font-size: .71rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.ld-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ld-start-copy h1 { max-width: 700px; margin: 0; font-size: clamp(3.6rem, 9vw, 8rem); font-weight: 950; letter-spacing: -.09em; line-height: .88; }
.ld-lead { max-width: 680px; margin: 28px 0 0; color: #3f4b61; font-size: clamp(1.04rem, 1.6vw, 1.24rem); line-height: 1.78; word-break: keep-all; }
.ld-identity-note { display: inline-flex; margin: 18px 0 0; padding: 8px 11px; border: 1px solid rgba(142,63,67,.2); border-radius: 8px; background: rgba(255,253,248,.68); color: #704449; font-size: .78rem; font-weight: 800; }
.ld-start-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ld-action { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 16px; padding: 12px 18px; border: 1px solid var(--ld-navy); border-radius: 12px; cursor: pointer; font-weight: 900; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.ld-action:hover:not(:disabled), .ld-action:focus-visible:not(:disabled) { transform: translateY(-2px); }
.ld-action:disabled { cursor: not-allowed; opacity: .48; }
.ld-action-primary { background: var(--ld-navy); color: white; }
.ld-action-primary:hover:not(:disabled) { background: #26344f; }
.ld-action-secondary { background: var(--ld-card); color: var(--ld-navy); }
.ld-action-ghost { width: 100%; border-color: transparent; background: transparent; color: var(--ld-muted); }
.ld-best-card { display: grid; min-width: 168px; min-height: 52px; align-content: center; padding: 7px 13px; border-left: 1px solid var(--ld-line); }
.ld-best-card span { color: var(--ld-muted); font-size: .68rem; font-weight: 750; }
.ld-best-card strong { font-size: .94rem; }
.ld-storage-note { margin: 16px 0 0; color: var(--ld-muted); font-size: .73rem; }

.ld-demo { position: relative; min-height: 470px; padding: 24px; overflow: hidden; border: 1px solid rgba(21,32,56,.18); border-radius: 26px; background: linear-gradient(145deg, #26334c, #121c31); box-shadow: 0 24px 60px rgba(21,32,56,.2); color: white; }
.ld-demo::before, .ld-demo::after { position: absolute; border: 1px solid rgba(255,255,255,.09); content: ""; }
.ld-demo::before { inset: 72px 16px 150px; transform: rotate(-2deg); }
.ld-demo::after { top: 44px; right: 28px; width: 70px; height: 1px; border-width: 1px 0 0; background: var(--ld-brass); }
.ld-demo-topline { display: flex; align-items: center; justify-content: space-between; color: #d8deea; font-family: "SFMono-Regular", Consolas, monospace; font-size: .68rem; letter-spacing: .1em; }
.ld-demo-topline b { padding: 6px 8px; border-radius: 999px; background: #f0d18c; color: #18243d; font-size: .62rem; }
.ld-demo-people { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 30px; }
.ld-demo-people > div { position: relative; min-width: 0; padding: 8px 8px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.06); text-align: center; }
.ld-demo-people > div.is-liar { border-color: #e0b45f; box-shadow: inset 0 0 0 2px rgba(224,180,95,.22); }
.ld-demo-people > div.is-liar::after { position: absolute; top: 7px; right: 7px; padding: 3px 5px; border-radius: 5px; background: #e0b45f; color: #18243d; content: "정답"; font-size: .56rem; font-weight: 950; }
.ld-demo-portrait { display: block; width: 100%; aspect-ratio: 3 / 4; background-image: url("suspects-sheet.png"); background-repeat: no-repeat; background-size: 400% 200%; }
.ld-portrait-1 { background-position: 0 0; }
.ld-portrait-2 { background-position: 33.333% 0; }
.ld-portrait-3 { background-position: 66.667% 0; }
.ld-demo-people span { font-size: .72rem; font-weight: 850; }
.ld-demo-statements { position: relative; z-index: 1; display: grid; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.ld-demo-statements li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 38px; padding: 7px 9px; border-left: 3px solid rgba(240,209,140,.62); background: rgba(255,255,255,.07); }
.ld-demo-statements b { color: #f0d18c; font-size: .68rem; }
.ld-demo-statements q { min-width: 0; color: #f5f7fb; font-size: .72rem; font-style: normal; line-height: 1.4; word-break: keep-all; }
.ld-demo-statements em { padding: 3px 5px; border-radius: 5px; background: rgba(93,181,139,.18); color: #9fe0be; font-size: .58rem; font-style: normal; font-weight: 950; }
.ld-demo-statements li:nth-child(2) em { background: rgba(224,99,105,.18); color: #ffb7ba; }
.ld-demo > p { position: relative; z-index: 1; margin: 18px 0 0; color: #c9d0dc; font-size: .8rem; line-height: 1.65; }
.ld-demo > p strong { color: #f0d18c; }

.ld-how { grid-column: 1 / -1; display: grid; margin: 8px 0 0; padding: 0; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ld-line); border-left: 1px solid var(--ld-line); list-style: none; }
.ld-how li { display: flex; min-height: 102px; align-items: center; gap: 15px; padding: 18px; border-right: 1px solid var(--ld-line); border-bottom: 1px solid var(--ld-line); background: rgba(255,253,248,.42); }
.ld-how li > b { color: var(--ld-burgundy); font-family: "SFMono-Regular", Consolas, monospace; font-size: .75rem; }
.ld-how span { display: grid; gap: 4px; }
.ld-how strong { font-size: .9rem; }
.ld-how small { color: var(--ld-muted); font-size: .72rem; line-height: 1.45; }

.ld-game { width: min(100%, 1180px); margin: 0 auto; }
.ld-game-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.ld-game-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.065em; }
.ld-hud { display: flex; margin: 0; border: 1px solid var(--ld-line); border-radius: 14px; background: rgba(255,253,248,.78); }
.ld-hud > div { min-width: 95px; padding: 9px 12px; border-right: 1px solid var(--ld-line); }
.ld-hud > div:last-child { border-right: 0; }
.ld-hud dt { color: var(--ld-muted); font-size: .65rem; font-weight: 800; }
.ld-hud dd { margin: 3px 0 0; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.ld-hud dd b { font-size: 1.06rem; }
.ld-case-file { position: relative; min-height: 690px; overflow: hidden; border: 1px solid rgba(21,32,56,.16); border-radius: 28px; background: var(--ld-card); box-shadow: 0 24px 60px rgba(21,32,56,.1); }
.ld-case-file::before { position: absolute; top: 0; bottom: 0; left: 44px; width: 1px; background: rgba(185,67,73,.16); content: ""; pointer-events: none; }
.ld-stage-intro { position: absolute; z-index: 12; inset: 0; display: grid; place-content: center; background: rgba(21,32,56,.96); color: white; text-align: center; transition: opacity 300ms ease, visibility 300ms ease; }
.ld-stage-intro.is-hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.ld-stage-intro > span { color: #e4bf75; font-family: "SFMono-Regular", Consolas, monospace; font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.ld-stage-intro strong { margin-top: 10px; font-size: clamp(3.6rem, 9vw, 7rem); line-height: 1; }
.ld-stage-intro p { margin: 14px 0 0; color: #cbd2df; }
.ld-investigation, .ld-review { min-height: 690px; padding: clamp(20px, 3.2vw, 38px); }
.ld-case-rule { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid rgba(192,138,52,.36); border-radius: 13px; background: #fff8e9; }
.ld-case-rule > div { display: grid; gap: 3px; }
.ld-case-rule span { color: #7b5b27; font-size: .66rem; font-weight: 850; }
.ld-case-rule strong { font-size: .83rem; }
.ld-case-rule > span { flex: none; font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.ld-timer { height: 5px; margin: 12px 0 22px; overflow: hidden; border-radius: 999px; background: #ece8df; }
.ld-timer i { display: block; width: 100%; height: 100%; transform-origin: left; background: var(--ld-brass); }
.ld-clock-urgent { color: var(--ld-red); }
.ld-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: 18px; }
.ld-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.ld-section-heading h3 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: -.04em; }
.ld-section-heading > p { max-width: 220px; margin: 0; color: var(--ld-muted); font-size: .72rem; text-align: right; }
.ld-suspect-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.ld-suspect { position: relative; display: grid; min-width: 0; min-height: 264px; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; border: 1px solid var(--ld-line); border-radius: 16px; background: #fffefb; cursor: pointer; text-align: left; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.ld-suspect:hover { transform: translateY(-2px); border-color: #a7afbd; }
.ld-suspect[aria-checked="true"] { border-color: var(--ld-blue); box-shadow: inset 0 0 0 2px rgba(52,90,245,.16), 0 9px 22px rgba(34,51,86,.11); }
.ld-suspect[aria-checked="true"]::after { position: absolute; top: 8px; right: 8px; padding: 5px 7px; border-radius: 7px; background: var(--ld-blue); color: white; content: "범인으로 지목"; font-size: .58rem; font-weight: 950; }
.ld-suspect-top { display: grid; grid-template-columns: 82px 1fr; align-items: end; min-height: 116px; border-bottom: 1px solid var(--ld-line); background: linear-gradient(150deg, #edf0f5, #dce2eb); }
.ld-portrait { position: relative; z-index: 0; isolation: isolate; display: block; width: 82px; aspect-ratio: 3 / 4; align-self: end; background-image: url("suspects-sheet.png"); background-repeat: no-repeat; background-size: 400% 200%; }
.ld-portrait::before { position: absolute; z-index: -1; inset: 12%; display: grid; place-items: center; border-radius: 40% 40% 28% 28%; background: var(--fallback-color, #d8deea); color: var(--ld-ink); content: attr(data-fallback); font-size: 2rem; font-weight: 950; }
.ld-suspect-id { display: grid; gap: 3px; padding: 12px 10px 13px; }
.ld-suspect-id span { color: var(--ld-muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .6rem; font-weight: 850; letter-spacing: .08em; }
.ld-suspect-id strong { font-size: 1.05rem; }
.ld-statement { display: grid; align-content: start; gap: 6px; padding: 14px; }
.ld-statement span { color: var(--ld-burgundy); font-size: .62rem; font-weight: 950; }
.ld-statement q { color: #303b50; font-size: .84rem; font-style: normal; font-weight: 760; line-height: 1.55; word-break: keep-all; }
.ld-notebook { min-width: 0; padding: 17px; border: 1px solid #c9c3b6; border-radius: 16px; background: #f0eadc; box-shadow: inset 0 0 0 4px rgba(255,255,255,.28); }
.ld-notebook-heading { padding-bottom: 12px; border-bottom: 1px solid #ccc4b4; }
.ld-notebook-heading span { color: #7b6849; font-family: "SFMono-Regular", Consolas, monospace; font-size: .6rem; font-weight: 900; letter-spacing: .1em; }
.ld-notebook-heading h3 { margin: 5px 0 0; font-size: 1.04rem; }
.ld-notebook > p { margin: 11px 0; color: #625a4f; font-size: .7rem; line-height: 1.55; }
.ld-note-list { display: grid; gap: 7px; }
.ld-note-button { display: grid; width: 100%; min-height: 43px; grid-template-columns: 24px 1fr auto; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(66,59,50,.14); border-radius: 9px; background: rgba(255,255,255,.48); cursor: pointer; text-align: left; }
.ld-note-button b { font-size: .68rem; }
.ld-note-button span { overflow: hidden; color: #625b51; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.ld-note-button em { color: #675f53; font-size: .61rem; font-style: normal; font-weight: 900; }
.ld-note-button[data-note="truth"] em { color: var(--ld-green); }
.ld-note-button[data-note="lie"] em { color: var(--ld-red); }
.ld-note-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: #675f53; font-size: .58rem; font-weight: 800; }
.ld-submit-bar { position: sticky; z-index: 5; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 13px 14px 13px 17px; border: 1px solid rgba(21,32,56,.18); border-radius: 16px; background: rgba(255,253,248,.94); box-shadow: 0 12px 28px rgba(21,32,56,.13); backdrop-filter: blur(14px); }
.ld-submit-bar > div { display: grid; gap: 3px; }
.ld-submit-bar span { color: var(--ld-muted); font-size: .64rem; font-weight: 800; }
.ld-submit-bar strong { font-size: .86rem; }
.ld-submit-bar .ld-action { min-width: 220px; }

.ld-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ld-review-heading h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.05em; }
.ld-review-badge { padding: 9px 12px; border-radius: 9px; background: #e4f3ec; color: var(--ld-green); font-size: .72rem; font-weight: 950; }
.ld-review-badge.is-failure { background: #f8e6e5; color: var(--ld-red); }
.ld-review-compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.ld-review-compare > div { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--ld-line); border-radius: 12px; background: #faf8f2; }
.ld-review-compare span { color: var(--ld-muted); font-size: .65rem; font-weight: 800; }
.ld-review-compare strong { font-size: 1.1rem; }
.ld-review-summary { margin: 16px 0 0; padding: 15px 17px; border-left: 4px solid var(--ld-brass); background: #fff8e9; color: #3c4658; line-height: 1.65; word-break: keep-all; }
.ld-review-statements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.ld-review-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--ld-line); border-radius: 11px; }
.ld-review-row > b { font-size: .72rem; }
.ld-review-row > span { min-width: 0; color: #485267; font-size: .72rem; line-height: 1.45; }
.ld-truth-label { padding: 4px 6px; border-radius: 6px; background: #e4f3ec; color: var(--ld-green); font-size: .62rem; font-weight: 950; }
.ld-truth-label.is-lie { background: #f8e6e5; color: var(--ld-red); }
.ld-other-candidates { margin-top: 16px; border: 1px solid var(--ld-line); border-radius: 12px; background: #faf8f2; }
.ld-other-candidates summary { min-height: 48px; padding: 14px; cursor: pointer; font-size: .77rem; font-weight: 900; }
.ld-other-candidates > div { display: grid; gap: 7px; padding: 0 14px 14px; }
.ld-candidate-reason { margin: 0; padding-top: 8px; border-top: 1px solid var(--ld-line); color: var(--ld-muted); font-size: .7rem; line-height: 1.5; }
.ld-review > .ld-action { min-width: 210px; margin-top: 18px; }

.ld-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 18px; background: rgba(10,17,30,.72); backdrop-filter: blur(12px); }
.ld-modal { width: min(430px, 100%); padding: 30px; border: 1px solid rgba(255,255,255,.5); border-radius: 22px; background: var(--ld-card); box-shadow: 0 28px 80px rgba(0,0,0,.3); text-align: center; }
.ld-modal-mark { display: grid; width: 52px; height: 52px; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: var(--ld-navy); color: white; font-weight: 950; }
.ld-modal h2 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.6rem); letter-spacing: -.06em; }
.ld-modal > p:not(.ld-eyebrow, .ld-modal-mark, .ld-new-best) { color: var(--ld-muted); line-height: 1.65; }
.ld-modal .ld-action { width: 100%; margin-top: 9px; }
.ld-result-stage { display: flex; align-items: end; justify-content: center; gap: 7px; margin: 22px 0 8px; }
.ld-result-stage strong { font-size: 5.2rem; letter-spacing: -.08em; line-height: .8; }
.ld-result-stage span { font-weight: 900; }
.ld-result dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 22px 0; }
.ld-result dl > div { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: #f0ede6; }
.ld-result dt { color: var(--ld-muted); font-size: .65rem; }
.ld-result dd { margin: 0; font-size: .82rem; font-weight: 900; }
.ld-new-best { display: inline-flex; margin: 0 0 8px; padding: 6px 9px; border-radius: 999px; background: #fff0c8; color: #79571c; font-size: .68rem; font-weight: 950; }

@media (max-width: 900px) {
  .ld-start { grid-template-columns: 1fr; }
  .ld-demo { min-height: 430px; }
  .ld-game-heading { align-items: stretch; flex-direction: column; }
  .ld-hud { width: 100%; }
  .ld-hud > div { min-width: 0; flex: 1; }
  .ld-workspace { grid-template-columns: 1fr; }
  .ld-notebook { order: 2; }
}

@media (max-width: 680px) {
  .ld-header { min-height: 62px; padding: 8px 14px; }
  .ld-header-actions > a { display: none; }
  .ld-page { width: min(100% - 16px, 620px); padding-top: 18px; }
  .ld-start-copy h1 { font-size: clamp(3.5rem, 21vw, 6.4rem); }
  .ld-start-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ld-start-actions .ld-action-primary { grid-column: 1 / -1; }
  .ld-best-card { min-width: 0; border-left: 0; padding-left: 2px; }
  .ld-demo { min-height: 390px; padding: 17px; border-radius: 20px; }
  .ld-how { grid-template-columns: 1fr; }
  .ld-how li { min-height: 82px; }
  .ld-hud { display: grid; grid-template-columns: repeat(4, 1fr); }
  .ld-hud > div { padding: 8px 7px; }
  .ld-hud dt { font-size: .58rem; }
  .ld-hud dd { font-size: .67rem; }
  .ld-case-file { min-height: 660px; border-radius: 20px; }
  .ld-case-file::before { left: 24px; }
  .ld-investigation, .ld-review { min-height: 660px; padding: 14px; }
  .ld-case-rule { align-items: flex-start; padding: 11px; }
  .ld-case-rule strong { font-size: .72rem; line-height: 1.4; }
  .ld-case-rule > span { font-size: .56rem; }
  .ld-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .ld-section-heading > p { text-align: left; }
  .ld-suspect-list { grid-template-columns: 1fr; }
  .ld-suspect { min-height: 126px; grid-template-columns: 88px 1fr; grid-template-rows: none; }
  .ld-suspect-top { grid-template-columns: 88px; min-height: 126px; align-items: stretch; border-right: 1px solid var(--ld-line); border-bottom: 0; }
  .ld-portrait { width: 88px; grid-row: 1 / 3; }
  .ld-suspect-id { position: absolute; z-index: 2; bottom: 5px; left: 5px; padding: 5px 7px; border-radius: 7px; background: rgba(21,32,56,.88); color: white; }
  .ld-suspect-id span { color: #d9deea; }
  .ld-statement { align-content: center; padding: 14px; }
  .ld-notebook { padding: 14px; }
  .ld-submit-bar { bottom: max(8px, env(safe-area-inset-bottom)); align-items: stretch; flex-direction: column; gap: 9px; }
  .ld-submit-bar .ld-action { width: 100%; min-width: 0; }
  .ld-review-statements { grid-template-columns: 1fr; }
  .ld-review-compare { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .ld-start-actions { grid-template-columns: 1fr; }
  .ld-start-actions .ld-action-primary { grid-column: auto; }
  .ld-hud { grid-template-columns: repeat(2, 1fr); }
  .ld-hud > div:nth-child(2) { border-right: 0; }
  .ld-hud > div:nth-child(-n+2) { border-bottom: 1px solid var(--ld-line); }
  .ld-demo-people { gap: 4px; }
  .ld-demo-people > div { padding-inline: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
