:root {
  --bg: #15161a;
  --card: #22242b;
  --line: #34363f;
  --text: #f2f2f4;
  --muted: #a3a6b0;
  --accent: #ffcf4a;
  --accent-text: #1a1a1a;
  --ok: #4ade80;
  --bad: #f87171;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 18px; line-height: 1.55; -webkit-text-size-adjust: 100%;
}
main { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 26px; margin: 8px 0 4px; }
h2 { font-size: 21px; margin: 0 0 8px; }
p { margin: 6px 0; }
.muted { color: var(--muted); font-size: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 14px 0; }
.badge { display: inline-block; background: var(--accent); color: var(--accent-text); font-weight: 700; border-radius: 999px; padding: 2px 12px; font-size: 15px; }
label { display: block; font-size: 16px; color: var(--muted); margin: 12px 0 6px; }
input { width: 100%; font-size: 20px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #0f1013; color: var(--text); }
button { font: inherit; cursor: pointer; border: 0; border-radius: 12px; padding: 13px 18px; background: var(--accent); color: var(--accent-text); font-weight: 700; }
button.full { width: 100%; margin-top: 18px; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.danger { background: var(--bad); color: #fff; }
button:disabled { opacity: .5; cursor: default; }
.err { color: var(--bad); margin-top: 10px; min-height: 1.5em; }
.members { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.members span { background: #2d3038; border-radius: 999px; padding: 4px 12px; font-size: 16px; }
.clue img, .common img { width: 100%; border-radius: 10px; display: block; background: #0f1013; }
.clue ul { margin: 6px 0 0; padding-left: 22px; }
.clue li { margin: 8px 0; }
.pre { white-space: pre-line; }
.wait-img { padding: 40px 12px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.banner { position: fixed; top: 0; left: 0; right: 0; background: var(--bad); color: #fff; text-align: center; font-size: 15px; padding: 6px; z-index: 10; }
.hidden { display: none !important; }
.center { text-align: center; }
.big { font-size: 64px; margin: 24px 0 0; }
.common-big { font-size: 24px; font-weight: 800; margin: 4px 0 0; }

/* party-games */
.word { font-size: 40px; font-weight: 900; text-align: center; margin: 10px 0 4px; letter-spacing: -1px; }
.role { text-align: center; }
.role.liar { border-color: var(--bad); }
.role.liar .word { color: var(--bad); }
.btns { display: grid; gap: 10px; margin-top: 12px; }
.btns button.pick { background: #2d3038; color: var(--text); text-align: left; }
.btns button.pick.on { background: var(--accent); color: var(--accent-text); }
.order { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; counter-reset: o; }
.order span { background: #2d3038; border-radius: 999px; padding: 4px 12px; font-size: 16px; }
.order span::before { counter-increment: o; content: counter(o) ". "; color: var(--muted); }
.result { text-align: center; }
.result .big { font-size: 48px; margin: 6px 0 0; }
.win { color: var(--ok); }
.lose { color: var(--bad); }
.tally { margin: 10px 0 0; padding: 0; list-style: none; }
.tally li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.clues { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.clues span { background: #fff; color: #111; font-weight: 800; font-size: 26px; border-radius: 10px; padding: 8px 16px; }
.entry { display: flex; align-items: center; gap: 10px; width: 100%; background: #2d3038; color: var(--text); font-weight: 600; text-align: left; }
.entry .t { flex: 1; font-size: 22px; }
.entry .by { font-size: 14px; color: var(--muted); }
.entry.off { background: #3a1f22; }
.entry.off .t { text-decoration: line-through; color: var(--muted); }
.tag { font-size: 13px; border-radius: 6px; padding: 1px 6px; background: var(--bad); color: #fff; }
.score { display: flex; justify-content: space-between; font-size: 16px; color: var(--muted); }
.score b { color: var(--text); }
.hist { margin: 8px 0 0; padding: 0; list-style: none; font-size: 16px; }
.hist li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line); }
.rules { font-size: 15px; color: var(--muted); margin: 8px 0 0; padding-left: 20px; }
#stage { display: flex; flex-direction: column; }
#stage > .howto { order: 99; }
/* 낚시왕 */
.timer { font-size: 64px; font-weight: 900; text-align: center; margin: 4px 0; font-variant-numeric: tabular-nums; }
.mic { font-weight: 800; margin-top: 14px; }
.mic.on { color: var(--ok); }
.mic.off { color: var(--muted); }
.heard { min-height: 1.5em; font-size: 15px; word-break: keep-all; }
.small { font-size: 13px; margin-top: 10px; }
.btns button.big-pick { font-size: 26px; text-align: center; padding: 16px; }
.tally li.me { background: #2d3038; border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.toast { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-text); font-weight: 800; border-radius: 999px; padding: 10px 20px; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.4); white-space: nowrap; }
