:root {
  --bg: #35231a;
  --panel: #4a3325;
  --panel-2: #5a3f2d;
  --line: #7d5a3e;
  --text: #fff1d8;
  --muted: #cdae8b;
  --accent: #f7b24d;      /* 하나(치즈 고양이) 털빛의 노란 톤 — UI 주요 색 */
  --accent-hi: #ffc870;
  --accent-lo: #b87a2a;
  --accent-bg: #6a431c;
  --accent-ink: #231505;
  --ok: #b9e37e;
  --bad: #ff7d66;
  --blue: #6cc4ff;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { overflow: hidden; user-select: none; -webkit-user-select: none; }
.hidden { display: none !important; }

#game-wrap {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
#game { display: block; cursor: none; image-rendering: pixelated; }
#game.home-mode { cursor: default; }

.screen {
  position: fixed; inset: 0; overflow-y: auto;
  background:
    radial-gradient(ellipse at 50% -10%, #6a4426 0%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 32px),
    var(--bg);
}

.eyebrow { margin: 0; color: var(--accent); font-size: 12px; letter-spacing: 0.15em; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* 시작 */
#screen-title { display: flex; align-items: center; justify-content: center; }
.title-box { text-align: center; padding: 24px; }
.title-box h1 {
  font-size: clamp(40px, 7.5vw, 84px); margin: 8px 0 12px; letter-spacing: 0.08em; white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--text); text-shadow: 6px 6px 0 #c2364c, 12px 12px 0 rgba(0,0,0,0.5);
}
.lead { color: #efdcbc; line-height: 1.7; margin: 0 0 28px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 16px; }

/* 버튼 */
.btn {
  font: inherit; font-weight: 700; font-size: 14px;
  color: var(--text); background: var(--panel-2);
  border: 2px solid var(--line); border-bottom-width: 4px;
  padding: 10px 16px; cursor: pointer; border-radius: 2px;
  transition: transform 0.05s, background 0.1s;
}
.btn:hover:not(:disabled) { background: #6b4b35; }
.btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 2px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #231505; border-color: #b87a2a; }
.btn.primary:hover:not(:disabled) { background: #ffc870; }
.btn.big { font-size: 17px; padding: 14px 28px; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.small { font-size: 12px; padding: 6px 10px; margin-top: 12px; }

/* 홈 */
.home { max-width: 1040px; margin: 0 auto; padding: 32px 20px 60px; }
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.home-head h2 { margin: 4px 0 0; font-size: 28px; }
.save { margin: 0; font-size: 12px; padding: 6px 10px; border: 1px solid var(--line); background: var(--panel); }
.save.ok { color: var(--ok); }
.save.warn { color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.card {
  background: var(--panel); border: 2px solid var(--line); padding: 18px 20px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}
.card h3 { margin: 0 0 10px; font-size: 16px; }
.card p { line-height: 1.6; }
.card + .card { margin-top: 0; }
.home > .card { margin-top: 14px; }
.card.sortie { grid-row: span 3; display: flex; flex-direction: column; border-color: #9a6a2c; }
.card.sortie .btn { margin-top: auto; }
.loadout { color: var(--blue); font-size: 13px; }
.card.flash { animation: flash 0.6s; }
@keyframes flash { 0% { border-color: var(--accent); background: #6a431c; } 100% { border-color: var(--line); background: var(--panel); } }
.done { color: var(--ok); font-weight: 700; margin-right: 6px; }

.items { list-style: none; padding: 0; margin: 0 0 8px; }
.items li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.items li b { margin-left: 4px; font-size: 16px; }
.items li em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }
.items.lost li { text-decoration: line-through; color: var(--muted); }
.sw { width: 12px; height: 12px; display: inline-block; }

.keys { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: #efdcbc; }
kbd {
  display: inline-block; min-width: 22px; padding: 2px 6px; margin-right: 3px; text-align: center;
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 3px;
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--text);
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
td.ok { color: var(--ok); } td.bad { color: var(--bad); }
td s { color: var(--muted); }

/* 결과 */
#screen-result { display: flex; align-items: center; justify-content: center; padding: 20px; }
.result { width: min(520px, 100%); text-align: left; }
.result h2 { font-size: 34px; margin: 0 0 6px; }
.result h2.ok { color: var(--ok); } .result h2.bad { color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0 18px; }
.stats div { background: var(--panel-2); padding: 8px 10px; display: flex; justify-content: space-between; font-size: 13px; }
.stats span { color: var(--muted); }
.stash-change { font-size: 13px; color: #efdcbc; }
.result .btn { width: 100%; margin-top: 10px; }

/* 일시정지 */
.overlay { position: fixed; inset: 0; background: rgba(38,22,12,0.72); display: flex; align-items: center; justify-content: center; }
.pause-box { text-align: center; display: flex; flex-direction: column; gap: 10px; min-width: 300px; }
.pause-box h2 { margin: 0; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .card.sortie { grid-row: auto; }
}

.threat { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #2a1518; border: 1px solid #5a2a30; font-size: 13px; }
.threat b { color: #ff8a8a; }
.threat span { color: #e2c6c6; }
.threat em { color: var(--muted); font-style: normal; font-size: 11px; }
.threat-up { color: #ff8a8a; font-weight: 700; }

.loadout-pick { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; padding: 10px 12px; background: #3f2b1f; border: 1px solid var(--line); }
.lo-row { display: flex; flex-direction: column; gap: 6px; }
.lo-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.gun-list { display: flex; flex-wrap: wrap; gap: 6px; }
.gun-pick { font: inherit; font-size: 12px; padding: 5px 9px; background: #5a3f2d; color: var(--c); border: 1px solid #7d5a3e; cursor: pointer; }
.gun-pick.on { background: #6b4b35; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper .btn.small { margin: 0; padding: 2px 10px; }
.stepper b { min-width: 16px; text-align: center; }
.lo-hands { margin: 0; font-size: 13px; color: var(--blue); }
.loadout-pick p { margin: 0; }

/* 시작 화면 메뉴 */
.title-menu { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.title-menu .btn { min-width: 240px; }

/* 난이도 선택: 빈 화면에 난이도 칸만 */
#screen-difficulty { background: #000; display: flex; align-items: center; justify-content: center; }
.diff-screen { text-align: center; padding: 24px; }
.diff-title { margin: 0 0 16px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.3em; }
.diff-cards { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.diff-card {
  font: inherit; width: 210px; min-height: 130px; padding: 18px 14px; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  background: #35231a; color: var(--text); border: 2px solid var(--line);
}
.diff-card b { font-size: 22px; }
.diff-card span { font-size: 12px; color: var(--muted); line-height: 1.6; }
.diff-card:hover, .diff-card:focus-visible { border-color: var(--accent); background: #6a431c; outline: none; }
.diff-card:hover b, .diff-card:focus-visible b { color: var(--accent); }
.diff-card[data-d="easy"]:hover, .diff-card[data-d="easy"]:focus-visible { border-color: var(--ok); background: #44562a; }
.diff-card[data-d="easy"]:hover b, .diff-card[data-d="easy"]:focus-visible b { color: var(--ok); }
.diff-card[data-d="hard"]:hover, .diff-card[data-d="hard"]:focus-visible { border-color: var(--bad); background: #2a1215; }
.diff-card[data-d="hard"]:hover b, .diff-card[data-d="hard"]:focus-visible b { color: var(--bad); }
.diff-warn { margin: 18px 0 0; font-size: 12px; color: var(--accent); min-height: 16px; }

/* 홈 가구 패널 (캔버스 위 팝업) */
#home-ui { position: fixed; inset: 0; background: rgba(38,22,12,0.42); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.home-modal { width: min(640px, 100%); max-height: 100%; overflow-y: auto; }
.home-modal .card { animation: pop 0.14s ease-out; }
@keyframes pop { from { transform: translateY(8px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.modal-head h3 { margin: 4px 0 0; font-size: 20px; }
.modal-head .close { margin: 0; }
.home-modal .card.sortie { grid-row: auto; }
.home-modal details { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.home-modal summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.home-modal details .keys { margin-top: 10px; }
.radio-line { color: #efdcbc; font-size: 13px; background: #3f2b1f; border-left: 3px solid #f7b24d; padding: 8px 10px; }
.radio-line em { color: var(--muted); }
.home-modal .card.sortie .btn { margin-top: 0; }
.home-modal #btn-sortie { margin-top: 12px; }

.home-modal.wide { width: min(1100px, 100%); }
.inv-help { margin: 0; max-width: 420px; }
.inv-title { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; flex-wrap: wrap; }
.inv-title h4 { margin: 0; font-size: 14px; }
.inv-title .count { color: var(--muted); font-weight: 400; font-size: 12px; }
.inv-title .btn.small { margin: 0 0 0 auto; }
.inv-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; position: relative; }
.inv-left { order: 2; border-left: 1px dashed var(--line); padding-left: 18px; }
.inv-right { order: 1; }
.grid { display: grid; grid-template-columns: repeat(5, 58px); gap: 5px; align-content: start; }
.grid.stash { grid-template-columns: repeat(10, 58px); }
.cell { position: relative; width: 58px; height: 58px; background: #3a271c; border: 1px solid #7d5a3e; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.cell.w2 { grid-column: span 2; width: 121px; }
.cell.gun, .cell.item { cursor: pointer; background: #5a3f2d; }
.cell.gun:hover, .cell.item:hover { border-color: var(--accent); background: #6b4b35; }
.cell.rare { border-color: #8a6a1a; box-shadow: inset 0 0 0 1px #5a4510; }
.cell img { width: 40px; height: 40px; image-rendering: pixelated; pointer-events: none; }
.cell.w2 img { width: 48px; height: 48px; }
.cell .n { position: absolute; right: 3px; bottom: 2px; font-size: 12px; color: #fff; text-shadow: 1px 1px 0 #000; }
.cell .nm { position: absolute; left: 3px; top: 2px; font-size: 9px; color: #efdcbc; max-width: calc(100% - 6px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
.cell .cond { position: absolute; left: 4px; right: 4px; bottom: 3px; height: 3px; background: #7d5a3e; }
.cell .cond::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--c); }
.cell.empty { background: #33221a; border-style: dashed; }
.cell .ph { font-size: 10px; color: #93785b; }
.cell.dragging { opacity: 0.4; }
.hands { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.hand-slot { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 1px solid transparent; }
.hand-slot .cell { width: 121px; }
.hand-slot.over, #bag-grid.over, #stash-grid.over { outline: 2px solid var(--ok); outline-offset: 2px; }
.slot-label { font-size: 11px; color: var(--muted); font-weight: 700; }
.hands-note { width: 100%; margin: 0; }
.tabs { display: flex; gap: 4px; }
.tab { font: inherit; font-size: 12px; padding: 4px 10px; background: #3f2b1f; color: var(--muted); border: 1px solid var(--line); cursor: pointer; }
.tab.on { color: var(--accent); border-color: var(--accent); background: #6a431c; }
.tabs.big .tab { font-size: 14px; padding: 8px 18px; }
.tip { position: absolute; z-index: 5; width: 250px; background: #3a271c; border: 1px solid #7d5a3e; padding: 10px 12px; font-size: 12px; box-shadow: 4px 4px 0 rgba(0,0,0,0.4); pointer-events: none; }
.tip b { display: block; font-size: 14px; }
.tip .muted { display: block; margin-bottom: 6px; }
.tip ul { margin: 4px 0; padding-left: 16px; color: #efdcbc; }
.tip p { margin: 4px 0; color: #efdcbc; }
.tip em { display: block; margin-top: 6px; color: var(--muted); font-style: normal; }
.cond-line { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 4px; }
.cond-line i { position: relative; display: inline-block; width: 90px; height: 6px; background: #7d5a3e; }
.cond-line i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--c); }
.cond-line .bad { color: var(--bad); }
.inv-msg { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: var(--accent); }
.inv-msg.flash { animation: msgflash 0.5s; }
@keyframes msgflash { 0% { color: #fff; } 100% { color: var(--accent); } }
.bench-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.bench-up { border-left: 1px dashed var(--line); padding-left: 18px; }
.bench-up h4 { margin: 12px 0 6px; }
.gun-rows { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.gun-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: #3f2b1f; border: 1px solid var(--line); }
.gun-row.rare { border-color: #8a6a1a; }
.gun-row.cleaning { animation: flash 0.9s; }
.gun-row img { width: 100px; height: 36px; image-rendering: pixelated; background: #33221a; object-fit: contain; }
.gun-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.gun-info .tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 1px 6px; margin-left: 4px; }
.gun-row .btn.small { margin: 0; }
.quest-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; max-height: 460px; overflow-y: auto; }
.quest { padding: 10px 14px; background: #3f2b1f; border: 1px solid var(--line); }
.quest.locked { opacity: 0.55; }
.quest.done { border-color: #6f8a45; }
.quest.ready { border-color: var(--accent); }
.q-head { display: flex; align-items: center; gap: 8px; }
.q-head b { font-size: 15px; }
.badge { font-size: 11px; padding: 2px 7px; background: #7d5a3e; color: #efdcbc; }
.badge.done { background: #44562a; color: var(--ok); }
.badge.locked { background: #4c3a2f; color: var(--muted); }
.badge.ready { background: #6a431c; color: var(--accent); }
.q-desc { margin: 6px 0; font-size: 13px; color: #efdcbc; }
.q-prog { height: 6px; background: #33221a; border: 1px solid var(--line); }
.q-prog i { display: block; height: 100%; background: var(--ok); }
.q-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 13px; }
.q-foot .btn.small { margin: 0 0 0 auto; }
.sortie-hp { padding: 8px 12px; background: #3f2b1f; border: 1px solid var(--line); font-size: 13px; margin-bottom: 8px; }
.sortie-hp .bad { color: var(--bad); } .sortie-hp .ok { color: var(--ok); }
.chip { font-size: 12px; padding: 4px 9px; background: #5a3f2d; color: var(--c, #efdcbc); border: 1px solid #7d5a3e; }
.chip i { font-style: normal; color: var(--muted); }
.chip.empty { color: var(--muted); border-style: dashed; }
.radio-line { margin-top: 0; }
@media (max-width: 900px) { .inv-grid, .bench-grid { grid-template-columns: 1fr; } .inv-left, .bench-up { border: 0; padding: 0; } .grid.stash { grid-template-columns: repeat(5, 58px); } }
.name-line { display: flex; align-items: center; gap: 6px; }

.cell .lv { position: absolute; right: 3px; top: 2px; font-size: 10px; color: var(--accent); text-shadow: 1px 1px 0 #000; }
.stars { margin-left: 6px; font-size: 12px; letter-spacing: 1px; }
.stars i { font-style: normal; color: #93785b; } .stars i.on { color: var(--accent); }
.steps { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }
.step { font-size: 10px; padding: 1px 6px; border: 1px solid #7d5a3e; color: #93785b; }
.step.on { color: var(--accent); border-color: #9a6a2c; background: #6a431c; }
.step.next { color: #fff1d8; border-color: #93785b; }
.gun-btns { display: flex; flex-direction: column; gap: 6px; }
.gun-btns .btn.small { margin: 0; white-space: nowrap; }
#bench-guns, #bench-gear { max-height: none; }
.home-modal .card { max-height: 92vh; overflow-y: auto; }
.bench-note { margin: 0 0 10px; }
.qtype { font-size: 11px; padding: 2px 7px; color: #fff; }
.qtype.main { background: #7a3a1c; } .qtype.sub { background: #2a4a7a; }

.hands.gear { margin-top: 8px; }
.gear-slot { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 1px solid transparent; }
.gear-slot .cell { width: 72px; }
.gear-slot.over { outline: 2px solid var(--ok); outline-offset: 2px; }
.cell.t2 { border-color: #2a5a8a; } .cell.t3 { border-color: #8a6a1a; box-shadow: inset 0 0 0 1px #5a4510; }
.gear-row.t2 { border-color: #2a5a8a; } .gear-row.t3 { border-color: #8a6a1a; }
.gear-img { width: 48px !important; height: 48px !important; }

/* 작업대 */
.mats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #3f2b1f; border: 1px solid var(--line); font-size: 13px; }
.mat img { width: 22px; height: 22px; image-rendering: pixelated; }
.mat b { color: var(--accent); }
#bench-tabs { margin-top: 10px; }
.bench-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; margin-top: 12px; }
.bench-list { display: flex; flex-direction: column; gap: 6px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.bitem { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: #3f2b1f; border: 1px solid var(--line); cursor: pointer; }
.bitem:hover { background: #5a3f2d; }
.bitem.on { border-color: var(--accent); background: #6a431c; }
.bitem.rare { border-left: 3px solid #c9a227; } .bitem.t2 { border-left: 3px solid #2a5a8a; } .bitem.t3 { border-left: 3px solid #c9a227; }
.bitem img { width: 40px; height: 40px; image-rendering: pixelated; background: #33221a; }
.bi-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bi-info b { font-size: 13px; }
.mini { position: relative; display: block; width: 90px; height: 4px; background: #7d5a3e; }
.mini::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--c); }
.bitem .dot { position: absolute; right: 8px; top: 8px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.bench-detail { background: #3a271c; border: 1px solid var(--line); padding: 14px 16px; min-height: 300px; }
.bench-detail.cleaning { animation: flash 0.9s; }
.det-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.det-img { height: 44px; image-rendering: pixelated; background: #3f2b1f; padding: 2px 6px; }
.det-img.gear { width: 64px; height: 64px; }
.det-name { font-size: 18px; margin-right: 6px; }
.det-table { border-collapse: collapse; font-size: 12px; margin: 10px 0; }
.det-table th, .det-table td { padding: 3px 12px 3px 0; text-align: left; border-bottom: 1px dashed var(--line); }
.det-table td.better { color: var(--ok); font-weight: 700; }
.det-desc { margin: 8px 0 4px; font-size: 14px; color: #fff1d8; }
.det-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.act .btn { margin: 0; min-width: 130px; }
.cost { font-size: 12px; } .cost.ok { color: var(--ok); } .cost.bad { color: var(--bad); }
@media (max-width: 900px) { .bench-grid { grid-template-columns: 1fr; } }

/* v0.17 퀘스트: 무전 대사 · 목표 목록 */
.radio-line span { display: block; padding: 1px 0; }
.radio-line .nabi { color: #9dffc4; }
.radio-line .hana { color: #ffe9a8; }
.radio-line .note { color: var(--muted); }
.quest.available { border-color: var(--accent); }
.badge.available { background: #6a431c; color: var(--accent); }
.q-goals { list-style: none; margin: 6px 0 8px; padding: 0; font-size: 13px; }
.q-goals li { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; color: #f7e6c8; }
.q-goals li::before { content: '☐'; color: var(--muted); }
.q-goals li.done { color: var(--ok); }
.q-goals li.done::before { content: '☑'; color: var(--ok); }
.q-goals li em { margin-left: auto; font-style: normal; color: var(--muted); white-space: nowrap; }
.q-goals li small { color: var(--muted); }

/* [테스트용] 2탄 바로가기 버튼 */
.test-menu { margin-top: 10px; flex-direction: row; gap: 8px; justify-content: center; flex-wrap: wrap; }
.test-tag { color: var(--accent); font-size: 0.85em; }
.test-menu .btn { min-width: 170px; }

/* 출격 지역 고르기 */
#sortie-map { margin: 10px 0 4px; }
#sortie-map .map-pick { margin-bottom: 6px; }

/* v0.22 무전기 퀘스트 창: 왼쪽 탭 · 목록 / 오른쪽 상세 (제목 · 시킨 사람 · 말 · 목표 · 보상) */
/* 창 전체는 살짝 비치고(뒤 화면 흐림), 왼쪽 탭 · 목록은 불투명 */
#panel-radio .card { border-color: var(--accent-lo); background: rgba(58,52,49,0.86); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
#panel-radio .card.flash { animation: none; }
.quest-book { display: grid; grid-template-columns: 320px 1fr; gap: 18px; margin-top: 10px; }
.qb-left { min-width: 0; }
.qb-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.qb-tabs .tab { position: relative; font-size: 15px; font-weight: 700; padding: 10px 6px; border-radius: 8px; background: #5a3f2d; color: #efdcbc; border: 1px solid #7d5a3e; }
.qb-tabs .tab:hover { background: #6b4b35; }
.qb-tabs .tab.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-hi); box-shadow: 0 0 12px rgba(247,178,77,0.35); }
.qb-tabs .tab i { font-style: normal; font-weight: 400; font-size: 12px; margin-left: 6px; opacity: 0.7; }
.qb-tabs .tab u { position: absolute; right: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.qb-list { display: flex; flex-direction: column; gap: 6px; height: 440px; overflow-y: auto; padding-right: 4px; }
.qb-item { position: relative; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 9px 14px; border-radius: 8px; background: #3b281d; color: var(--text); border: 1px solid #7d5a3e; cursor: pointer; }
.qb-item:hover { background: #4a3325; }
.qb-item b { font-size: 16px; }
.qb-item span { font-size: 11px; color: var(--muted); }
.qb-item.ready { border-color: var(--accent); }
.qb-item.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-hi); box-shadow: 0 0 12px rgba(247,178,77,0.3); }
.qb-item.on span { color: #5a3a10; }
.qb-mark { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--accent-bg); color: var(--accent); }
.qb-item.on .qb-mark { background: var(--accent-ink); color: var(--accent-hi); }
.qb-empty { color: var(--muted); font-size: 13px; padding: 14px 4px; margin: 0; }
.qb-detail { min-width: 0; height: 496px; overflow-y: auto; display: flex; flex-direction: column; padding: 4px 6px 4px 4px; }
.qd-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qd-head h3 { margin: 0; font-size: 24px; }
.qd-giver { margin: 10px 0 4px; font-size: 14px; font-weight: 700; color: var(--accent); }
.qd-say { font-size: 14px; line-height: 1.65; color: #fff1d8; }
.qd-say span { display: block; }
.qd-say .note { color: var(--muted); }
.qd-say .hana { color: var(--accent-hi); }
.qd-desc { margin: 8px 0 0; font-size: 13px; color: #dfc7a3; }
.qb-detail h4 { margin: 16px 0 6px; font-size: 14px; color: var(--accent); }
.qb-detail h4 small { color: var(--muted); font-weight: 400; }
.qb-detail .q-goals { margin: 0; font-size: 14px; }
.qb-detail .q-goals li { padding: 4px 0 4px 8px; }
.qb-detail .q-goals li em { color: var(--accent); font-weight: 700; }
.qb-detail .q-goals li.done em { color: var(--ok); }
.qd-rewards { list-style: none; margin: 0; padding: 0 0 0 8px; font-size: 14px; }
.qd-rewards li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.qd-rewards img { width: 22px; height: 22px; image-rendering: pixelated; }
.qd-rewards i { width: 22px; height: 22px; display: inline-block; background: radial-gradient(circle, var(--accent) 0 3px, transparent 4px); }
.qd-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: flex-end; align-items: center; }
.qd-foot .btn { min-width: 180px; }
.radio-line { border-left-color: var(--accent); }
.qtype.main { background: #8a4a14; } .qtype.sub { background: #93785b; }
@media (max-width: 900px) { .quest-book { grid-template-columns: 1fr; } .qb-list { height: auto; max-height: 220px; } .qb-detail { height: auto; } }

/* v0.23 현관문 출격 창: 출격 지역 단추 + 들고 나가는 것(손 · 장비 · 가방)을 아이템 칸으로. 글 설명 · 위협 단계 · 난이도는 뺐다 */
.home-modal .card.sortie { position: relative; }
#sortie-map { margin: 4px 0 12px; }
#sortie-map .map-pick { margin-bottom: 0; }
.sortie-inv { padding: 10px 12px 12px; background: #3f2b1f; border: 1px solid var(--line); }
.sortie-inv h4 { margin: 0 0 6px; font-size: 13px; }
.sortie-inv h4 .count { color: var(--muted); font-weight: 400; font-size: 12px; }
.sortie-inv .sv-top { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.sortie-inv .hands { gap: 5px; }
.sortie-inv .hands.gear { margin-top: 0; }
.sortie-inv .hand-slot, .sortie-inv .gear-slot { padding: 0; border: 0; }
.sortie-inv .hand-slot .cell { width: 96px; }
.sortie-inv .gear-slot .cell { width: 58px; }
.sortie-inv .grid.bag { grid-template-columns: repeat(8, 58px); }
.sortie-inv .cell { cursor: default; }
.sortie-inv .cell .nm { display: none; } /* 이름은 글자로 쓰지 않고, 마우스를 올리면 나온다 */
.sortie-inv .cell.gun:hover, .sortie-inv .cell.item:hover, .sortie-inv .cell.gear:hover { border-color: var(--accent); }
.home-modal .sortie-hp { margin: 8px 0 0; }
#sortie-tip { width: 240px; }
.log-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 640px) { .sortie-inv .grid.bag { grid-template-columns: repeat(4, 58px); } }
