/* 라이어 게임 — 취조실의 기밀 봉투. 토큰은 review/design.md */
:root {
  --wall: #23443d;     /* 취조실 벽 */
  --wall-d: #152b26;
  --wall-l: #2f5a50;
  --manila: #d8b46f;   /* 서류 봉투 */
  --manila-l: #e7cb8f;
  --manila-d: #a78343;
  --paper: #f4ecd8;
  --stamp: #d22b30;    /* 빨간 도장 = 라이어 */
  --lamp: #ffe3a1;
  --ink: #1f1b14;
  --mute: #a8c3bb;
  --display: 'Black Han Sans', 'Apple SD Gothic Neo', sans-serif;
  --ui: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0; color: var(--paper); font: 500 15px/1.5 var(--ui); word-break: keep-all; overflow-x: hidden;
  background: var(--wall) repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 94px, rgba(0, 0, 0, .13) 94px 96px, rgba(255, 255, 255, .03) 96px 97px);
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── 봉투 ───────── */
.env { --w: 220px; --h: 142px; position: relative; width: var(--w); height: var(--h); perspective: 900px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.env > div { position: absolute; border-radius: 5px; }
.env-back { inset: 0; z-index: 0; background: var(--manila-d); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .55); }
.env-card {
  left: 6%; right: 6%; bottom: 5%; height: 94%; z-index: 2; padding: 9% 6% 0; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12); transform: translateY(0); transition: transform .38s cubic-bezier(.3, 1.25, .5, 1);
  background-image: repeating-linear-gradient(transparent 0 23px, rgba(31, 27, 20, .07) 23px 24px);
}
.env-front {
  inset: 0; z-index: 3; background: var(--manila);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .06));
}
.env-flap {
  left: 0; right: 0; top: 0; height: 58%; z-index: 4; background: var(--manila-l);
  clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0;
  transition: transform .3s ease-in, z-index 0s .16s;
}
.env.open .env-flap { transform: rotateX(180deg); z-index: 1; transition: transform .3s ease-out, z-index 0s .1s; }
.env.open .env-card { transform: translateY(-74%); transition-delay: .12s; }
.env-label {
  position: absolute; right: 8%; bottom: 12%; padding: 2px 9px; border: 2.5px solid var(--stamp); border-radius: 3px;
  color: var(--stamp); font: 400 calc(var(--w) * .07)/1.1 var(--display); transform: rotate(-7deg); opacity: .85;
}
.card-topic { margin: 0; font-size: calc(var(--w) * .052); font-weight: 800; color: #6b6150; }
.card-word { margin: 0; font: 400 calc(var(--w) * .15)/1.12 var(--display); color: var(--ink); max-width: 100%; }
.card-stamp {
  display: none; margin: 4px 0 0; padding: 2px 12px 0; border: calc(var(--w) * .014) solid var(--stamp); border-radius: 4px;
  color: var(--stamp); font: 400 calc(var(--w) * .13)/1.15 var(--display); transform: rotate(-8deg);
  -webkit-mask: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .75) 61%) 0 0 / 9px 9px; mask: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .75) 61%) 0 0 / 9px 9px;
}
.card-note { margin: 6px 0 0; font-size: calc(var(--w) * .043); font-weight: 700; color: #6b6150; line-height: 1.4; }
.card-note:empty { display: none; }
.env-card.is-liar .card-word { display: none; }
.env-card.is-liar .card-stamp { display: inline-block; }

/* ───────── 설정 화면 ───────── */
.setup { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.top { position: absolute; z-index: 5; top: calc(env(safe-area-inset-top) + 12px); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.logo {
  pointer-events: auto; text-decoration: none; color: var(--ink); background: var(--manila);
  font: 400 17px/1 var(--display); padding: 7px 9px 6px; border-radius: 3px; box-shadow: 0 3px 0 var(--manila-d);
}
.sound { pointer-events: auto; height: 32px; padding: 0 11px; border-radius: 3px; border: 1.5px solid rgba(244, 236, 216, .35); background: rgba(0, 0, 0, .2); color: var(--paper); font-size: 12.5px; font-weight: 700; }
.sound[aria-pressed="false"] { color: var(--mute); text-decoration: line-through; }

.room { position: relative; height: clamp(270px, 39svh, 380px); display: grid; place-items: end center; padding-bottom: 26px; overflow: hidden; }
.lamp { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 46% 88% at 50% 0%, rgba(255, 227, 161, .34), rgba(255, 227, 161, .08) 55%, transparent 75%); }
.lamp::before { content: ''; position: absolute; left: 50%; top: -6px; width: 96px; height: 34px; transform: translateX(-50%); background: #10201c; clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.lamp::after { content: ''; position: absolute; left: 50%; top: 24px; width: 46px; height: 14px; transform: translateX(-50%); border-radius: 0 0 50% 50%; background: var(--lamp); box-shadow: 0 0 40px 14px rgba(255, 227, 161, .45); }
.room::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: #1a332d; border-top: 2px solid #10201c; }
.env.demo { --w: 200px; --h: 130px; z-index: 1; margin-bottom: 4px; transform: rotate(-3deg); }

.panel { width: 100%; max-width: 560px; margin: 0 auto; padding: 22px 16px 0; }
.title { margin: 0; font: 400 46px/1.05 var(--display); color: var(--paper); letter-spacing: -.01em; }
.lede { margin: 10px 0 18px; color: var(--mute); font-size: 14.5px; line-height: 1.6; }
.group { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.sub { font-size: 12.5px; font-weight: 500; color: var(--mute); margin-left: 4px; }

/* 서류철 탭 모양 주제 */
.tabs { display: flex; flex-wrap: wrap; gap: 6px 6px; }
.tabs button {
  position: relative; min-height: 40px; padding: 8px 14px 7px; border: 0; border-radius: 8px 8px 2px 2px;
  background: var(--wall-l); color: var(--paper); font-weight: 800; font-size: 15px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.tabs button[aria-checked="true"] { background: var(--manila); color: var(--ink); box-shadow: inset 0 -3px 0 var(--manila-d); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--wall-d); }
.stepper output { display: grid; place-items: center; font: 400 22px/1 var(--display); }
.step { border: 0; background: var(--wall-l); color: var(--paper); font-size: 22px; font-weight: 700; }
.step:disabled { opacity: .35; cursor: default; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-radius: 6px; overflow: hidden; background: var(--wall-d); gap: 2px; padding: 2px; }
.seg button { border: 0; border-radius: 4px; background: transparent; color: var(--paper); min-height: 40px; padding: 6px 4px; font-weight: 800; font-size: 15px; }
.seg button[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.seg button:disabled { opacity: .35; cursor: default; }
.seg.wide button { display: grid; gap: 1px; text-align: left; padding: 9px 12px; }
.seg.wide span { font-size: 12px; font-weight: 600; opacity: .75; }
.names { margin: -2px 0 16px; }
.names summary { cursor: pointer; font-size: 14px; font-weight: 800; padding: 6px 0; list-style-position: inside; }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.name-grid input { width: 100%; height: 40px; border: 0; border-radius: 4px; padding: 0 10px; background: var(--paper); color: var(--ink); font-weight: 700; }
.start-bar { position: sticky; bottom: 0; z-index: 4; margin: 6px -16px 0; padding: 14px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(35, 68, 61, 0), var(--wall) 30%); }
.go {
  display: block; width: 100%; height: 58px; border: 0; border-radius: 8px; background: var(--stamp); color: var(--paper);
  font: 400 23px/1 var(--display); box-shadow: 0 5px 0 #8e1a1e; transition: transform .08s, box-shadow .08s, opacity .2s;
}
.go:active { transform: translateY(3px); box-shadow: 0 2px 0 #8e1a1e; }
.go:disabled { opacity: .35; cursor: default; transform: none; }
.ghost { display: block; width: 100%; height: 50px; border: 2px solid rgba(244, 236, 216, .5); border-radius: 8px; background: transparent; color: var(--paper); font-weight: 800; font-size: 16px; }
.link { border: 0; background: none; color: inherit; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 10px; opacity: .8; }
.list-link { display: block; text-align: center; padding: 6px 0 28px; color: var(--mute); font-size: 13.5px; font-weight: 700; text-underline-offset: 3px; }

@media (min-width: 980px) {
  .setup { grid-template-columns: minmax(0, 1.2fr) minmax(440px, 1fr); grid-template-rows: 1fr; min-height: 100vh; }
  .room { height: 100vh; position: sticky; top: 0; place-items: center; padding-bottom: 0; }
  .room::after { height: 22%; }
  .env.demo { --w: 380px; --h: 246px; margin-top: 18vh; }
  .lamp::before { width: 150px; height: 50px; }
  .lamp::after { top: 40px; width: 70px; height: 20px; }
  .panel { padding: 76px 36px 0; max-width: 600px; margin: 0; }
  .title { font-size: 60px; }
  .start-bar { margin: 6px -36px 0; padding-left: 36px; padding-right: 36px; }
}

/* ───────── 게임 화면 ───────── */
body:not([data-screen="setup"]) { overflow: hidden; }
body:not([data-screen="setup"]) .setup, body:not([data-screen="setup"]) .guide { display: none; }
.screen {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 18px);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--wall) repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 94px, rgba(0, 0, 0, .13) 94px 96px);
}
.screen::before, .screen::after { content: ''; flex: 1 0 0; }
.screen > * { flex-shrink: 0; }
.screen .pin, .reveal #toResult, .vote .vote-go {
  position: sticky; bottom: calc(env(safe-area-inset-bottom) + 10px); z-index: 3;
  box-shadow: 0 5px 0 #8e1a1e, 0 -14px 26px 4px rgba(21, 43, 38, .85);
}
.screen > .go, .screen > .ghost { max-width: 420px; }
.tag { margin: 0 0 10px; padding: 4px 10px; border-radius: 3px; background: rgba(0, 0, 0, .28); color: var(--mute); font-size: 13px; font-weight: 800; }

.handoff { background: var(--wall-d); }
.hand-to { margin: 18px 0 6px; font-size: 17px; font-weight: 700; color: var(--mute); }
.hand-name {
  margin: 0 0 14px; padding: 14px 26px 8px; background: var(--manila); color: var(--ink); border-radius: 4px;
  font: 400 clamp(46px, 15vw, 96px)/1.05 var(--display); transform: rotate(-2deg); box-shadow: 0 8px 0 var(--manila-d);
  max-width: 92vw; overflow-wrap: anywhere;
}
.hand-sub { margin: 10px 0 30px; font-weight: 700; color: var(--mute); }
.handoff .go { margin-bottom: 8px; }

.peek { gap: 0; background-image: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(255, 227, 161, var(--glow, .1)), transparent 70%), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 94px, rgba(0, 0, 0, .13) 94px 96px); }
.peek.holding { --glow: .3; }
.peek-help { margin: 0; font-size: 15px; font-weight: 700; color: var(--mute); }
.env.big { --w: min(86vw, 440px, calc((100svh - 260px) / 1.2)); --h: calc(var(--w) * .66); margin: calc(var(--h) * .74 + 8px) 0 30px; cursor: grab; }
.env.big:active { cursor: grabbing; }
.peek .go { margin-bottom: 4px; }

.peek.seen .peek-help { color: var(--paper); }

.talk-title { margin: 6px 0 4px; font: 400 32px/1.15 var(--display); }
.talk-order { margin: 0 0 18px; font-size: 17px; font-weight: 700; color: var(--lamp); }
.clock { position: relative; width: min(64vw, 300px); aspect-ratio: 1; margin-bottom: 18px; }
.clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clock-bg { fill: rgba(0, 0, 0, .22); stroke: rgba(244, 236, 216, .12); stroke-width: 14; }
.clock-arc { fill: none; stroke: var(--manila); stroke-width: 14; stroke-linecap: butt; stroke-dasharray: 553; stroke-dashoffset: 0; }
.clock.hurry .clock-arc { stroke: var(--stamp); }
.clock-num { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: 400 clamp(52px, 17vw, 84px)/1 var(--display); font-variant-numeric: tabular-nums; }
.clock.hurry .clock-num { color: #ff8d8f; animation: beat 1s infinite; }
@keyframes beat { 15% { transform: scale(1.06); } }
.talk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; margin-bottom: 12px; }

.vote-title { margin: 0; font: 400 40px/1.1 var(--display); }
.vote-sub { margin: 8px 0 18px; color: var(--mute); font-weight: 700; max-width: 26em; }
.suspects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px 10px; width: 100%; max-width: 640px; }
.suspect {
  position: relative; width: 100%; aspect-ratio: 1 / .78; border: 0; padding: 18% 6% 6%; border-radius: 0 6px 6px 6px; background: var(--manila); color: var(--ink);
  font: 400 clamp(18px, 5vw, 26px)/1.1 var(--display); box-shadow: 0 5px 0 var(--manila-d); overflow: visible;
}
.suspect::before { content: ''; position: absolute; left: 0; top: -9px; width: 44%; height: 12px; background: var(--manila); border-radius: 5px 5px 0 0; }
.suspect small { display: block; margin-top: 4px; font: 700 12px/1 var(--ui); color: #6b5a35; }
.suspect span.nm { display: block; overflow-wrap: anywhere; }
.vote .suspect:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--manila-d); }
.suspect .mark {
  position: absolute; left: 50%; top: 84%; transform: translate(-50%, -50%) rotate(-8deg) scale(2.2); opacity: 0;
  padding: 1px 7px 0; border: 2.5px solid var(--stamp); color: var(--stamp); border-radius: 3px; font: 400 clamp(13px, 3.8vw, 20px)/1.2 var(--display);
  background: rgba(244, 236, 216, .72); white-space: nowrap; pointer-events: none;
}
.suspect .mark.civ { border-color: #3c6158; color: #3c6158; }
.suspect.stamped .mark { animation: stamp .32s cubic-bezier(.5, 0, .7, 1.4) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-18deg) scale(2.6); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); } }
.vote .suspect.sel { outline: 4px solid var(--stamp); outline-offset: 3px; transform: rotate(-2deg); }
.vote-go { margin-top: 22px; }
@media (min-width: 900px) { .suspects { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 920px; gap: 24px 16px; } .suspect { font-size: 30px; } .vote-title { font-size: 52px; } }
.suspect.stamped small { visibility: hidden; }
.suspect.dim { filter: brightness(.55) saturate(.6); }

.reveal { justify-content: center; }
.reveal-title { margin: 0 0 22px; font: 400 clamp(34px, 10vw, 58px)/1.1 var(--display); min-height: 1.1em; }
.reveal-title.liar { color: #ff7477; }
.lineup { max-width: 720px; }
.lineup .suspect { cursor: default; }
.spot {
  position: fixed; left: 0; top: 0; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255, 227, 161, .5), rgba(255, 227, 161, .12) 45%, transparent 70%);
  transform: translate(var(--sx, 50vw), var(--sy, -300px)); transition: transform .22s ease-out; opacity: .95;
}
.reveal > *:not(.spot) { position: relative; z-index: 1; }
.reveal.guessing .reveal-title { margin-bottom: 12px; font-size: clamp(28px, 8vw, 46px); }
.reveal.guessing .lineup { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 12px 6px; }
.reveal.guessing .suspect { aspect-ratio: auto; min-height: 50px; padding: 9px 4px 7px; font-size: 15px; }
.reveal.guessing .suspect small { display: none; }
/* 작은 서류철에서는 도장을 이름 위에 겹치지 않고 이름 아래 줄에 찍는다 */
.reveal.guessing .suspect .mark { position: static; display: inline-block; margin-top: 4px; transform: rotate(-6deg); opacity: 1; animation: none; font-size: 11.5px; border-width: 2px; padding: 1px 5px 0; }
.reveal.guessing .suspect:not(.stamped) .mark { display: none; }
.guess { width: 100%; max-width: 560px; margin-top: 18px; }
.guess-q { margin: 0 0 10px; font-weight: 800; font-size: 17px; color: var(--lamp); }
.guess-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.guess-form input { min-width: 0; height: 52px; border: 0; border-radius: 6px; padding: 0 14px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 17px; }
.go.small, .reveal .guess-form .go { width: auto; height: 52px; margin: 0; padding: 0 18px; font-size: 19px; }
.judge { margin-top: 12px; }
.judge-a { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.judge-a b { font: 400 26px/1.2 var(--display); color: var(--lamp); }
.judge-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.judge-btns .ghost.on { background: var(--paper); color: var(--ink); }
.reveal .go { margin-top: 22px; max-width: 420px; }

.result { justify-content: flex-start; overflow-y: auto; }
.result-in { width: 100%; max-width: 1060px; margin: 0 auto; padding-top: 10px; }
.res-title {
  display: inline-block; margin: 6px 0 10px; padding: 8px 20px 2px; border: 5px solid currentColor; border-radius: 6px;
  font: 400 clamp(40px, 12vw, 76px)/1.1 var(--display); color: var(--paper); transform: rotate(-4deg);
}
.res-title.liar { color: #ff6b6f; }
.res-word { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: var(--mute); }
.res-word b { color: var(--paper); }
.res-guess { display: block; margin-top: 4px; }
.scores { list-style: none; margin: 18px auto 0; padding: 0; max-width: 460px; display: grid; gap: 6px; }
.scores li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 12px; border-radius: 4px; background: rgba(0, 0, 0, .2); font-weight: 700; text-align: left; }
.scores .pt { font: 400 20px/1 var(--display); color: var(--manila); }
.scores .plus { font-size: 12.5px; color: var(--lamp); min-width: 3em; text-align: right; }
.scores li.liar { box-shadow: inset 4px 0 0 var(--stamp); }
.card-wrap { margin: 22px auto 0; width: min(76vw, 350px); }
.card-wrap img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6); transform: rotate(1.4deg); background: var(--wall-d); }
.res-actions { width: 100%; max-width: 420px; margin: 24px auto 0; display: grid; gap: 10px; padding-bottom: 6px; }
.result::before, .result::after { flex: 0 0 0; }
.result .pin { width: 100%; max-width: 420px; margin: 8px auto 0; }
.res-actions .pin { position: static; max-width: none; margin: 0; box-shadow: 0 5px 0 #8e1a1e; }
@media (min-width: 900px) {
  .result-in { display: grid; grid-template-columns: 1fr 370px; grid-template-areas: 'top card' 'act card'; column-gap: 48px; text-align: left; padding-top: 36px; }
  .result-top { grid-area: top; }
  .card-wrap { grid-area: card; width: 100%; margin: 0; }
  .res-actions { grid-area: act; margin: 26px 0 0; grid-template-columns: 1fr 1fr; max-width: none; }
  .res-actions .go { grid-column: 1 / -1; }
  .scores { margin-left: 0; max-width: none; grid-template-columns: 1fr 1fr; column-gap: 10px; }
}

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); z-index: 90; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 6px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 14px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ───────── 아래 설명 본문 ───────── */
.guide { position: relative; background: var(--paper); color: var(--ink); content-visibility: auto; contain-intrinsic-size: auto 2600px; }
.guide::before { content: ''; display: block; height: 10px; background: repeating-linear-gradient(-45deg, var(--manila) 0 14px, var(--manila-d) 14px 28px); }
.guide-in { max-width: 820px; margin: 0 auto; padding: 44px 16px calc(56px + env(safe-area-inset-bottom)); }
.guide h2 { margin: 0; font: 400 28px/1.25 var(--display); max-width: 20em; }
.guide h3 { margin: 0 0 14px; font: 400 21px/1.3 var(--display); color: var(--wall); }
.guide-lede, .guide-note { margin: 14px 0 0; max-width: 38em; font-size: 16px; line-height: 1.75; }
.guide-note { margin: -4px 0 16px; font-size: 15px; color: #5d5446; }
.guide section, .guide-more { margin-top: 44px; padding-top: 22px; border-top: 1.5px dashed rgba(31, 27, 20, .25); }
.guide b { display: block; font-weight: 800; font-size: 16.5px; margin-bottom: 2px; }
.guide-rules ul, .guide-tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; line-height: 1.7; }
.guide-rules li { padding-left: 14px; border-left: 3px solid var(--manila); }
.guide-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.guide-steps li { counter-increment: s; position: relative; padding-left: 50px; line-height: 1.7; }
.guide-steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 36px; height: 36px; display: grid; place-items: center; border: 2.5px solid var(--stamp); color: var(--stamp); border-radius: 3px; font: 400 19px/1 var(--display); transform: rotate(-6deg); }
.examples { margin: 0; display: grid; gap: 10px; }
.examples div { display: grid; grid-template-columns: 4.5em 1fr; gap: 10px; padding: 10px 12px; background: #fff; border-radius: 4px; }
.examples dt { font-weight: 800; color: var(--wall); }
.examples dd { margin: 0; line-height: 1.65; }
.guide-faq dl { margin: 0; display: grid; gap: 18px; }
.guide-faq dt { font-weight: 800; font-size: 16.5px; }
.guide-faq dd { margin: 4px 0 0; line-height: 1.75; }
.guide-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-more a { display: block; color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 4px; background: #fff; border-left: 4px solid var(--manila); line-height: 1.5; }
.guide-more a:hover { border-left-color: var(--stamp); }
.site-foot { margin-top: 40px; padding-top: 18px; border-top: 1.5px dashed rgba(31, 27, 20, .25); font-size: 13.5px; display: flex; gap: 8px; }
.site-foot a { color: var(--ink); }
.fallback { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99; margin: 0; padding: 12px; background: var(--paper); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .env-card, .env-flap, .spot { transition-duration: .01s !important; }
  .suspect.stamped .mark { animation-duration: .01s; }
  .clock.hurry .clock-num { animation: none; }
}
