:root {
  --bg: #090a0d;
  --bg-soft: #111218;
  --panel: #15171d;
  --panel-2: #1b1d24;
  --panel-3: #22242c;
  --paper: #d9d0bd;
  --paper-ink: #24201b;
  --text: #f1ede4;
  --muted: #aaa59a;
  --faint: #77756f;
  --line: rgba(236, 226, 206, .12);
  --line-strong: rgba(236, 226, 206, .24);
  --gold: #c6a466;
  --danger: #c93543;
  --success: #6aa984;
  --accent: #c93543;
  --shadow: 0 20px 60px rgba(0, 0, 0, .5);
  --radius: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { background: #050609; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -15%, rgba(174, 134, 69, .09), transparent 36%),
    linear-gradient(180deg, #090a0d 0%, #050609 100%);
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }

#app {
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  background:
    linear-gradient(rgba(10, 11, 14, .94), rgba(10, 11, 14, .96)),
    url("assets/paper-noise.webp") center / 420px repeat;
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 640px) {
  body { padding: 22px 0; }
  #app {
    width: min(100%, 560px);
    min-height: calc(100dvh - 44px);
    border: 1px solid rgba(226, 210, 178, .12);
    border-radius: 30px;
    box-shadow: 0 26px 90px rgba(0, 0, 0, .68);
    overflow: clip;
  }
}

::selection { background: color-mix(in srgb, var(--accent) 48%, transparent); color: white; }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-thumb { background: rgba(226, 210, 178, .18); border-radius: 99px; }

.splash {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  color: var(--muted);
  letter-spacing: .04em;
}
.splash img { margin: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }

.screen { min-height: 100dvh; animation: screenIn .28s ease both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 10%, transparent); } }
@keyframes shimmer { from { transform: translateX(-130%) skewX(-18deg); } to { transform: translateX(230%) skewX(-18deg); } }
@keyframes breathe { 0%,100% { opacity: .44; transform: scale(.96); } 50% { opacity: .85; transform: scale(1.04); } }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 999;
  background: white;
  color: black;
  padding: 12px 16px;
  border-radius: 12px;
}
.skip-link:focus { top: 12px; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: calc(66px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: linear-gradient(180deg, rgba(9,10,13,.98), rgba(9,10,13,.86));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.app-header__logo { width: 40px; height: 40px; flex: 0 0 auto; }
.app-header__title { min-width: 0; flex: 1; }
.app-header__eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.app-header__name {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-actions { display: flex; gap: 7px; }
.icon-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn:hover { border-color: var(--line-strong); background: rgba(255,255,255,.05); }
.icon-btn__glyph { font-size: 18px; line-height: 1; }

.page { padding: 18px 16px calc(30px + var(--safe-bottom)); }
.page--with-nav { padding-bottom: calc(106px + var(--safe-bottom)); }
.page--narrow { padding-inline: 20px; }

.home-hero {
  position: relative;
  min-height: 360px;
  padding: calc(28px + var(--safe-top)) 22px 26px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 16%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 38%),
    linear-gradient(90deg, rgba(7,8,11,.88) 0%, rgba(7,8,11,.67) 58%, rgba(7,8,11,.84) 100%),
    linear-gradient(180deg, rgba(10,11,15,.28), rgba(8,9,12,.96)),
    url("assets/ui/home-hero.webp") center 18% / cover no-repeat;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(213,177,109,.13), transparent 65%);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}
.home-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.home-brand img { width: 64px; height: 64px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.4)); }
.home-brand__meta { min-width: 0; }
.home-brand__name { font-weight: 950; font-size: 19px; letter-spacing: .06em; }
.home-brand__sub { margin-top: 5px; font-size: 11px; color: var(--gold); letter-spacing: .15em; }
.hero-kicker {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: 999px;
  color: #d7bf8f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  background: rgba(198,164,102,.05);
}
.hero-kicker::before { content: "●"; color: var(--accent); font-size: 8px; }
.home-hero h1 {
  position: relative;
  margin: 18px 0 12px;
  max-width: 420px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(34px, 9vw, 50px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.home-hero h1 em { font-style: normal; color: var(--accent); }
.home-hero p {
  position: relative;
  margin: 0;
  color: #b9b4aa;
  font-size: 14px;
  line-height: 1.7;
}
.hero-actions { position: relative; display: flex; gap: 10px; margin-top: 24px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 14px;
}
.section-head h2, .section-head h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.section-head p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.section-label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.case-list { display: grid; gap: 18px; }
.case-card {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #111218;
  box-shadow: 0 16px 46px rgba(0,0,0,.32);
  isolation: isolate;
}
.case-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; filter: saturate(.94) contrast(1.04); }
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,7,10,.05) 15%, rgba(6,7,10,.2) 42%, rgba(6,7,10,.96) 82%);
  pointer-events: none;
}
.case-card__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 24px 20px 20px;
}
.case-card__top { position: absolute; z-index: 2; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(8,9,12,.72);
  backdrop-filter: blur(10px);
}
.badge--accent { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; background: color-mix(in srgb, var(--accent) 20%, rgba(8,9,12,.72)); }
.badge--gold { color: #e1c58f; border-color: rgba(198,164,102,.38); }
.case-card__order { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.case-card h3 { margin: 8px 0 8px; font-family: Georgia, "Noto Serif KR", serif; font-size: 28px; line-height: 1.18; letter-spacing: -.04em; }
.case-card__tagline { color: #c1bbb0; font-size: 12px; line-height: 1.55; margin-bottom: 15px; }
.case-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  color: #d0cbc2;
  font-size: 11px;
}
.case-card__button { width: 100%; }

.btn {
  position: relative;
  min-height: 48px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 850;
  font-size: 14px;
  letter-spacing: -.01em;
  cursor: pointer;
  overflow: hidden;
  transition: transform .16s ease, filter .16s ease, border-color .16s ease, background .16s ease;
  touch-action: manipulation;
}
.btn:hover { filter: brightness(1.08); border-color: var(--line-strong); }
.btn:active { transform: scale(.975); }
.btn:focus-visible, .choice:focus-visible, .tab-btn:focus-visible, .clue-card:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 75%, white);
  outline-offset: 3px;
}
.btn--primary {
  border-color: color-mix(in srgb, var(--accent) 75%, #fff 8%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #fff 4%), color-mix(in srgb, var(--accent) 76%, #000 24%));
  color: white;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  width: 34px;
  left: -70px;
  background: rgba(255,255,255,.16);
  transform: skewX(-18deg);
}
.btn--primary:hover::after { animation: shimmer .85s ease; }
.btn--gold {
  border-color: rgba(198,164,102,.5);
  background: linear-gradient(135deg, #c19d5d, #896a35);
  color: #17130d;
}
.btn--ghost { background: rgba(255,255,255,.025); }
.btn--danger { background: rgba(201,53,67,.1); border-color: rgba(201,53,67,.42); color: #f0a7ae; }
.btn--wide { width: 100%; }
.btn--small { min-height: 44px; padding: 8px 12px; border-radius: 12px; font-size: 12px; }
.btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; filter: grayscale(.2); }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }
.text-btn {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 4px;
  font-weight: 750;
  cursor: pointer;
}
.text-btn:hover { color: var(--text); }

.detail-hero { position: relative; min-height: 560px; overflow: hidden; border-bottom: 1px solid var(--line); }
.detail-hero__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: saturate(.94) contrast(1.04); }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,9,.12), rgba(5,6,9,.38) 40%, rgba(5,6,9,.98) 92%); }
.detail-hero__back { position: absolute; z-index: 3; left: 14px; top: calc(12px + var(--safe-top)); }
.detail-hero__content { position: absolute; z-index: 2; inset: auto 18px 24px; }
.detail-hero__order { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.detail-hero h1 { margin: 10px 0 12px; font-family: Georgia, "Noto Serif KR", serif; font-size: 36px; line-height: 1.12; letter-spacing: -.05em; }
.detail-hero p { margin: 0; color: #c2bcb0; line-height: 1.65; font-size: 14px; }
.hook-quote {
  margin: 20px 0;
  padding: 18px 18px 18px 20px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: #e8dfd0;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 16px;
  line-height: 1.55;
}
.notice-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  margin: 14px 0;
  border-radius: 16px;
  background: rgba(198,164,102,.06);
  border: 1px solid rgba(198,164,102,.2);
  color: #c7bcaa;
  font-size: 12px;
  line-height: 1.55;
}
.notice-card__icon { color: var(--gold); font-size: 17px; flex: 0 0 auto; }

.panel {
  background: linear-gradient(180deg, rgba(27,29,36,.96), rgba(18,20,25,.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}
.panel__body { padding: 17px; }
.panel + .panel { margin-top: 13px; }
.panel-title { margin: 0 0 6px; font-size: 16px; }
.panel-copy { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.steps { display: grid; gap: 10px; margin: 16px 0; }
.step-row { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.step-row__num { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--accent) 14%, var(--panel-3)); border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); color: #fff; font-size: 12px; font-weight: 900; }
.step-row strong { display: block; margin: 2px 0 4px; font-size: 13px; }
.step-row span { color: var(--muted); font-size: 12px; line-height: 1.55; }

.form-group { margin-bottom: 14px; }
.form-label { display: block; margin-bottom: 7px; color: #d9d3c8; font-size: 12px; font-weight: 800; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #111319;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, background .18s ease;
}
.input:focus { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: #15171d; }
.player-fields { display: grid; gap: 11px; }
.player-field { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; }
.player-index { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: var(--panel-3); border: 1px solid var(--line); color: var(--gold); font-weight: 900; font-size: 12px; }

.privacy-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(24px + var(--safe-top)) 20px calc(24px + var(--safe-bottom));
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 35%),
    #07080b;
}
.privacy-top { display: flex; justify-content: space-between; align-items: center; }
.privacy-mark { font-size: 10px; font-weight: 900; color: var(--gold); letter-spacing: .16em; }
.privacy-center { text-align: center; padding: 32px 0; }
.privacy-lock {
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, #11131a);
  border: 1px solid color-mix(in srgb, var(--accent) 44%, transparent);
  font-size: 42px;
  animation: pulseGlow 2.4s ease-in-out infinite;
}
.privacy-center h1 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.04em; }
.privacy-center p { margin: 0 auto; max-width: 320px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.privacy-player { display: inline-flex; padding: 8px 12px; margin-bottom: 14px; border-radius: 999px; background: rgba(255,255,255,.045); border: 1px solid var(--line); font-size: 12px; color: #d2cdc4; }
.privacy-bottom { display: grid; gap: 10px; }

.role-screen { min-height: 100dvh; background: #090a0e; padding-bottom: calc(28px + var(--safe-bottom)); }
.role-cover {
  position: relative;
  height: 430px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.role-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.role-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,11,.02), rgba(7,8,11,.15) 45%, rgba(7,8,11,.97)); }
.role-cover__label { position: absolute; z-index: 2; top: calc(18px + var(--safe-top)); left: 18px; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.role-cover__content { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 20px; }
.role-cover__content h1 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 38px; letter-spacing: -.045em; }
.role-cover__content p { margin: 7px 0 0; color: #c8c1b5; font-size: 13px; }
.role-content { padding: 18px 16px; }
.role-quote { margin: 0 0 14px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); color: #e5ded2; font-family: Georgia, "Noto Serif KR", serif; line-height: 1.6; }
.secret-card {
  padding: 17px;
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, #15171d);
}
.secret-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; font-size: 13px; font-weight: 900; }
.secret-card p { margin: 0; color: #d3ccc0; font-size: 13px; line-height: 1.7; }
.info-grid { display: grid; gap: 11px; margin: 12px 0; }
.info-box { padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.info-box__label { margin-bottom: 6px; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.info-box p { margin: 0; color: #c3beb4; font-size: 12px; line-height: 1.65; }
.reveal-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.reveal-list li { position: relative; padding: 12px 12px 12px 38px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); color: #c6c0b6; font-size: 12px; line-height: 1.55; }
.reveal-list li::before { content: attr(data-index); position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 900; font-size: 10px; }

.game-shell { min-height: 100dvh; background: rgba(8,9,12,.75); }
.game-header {
  position: sticky;
  top: 0;
  z-index: 24;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  background: rgba(8,9,12,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.game-header__row { display: flex; align-items: center; gap: 10px; }
.game-header__logo { width: 36px; height: 36px; }
.game-header__main { flex: 1; min-width: 0; }
.game-header__case { color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.game-header__title { margin-top: 3px; font-size: 13px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-track { height: 3px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.progress-track span { display: block; height: 100%; border-radius: 99px; background: var(--accent); box-shadow: 0 0 15px color-mix(in srgb, var(--accent) 75%, transparent); transition: width .3s ease; }

.game-main { padding: 16px 14px calc(112px + var(--safe-bottom)); }
.tab-intro { margin: 2px 2px 15px; }
.tab-intro__label { color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.tab-intro h1 { margin: 7px 0 7px; font-size: 25px; line-height: 1.2; letter-spacing: -.04em; }
.tab-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.bottom-nav {
  position: fixed;
  z-index: 35;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 8px calc(7px + var(--safe-bottom));
  background: rgba(10,11,14,.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(0,0,0,.28);
}
@media (min-width: 640px) {
  .bottom-nav { left: 50%; right: auto; width: 560px; transform: translateX(-50%); border-radius: 0 0 30px 30px; }
}
.tab-btn {
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #777770;
  cursor: pointer;
  border-radius: 14px;
  transition: color .18s ease, background .18s ease;
}
.tab-btn__icon { font-size: 18px; line-height: 1; }
.tab-btn__label { font-size: 9px; font-weight: 800; }
.tab-btn.is-active { color: white; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tab-btn.is-active .tab-btn__icon { color: var(--accent); }

.victim-card { overflow: hidden; }
.victim-card__visual { min-height: 120px; padding: 18px; background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 40%), #15171d; border-bottom: 1px solid var(--line); }
.victim-card__tag { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.victim-card h2 { margin: 8px 0 3px; font-family: Georgia, "Noto Serif KR", serif; font-size: 27px; }
.victim-card__role { color: var(--muted); font-size: 12px; }
.victim-card__found { margin-top: 14px; color: #ddd6ca; font-size: 12px; font-weight: 800; }
.victim-card__body { padding: 16px; color: #bcb7ad; font-size: 13px; line-height: 1.65; }

.brief-list { display: grid; gap: 9px; margin-top: 14px; }
.brief-item { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.028); border: 1px solid var(--line); color: #c1bbb0; font-size: 12px; line-height: 1.6; }
.brief-item__num { color: var(--accent); font-size: 11px; font-weight: 900; }

.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.location-card { min-height: 128px; padding: 13px; border-radius: 17px; background: var(--panel); border: 1px solid var(--line); }
.location-card__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--accent) 10%, var(--panel-3)); color: var(--accent); font-weight: 900; }
.location-card strong { display: block; margin: 12px 0 5px; font-size: 13px; }
.location-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.timeline { position: relative; display: grid; gap: 0; padding-left: 14px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 1px; background: var(--line-strong); }
.timeline-row { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 11px 0; }
.timeline-row::before { content: ""; position: absolute; left: 8px; top: 17px; width: 11px; height: 11px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); z-index: 1; }
.timeline-row time { padding-left: 26px; color: var(--gold); font-size: 11px; font-weight: 900; }
.timeline-row p { margin: 0; color: #bbb5ab; font-size: 12px; line-height: 1.5; }

.round-controller { padding: 16px; margin-bottom: 14px; }
.round-controller__top { display: flex; align-items: start; gap: 12px; }
.round-index { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, #20232a); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); font-weight: 950; }
.round-controller__title { flex: 1; min-width: 0; }
.round-controller__title h3 { margin: 1px 0 4px; font-size: 15px; }
.round-controller__title p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.timer-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 11px 12px; border-radius: 15px; background: #101217; border: 1px solid var(--line); }
.timer-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 24px; font-weight: 900; letter-spacing: .04em; }
.timer-value.is-low { color: #f4a1aa; animation: pulseGlow 1.2s infinite; }
.timer-actions { display: flex; gap: 7px; }
.timer-actions .btn { min-width: 54px; }
.round-footer { display: flex; gap: 9px; margin-top: 12px; }
.round-footer > * { flex: 1; }

.round-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 10px; scrollbar-width: none; }
.round-tabs::-webkit-scrollbar { display: none; }
.round-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.round-chip.is-active { color: white; border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.round-chip.is-locked { opacity: .42; }

.clue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clue-card {
  position: relative;
  overflow: hidden;
  min-height: 226px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.clue-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.clue-card:active { transform: scale(.985); }
.clue-card__image { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-bottom: 1px solid var(--line); }
.clue-card__body { padding: 11px; }
.clue-card__type { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.clue-card h3 { margin: 5px 0 0; font-size: 12px; line-height: 1.35; }
.clue-card__seen { position: absolute; right: 8px; top: 8px; min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: rgba(8,9,12,.76); border: 1px solid rgba(255,255,255,.12); color: var(--success); font-size: 12px; }
.clue-card--locked { cursor: default; }
.clue-card--locked .clue-card__image { filter: grayscale(1) brightness(.34) blur(1px); }
.clue-card--locked::after { content: "봉인"; position: absolute; inset: 0; display: grid; place-items: center; color: #c6c1b6; font-size: 11px; font-weight: 900; letter-spacing: .18em; background: rgba(5,6,9,.45); }

.suspect-list { display: grid; gap: 12px; }
.suspect-card { overflow: hidden; }
.suspect-card__top { display: grid; grid-template-columns: 98px 1fr; gap: 14px; padding: 13px; }
.suspect-card__portrait { width: 98px; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.suspect-card h3 { margin: 3px 0 4px; font-family: Georgia, "Noto Serif KR", serif; font-size: 19px; }
.suspect-card__job { color: var(--gold); font-size: 10px; font-weight: 800; }
.suspect-card__public { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.suspect-statement { margin: 0 13px 13px; padding: 13px; border-radius: 14px; background: rgba(255,255,255,.035); border-left: 2px solid var(--accent); color: #d3ccc0; font-family: Georgia, "Noto Serif KR", serif; font-size: 12px; line-height: 1.55; }
.disclosure { border-top: 1px solid var(--line); }
.disclosure summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; color: #d7d1c6; font-size: 12px; font-weight: 850; cursor: pointer; list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; color: var(--accent); font-size: 18px; }
.disclosure[open] summary::after { content: "−"; }
.disclosure__body { padding: 0 14px 14px; display: grid; gap: 9px; }
.qa { padding: 11px; border-radius: 13px; background: #101217; border: 1px solid var(--line); }
.qa strong { display: block; margin-bottom: 5px; color: #d8d1c5; font-size: 11px; }
.qa p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.role-public-card { display: grid; grid-template-columns: 86px 1fr; gap: 13px; padding: 13px; }
.role-public-card img { width: 86px; height: 112px; object-fit: cover; border-radius: 13px; border: 1px solid var(--line); }
.role-public-card h3 { margin: 3px 0 3px; font-size: 17px; }
.role-public-card__player { color: var(--accent); font-size: 10px; font-weight: 900; }
.role-public-card__job { color: var(--gold); font-size: 10px; margin-top: 2px; }
.role-public-card p { margin: 8px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.52; }

.notes-area {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(16,18,23,.96), rgba(16,18,23,.96)),
    repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(255,255,255,.05) 32px);
  color: var(--text);
  line-height: 1.8;
  outline: none;
}
.notes-area:focus { border-color: color-mix(in srgb, var(--accent) 65%, transparent); }
.note-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--faint); font-size: 10px; }
.pinned-list { display: grid; gap: 8px; margin-top: 12px; }
.pinned-clue { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.pinned-clue__pin { color: var(--accent); }
.pinned-clue span { flex: 1; font-size: 12px; }

.final-lock { text-align: center; padding: 28px 18px; }
.final-lock__seal { width: 92px; height: 92px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, var(--panel-3)); border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); font-size: 34px; }
.final-lock h2 { margin: 0 0 8px; font-family: Georgia, "Noto Serif KR", serif; font-size: 23px; }
.final-lock p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.question-card { padding: 15px; margin-bottom: 12px; }
.question-card h3 { margin: 0 0 12px; font-size: 14px; line-height: 1.4; }
.choice-list { display: grid; gap: 8px; }
.choice {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #101217;
  color: #c9c3b8;
  text-align: left;
  cursor: pointer;
}
.choice__dot { width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; border: 2px solid #77756f; }
.choice span:last-child { font-size: 12px; line-height: 1.45; }
.choice.is-selected { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 10%, #101217); color: white; }
.choice.is-selected .choice__dot { border: 5px solid var(--accent); background: white; }

.vote-screen { min-height: 100dvh; padding: calc(22px + var(--safe-top)) 16px calc(24px + var(--safe-bottom)); background: #08090c; }
.vote-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.vote-head__step { color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.vote-head h1 { margin: 5px 0 0; font-size: 24px; }
.vote-section { margin: 18px 0; }
.vote-section h2 { margin: 0 0 10px; font-size: 14px; }
.vote-candidate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.vote-candidate { overflow: hidden; padding: 0; text-align: left; }
.vote-candidate img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-bottom: 1px solid var(--line); }
.vote-candidate__body { padding: 10px; }
.vote-candidate__body strong { display: block; font-size: 12px; }
.vote-candidate__body span { color: var(--muted); font-size: 10px; }
.vote-candidate.is-selected { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 17%, transparent); }
.confidence-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.confidence { min-height: 46px; border-radius: 13px; border: 1px solid var(--line); background: #111319; color: var(--muted); font-size: 11px; font-weight: 850; cursor: pointer; }
.confidence.is-selected { color: white; border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 11%, #111319); }

.result-hero { position: relative; min-height: 510px; overflow: hidden; border-bottom: 1px solid var(--line); }
.result-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,9,.08), rgba(5,6,9,.35) 40%, rgba(5,6,9,.98) 92%); }
.result-hero__content { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 24px; }
.result-hero__label { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.result-hero h1 { margin: 8px 0 7px; font-family: Georgia, "Noto Serif KR", serif; font-size: 38px; letter-spacing: -.05em; }
.result-hero p { margin: 0; color: #c8c1b5; line-height: 1.5; font-size: 13px; }
.score-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 12px; border-radius: 999px; background: rgba(8,9,12,.72); border: 1px solid var(--line-strong); font-size: 12px; font-weight: 900; }
.result-section { padding: 18px 16px; }
.solution-card { padding: 17px; }
.solution-card h2 { margin: 0 0 10px; font-size: 18px; font-family: Georgia, "Noto Serif KR", serif; line-height: 1.35; }
.solution-card p { margin: 0; color: #c3bdb2; font-size: 13px; line-height: 1.75; }
.solution-card p + p { margin-top: 13px; }
.solution-label { color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .12em; margin-bottom: 6px; }
.tally-list { display: grid; gap: 9px; }
.tally-row { display: grid; grid-template-columns: 86px 1fr 28px; gap: 10px; align-items: center; }
.tally-row__name { font-size: 11px; }
.tally-bar { height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.07); }
.tally-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.tally-count { color: var(--gold); font-size: 11px; font-weight: 900; text-align: right; }
.key-evidence { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.key-evidence::-webkit-scrollbar { display: none; }
.key-evidence button { flex: 0 0 auto; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: calc(40px + var(--safe-top));
  animation: fadeIn .18s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: min(100%, 560px);
  max-height: calc(100dvh - 34px - var(--safe-top));
  overflow-y: auto;
  border-radius: 26px 26px 0 0;
  background: #111319;
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: 0 -24px 70px rgba(0,0,0,.5);
  animation: sheetIn .23s ease both;
}
@keyframes sheetIn { from { transform: translateY(35px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet__grab { width: 44px; height: 4px; margin: 9px auto 5px; border-radius: 99px; background: rgba(255,255,255,.16); }
.sheet__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(17,19,25,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sheet__title { flex: 1; min-width: 0; }
.sheet__title small { display: block; color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.sheet__title strong { display: block; margin-top: 3px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__body { padding: 15px 15px calc(22px + var(--safe-bottom)); }
.clue-full-image { width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.clue-summary { margin: 15px 0 0; color: #e0d8cb; font-size: 15px; line-height: 1.6; font-weight: 760; }
.clue-detail { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.insight-card { margin-top: 14px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); }
.insight-card__label { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.insight-card p { margin: 6px 0 0; color: #e0d7ca; font-size: 13px; line-height: 1.6; }
.tag-list { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.tag { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.045); border: 1px solid var(--line); color: #aaa59b; font-size: 10px; }
.sheet-actions { display: flex; gap: 9px; margin-top: 16px; }
.sheet-actions > * { flex: 1; }

.modal-card {
  width: min(calc(100% - 28px), 500px);
  margin: auto;
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  border-radius: 24px;
  background: #15171d;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  padding: 20px;
  animation: sheetIn .2s ease both;
}
.modal-card h2 { margin: 0 0 8px; font-size: 21px; }
.modal-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.modal-actions { display: flex; gap: 9px; margin-top: 18px; }
.modal-actions > * { flex: 1; }
.how-list { display: grid; gap: 12px; margin-top: 16px; }
.how-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.how-item__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--accent) 11%, var(--panel-3)); color: var(--accent); font-size: 18px; }
.how-item strong { display: block; margin: 2px 0 5px; font-size: 13px; }
.how-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(90px + var(--safe-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(24,26,32,.96);
  border: 1px solid var(--line-strong);
  color: #e9e3d9;
  font-size: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
  animation: toastIn .22s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

.empty-state { padding: 28px 16px; text-align: center; color: var(--muted); }
.empty-state__icon { font-size: 34px; margin-bottom: 10px; color: var(--faint); }
.empty-state h3 { margin: 0 0 6px; color: #d9d2c6; font-size: 15px; }
.empty-state p { margin: 0; font-size: 12px; line-height: 1.55; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.gold { color: var(--gold); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; margin: 18px 0; background: var(--line); }

@media (max-width: 370px) {
  .home-hero { padding-inline: 18px; }
  .case-card { min-height: 470px; }
  .case-card h3 { font-size: 24px; }
  .detail-hero h1 { font-size: 31px; }
  .clue-grid { gap: 8px; }
  .clue-card { min-height: 205px; }
  .location-grid { grid-template-columns: 1fr; }
  .vote-candidate-grid { grid-template-columns: 1fr; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .privacy-screen { min-height: 100dvh; padding-top: 14px; }
  .privacy-lock { width: 70px; height: 70px; font-size: 28px; margin-bottom: 12px; }
  .privacy-center { padding: 10px 0; }
  .privacy-center h1 { font-size: 22px; }
}

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