/* Z-DAY · 영화처럼: 사진이 주인공, UI 는 조용하게 (game.css 위에 덮어씀)
 *  색: 거의 검정 · 글자 2단계 · 강조는 호박색 하나(날짜·정보), 빨강은 위험·사망·피해에만
 *  글꼴: 본문 Pretendard 17px / 1.7, 제목만 Black Han Sans · 카드 모서리 12px, 테두리 1px
 */
/* 본문 글꼴: 게임에 나오는 글자만 담은 Pretendard (tools/fonts/subset.py game) · 못 불러와도 기본 글꼴로 바로 */
@font-face {
  font-family: "ZDay Body";
  src: url("/z-day/fonts/pretendard-zday.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0d0e10;
  --ink: #ece8e1;          /* 본문 */
  --ink-2: #a19d95;        /* 보조 */
  --ink-3: #6f6c66;        /* 아주 흐린 것 */
  --amber: #d4a24c;        /* 날짜 · 정보 */
  --danger: #e0574f;       /* 위험 · 사망 · 피해 */
  --line-1: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --card: rgba(22, 23, 26, 0.92);
  --card-2: rgba(30, 31, 35, 0.95);
  --r: 12px;
  --font-body: "ZDay Body", "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  /* game.css 변수도 같은 팔레트로 */
  --panel: var(--card);
  --panel-strong: var(--card-2);
  --line: var(--line-1);
  --text: var(--ink);
  --muted: var(--ink-2);
  --red: var(--danger);
  --red-deep: #a8352f;
  --green: var(--ink);
  --gold: var(--amber);
  --radius: var(--r);
  --radius-btn: var(--r);
}

html, body { background: var(--bg) !important; }
body, button, input, select, textarea { font-family: var(--font-body); }
body { color: var(--ink); font-size: 17px; line-height: 1.7; letter-spacing: -0.005em; }
h1, .res-name, .glitch, .ending-name, .start-title { font-family: var(--font-display); letter-spacing: 0; }

/* ---------- 효과 빼기: 주사선 · 노이즈 · 눈송이 · 붉은 빛 · 분위기 색 ---------- */
#grain, .fx-scan, .fx-flicker, #moodCanvas, .mo-beacon, .mo-flicker, .mo-ambulance, .mo-breath, #moodTint .mt { display: none !important; }
.mo-vignette, .mo-edge { opacity: 0 !important; animation: none !important; }
body[data-mood="dread"] .wrap, body[data-mood="chase"] .wrap { animation: none !important; filter: none !important; scale: 1 !important; }
.fx-vignette { opacity: 0.5; }
/* 사진: 아래쪽 그라데이션 하나만 */
.stage-shade { background: linear-gradient(to bottom, rgba(13, 14, 16, 0) 55%, rgba(13, 14, 16, 0.6) 82%, var(--bg) 100%) !important; }
body.has-photo #stage { background-color: var(--bg) !important; }

/* ---------- HUD: 얇게, 한 줄 + 상태 아이콘 + 동료 ---------- */
#hud, body.has-photo #hud { background: linear-gradient(rgba(13, 14, 16, 0.92), rgba(13, 14, 16, 0.7) 75%, transparent) !important; padding: 6px 16px 8px !important; }
.hud-row { min-height: 44px; align-items: center; }
.hud-day { font: 600 13.5px/1.3 var(--font-body) !important; color: var(--amber) !important; letter-spacing: 0 !important; text-shadow: none !important; }
.hud-right { gap: 0 !important; margin-right: -10px; }
.hud-journal { width: 44px !important; height: 44px !important; min-width: 44px; padding: 0 !important; border: 0 !important; background: none !important; color: var(--ink-2) !important; display: inline-flex !important; align-items: center; justify-content: center; position: relative; font-size: 0 !important; box-shadow: none !important; }
.hud-journal:hover, .hud-journal:focus-visible { color: var(--ink) !important; }
.hud-ico, .hud-ico .ico { display: inline-flex; width: 22px; height: 22px; }
.hud-dot { position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber) !important; }
.hud-bars { display: flex !important; align-items: center; gap: 14px !important; margin-top: 2px !important; flex-wrap: wrap; }
.hud-bar { display: inline-flex !important; align-items: center; gap: 2px !important; min-height: 32px; padding: 0 2px !important; border: 0; background: none !important; color: var(--ink); cursor: pointer; border-radius: 8px; }
.hud-bar .ico { width: 17px; height: 17px; flex: none; }
.hud-bar .heart.full, .hud-bar .heart.half { color: var(--ink); }
.hud-bar .heart.empty { color: var(--ink-3); }
.hud-bar.low .heart.full, .hud-bar.low .heart.half { color: var(--danger); }
.hud-bar .bowl { color: var(--ink); }
.hud-bar .bowl.empty, .hud-bar.low .bowl { color: var(--danger); }
.hud-x { font: 600 13px/1 var(--font-body); color: var(--ink); margin-left: 3px; }
.hud-bar .face { width: 20px; height: 20px; color: var(--ink); }
.hud-bar .face.lv2 { color: var(--amber); }
.hud-bar .face.lv3 { color: var(--danger); }
.hud-bar.flash-down { animation: hud-down 0.5s ease; }
.hud-bar.flash-up { animation: hud-up 0.5s ease; }
@keyframes hud-down { 0%, 100% { background: none; } 40% { background: rgba(224, 87, 79, 0.18); } }
@keyframes hud-up { 0%, 100% { background: none; } 40% { background: rgba(255, 255, 255, 0.1); } }
.hud-bar.low .bar-track, .hud-bar.low .bar-ico { animation: none !important; }
.bar-num, .bar-track, .bar-ico { display: none !important; }
.hud-sub { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px !important; min-height: 0; }
.hud-need { font: 500 13px/1.4 var(--font-body) !important; color: var(--ink-2) !important; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.hud-need > i { display: none; }
.hud-need .need-warn { color: var(--danger) !important; display: inline-flex; gap: 4px; align-items: center; font-weight: 600; }
.hud-need .need-warn .ico { width: 14px; height: 14px; }
.hud-need .need-low { color: var(--danger); }
.hud-party { display: flex !important; gap: 6px !important; margin: 0 !important; }
.party-ico { width: auto !important; height: 32px !important; padding: 0 10px 0 4px !important; border: 1px solid var(--line-1) !important; border-radius: 99px !important; background: rgba(13, 14, 16, 0.6) !important; color: var(--ink) !important; display: inline-flex !important; align-items: center; gap: 4px; font: 500 12.5px/1 var(--font-body) !important; }
.party-ico .ico { width: 20px; height: 20px; }
.party-ico.st-away { opacity: 0.5; border-style: dashed !important; }
@media (max-width: 380px) { .party-ico .party-name { display: none; } .party-ico { padding: 0 6px !important; } }

/* ---------- 장면: 사진 위 45%, 아래는 검정 위의 글 ---------- */
.panel, body.portrait .panel { background: linear-gradient(to bottom, rgba(13, 14, 16, 0) 0, var(--bg) 28px) !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding-left: 20px !important; padding-right: 20px !important; }
.panel::before { display: none !important; }
.panel .q-text, body.portrait .panel .q-text, .day-card .q-text { font: 500 17px/1.7 var(--font-body) !important; color: var(--ink) !important; text-shadow: none !important; margin-bottom: 18px !important; letter-spacing: -0.01em; }
.q-line { display: block; }
.q-line + .q-line { margin-top: 6px; }
.q-line.megaphone { border: 1px solid var(--line-2) !important; border-radius: var(--r) !important; background: var(--card) !important; color: var(--ink) !important; padding: 12px 14px !important; box-shadow: none !important; }
.q-line.megaphone i { display: none; }
.chat { background: none !important; border: 0 !important; padding: 0 !important; }
.bubble-who { color: var(--amber) !important; font-weight: 600; }
.bubble p { background: var(--card) !important; border: 1px solid var(--line-1); border-radius: var(--r) !important; color: var(--ink) !important; }
/* 동료 대사: 이름(호박색) + 따옴표 문장, 한 단계 작게 */
.party-say, body.portrait .party-say { margin: 4px 0 16px !important; padding: 0 0 0 12px !important; border: 0 !important; border-left: 2px solid var(--line-2) !important; border-radius: 0 !important; background: none !important; color: var(--ink-2) !important; font: 400 15px/1.6 var(--font-body) !important; font-style: normal !important; }
.party-say b { color: var(--amber) !important; font-weight: 600; margin-right: 4px; }
.party-note { margin: 10px 0 !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--ink-2) !important; font: 400 15px/1.6 var(--font-body) !important; display: flex; gap: 8px; align-items: flex-start; }
.party-note.danger { color: var(--danger) !important; }
.party-note .ico { width: 16px; height: 16px; flex: none; margin-top: 4px; }
.party-note b { color: var(--amber) !important; }

/* ---------- 선택지: 깔끔한 카드 하나로 (노란 줄무늬 · 기울임 · 번쩍임 없음) ---------- */
html body .choice,
html body[data-mood] .choice {
  position: relative; display: flex !important; align-items: center; gap: 14px !important;
  min-height: 56px !important; padding: 14px 16px !important;
  border: 1px solid var(--line-2) !important; border-radius: var(--r) !important;
  background: var(--card) !important; color: var(--ink) !important; box-shadow: none !important;
  font: 600 16px/1.45 var(--font-body) !important; text-align: left; transform: none !important;
  animation: choice-in 0.35s ease both !important;
}
html body .choice:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.32) !important; background: var(--card-2) !important; }
html body .choice:focus-visible { outline: 2px solid var(--amber) !important; outline-offset: 2px; }
html body .choice.picked { border-color: var(--ink) !important; }
html body .choice.dim { opacity: 0.38 !important; }
html body .choice.risky { border-color: rgba(224, 87, 79, 0.65) !important; }
html body .choice.risky:hover:not(:disabled) { border-color: var(--danger) !important; }
html body .choice.locked { opacity: 0.42 !important; filter: grayscale(1) !important; border-style: dashed !important; }
html body .choice.secret { border-color: rgba(212, 162, 76, 0.55) !important; }
@keyframes choice-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html body .choice-key, html body[data-mood] .choice-key {
  flex: none; width: 26px !important; height: 26px !important; border-radius: 50% !important;
  border: 1px solid var(--line-2) !important; background: none !important; color: var(--ink-2) !important;
  font: 600 12.5px/1 var(--font-body) !important; display: inline-flex !important; align-items: center; justify-content: center; box-shadow: none !important;
}
.choice-key .ico { width: 16px; height: 16px; }
.choice-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.choice-why, .panel .choice-why { margin: 0 !important; color: var(--ink-2) !important; font: 400 13.5px/1.5 var(--font-body) !important; }
.choice-note, .choice-tag, .choice-warn { font: 400 13px/1.5 var(--font-body) !important; color: var(--ink-2) !important; background: none !important; border: 0 !important; padding: 0 !important; }
.choice-warn { color: var(--danger) !important; }
.choice-secret { color: var(--amber) !important; font: 600 12.5px/1.4 var(--font-body) !important; background: none !important; padding: 0 !important; }
.choice-item { display: inline !important; background: none !important; border: 0 !important; padding: 0 !important; margin-right: 6px !important; color: var(--ink-2) !important; font-weight: 600 !important; }
.choice-item.miss { color: var(--ink-3) !important; }
.need-tag { display: inline-block !important; margin: 0 8px 0 0 !important; padding: 1px 8px !important; border: 1px solid rgba(212, 162, 76, 0.5) !important; border-radius: 99px !important; background: none !important; color: var(--amber) !important; font: 600 12px/1.6 var(--font-body) !important; }
.choice-risk { flex: none; color: var(--danger); display: inline-flex; }
.choice-risk .ico { width: 18px; height: 18px; }
.choice-itemico { flex: none; color: var(--ink-2); display: inline-flex; }
.choice-itemico .ico { width: 20px; height: 20px; }
.choice-bars, .choice-check { display: none !important; }
.choices { gap: 10px !important; }
.choice-result, body.portrait .panel .choice-result { margin-top: 14px !important; padding: 14px 16px !important; border: 1px solid var(--line-1) !important; border-radius: var(--r) !important; background: var(--card) !important; color: var(--ink) !important; font: 400 16px/1.7 var(--font-body) !important; box-shadow: none !important; }
.choice-result.death { border-color: rgba(224, 87, 79, 0.6) !important; color: var(--ink) !important; }
.judge-tag { padding: 1px 8px !important; border-radius: 99px !important; font: 600 12.5px/1.6 var(--font-body) !important; background: none !important; border: 1px solid var(--line-2); color: var(--ink) !important; margin-right: 6px; }
.judge-tag.fail { border-color: rgba(224, 87, 79, 0.6); color: var(--danger) !important; }
.judge-tag.fled { color: var(--ink-2) !important; }
.judge, .judge-text { font-family: var(--font-body) !important; }

/* ---------- 버튼: 주 버튼 하나는 밝게, 나머지는 테두리만 ---------- */
html body .btn {
  min-height: 52px !important; padding: 0 22px !important; border-radius: var(--r) !important;
  border: 1px solid var(--ink) !important; background: var(--ink) !important; color: #111214 !important;
  font: 700 16px/1 var(--font-body) !important; box-shadow: none !important; text-shadow: none !important; animation: none !important; letter-spacing: 0;
}
html body .btn:hover { background: #fff !important; }
html body .btn:focus-visible { outline: 2px solid var(--amber) !important; outline-offset: 3px; }
html body .btn::before, html body .btn::after { display: none !important; }
html body .btn-ghost { background: none !important; color: var(--ink) !important; border-color: var(--line-2) !important; }
html body .btn-ghost:hover { border-color: var(--ink) !important; background: rgba(255, 255, 255, 0.04) !important; }
.actions { padding-top: 20px !important; }

/* ---------- 하루 카드 · 탐색 · 결과 ---------- */
.day-card { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.day-card-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 10px !important; font: 600 13.5px/1.4 var(--font-body) !important; color: var(--amber) !important; letter-spacing: 0 !important; }
.day-card-head span { display: inline-flex; align-items: center; gap: 5px; color: var(--amber) !important; }
.day-card-head span + span { color: var(--ink-2) !important; }
.day-card-head .ico { width: 15px; height: 15px; }
.day-card-head b { background: none !important; color: var(--ink-2) !important; border: 0 !important; font-weight: 500; }
.loc-risk { color: var(--ink-2) !important; }
.loc-risk.r3 { color: var(--danger) !important; }
.day-line { color: var(--ink) !important; font-size: 15.5px !important; display: flex; gap: 8px; align-items: flex-start; }
.day-line b { color: var(--amber); font-weight: 600; margin-right: 4px; }
.day-line .ico, .day-journal .ico { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--ink-2); }
.day-journal { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line-1) !important; border-radius: var(--r) !important; background: var(--card) !important; color: var(--ink-2) !important; font-size: 14.5px !important; }
.pass-reason { color: var(--ink-2) !important; }
/* 탐색 카드 */
.ex-card { background: var(--card) !important; border: 1px solid var(--line-1) !important; border-radius: var(--r) !important; }
.ex-card.on { border-color: var(--line-2) !important; }
.ex-name { font: 700 20px/1.3 var(--font-body) !important; color: var(--ink); }
.ex-mood { color: var(--ink-2) !important; font-size: 14.5px !important; }
.ex-tags span { background: none !important; border: 1px solid var(--line-1); color: var(--ink-2) !important; font: 500 13px/1.5 var(--font-body) !important; display: inline-flex; align-items: center; gap: 4px; }
.ex-tags .ico { width: 14px; height: 14px; }
.ex-risk.low, .ex-risk.mid { color: var(--ink) !important; }
.ex-risk.high { color: var(--danger) !important; border-color: rgba(224, 87, 79, 0.5) !important; }
.ex-stat { color: var(--ink-2) !important; font-weight: 500 !important; }
.ex-warn { color: var(--danger) !important; }
.ex-count { font-family: var(--font-body) !important; background: rgba(13, 14, 16, 0.7) !important; }
.ex-dots i { background: var(--line-2) !important; }
.ex-dots i.on { background: var(--ink) !important; }
.ex-rest { border: 1px solid var(--line-1) !important; border-radius: var(--r) !important; min-height: 56px; }
.ex-rest b { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px !important; }
.ex-rest .ico { width: 16px; height: 16px; }
.ex-arrow { border: 1px solid var(--line-2) !important; background: rgba(13, 14, 16, 0.75) !important; width: 44px !important; height: 44px !important; }
.ex-res-title { font: 700 21px/1.35 var(--font-body) !important; }
.ex-res-col { border: 1px solid var(--line-1) !important; border-radius: var(--r) !important; background: var(--card); }
.ex-res-col > b { color: var(--ink-2) !important; font-weight: 600 !important; }
.ex-res-col.loss > b { color: var(--danger) !important; }
.ex-res-col li { color: var(--ink); }
.rl { display: inline-flex; align-items: center; gap: 6px; }
.rl .ico { width: 17px; height: 17px; flex: none; color: var(--ink-2); }
.ex-res-col.loss .rl .ico { color: var(--danger); }
.ex-empty { color: var(--ink-3) !important; }

/* ---------- 사건 카드 · 사망 ---------- */
.event, .death-card { background: var(--card) !important; border: 1px solid var(--line-1) !important; border-radius: var(--r) !important; box-shadow: none !important; }
.death-card { border-color: rgba(224, 87, 79, 0.5) !important; }
.event-title { font: 700 18px/1.4 var(--font-body) !important; color: var(--danger) !important; letter-spacing: 0 !important; }
.event-icon { filter: grayscale(1); opacity: 0.6; }
.event-text { font: 400 17px/1.75 var(--font-body) !important; color: var(--ink) !important; }

/* ---------- 시작 화면 ---------- */
.start-zombie { display: none !important; }
.alert-pill { background: none !important; border: 1px solid rgba(212, 162, 76, 0.5) !important; color: var(--amber) !important; font: 600 12px/1 var(--font-body) !important; letter-spacing: 0.04em; animation: none !important; box-shadow: none !important; }
.glitch { animation: none !important; text-shadow: none !important; color: var(--ink) !important; }
.glitch::before, .glitch::after { display: none !important; }
.start-sub { color: var(--ink-2) !important; font-size: 16px !important; }
.start-big { color: var(--ink) !important; font-family: var(--font-display) !important; text-shadow: none !important; }
.btn-pulse { animation: none !important; }

/* ---------- 시트(가방 · 설정 · 버리기) ---------- */
.sheet-box { background: #141518 !important; border: 1px solid var(--line-1) !important; border-radius: 16px 16px 0 0 !important; box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.55) !important; }
.sheet-title { font: 700 19px/1.3 var(--font-body) !important; color: var(--ink) !important; }
.sheet-title small { color: var(--ink-2) !important; font-weight: 500; }
.bag-card { background: var(--card) !important; border: 1px solid var(--line-1) !important; border-radius: var(--r) !important; }
.bag-card-emoji { color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.bag-card-emoji .ico { width: 30px; height: 30px; }
.bag-card-name { font-weight: 700 !important; color: var(--ink) !important; }
.bag-card-name small { color: var(--ink-2) !important; background: none !important; }
.bag-card-desc { color: var(--ink) !important; }
.bag-card-hint { color: var(--ink-2) !important; font-style: normal !important; }
.tgl-ui { background: var(--line-2) !important; }
/* 아래 가방 바: 짐 싸기 중에만 */
.bag { background: rgba(13, 14, 16, 0.94) !important; border: 1px solid var(--line-1) !important; border-radius: var(--r) !important; box-shadow: none !important; }
.slot { border: 1px dashed var(--line-2) !important; background: none !important; color: var(--ink) !important; }
.slot.filled { border-style: solid !important; border-color: var(--line-2) !important; background: var(--card) !important; }
.slot .ico { width: 20px; height: 20px; }
.bag-ico { display: none; }
body.in-scene .wrap, body.in-scene.has-bag .wrap { padding-bottom: 0 !important; }
body.portrait.in-scene .panel { padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important; }
body.portrait.in-scene.has-bag .panel { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
body:not(.has-bag) .screen:not(.scene) { padding-bottom: 28px !important; }

/* ---------- 알림 · 기억 ---------- */
#toast { background: #17181b !important; color: var(--ink) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r) !important; font: 500 14.5px/1.55 var(--font-body) !important; }
#memory, .jr-notice { background: #17181b !important; color: var(--ink-2) !important; border: 1px solid var(--line-1) !important; border-radius: var(--r) !important; font-family: var(--font-body) !important; box-shadow: none !important; }
body #toast, body.has-bag #toast { bottom: calc(24px + env(safe-area-inset-bottom)) !important; }

/* ---------- 미니게임 ---------- */
.mg, .mg-card { font-family: var(--font-body) !important; }
.mg-btn { border-radius: var(--r) !important; border: 1px solid var(--line-2) !important; background: var(--card) !important; color: var(--ink) !important; box-shadow: none !important; font: 700 17px/1 var(--font-body) !important; min-height: 56px; }
.mg-btn.down, .mg-btn:active { background: var(--card-2) !important; border-color: var(--ink) !important; }
.mg-intro, .run-time, .mg-hint { font-family: var(--font-body) !important; color: var(--ink-2) !important; }
.run-time { color: var(--ink) !important; font-weight: 600; }
.run-verdict { font-family: var(--font-body) !important; }
.run-verdict.ok { color: var(--ink) !important; }
.run-verdict.fail { color: var(--danger) !important; }
.mg-pic { border-radius: var(--r) !important; border: 1px solid var(--line-1) !important; }
.mg-tut, .mg-tut-card { background: #141518 !important; border: 1px solid var(--line-1) !important; border-radius: var(--r) !important; }

/* ---------- 일지: 수첩 느낌만 남기고 차분하게 ---------- */
.jr-book { transform: none !important; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55) !important; }
.jr-photo, .jr-polaroid { transform: none !important; }
.jr-rings i { opacity: 0.5; }
.jr-stamp { opacity: 0.85; }
.jr-bar button { min-height: 48px; border-radius: var(--r) !important; font-family: var(--font-body) !important; }
.jr-next { background: var(--ink) !important; color: #111214 !important; border: 0 !important; box-shadow: none !important; }
.jr-prev { background: none !important; border: 1px solid var(--line-2) !important; color: var(--ink) !important; }
.jr-count { color: var(--ink-2) !important; font-family: var(--font-body) !important; }

/* ---------- 결과 화면 ---------- */
.res-head, .res-card, .res-block, .result-card { background: var(--card) !important; border: 1px solid var(--line-1) !important; border-radius: var(--r) !important; box-shadow: none !important; }
.res-badge { background: none !important; border: 1px solid var(--line-2) !important; color: var(--ink) !important; font: 600 13px/1.6 var(--font-body) !important; }
.res-emoji { filter: grayscale(0.4); }
.res-stars { color: var(--amber) !important; }
.res-new { color: var(--amber) !important; }
.res-death { color: var(--danger) !important; }

/* ---------- 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  html body .choice { animation: none !important; }
  .hud-bar.flash-down, .hud-bar.flash-up { animation: none !important; }
}
body.calm-fx html body .choice, body.calm-fx .choice { animation: none !important; }

/* 2차: 남은 효과 · 이모지 자리 정리 */
.fx-alarm { display: none !important; }
.res-emoji { display: none !important; }
.res-head, .res-head.res-rescued, .res-head.res-survived, .res-head.res-dead { background: var(--card) !important; border-color: var(--line-2) !important; }
.res-head.res-dead { border-color: rgba(224, 87, 79, 0.5) !important; }
.ach-new, .card, .res-more { background: var(--card) !important; border: 1px solid var(--line-1) !important; border-radius: var(--r) !important; box-shadow: none !important; }
.card-title { font: 600 14px/1.4 var(--font-body) !important; color: var(--ink-2) !important; letter-spacing: 0 !important; }
.ach-new .card-title { color: var(--amber) !important; }
.start-dex-btn { min-height: 48px !important; padding: 0 18px !important; border: 1px solid var(--line-2) !important; background: none !important; color: var(--ink) !important; font: 600 14.5px/1 var(--font-body) !important; border-radius: var(--r) !important; }
.start-big { -webkit-text-stroke: 0 !important; text-shadow: none !important; color: var(--ink) !important; }
.start-meta { color: var(--ink-2) !important; font-family: var(--font-body) !important; }
#journalBtn { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; }
#journalBtn .ico { width: 18px; height: 18px; }
/* HUD: 날짜는 줄바꿈 허용 · 상태 아이콘과 동료는 탭 영역 48px */
.hud-day { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; max-width: calc(100% - 180px); }
.hud-bar { min-height: 48px !important; min-width: 48px; justify-content: center; }
.party-ico { height: 48px !important; border: 0 !important; background: none !important; padding: 0 8px !important; position: relative; }
.party-ico::before { content: ''; position: absolute; inset: 8px 0; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(13, 14, 16, 0.6); z-index: -1; }
.party-ico { isolation: isolate; }
.hud-party { gap: 4px !important; }
.choice-key .ico { width: 15px; height: 15px; }

/* HUD 를 얇게: 동료는 상태 줄 오른쪽 · 남은 날은 작은 한 줄 */
#hudBars { flex-wrap: nowrap !important; gap: 6px !important; }
#hudBars .hud-bar { min-width: 44px; }
#hudBars .hud-party { margin-left: auto !important; display: flex; gap: 0 !important; }
.party-ico { width: 44px !important; padding: 0 !important; justify-content: center; }
.party-ico::before { inset: 6px 4px !important; border-radius: 50% !important; }
.party-ico .party-name { display: none !important; }
.hud-sub { margin-top: 0 !important; }
.hud-need { font-size: 12.5px !important; }
body.calm-fx .choice { animation: none !important; }

.rel-hearts { display: inline-flex; gap: 4px; color: var(--ink); }
.rel-hearts .ico { width: 18px; height: 18px; }
.rel-hearts .heart.empty { color: var(--ink-3); }
.rel-clue { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2) !important; font-style: normal !important; }
.rel-clue .ico, .ach-row i .ico { width: 16px; height: 16px; flex: none; margin-top: 4px; }
.ach-row i { color: var(--amber); font-style: normal; display: inline-flex; }
.ach-row:not(.got) i { color: var(--ink-3); }
.hud-bar[hidden], #hudBag[hidden] { display: none !important; }
.jr-bar .jr-next { background: var(--ink) !important; background-image: none !important; color: #111214 !important; }
.jr-bar .jr-next:disabled { opacity: 0.45; }

/* ---------- 급한 문제 정리 ---------- */
/* HUD: 최대 2줄 · 90px 이하 · 불투명 (스크롤해도 뒤 글자가 비치지 않음) */
#hud, body.has-photo #hud { background: var(--bg) !important; border-bottom: 1px solid var(--line-1); padding: 2px 16px 2px !important; }
.hud-row { min-height: 44px !important; }
.hud-day { display: flex !important; flex-direction: column; justify-content: center; gap: 0; line-height: 1.25 !important; max-width: calc(100% - 176px) !important; white-space: nowrap !important; overflow: hidden !important; }
.hud-day > span { overflow: hidden; text-overflow: ellipsis; }
.hud-day .hud-need { margin: 0 !important; font-size: 12px !important; gap: 0 8px !important; flex-wrap: nowrap !important; overflow: hidden; white-space: nowrap; }
.hud-day .hud-need .ico { width: 12px; height: 12px; }
.hud-bars { margin-top: 0 !important; min-height: 40px; }
.hud-bar { min-height: 40px !important; }
.hud-sub { display: none !important; }
.hud-bar .halfbowl { opacity: 0.45; }
.party-ico { height: 40px !important; width: 40px !important; }
.party-ico::before { inset: 4px 2px !important; }
/* 본문이 한 줄씩 나오는 동안: 선택지는 보이되 살짝 흐리게 (누를 수 있음) */
.q-text.reveal ~ .choices .choice { animation-delay: 0s !important; }
.panel.revealing .choices .choice { filter: opacity(0.55); }
.panel.all .q-line { animation: none !important; opacity: 1 !important; }
.news-lines.all p, .actions.all { animation: none !important; opacity: 1 !important; }
/* 이어하기 버튼 · 결과 힌트 · 보급 상자 · 짐 풀기 */
.continue-btn .cont-bars { display: flex !important; gap: 14px; justify-content: center; align-items: center; }
.continue-btn .cb { display: inline-flex; gap: 2px; align-items: center; font: 600 13px/1 var(--font-body); color: #111214; }
.continue-btn .cb .ico { width: 15px; height: 15px; }
.continue-btn .heart.empty { opacity: 0.35; }
.supply-emoji { display: inline-flex; color: var(--ink); }
.supply-emoji .ico { width: 30px; height: 30px; }
.unpack-row span .ico { width: 16px; height: 16px; vertical-align: -2px; }
.event-icon .ico { width: 54px; height: 54px; color: var(--danger); }
.choice.locked .choice-note { color: var(--danger) !important; }
/* ---------- 짧고 선명하게 ---------- */
/* 건너뛴 날 · 자동 아침 · 굶주림 경고: 새 화면 맨 위 한 줄 */
.top-notes { display: grid; gap: 6px; margin: 0 0 10px; }
.top-note { margin: 0; padding: 8px 12px; border-left: 2px solid var(--line-2); background: rgba(255, 255, 255, 0.04); font: 500 14px/1.5 var(--font-body); color: var(--ink-2); }
.top-note b { color: var(--ink); font-weight: 650; margin-right: 6px; }
.top-note .ico { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
.top-note .warn, .top-note.brink b { color: var(--danger); }
.top-note.brink, .brink-warn { border-left-color: var(--danger); background: rgba(224, 87, 79, 0.10); color: var(--ink); }
.brink-warn { margin: 0 0 10px; padding: 8px 12px; border-left: 2px solid var(--danger); font: 500 14px/1.5 var(--font-body); }
.brink-warn b { color: var(--danger); }
.brink-warn .ico { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; color: var(--danger); }
.night-line .ico { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
/* 짐 싸기: 물건 테두리 깜빡임 (설명 카드 뒤 · 시작 4초), 먹을 것은 끝까지 옅은 테두리 */
.spot.blink:not(.packed) { animation: spot-blink 0.9s ease-in-out infinite; }
.spot.food:not(.packed):not(.blink) { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); }
@keyframes spot-blink { 0%, 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); } 50% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 18px 4px rgba(255, 255, 255, 0.35); } }
@media (prefers-reduced-motion: reduce) { .spot.blink:not(.packed) { animation: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8); } }
.toast-rel { display: flex; align-items: center; gap: 3px; margin-top: 6px; font-size: 13px; }
.toast-rel .ico { width: 15px; height: 15px; color: var(--danger); }
.toast-rel .heart.empty { color: currentColor; opacity: 0.35; }
.rel-clue-title { margin: 12px 0 4px; font: 600 13px/1.4 var(--font-body); color: var(--ink-2); }

/* ---------- 처음 1분: 🎧 이어폰 화면 (메인 [생존 시작] · 타이틀 [생존 시작] 다음) ---------- */
html.quick .screen.pre { visibility: hidden; }
html.quick body { background: #000; }
.screen.ear-screen { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)); background: #000; text-align: center; }
.ear { display: grid; gap: 22px; justify-items: center; width: min(360px, 100%); }
.ear-big { margin: 0; color: #f1e9e9; font: 700 20px/1.5 var(--font-body, system-ui); letter-spacing: -0.01em; animation: ear-in 1.2s ease both; }
.ear-big span { display: block; margin-bottom: 10px; font-size: 44px; line-height: 1; }
.ear-tap { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 calc(18vh + env(safe-area-inset-bottom, 0px)); border: 0; background: transparent; color: #8d7f80; font: 400 14px/1.5 var(--font-body, system-ui); cursor: pointer; }
.ear-tap span { animation: ear-blink 2.2s ease-in-out 0.8s infinite both; }
.ear-tap:focus-visible span { outline: 1px solid #8d7f80; outline-offset: 6px; }
.ear-actions { display: grid; gap: 10px; width: 100%; animation: ear-in 1s ease 0.2s both; }
@keyframes ear-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ear-blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- 미니게임 첫 안내: 손가락 시범 + 한 줄 (누름을 막지 않음) ---------- */
.mg-coach { position: fixed; left: 50%; top: 22%; z-index: 85; display: grid; gap: 8px; justify-items: center; width: min(260px, calc(100% - 32px)); padding: 12px 14px 12px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; background: rgba(8, 6, 7, 0.82); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55); pointer-events: none; opacity: 0; transform: translate(-50%, 8px); transition: opacity 0.35s ease, transform 0.35s ease; }
.mg-coach.on { opacity: 1; transform: translate(-50%, 0); }
.mg-coach .mg-tut-demo { width: 200px; height: 74px; }
.mg-coach-line { margin: 0; color: #fff; font: 800 16px/1.4 var(--font-body, system-ui); word-break: keep-all; text-align: center; }
.mg-help-list { display: grid; gap: 12px; max-height: 62vh; overflow-y: auto; margin: 0 0 12px; }
.mg-help-card { padding: 12px; border: 1px solid var(--line-1, var(--line)); border-radius: 12px; background: rgba(0, 0, 0, 0.25); text-align: center; }
.mg-help-card h3 { margin: 0 0 8px; font-size: 16px; }
.mg-help-card .mg-tut-how { margin-bottom: 0; }

/* ---------- 🌙 쉬어 가는 카드 (하루가 끝날 때마다) ---------- */
.rest-screen .panel { display: grid; align-content: center; min-height: 60vh; }
.rest-card { display: grid; gap: 12px; padding: 22px 18px 18px; border: 1px solid var(--line-1, var(--line)); border-radius: var(--radius); background: rgba(10, 8, 9, 0.72); text-align: center; animation: ear-in 0.6s ease both; }
.rest-date { margin: 0; color: var(--text); font: 400 26px/1.25 var(--font-display); letter-spacing: 0.01em; }
.rest-line { margin: 0; color: var(--ink-2, var(--muted)); font-size: 15px; line-height: 1.6; word-break: keep-all; }
.rest-left { display: inline-flex; gap: 6px; align-items: center; justify-content: center; margin: 0; color: var(--muted); font-size: 13px; }
.rest-left .ico { width: 15px; height: 15px; }
.rest-actions { display: grid; gap: 8px; margin-top: 4px; }
.rest-saved { display: grid; gap: 10px; }
.rest-saved p { margin: 0; color: var(--text); line-height: 1.6; }

/* ---------- 히든 콘텐츠: 못 본 엔딩의 실마리 ---------- */
.dex-cell .dex-tease { display: block; color: var(--muted); font-size: 10px; line-height: 1.3; word-break: keep-all; }
.rel-clue small { font-size: 13px; color: var(--muted); }

/* ---------- 아이콘 기본 크기: 크기 규칙이 없는 곳에서도 글자 크기에 맞춤 (화면을 가득 채우지 않게) ---------- */
svg.ico { width: 1.2em; height: 1.2em; max-width: 64px; max-height: 64px; flex: none; vertical-align: -0.22em; overflow: visible; }
#app svg:not(.ico):not(.chart-svg):not(.tr-svg):not(.ecg) { max-width: 100%; max-height: 60vh; }

/* ---------- 아침: 맨 위 작은 한 줄 + 가로 버튼 ---------- */
.morning-line { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 0 0 12px; color: var(--ink); font: 600 15px/1.5 var(--font-body); }
.morning-line .ml-when { display: inline-flex; gap: 5px; align-items: center; color: var(--amber); }
.morning-line .ico { width: 16px; height: 16px; }
.choices.morning-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.morning-acts .choice { display: flex !important; flex-direction: column !important; gap: 3px !important; align-items: center !important; justify-content: center !important; min-height: 64px; padding: 10px 6px !important; text-align: center; }
.morning-acts .ma-text { font-weight: 700; font-size: 15px; white-space: nowrap; line-height: 1.3; word-break: keep-all; }
.morning-acts .ma-cost { color: var(--ink-2); font-size: 12px; line-height: 1.3; word-break: keep-all; }
.morning-screen .party-say, .morning-screen .choice-result { margin-top: 10px; }

/* ---------- 일지 버튼: 종이 위에서도 확실히 ---------- */
.jr-bar .jr-next { min-height: 54px !important; padding: 0 26px !important; background: var(--amber) !important; background-image: none !important; color: #1a1206 !important; border: 0 !important; font-weight: 800 !important; font-size: 17px !important; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) inset !important; }
.jr-bar .jr-prev { min-height: 50px !important; padding: 0 18px !important; background: rgba(10, 10, 12, 0.72) !important; color: #fff !important; border: 2px solid rgba(255, 255, 255, 0.85) !important; font-weight: 700 !important; font-size: 15px !important; }
.jr-bar .jr-prev:disabled { opacity: 0.35; }

/* ======================= 화면 · 글 · 엔딩 정리 (11/30) ======================= */

/* ---------- 선택지 카드: 배경보다 밝은 면 + 왼쪽 강조선 + 누르면 밝아짐 ---------- */
html body .choice, html body[data-mood] .choice {
  background: #23252b !important; border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 3px 0 0 var(--amber), 0 2px 10px rgba(0, 0, 0, 0.35) !important;
  transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}
html body .choice:hover:not(:disabled) { background: #2c2f36 !important; border-color: rgba(255, 255, 255, 0.3) !important; }
html body .choice:active:not(:disabled), html body .choice.picked { background: #363a43 !important; border-color: rgba(255, 255, 255, 0.55) !important; }
html body .choice.risky { box-shadow: inset 3px 0 0 var(--danger), 0 2px 10px rgba(0, 0, 0, 0.35) !important; border-color: rgba(255, 255, 255, 0.16) !important; }
html body .choice.risky:hover:not(:disabled) { border-color: rgba(224, 87, 79, 0.7) !important; }
html body .choice.secret { box-shadow: inset 3px 0 0 #f1c46b, 0 2px 10px rgba(0, 0, 0, 0.35) !important; }
html body .choice.locked { opacity: 0.45 !important; box-shadow: none !important; background: #191a1e !important; }
html body .choice.dim { opacity: 0.4 !important; }
html body .choice-key { color: var(--ink) !important; border-color: rgba(255, 255, 255, 0.35) !important; }
/* 넘칠 때 카드 높이 줄이기 */
.choices.tight { gap: 6px !important; }
.choices.tight .choice { min-height: 46px !important; padding: 9px 12px !important; font-size: 15px !important; }
.choices.tight .choice-why { font-size: 12.5px !important; line-height: 1.35 !important; }
/* 선택지가 더 있어요 ▼ */
.more-choices { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; align-items: flex-end; height: 84px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(10, 11, 13, 0), rgba(10, 11, 13, 0.92) 70%); color: var(--ink); font: 600 13.5px/1.4 var(--font-body); pointer-events: none; opacity: 0; transition: opacity 0.25s ease; }
.more-choices.on { opacity: 1; }
body.has-bag .more-choices { bottom: var(--bag-h, 64px); }

/* ---------- 주요 버튼: 일지 [계속]처럼 호박색으로 채움 ---------- */
html body .btn:not(.btn-ghost) {
  background: var(--amber) !important; border-color: var(--amber) !important; color: #1a1206 !important;
  font-weight: 800 !important; font-size: 17px !important; min-height: 54px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
}
html body .btn:not(.btn-ghost):hover { background: #e2b25e !important; }
html body .btn:not(.btn-ghost):active { filter: brightness(1.12); }
html body .btn:not(.btn-ghost):disabled { opacity: 0.45; }

/* ---------- 기울임 글꼴 없음 ---------- */
body, body * { font-style: normal !important; }

/* ---------- 읽는 동안 효과 없음 (흔들림 · 번쩍임 · 떨림은 장면 전환 · 결과 · 피해 순간에만) ---------- */
.fx-alarm, .fx-flicker, #moodOver .mo-flicker, #moodOver .mo-beacon, #moodOver .mo-ambulance, #moodOver .mo-breath, #moodOver .mo-vignette, #moodOver .mo-edge { animation: none !important; }
.fx-flicker, #moodOver .mo-flicker { opacity: 0 !important; }
#app:not(.shake-now):not(.panic-shake), html body .wrap, html body[data-mood] .wrap { animation: none !important; }
.alert-msg, .alert-head, .choice-warn, .brink-warn, .need-warn, .st-alert, .megaphone, .hud-need, .danger-warn, .gamble-wait, .res-new { animation: none !important; }
.choice-warn, .brink-warn b, .danger-warn { color: var(--danger) !important; }

/* ---------- 짐 싸기: 이름표 · 은은한 테두리 · 챙긴 것은 흐리게 ---------- */
.spot { overflow: visible; }
.spot:not(.packed) { box-shadow: 0 0 0 2px rgba(241, 196, 107, 0.75), 0 0 14px 2px rgba(241, 196, 107, 0.35) !important; background: rgba(241, 196, 107, 0.06) !important; }
.spot.packed { box-shadow: none !important; background: rgba(8, 8, 10, 0.62) !important; }
.spot-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 3px); padding: 1px 6px; border-radius: 6px; background: rgba(8, 8, 10, 0.78); color: #fff; font: 700 11px/1.4 var(--font-body); white-space: nowrap; pointer-events: none; }
.spot.packed .spot-label { opacity: 0.45; text-decoration: line-through; }
.pk2-food { margin: 4px 0 0; color: var(--amber); font: 600 13px/1.4 var(--font-body); text-align: center; }

/* ---------- 판정 가능성 ---------- */
.choice-odds { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 2px; font: 600 12.5px/1.4 var(--font-body); color: var(--ink-2); }
.choice-odds b { padding: 0 7px; border-radius: 99px; border: 1px solid currentColor; font-weight: 700; }
.choice-odds.hi b { color: #7fd99b; }
.choice-odds.mid b { color: var(--amber); }
.choice-odds.lo b { color: var(--danger); }

/* ---------- 게임 방법 ---------- */
.howto-list { display: grid; gap: 12px; margin: 0 0 12px; max-height: 64vh; overflow-y: auto; }
.howto-card { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.howto-pic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: rgba(212, 162, 76, 0.14); font-size: 34px; line-height: 1; }
.howto-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.howto-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; word-break: keep-all; }

/* ---------- 엔딩 도감: 목적지 12 + 사망 기록 ---------- */
.dex-sec { grid-column: 1 / -1; margin: 10px 0 2px; color: var(--ink-2); font: 700 13px/1.4 var(--font-body); }
.dex-sec:first-child { margin-top: 0; }
.dex-cell .dex-var { display: block; color: var(--ink-2); font-size: 10px; line-height: 1.3; }

/* ======================= 미니게임 다시 만들기 (11/30) ======================= */

/* ---------- 🤫 숨 고르기 ---------- */
.mg-hold.down { background: rgba(127, 217, 155, 0.18) !important; border-color: #7fd99b !important; }

/* ---------- 🏃 피하며 달리기 ---------- */

/* ---------- 🪢 줄 당기기 ---------- */
.mg-swipe { min-height: 80px !important; }

/* ---------- ⌨️ 보내기 · 🔢 키패드 ---------- */
@keyframes wd-caret { 50% { opacity: 0; } }
@keyframes kp-no { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- 🚦 무궁화 꽃: 좀비 실루엣 (등 → 고개 → 몸 전체) ---------- */
@keyframes st-sway { 50% { transform: rotate(2deg) translateY(1px); } }

/* ---------- 🪑 문 막기: 테두리 없이 큰 가구, 문에 착 붙음 ---------- */
.dg-item { border: 0 !important; background: none !important; box-shadow: none !important; padding: 4px !important; touch-action: none; cursor: grab; }
.dg-item .dg-emoji { font-size: 56px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); }
.dg-item small { font-size: 12px !important; color: var(--ink-2); }
.dg-item.dragging .dg-emoji { font-size: 64px; }
.dg-zone { border: 0 !important; background: radial-gradient(circle at 50% 45%, rgba(241, 196, 107, 0.16), transparent 70%) !important; }
.dg-zone .dg-door { font-size: 64px; }
.dg-zone.over { background: radial-gradient(circle at 50% 45%, rgba(127, 217, 155, 0.3), transparent 72%) !important; }
.dg-placed { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.dg-placed .dg-snap { font-size: 34px; animation: dg-snap 0.25s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes dg-snap { from { transform: scale(1.6); } to { transform: scale(1); } }

/* ---------- 손가락 시범 (새 방식) ---------- */
.dm-breath { position: absolute; left: 50%; top: 10px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: rgba(127, 217, 155, 0.5); animation: dm-breath 2.4s ease-in-out infinite; }
@keyframes dm-breath { 0%, 100% { transform: scale(0.55); } 50% { transform: scale(1); } }
.demo-hold .dm-finger { animation: dm-press 2.4s steps(1) infinite; }
@keyframes dm-press { 0% { transform: translate(-50%, 0) scale(0.9); } 50% { transform: translate(-50%, 6px) scale(1); opacity: 0.45; } }
.dm-dodge { position: absolute; left: 50%; top: 8px; display: flex; gap: 10px; align-items: center; transform: translateX(-50%); }
.dm-dodge i { font-style: normal; font-size: 30px; }
.dm-dodge b { color: #f1c46b; font-size: 30px; }
.demo-run .dm-finger { animation: dm-swipeup 1.6s ease-in-out infinite; }
@keyframes dm-swipeup { 0% { transform: translate(-50%, 10px); opacity: 0; } 30% { opacity: 1; } 80% { transform: translate(-50%, -14px); opacity: 1; } 100% { opacity: 0; } }
.dm-tension { position: absolute; right: 30px; top: 8px; width: 20px; height: 60px; border-radius: 6px; background: rgba(0, 0, 0, 0.4); }
.dm-tension .z { position: absolute; left: 0; right: 0; top: 12px; height: 18px; background: rgba(127, 217, 155, 0.5); }
.dm-tension .m { position: absolute; left: 2px; right: 2px; height: 4px; background: #fff; animation: dm-tens 2s ease-in-out infinite; }
@keyframes dm-tens { 0%, 100% { top: 52px; } 50% { top: 18px; } }
.demo-swipe .dm-finger { animation: dm-tap 2s steps(1) infinite; }
.dm-words, .dm-keys { position: absolute; left: 50%; top: 10px; display: flex; gap: 6px; transform: translateX(-50%); }
.dm-words b, .dm-keys b { padding: 4px 8px; border-radius: 99px; background: #23252b; color: #fff; font-size: 12px; white-space: nowrap; }
.dm-keys b { border-radius: 6px; font-size: 16px; }
.demo-words .dm-finger, .demo-keypad .dm-finger { animation: dm-tap 1.2s steps(1) infinite; }

/* 생존 시작 · 이어하기: 어두운 바탕에 검붉은 물감 붓질 (이미지 파일 없이 SVG). 피·상처처럼 보이지 않게 흘러내림 · 광택 없이 무광 물감색 */
html body .btn.brush-btn { position: relative !important; isolation: isolate; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: #f3e9de !important; min-height: 64px !important; padding: 14px 36px !important; font-family: var(--font-display) !important; font-weight: 400 !important; font-size: 23px !important; letter-spacing: 0.06em !important; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55); text-decoration: none; cursor: pointer; transition: none !important; }
html body .btn.brush-btn::before, html body .btn.brush-btn::after { content: "" !important; display: block !important; position: absolute; z-index: -1; pointer-events: none; }
html body .btn.brush-btn::before { inset: -4px -14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='r' x='-5%' y='-20%' width='110%' height='140%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035 0.22' numOctaves='3' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='9'/%3E%3C/filter%3E%3Cfilter id='d' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.9' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.04  0 0 0 0 0.04  0 0 0 -1.6 1.15'/%3E%3CfeComposite in2='SourceGraphic' operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23r)'%3E%3Cpath fill='%234f1918' d='M10 50C26 31 70 22 130 25C210 20 300 18 362 27C384 31 397 41 391 52C397 66 381 75 348 77C276 83 196 81 118 79C68 78 30 82 15 71C5 64 3 57 10 50Z'/%3E%3Cpath fill='%236b2a22' opacity='.75' d='M30 40C90 30 200 28 330 33C352 34 360 40 356 44C300 41 180 40 60 46C40 47 26 45 30 40Z'/%3E%3Cpath fill='%233b0e10' opacity='.7' d='M40 66C110 70 230 71 340 64C352 63 356 68 346 71C250 76 130 76 52 73C38 72 34 67 40 66Z'/%3E%3C/g%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath stroke='%232a0b0b' stroke-opacity='.55' stroke-width='1.2' d='M40 44H180M210 58H350M70 62H160M250 36H340'/%3E%3Cpath stroke='%238a3a2e' stroke-opacity='.45' stroke-width='1' d='M60 36H150M190 70H300M300 50H370'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; transition: transform 0.25s ease, filter 0.25s ease; }
html body .btn.brush-btn::after { inset: -12px -24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cg fill='%234f1918'%3E%3Ccircle cx='396' cy='24' r='3.2'/%3E%3Ccircle cx='388' cy='14' r='1.6'/%3E%3Ccircle cx='399' cy='70' r='2'/%3E%3Ccircle cx='6' cy='30' r='2.4'/%3E%3Ccircle cx='14' cy='86' r='1.8'/%3E%3Ccircle cx='3' cy='78' r='1.2'/%3E%3Cellipse cx='372' cy='88' rx='5' ry='1.6'/%3E%3Cellipse cx='34' cy='14' rx='4' ry='1.3'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; opacity: 0.75; transition: transform 0.3s ease, opacity 0.3s ease; }
html body .btn.brush-btn .brush-label { display: inline-block; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' fill='%23fff' d='M0 0H200V60H0Z M18 12L96 24L96 25.4L18 13.2Z M70 44L170 31L170 32.1L70 45.3Z M120 8L188 20L188 21L120 9.2Z M8 38L58 33L58 34L8 39.1Z M140 50L196 46L196 46.9L140 51.1Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' fill='%23fff' d='M0 0H200V60H0Z M18 12L96 24L96 25.4L18 13.2Z M70 44L170 31L170 32.1L70 45.3Z M120 8L188 20L188 21L120 9.2Z M8 38L58 33L58 34L8 39.1Z M140 50L196 46L196 46.9L140 51.1Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
html body .btn.brush-btn:hover, html body .btn.brush-btn:focus-visible { background: transparent !important; filter: none !important; }
html body .btn.brush-btn:hover::before, html body .btn.brush-btn:focus-visible::before { transform: scale(1.035, 1.1); filter: brightness(1.18); }
html body .btn.brush-btn:hover::after, html body .btn.brush-btn:focus-visible::after { transform: scale(1.08, 1.14); opacity: 1; }
html body .btn.brush-btn:active { transform: none !important; }
html body .btn.brush-btn:active::before { transform: scale(1.06, 1.16); filter: brightness(1.32); }
html body .btn.brush-btn:focus-visible { outline: 2px solid #d4a24c !important; outline-offset: 8px !important; }
@media (prefers-reduced-motion: no-preference) {
  html body .btn.brush-btn:hover .brush-label, html body .btn.brush-btn:active .brush-label { animation: brush-flicker 0.45s steps(1, end) 1; }
}
@keyframes brush-flicker { 0% { opacity: 1; } 20% { opacity: 0.5; } 35% { opacity: 1; } 55% { opacity: 0.72; } 70%, 100% { opacity: 1; } }
html body .btn.brush-btn.continue-btn .cont-meta { color: #d9cbbd !important; }
html body .btn.brush-btn.continue-btn .cb { color: #f3e9de !important; }
html body .btn.brush-btn.continue-btn { padding: 16px 40px !important; }
html body .btn.brush-btn.continue-btn::before { inset: -14px -16px !important; }
html body .btn.brush-btn.continue-btn .cont-meta { font-family: var(--font-body) !important; font-weight: 600 !important; letter-spacing: 0 !important; }
