/* 플듀 좀비 생존 진단소 — iq.css(진단소 공용 버튼·접수·광고·로그인) 위에 덮어 씀
   색: 밤거리 검녹색 · 형광 초록(감염) · 나트륨 가로등 주황 · 피 빨강 · 일기장 종이 */
body.iq.zom {
  --ink: #050806; --navy: #0b0f0c; --navy2: #121a14; --navy3: #1b261d; --steel: #2d3b2f;
  --purple: #3d5a3f; --violet: #8bd17c; --cyan: #9dff6a; --cyan2: #5fbf3c; --magenta: #ff6b8a;
  --yellow: #ffb347; --green: #7ee05a; --red: #ff3b3b; --orange: #ff8a3d; --cream: #efe7d4; --muted: #93a08e; --dim: #5d6a5a;
  --paper: #e9dfc6; --paper2: #d8ccae; --pink: #ff6b8a; --blood: #b3122a;
  --glow: 0 0 12px rgba(157,255,106,.4);
  background: radial-gradient(1000px 520px at 50% -12%, rgba(255,179,71,.14), transparent 60%), radial-gradient(900px 600px at 50% 120%, rgba(126,224,90,.10), transparent 60%), #0b0f0c;
}
body.zom .topbar { background: rgba(5,8,6,.92); border-bottom: 2px solid #3d5a3f; box-shadow: 0 2px 18px rgba(0,0,0,.5); }
body.zom .tb-title { color: var(--cyan); }
body.zom .panel { background: linear-gradient(180deg, rgba(27,38,29,.94), rgba(14,20,15,.96)); box-shadow: 0 -3px 0 0 #3d5a3f, 0 3px 0 0 #3d5a3f, -3px 0 0 0 #3d5a3f, 3px 0 0 0 #3d5a3f, 0 0 0 6px var(--ink), 0 0 30px rgba(0,0,0,.4); }
body.zom .pbtn.red { --c: #b3122a; } body.zom .pbtn.cyan { --c: #3f8f2a; --t: #fff; } body.zom .pbtn.yellow { --c: #e08a1f; --t: #1a1206; } body.zom .pbtn.violet { --c: #5b4a7a; }
body.zom main#app { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; position: relative; z-index: 2; }
body.zom.in-test main#app { padding: 0; max-width: none; }

/* ---------- 입구 ---------- */
.zt-hero { position: relative; height: clamp(260px, 46vw, 420px); margin: 0 -16px; overflow: hidden; background: #050806; }
.zt-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.zt-logo { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; pointer-events: none; }
.zt-logo small { display: block; letter-spacing: .3em; font-size: 12px; color: var(--yellow); opacity: .85; }
.zt-logo h1 { margin: 6px 0 4px; font-size: clamp(30px, 7vw, 58px); line-height: 1.05; color: #f3ead2; text-shadow: 0 3px 0 #000, 0 0 24px rgba(179,18,42,.65); }
.zt-logo h1 span { color: var(--cyan); text-shadow: 0 3px 0 #000, 0 0 18px rgba(157,255,106,.6); }
.zt-logo p { margin: 0; color: #d9cfb5; font-size: 15px; text-shadow: 0 2px 0 #000; }
.zt-q { text-align: center; margin: 18px auto 6px; font-size: clamp(17px, 3.6vw, 22px); color: var(--cream); }
.zt-q b { color: var(--yellow); }
.zt-menu { display: grid; gap: 8px; max-width: 560px; margin: 0 auto; }
.zt-menu .pbtn { width: calc(100% - 6px); }
.zt-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.zt-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 640px; margin: 16px auto; }
.zt-feat div { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.zt-feat b { display: block; font-size: 22px; margin-bottom: 4px; }
@media (max-width: 560px) { .zt-feat { grid-template-columns: 1fr 1fr; } }
.zt-today { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0; }

/* ---------- 플레이 화면 ---------- */
.zp { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto auto 1fr; background: #050806; }
.zp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 12px calc(8px); padding-top: max(8px, var(--ad-top, 0px)); background: linear-gradient(180deg, rgba(5,8,6,.96), rgba(5,8,6,.82)); border-bottom: 1px solid #1f2b21; }
.zp-day { font-size: 22px; font-weight: 700; color: var(--paper); white-space: nowrap; letter-spacing: .04em; }
.zp-day small { font-size: 12px; color: var(--muted); margin-left: 4px; }
.zp-day .ph-n { color: #8fb3ff; } .zp-day .ph-d { color: var(--yellow); }
.zp-bars { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; min-width: 0; }
.zb { display: grid; grid-template-columns: auto 1fr auto; gap: 5px; align-items: center; font-size: 12px; min-width: 0; }
.zb i { font-style: normal; }
.zb .bar { position: relative; height: 9px; background: #1a221b; box-shadow: inset 0 0 0 1px #000; overflow: hidden; }
.zb .bar b { position: absolute; inset: 0 auto 0 0; width: 50%; background: var(--c, #7ee05a); transition: width .5s ease; }
.zb .bar em { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #ff3b3b; box-shadow: 0 0 6px #ff3b3b; }
.zb span { font-variant-numeric: tabular-nums; color: var(--cream); min-width: 30px; text-align: right; }
.zb.low span { color: #ff6b6b; animation: blink 1s steps(2) infinite; }
.zb.warn .bar b { animation: pulseBar 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
@keyframes pulseBar { 50% { filter: brightness(1.6); } }
.zp-quit { flex: 0 0 auto; }
@media (max-width: 640px) { .zp-top { flex-wrap: wrap; } .zp-bars { order: 3; flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); } .zp-day { font-size: 19px; flex: 1; } }

.zp-stage { position: relative; aspect-ratio: 16 / 7; max-height: 44vh; width: 100%; overflow: hidden; background: #000; }
.zp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.zp-stage .loc { position: absolute; left: 10px; top: 8px; font-size: 12px; padding: 3px 8px; background: rgba(0,0,0,.55); color: var(--paper2); letter-spacing: .06em; }
@media (max-width: 640px) { .zp-stage { aspect-ratio: 16 / 9; max-height: 34vh; } }

.zp-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; padding: 14px; max-width: 1100px; width: 100%; margin: 0 auto; align-content: start; }
@media (max-width: 860px) { .zp-main { grid-template-columns: 1fr; padding: 10px 10px calc(16px + var(--ad-bottom, 0px)); } }
.journal { position: relative; color: #2a2318; background: linear-gradient(180deg, var(--paper), #e2d6b8); padding: 18px 18px 14px; box-shadow: 0 0 0 3px #1b140a, 6px 6px 0 rgba(0,0,0,.45); background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(80,60,30,.13) 27px 28px), linear-gradient(180deg, var(--paper), #e2d6b8); }
.journal::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 1px; background: rgba(179,18,42,.35); }
.journal .jt { font-size: 17px; line-height: 1.75; margin: 0 0 12px; padding-left: 20px; min-height: 3.4em; word-break: keep-all; }
.journal .jt .cur { display: inline-block; width: .55em; background: #2a2318; animation: blink .8s steps(2) infinite; }
.journal .stamp { position: absolute; right: 10px; top: -12px; transform: rotate(6deg); padding: 3px 10px; font-size: 13px; font-weight: 700; color: #b3122a; border: 2px solid #b3122a; background: rgba(233,223,198,.92); }
.choices { display: grid; gap: 8px; padding-left: 20px; }
.ch { position: relative; display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: #1d1810; background: rgba(255,255,255,.55); border: 0; box-shadow: inset 0 0 0 2px #3a2f1c; cursor: pointer; transition: transform .08s, background .15s; touch-action: manipulation; }
.ch:hover, .ch:focus-visible { background: #fff7e2; transform: translateX(3px); outline: none; box-shadow: inset 0 0 0 2px #b3122a; }
.ch:active { transform: translateX(3px) scale(.99); }
.ch .k { flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px; font-size: 13px; font-weight: 700; color: var(--paper); background: #2a2318; }
.ch .tx { flex: 1; word-break: keep-all; }
.ch .tag { flex: 0 0 auto; font-size: 11px; padding: 2px 6px; color: #fff; background: #3f8f2a; }
.ch .tag.need { background: #6b4b1a; }
.ch:disabled { opacity: .5; cursor: default; transform: none; }
.ch.picked { background: #fff2c9; box-shadow: inset 0 0 0 3px #b3122a; }

.outcome { padding-left: 20px; }
.outcome .om { font-size: 16px; line-height: 1.7; margin: 0 0 10px; word-break: keep-all; }
.deltas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.deltas span { font-size: 13px; padding: 3px 8px; color: #fff; background: #3a3a3a; animation: popIn .35s backwards; }
.deltas .up { background: #2e7d32; } .deltas .dn { background: #b3122a; } .deltas .nz { background: #8a5a12; } .deltas .gt { background: #2b4f7a; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
.notes { margin: 0 0 10px; padding: 0; list-style: none; font-size: 14px; color: #4a3d25; }
.report { margin: 8px 0 12px; padding: 10px 12px; background: rgba(0,0,0,.07); font-size: 14px; line-height: 1.7; }
.report b { color: #b3122a; }
.task-res { margin: 0 0 10px; padding: 8px 10px; font-size: 14px; background: rgba(43,79,122,.12); border-left: 4px solid #2b4f7a; }
.next-btn { margin-left: 20px; }

.side { display: grid; gap: 10px; align-content: start; }
.card { background: #101711; box-shadow: inset 0 0 0 2px #22301f; padding: 12px; }
.card h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 4px 8px; background: #1b261d; color: var(--cream); box-shadow: inset 0 0 0 1px #2d3b2f; }
.chip.new { animation: newChip 1.4s ease; }
@keyframes newChip { 0% { box-shadow: inset 0 0 0 2px #ffb347, 0 0 14px #ffb347; } 100% { box-shadow: inset 0 0 0 1px #2d3b2f; } }
.empty { font-size: 13px; color: var(--dim); }
.comp { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; padding: 6px 0; border-top: 1px dashed #2d3b2f; }
.comp:first-child { border-top: 0; }
.comp .ic { font-size: 22px; grid-row: span 2; }
.comp b { font-size: 13px; } .comp small { font-size: 11px; color: var(--muted); }
.trust { height: 4px; background: #222; grid-column: 2; } .trust i { display: block; height: 100%; background: var(--pink); }
.flags { font-size: 12px; color: var(--yellow); margin-top: 6px; }

/* ---------- 손 작업 ---------- */
.task { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(0,0,0,.82); padding: 12px; animation: scIn .25s; }
.task-box { width: min(720px, 100%); max-height: calc(100dvh - 24px); overflow: auto; background: #0f1610; box-shadow: 0 0 0 3px #3d5a3f, 0 0 0 6px #000, 0 20px 60px rgba(0,0,0,.6); padding: 16px; }
.task-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.task-h b { font-size: 19px; color: var(--cyan); }
.task-h small { color: var(--muted); font-size: 13px; flex: 1; }
.tbar { height: 8px; background: #1a221b; overflow: hidden; margin-bottom: 12px; }
.tbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff3b3b, #ffb347); transform-origin: left; }
.tk-hint { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.tk-go { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pk { position: relative; text-align: left; padding: 10px; font: inherit; color: var(--cream); background: #172117; border: 0; box-shadow: inset 0 0 0 2px #2d3b2f; cursor: pointer; touch-action: manipulation; }
.pk .ic { font-size: 26px; display: block; }
.pk b { display: block; font-size: 14px; margin: 4px 0 2px; }
.pk small { display: block; font-size: 11px; color: var(--muted); min-height: 2.4em; }
.pk .w { position: absolute; right: 8px; top: 8px; font-size: 12px; color: var(--yellow); }
.pk.on { background: #2a3d1f; box-shadow: inset 0 0 0 3px #9dff6a; }
.pk.no { opacity: .45; }
.bag { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bag .bar { flex: 1; height: 14px; background: #1a221b; box-shadow: inset 0 0 0 1px #000; position: relative; }
.bag .bar i { position: absolute; inset: 0 auto 0 0; background: #9dff6a; transition: width .2s; }
.bag .bar.full i { background: #ffb347; }
.bag b { font-variant-numeric: tabular-nums; }

.bari { display: grid; gap: 14px; }
.bari-door { font-size: 13px; color: var(--muted); display: flex; gap: 6px; justify-content: center; }
.bari-door span { width: 28px; height: 28px; display: grid; place-items: center; background: #1b261d; }
.bari-door span.hit { background: #2e7d32; } .bari-door span.miss { background: #b3122a; } .bari-door span.cur { box-shadow: 0 0 0 2px #ffb347; }
.bari-track { position: relative; height: 54px; background: #1a221b; box-shadow: inset 0 0 0 2px #000; touch-action: manipulation; cursor: pointer; user-select: none; }
.bari-track .zone { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, rgba(157,255,106,.45) 0 8px, rgba(157,255,106,.25) 8px 16px); box-shadow: inset 0 0 0 2px #9dff6a; }
.bari-track .needle { position: absolute; top: -6px; bottom: -6px; width: 6px; margin-left: -3px; background: #ffb347; box-shadow: 0 0 10px #ffb347; }
.bari-track .lab { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: rgba(255,255,255,.55); pointer-events: none; }

.sneak-cv { width: 100%; aspect-ratio: 16 / 7; display: block; background: #000; touch-action: none; }
.sneak-btn { width: 100%; min-height: 64px; font-size: 18px; user-select: none; -webkit-user-select: none; touch-action: none; }
.sneak-btn.hold { filter: brightness(1.25); }

.radio-cv { width: 100%; height: 120px; display: block; background: #050806; }
.dial { width: 100%; accent-color: #9dff6a; height: 40px; }
.radio-f { text-align: center; font-size: 34px; color: #9dff6a; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(157,255,106,.6); margin: 6px 0; }
.radio-f small { font-size: 14px; color: var(--muted); }
.fine-row { display: flex; gap: 6px; justify-content: center; }

.aid-wound { font-size: 16px; text-align: center; margin: 0 0 10px; color: #ffb3b3; }
.aid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aid-op { position: relative; padding: 14px 10px; font: inherit; font-size: 15px; color: var(--cream); background: #172117; border: 0; box-shadow: inset 0 0 0 2px #2d3b2f; cursor: pointer; touch-action: manipulation; word-break: keep-all; }
.aid-op .n { position: absolute; left: 6px; top: 4px; font-size: 12px; color: #ffb347; }
.aid-op.on { background: #2a3d1f; box-shadow: inset 0 0 0 3px #9dff6a; }
.aid-op:disabled { cursor: default; }
@media (max-width: 480px) { .aid-grid { grid-template-columns: 1fr; } }

.esc-j { text-align: center; }
.esc-j .count { font-size: 13px; color: var(--muted); }
.esc-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.esc-way { padding: 16px 8px; font: inherit; color: var(--cream); background: linear-gradient(180deg, #0c120c, #1b261d); border: 0; box-shadow: inset 0 0 0 2px #2d3b2f; cursor: pointer; touch-action: manipulation; min-height: 120px; display: grid; gap: 8px; align-content: center; justify-items: center; }
.esc-way .ar { font-size: 30px; }
.esc-way small { font-size: 13px; color: #cfc5a8; word-break: keep-all; }
.esc-way:hover { box-shadow: inset 0 0 0 2px #ffb347; }
.esc-timer { height: 6px; background: #1a221b; margin-top: 10px; } .esc-timer i { display: block; height: 100%; background: #ff3b3b; }
.esc-path { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.esc-path span { width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; background: #1b261d; }
.esc-path span.ok { background: #2e7d32; } .esc-path span.bad { background: #b3122a; }

/* ---------- 연출 ---------- */
.fx-red { position: fixed; inset: 0; z-index: 110; pointer-events: none; background: radial-gradient(circle, transparent 35%, rgba(179,18,42,.65)); animation: fxRed .7s ease forwards; }
@keyframes fxRed { from { opacity: 1; } to { opacity: 0; } }
.fx-day { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; background: #000; color: var(--paper); text-align: center; animation: fxDay 1.9s ease forwards; pointer-events: none; }
.fx-day b { display: block; font-size: clamp(44px, 12vw, 92px); letter-spacing: .08em; }
.fx-day small { font-size: 16px; color: var(--muted); }
@keyframes fxDay { 0% { opacity: 0; } 15%, 70% { opacity: 1; } 100% { opacity: 0; } }
.death { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; text-align: center; padding: 20px; background: radial-gradient(circle, rgba(60,0,8,.85), #000 70%); animation: scIn .6s; }
.death .dd { font-size: clamp(40px, 11vw, 84px); color: #ff3b3b; text-shadow: 0 0 30px rgba(255,59,59,.6), 0 4px 0 #000; margin: 0; }
.death .dc { font-size: clamp(16px, 4vw, 22px); color: var(--paper); margin: 12px auto 22px; max-width: 640px; word-break: keep-all; line-height: 1.6; }
.death.win { background: radial-gradient(circle, rgba(60,50,10,.85), #000 70%); }
.death.win .dd { color: #ffd35a; text-shadow: 0 0 30px rgba(255,211,90,.6), 0 4px 0 #000; }
.shake { animation: shk .35s; }
@keyframes shk { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, 0); } }

/* ---------- 결과 (생존 기록서) ---------- */
.rec { max-width: 760px; margin: 14px auto; color: #2a2318; background: linear-gradient(180deg, var(--paper), #ddd0b0); box-shadow: 0 0 0 3px #1b140a, 8px 8px 0 rgba(0,0,0,.5); padding: 22px 20px; position: relative; }
.rec::after { content: attr(data-lbl); position: absolute; right: 16px; top: 14px; font-size: 12px; letter-spacing: .2em; color: #8a7a55; }
.rec-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.rec-head .av { width: 84px; height: 84px; background: #c8bb98; }
.rec-nick { font-size: 15px; color: #5a4c30; }
.rec-days { font-size: clamp(30px, 7vw, 48px); font-weight: 700; color: #b3122a; line-height: 1.1; }
.rec.win .rec-days { color: #2e7d32; }
.rec-cause { margin: 10px 0 0; padding: 10px 12px; background: rgba(179,18,42,.08); border-left: 4px solid #b3122a; font-size: 16px; line-height: 1.6; word-break: keep-all; }
.rec-pct { display: inline-block; margin-top: 8px; padding: 3px 10px; background: #2a2318; color: var(--paper); font-size: 13px; }
.rec-type { margin: 16px 0; padding: 14px; background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 2px #3a2f1c; }
.rec-type .tn { font-size: 22px; font-weight: 700; } .rec-type .tn span { font-size: 28px; margin-right: 6px; }
.rec-type p { margin: 6px 0 0; line-height: 1.6; }
.rec-type .pair { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.rec-type .pair span { padding: 3px 8px; background: #2a2318; color: var(--paper); }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .rec-grid { grid-template-columns: 1fr; } }
.rec h4 { margin: 0 0 6px; font-size: 14px; color: #5a4c30; }
.abil-row { display: grid; grid-template-columns: 70px 1fr 34px; gap: 8px; align-items: center; font-size: 13px; margin: 5px 0; }
.abil-row .bar { height: 10px; background: rgba(0,0,0,.12); } .abil-row .bar i { display: block; height: 100%; }
.abil-row em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.graph-cv { width: 100%; height: 130px; display: block; background: rgba(0,0,0,.06); }
.diary { margin: 0; padding: 0 0 0 4px; list-style: none; font-size: 14px; line-height: 1.6; }
.diary li { padding: 4px 0; border-bottom: 1px dashed rgba(80,60,30,.25); word-break: keep-all; }
.diary li b { color: #8a2a1a; margin-right: 6px; }
.titles { display: flex; flex-wrap: wrap; gap: 6px; }
.titles span { font-size: 13px; padding: 4px 8px; background: #2a2318; color: #ffd35a; }
.rec-foot { margin-top: 14px; font-size: 12px; color: #6d5f40; }
.share-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px auto; max-width: 760px; }
.share-row .pbtn { flex: 1 1 140px; }

/* ---------- 랭킹 ---------- */
.rk-list { list-style: none; margin: 0; padding: 0; }
.rk-list li { display: grid; grid-template-columns: 36px auto 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid #1f2b21; }
.rk-list li.muted { display: block; color: var(--muted); }
.rk-list li .r { font-size: 16px; text-align: center; color: var(--muted); }
.rk-list li:nth-child(1) .r { color: #ffd35a; } .rk-list li:nth-child(2) .r { color: #cfd8dc; } .rk-list li:nth-child(3) .r { color: #e0a06a; }
.rk-list li .nm { min-width: 0; } .rk-list li .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-list li .nm small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-list li .d { font-size: 16px; color: var(--yellow); white-space: nowrap; }
.rk-list li .d.win { color: #9dff6a; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs button { font: inherit; font-size: 14px; padding: 7px 12px; color: var(--cream); background: #1b261d; border: 0; cursor: pointer; }
.tabs button.on { background: #3f8f2a; color: #fff; }

/* ---------- 방송 진단소 현황판 ---------- */
.bc-wrap { max-width: 1280px; margin: 0 auto; padding: 12px 16px 40px; }
.bc-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.bc-head h1 { margin: 0; font-size: clamp(22px, 4vw, 34px); color: var(--paper); flex: 1; min-width: 220px; }
.bc-head h1 small { display: block; font-size: 14px; color: var(--muted); }
.bc-state { padding: 6px 12px; font-size: 14px; background: #b3122a; color: #fff; }
.bc-state.open { background: #2e7d32; }
.bc-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; }
@media (max-width: 980px) { .bc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bc-grid { grid-template-columns: 1fr; } }
.bc-card { background: #101711; box-shadow: inset 0 0 0 2px #22301f; padding: 14px; min-width: 0; }
.bc-card h3 { margin: 0 0 10px; font-size: 15px; color: var(--yellow); }
.bc-big { display: flex; gap: 16px; flex-wrap: wrap; }
.bc-big div { flex: 1; min-width: 90px; }
.bc-big b { display: block; font-size: 36px; color: var(--cream); font-variant-numeric: tabular-nums; }
.bc-big small { color: var(--muted); font-size: 13px; }
.bc-qr { background: #fff; padding: 8px; width: 170px; max-width: 100%; }
.bc-qr svg { display: block; width: 100%; height: auto; }
.bc-join { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bc-url { font-size: 13px; word-break: break-all; color: var(--cyan); }
.alive-list, .feed, .cause-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; }
.alive-list li { display: grid; grid-template-columns: 1fr auto 70px; gap: 8px; align-items: center; padding: 5px 0; font-size: 14px; border-bottom: 1px solid #1a231b; }
.alive-list li .hp { height: 6px; background: #2a1414; } .alive-list li .hp i { display: block; height: 100%; background: #7ee05a; }
.alive-list li.st b { color: #ffd35a; }
.feed li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid #1a231b; animation: feedIn .5s; word-break: keep-all; }
.feed li b { color: #ff6b6b; } .feed li.win b { color: #9dff6a; } .feed li small { color: var(--muted); }
@keyframes feedIn { from { background: rgba(179,18,42,.35); } }
.cause-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid #1a231b; word-break: keep-all; }
.cause-list li em { font-style: normal; color: #ff6b6b; }
.bc-ctrl { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.bc-pred { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bc-pred input { width: 90px; padding: 8px; font: inherit; background: #0b0f0c; color: var(--cream); border: 1px solid #3d5a3f; }
.bc-form { display: grid; gap: 10px; max-width: 560px; }
.bc-form label { display: grid; gap: 4px; font-size: 14px; }
.bc-form input, .bc-form select { padding: 10px; font: inherit; background: #0b0f0c; color: var(--cream); border: 1px solid #3d5a3f; }
.bc-mine { list-style: none; padding: 0; margin: 10px 0 0; }
.bc-mine li { padding: 8px 0; border-bottom: 1px solid #1f2b21; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bc-mine li a { color: var(--cyan); }
.banner { max-width: 640px; margin: 10px auto; padding: 10px 14px; background: rgba(179,18,42,.2); box-shadow: inset 0 0 0 2px #b3122a; text-align: center; }

body.zom.reduce *, body.zom.reduce *::before { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { body.zom * { animation-duration: .01s !important; } }

/* 결과: 유형 자세히 (11-20) */
.rec-type .rt-k { display: block; font-size: 12px; letter-spacing: .1em; color: #8a7a55; margin-bottom: 4px; }
.rec-type .rt-d { font-style: italic; color: #5a4c30; }
.rec-type .rt-long { font-size: 15.5px; line-height: 1.8; margin: 10px 0 0; word-break: keep-all; }
.rt-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.rt-sw h5 { margin: 0 0 4px; font-size: 14px; }
.rt-sw ul, .rt-anal ul { margin: 0; padding-left: 18px; line-height: 1.7; font-size: 14px; }
.rt-scene { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.rt-scene p { margin: 0; padding: 10px; background: rgba(42,35,24,.08); font-size: 14px; line-height: 1.6; word-break: keep-all; }
.rt-tip { margin: 12px 0 0; padding: 10px 12px; background: #2a2318; color: #ffe7a8; font-size: 14px; line-height: 1.6; }
.rt-anal { margin: 14px 0; padding: 12px 14px; background: rgba(43,79,122,.10); border-left: 4px solid #2b4f7a; }
.rt-anal h4 { margin: 0 0 6px; }
@media (max-width: 600px) { .rt-sw, .rt-scene { grid-template-columns: 1fr; } }

/* 2차: 사망·구조 배경 연출 · 생존 타임라인 */
.death { overflow: hidden; }
.death .death-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.death.win .death-bg { opacity: .65; }
.death .death-in { position: relative; z-index: 1; }
.tl { list-style: none; margin: 0; padding: 0 0 0 6px; border-left: 3px solid rgba(80,60,30,.3); }
.tl li { position: relative; display: grid; grid-template-columns: 62px 26px 1fr; align-items: center; gap: 4px; padding: 5px 0 5px 10px; font-size: 14px; word-break: keep-all; }
.tl li::before { content: ""; position: absolute; left: -8px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border-radius: 50%; background: #c8bb98; box-shadow: 0 0 0 2px #e9dfc6; }
.tl li b { color: #8a2a1a; font-size: 12px; }
.tl li .ic { font-size: 18px; text-align: center; }
.tl li.end::before { background: #b3122a; }
.tl li.end.win::before { background: #2e7d32; }
.tl li.end span:last-child { font-weight: 700; }

/* 3차 미니게임: 발전기 · 깡통 · 감염자 찾기 · 자물쇠 */
.cr-wrap { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: stretch; height: 230px; }
.cr-meter { position: relative; background: #1a221b; box-shadow: inset 0 0 0 2px #000; overflow: hidden; }
.cr-band { position: absolute; left: 0; right: 0; background: rgba(157,255,106,.22); box-shadow: inset 0 0 0 2px #9dff6a; }
.cr-fill { position: absolute; left: 6px; right: 6px; bottom: 0; background: #ffb347; transition: height .05s linear; }
.cr-fill.ok { background: #9dff6a; } .cr-fill.over { background: #ff3b3b; box-shadow: 0 0 14px #ff3b3b; }
.cr-lab { position: absolute; left: 0; right: 0; text-align: center; font-size: 10px; color: rgba(255,255,255,.55); }
.cr-lab.hi { top: 4px; } .cr-lab.lo { bottom: 4px; }
.cr-side { display: grid; align-content: center; justify-items: center; gap: 10px; }
.cr-wheel { font-size: 72px; line-height: 1; transition: transform .12s; }
.cr-stat { text-align: center; } .cr-stat b { font-size: 32px; color: #9dff6a; display: block; } .cr-stat small { color: var(--muted); }
.cr-time { width: 100%; height: 6px; background: #1a221b; } .cr-time i { display: block; height: 100%; background: #ffb347; width: 100%; }
.cr-btn, .lp-btn { width: 100%; min-height: 64px; margin-top: 12px; user-select: none; -webkit-user-select: none; touch-action: none; }
.lp-btn.hold { filter: brightness(1.3); }
.th-cv { width: 100%; height: 260px; display: block; background: #0d1410; touch-action: none; cursor: crosshair; }
.th-info { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.sp-q { margin: 0 0 10px; font-size: 16px; } .sp-q small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 560px) { .sp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-p { position: relative; padding: 4px; background: #172117; border: 0; box-shadow: inset 0 0 0 2px #2d3b2f; cursor: pointer; touch-action: manipulation; }
.sp-p canvas { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.sp-p .sp-n { position: absolute; left: 4px; top: 2px; font-size: 11px; color: var(--muted); }
.sp-p.on { background: #3a1a1a; box-shadow: inset 0 0 0 3px #ff3b3b; }
.sp-p.on::after { content: "🧟"; position: absolute; right: 3px; top: 1px; font-size: 14px; }
.lp-wrap { display: grid; gap: 8px; }
.lp-cv { width: 100%; height: 220px; display: block; background: #0d1410; }
.lp-pins { display: flex; gap: 6px; justify-content: center; } .lp-pins span { width: 30px; height: 30px; display: grid; place-items: center; background: #1b261d; }
.lp-pins span.hit { background: #2e7d32; } .lp-pins span.miss { background: #b3122a; }
@media (max-width: 560px) { .cr-btn, .lp-btn { font-size: 15px; padding-left: 8px; padding-right: 8px; } }
