/* 몇 명? — design/main-screens/README.md 의 토큰을 그대로 옮김 */
:root {
  --paper: #F4EFE6;
  --card: #FFFCF6;
  --soft: #E9E2D5;
  --line: #E6DED0;
  --ink: #1B1813;
  --sub: #4A443B;
  --muted: #6E675C;
  --faint: #A69E90;
  --coral: oklch(0.72 0.17 35);
  --coral-tint: oklch(0.9 0.06 35);
  --coral-deep: oklch(0.58 0.18 35);
  --green: oklch(0.72 0.17 150);
  --green-tint: oklch(0.9 0.06 150);
  --logo: 'Black Han Sans', 'Apple SD Gothic Neo', sans-serif;
  --display: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', sans-serif;
  --display-weight: 800;
  --body: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink); }
a:hover { color: var(--coral-deep); }
a.card, a.card:hover, a.btn, a.btn:hover { color: var(--ink); }

.display { font-family: var(--display); font-weight: var(--display-weight); }
.screen { width: 100%; max-width: 430px; min-height: 100dvh; margin: 0 auto; padding: 56px 20px 32px; display: flex; flex-direction: column; gap: 20px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grow { flex-grow: 1; }
.center { text-align: center; }
.items-center { align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.h1 { font-family: var(--display); font-weight: var(--display-weight); font-size: 34px; line-height: 1.2; text-wrap: pretty; margin: 0; }
.h2 { font-family: var(--display); font-weight: var(--display-weight); font-size: 26px; line-height: 1.25; margin: 0; }
.logo { font-family: var(--logo); font-weight: 400; font-size: 88px; line-height: 0.95; letter-spacing: -2px; }
.lead { font-size: 17px; line-height: 1.55; color: var(--sub); }
.muted { font-size: 14px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.small { font-size: 13px; }
.label { font-size: 14px; font-weight: 700; }
.section { font-size: 15px; font-weight: 700; }
.error-text { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--coral-deep); font-weight: 700; }

/* 버튼 */
.btn { height: 60px; width: 100%; border: 2px solid var(--ink); border-radius: 14px; background: var(--coral); color: var(--ink); box-shadow: 0 4px 0 var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: var(--display-weight); font-size: 21px; transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.dark { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 var(--coral); }
.btn.ghost { background: var(--card); box-shadow: none; }
.btn.danger { background: var(--ink); color: var(--coral); box-shadow: none; }
.btn.small { height: 48px; font-size: 17px; }
.btn:disabled { background: var(--soft); color: var(--faint); border-color: var(--faint); box-shadow: none; transform: none; cursor: default; }
.link-btn { height: 44px; border: 0; background: none; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--sub); width: 100%; }
.icon-btn { width: 44px; height: 44px; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); display: flex; align-items: center; justify-content: center; padding: 0; }
.icon-btn.big { width: 64px; height: 64px; box-shadow: 0 4px 0 var(--ink); }
.icon-btn.plain { border: 0; background: none; }

/* 카드와 목록 */
.card { border: 2px solid var(--ink); border-radius: 16px; background: var(--card); padding: 16px; }
.card.lift { box-shadow: 0 4px 0 var(--ink); }
.card.green { background: var(--green); box-shadow: 0 4px 0 var(--ink); }
.list { border: 2px solid var(--ink); border-radius: 16px; background: var(--card); overflow: hidden; }
.list > * + * { border-top: 2px solid var(--line); }
.list-row { min-height: 52px; padding: 8px 14px 8px 16px; display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: 0; text-align: left; }
button.list-row { border-radius: 0; }
.list > * + .list-row { border-top: 2px solid var(--line); }
.mini-step { display: flex; align-items: center; gap: 2px; }
.mini-step .icon-btn { width: 28px; height: 28px; border-width: 1.5px; position: relative; }
.mini-step .icon-btn::after { content: ""; position: absolute; inset: -8px; }
.mini-step .v { min-width: 32px; text-align: center; }
.list-row .k { flex-grow: 1; font-size: 15px; color: var(--sub); }
.list-row .v { font-size: 15px; font-weight: 700; }
.list-row.me { background: var(--coral-tint); }

.tag { align-self: flex-start; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--ink); color: var(--paper); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tag.soft { background: var(--soft); color: var(--ink); }
.tag.tint { background: var(--coral-tint); color: var(--ink); }
.tag.coral { background: var(--coral); color: var(--ink); }
.tag.green { background: var(--green); color: var(--ink); }
.pill { height: 40px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.pill.on { background: var(--ink); color: var(--paper); font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { height: 32px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.chip { height: 44px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 15px; font-weight: 500; padding: 0 6px; min-width: 0; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.me { background: var(--coral-tint); }
.chip.off { color: var(--faint); border-style: dashed; }

/* 입력 */
.input { width: 100%; min-height: 56px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); padding: 0 16px; font-size: 18px; font-weight: 500; outline: none; }
textarea.input { padding: 14px 16px; min-height: 88px; resize: none; line-height: 1.45; }
.input:focus { box-shadow: 0 0 0 3px var(--coral-tint); }
.input.error { border-color: var(--coral-deep); box-shadow: 0 0 0 3px var(--coral-tint); }
.input::placeholder { color: var(--faint); }
.code-row { display: flex; gap: 8px; }
.code-input { width: 0; flex: 1.6; min-height: 60px; text-transform: uppercase; letter-spacing: 10px; font-family: var(--display); font-weight: var(--display-weight); font-size: 30px; text-align: center; }
.divider { display: flex; align-items: center; gap: 12px; margin: 10px 0 2px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex-grow: 1; height: 2px; background: #D9D1C3; }

.seg { height: 44px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); padding: 3px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; }
.seg button { border: 0; border-radius: 8px; background: transparent; color: var(--sub); font-size: 15px; font-weight: 500; }
.seg button.on { background: var(--ink); color: var(--paper); font-weight: 700; }

.toggle { width: 52px; height: 32px; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 999px; background: var(--soft); padding: 2px; display: flex; justify-content: flex-start; }
.toggle.on { background: var(--coral); justify-content: flex-end; }
.toggle::after { content: ''; width: 24px; height: 24px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); }

.radio { width: 26px; height: 26px; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); display: flex; align-items: center; justify-content: center; padding: 0; }
.radio.on::after { content: ''; width: 12px; height: 12px; border-radius: 999px; background: var(--ink); }

.choice { width: 100%; text-align: left; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.choice.on { background: var(--coral-tint); box-shadow: 0 4px 0 var(--ink); }
.choice .t { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; }
.choice .d { font-size: 14px; line-height: 1.5; color: var(--sub); margin-top: 4px; }

/* 게임 */
.round-head .num { font-family: var(--display); font-weight: var(--display-weight); font-size: 20px; }
.timer-bar { height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); overflow: hidden; }
.timer-bar > div { height: 100%; background: var(--ink); transition: width .25s linear; }
.timer-bar.coral > div { background: var(--coral); }
.q-recap { border-radius: 12px; background: var(--soft); padding: 12px 14px; font-size: 15px; color: var(--sub); }
.question { font-family: var(--display); font-weight: var(--display-weight); font-size: 32px; line-height: 1.25; text-wrap: pretty; margin: 0; }
.option { width: 100%; min-height: 64px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); padding: 10px 12px; display: flex; align-items: center; gap: 14px; text-align: left; }
.option .key { width: 36px; height: 36px; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: var(--display-weight); font-size: 17px; }
.option .txt { font-size: 18px; font-weight: 700; }
.option.on { background: var(--coral-tint); box-shadow: 0 4px 0 var(--ink); }
.option.on .key { background: var(--ink); color: var(--paper); }

.people { display: flex; flex-wrap: wrap; gap: 6px; }
.people.centered { justify-content: center; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; max-width: 140px; }
.dots i { width: 8px; height: 8px; border-radius: 999px; border: 1.5px solid var(--ink); }
.dots i.on { background: var(--ink); }
.meter { height: 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); overflow: hidden; }
.meter > div { height: 100%; background: var(--coral); }

.big-number { font-family: var(--display); font-weight: var(--display-weight); font-size: 132px; line-height: 1; color: var(--coral); -webkit-text-stroke: 2px var(--ink); }
.unit { font-family: var(--display); font-weight: var(--display-weight); font-size: 28px; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.circle { width: 88px; height: 88px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); display: flex; align-items: center; justify-content: center; }
.circle.coral { background: var(--coral); box-shadow: 0 4px 0 var(--ink); }

.rank-row { min-height: 56px; padding: 6px 16px; display: flex; align-items: center; gap: 12px; }
.rank-row .r { width: 30px; font-family: var(--display); font-weight: var(--display-weight); font-size: 20px; }
.rank-row .n { font-size: 16px; font-weight: 700; }
.rank-row .s { font-size: 13px; color: var(--muted); }
.rank-row .p { font-family: var(--display); font-weight: var(--display-weight); font-size: 22px; }
.rank-row.me { background: var(--coral-tint); }
.up { font-size: 13px; font-weight: 700; color: oklch(0.5 0.15 150); }
.down { font-size: 13px; font-weight: 700; color: var(--coral-deep); }
.same { font-size: 13px; font-weight: 700; color: var(--faint); }


.podium { display: flex; align-items: flex-end; gap: 8px; padding-top: 12px; border-bottom: 2px solid var(--ink); }
.podium > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.podium .block { align-self: stretch; border: 2px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0; display: flex; justify-content: center; padding-top: 10px; font-family: var(--display); font-weight: var(--display-weight); font-size: 36px; }

.toast { border: 2px solid var(--ink); border-radius: 14px; background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 var(--ink); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.toast.tint { background: var(--coral-tint); color: var(--ink); }
.floating-toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); width: calc(100% - 32px); max-width: 398px; z-index: 30; }

.backdrop { position: fixed; inset: 0; background: rgba(27, 24, 19, .45); z-index: 20; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 430px; max-height: 92dvh; overflow: auto; border-top: 2px solid var(--ink); border-radius: 24px 24px 0 0; background: var(--paper); padding: 12px 20px 32px; display: flex; flex-direction: column; gap: 18px; z-index: 21; }
.sheet > * { flex-shrink: 0; }   /* 내용이 길면 시트가 스크롤된다. 버튼이 눌려 납작해지지 않게 */
.sheet .grip { align-self: center; width: 44px; height: 5px; border-radius: 999px; background: var(--faint); flex-shrink: 0; }

.top-bar { height: 44px; display: flex; align-items: center; gap: 8px; }
.top-bar .title { flex-grow: 1; text-align: center; font-family: var(--display); font-weight: var(--display-weight); font-size: 20px; }
.top-bar .side { min-width: 44px; display: flex; justify-content: flex-end; }

.pack { border: 2px solid var(--ink); border-radius: 16px; background: var(--card); padding: 14px; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.pack.on { background: var(--coral-tint); box-shadow: 0 4px 0 var(--ink); }
.pack .name { font-family: var(--display); font-weight: var(--display-weight); font-size: 22px; }
.pack-pick { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; flex-grow: 1; width: 100%; }
.pack-check { width: 24px; height: 24px; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 7px; background: var(--card); display: flex; align-items: center; justify-content: center; }
.pack-check.on { background: var(--ink); }
.pack-peek { border: 0; background: none; padding: 8px 0 0; min-height: 36px; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--sub); }
.pack-fold { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 6px; padding: 0 12px; border: 2px solid var(--line); border-radius: 12px; background: none; font-size: 13px; font-weight: 700; color: var(--sub); text-align: left; }
.pack-fold .chev { display: inline-flex; transition: transform .15s; }
.pack-fold .chev.open { transform: rotate(90deg); }

.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pop { animation: pop .35s ease-out; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* 예측하기 전에 공개하는 정답 */
.answer-reveal { border: 2px solid var(--ink); border-radius: 20px; background: var(--green); box-shadow: 0 4px 0 var(--ink); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.answer-reveal.spot { background: var(--coral); }
.answer-reveal .q { font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.answer-reveal .a { line-height: 1.1; text-wrap: balance; }
.answer-reveal .a .u { font-size: .42em; margin-left: 4px; }
.my-answer { min-height: 46px; margin-top: 2px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); padding: 0 12px; display: flex; align-items: center; gap: 10px; }
.my-answer > .grow { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.my-answer .k { font-size: 12px; font-weight: 700; color: var(--muted); }
.my-answer .v { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-answer .tail { font-size: 13px; font-weight: 700; color: var(--coral-deep); white-space: nowrap; }
.my-answer.hit { background: var(--ink); }
.my-answer.hit .k { color: var(--faint); }
.my-answer.hit .v { color: var(--paper); }
.my-answer.hit .tail { font-family: var(--display); font-weight: var(--display-weight); font-size: 15px; color: var(--green-tint); }
.big-number.mid { font-size: 92px; }

/* 숫자 답 입력: 단위와 "이렇게 읽었어요" */
.num-input { position: relative; display: flex; align-items: center; }
.num-input .input { min-height: 64px; font-size: 22px; padding-right: 60px; }
.num-input .u { position: absolute; right: 16px; font-size: 22px; color: var(--muted); pointer-events: none; }
.reading { min-height: 52px; border: 2px solid var(--ink); border-radius: 12px; background: var(--coral-tint); padding: 0 14px; display: flex; align-items: center; gap: 10px; }
.reading .k { font-size: 12px; font-weight: 700; color: var(--sub); white-space: nowrap; }
.reading .v { font-size: 24px; line-height: 1; }
.pill.ok { height: 30px; padding: 0 10px; gap: 5px; background: var(--green-tint); }

/* 많이 나온 오답: 글자 크기가 그 답을 낸 사람 수 */
.wrong-cloud .cloud { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 14px; padding: 4px 0 2px; }
.wrong-cloud .cloud > span { line-height: 1.1; }
.wrong-cloud .cloud sup { font-family: var(--body); font-weight: 700; font-size: .38em; color: var(--sub); }
.wrong-cloud .cloud .lead { -webkit-text-stroke: 2px var(--ink); }
.wrong-cloud .cloud .lead sup { -webkit-text-stroke: 0; color: var(--ink); }

/* 예측 입력: 인원이 많을 때만 붙는 것들 */
.number-btn { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
.number-btn .pct { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--sub); }
.anchors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.anchor { height: 46px; padding: 0 4px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-size: 13px; font-weight: 700; }
.anchor span { font-size: 11px; font-weight: 500; opacity: .7; line-height: 1.3; }
.anchor.on { background: var(--ink); color: var(--paper); box-shadow: 0 3px 0 var(--coral); }
.pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pad-key { height: 58px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); font-family: var(--display); font-weight: var(--display-weight); font-size: 26px; display: flex; align-items: center; justify-content: center; }
.pad-key.word { background: var(--soft); font-size: 16px; }
.pad-key.done { background: var(--coral); font-size: 16px; }
.score-hint { min-height: 40px; width: 100%; border: 0; background: none; padding: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--sub); }
.score-line { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--sub); }
.score-line .k { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; border: 2px solid var(--ink); border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: var(--display-weight); font-size: 12px; color: var(--ink); }
.x2 { height: 24px; padding: 0 8px; border-radius: 7px; background: var(--ink); color: var(--coral-tint); display: inline-flex; align-items: center; font-family: var(--display); font-weight: var(--display-weight); font-size: 14px; }
.x2.on-dark { background: var(--coral); color: var(--ink); margin-left: 6px; }

/* 대기실 · 이번 게임이 어떻게 흘러가는지 */
.shape { border: 2px solid var(--ink); border-radius: 20px; background: var(--ink); box-shadow: 0 4px 0 var(--coral); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.shape .flow { display: flex; align-items: center; gap: 6px; }
.shape .flow > span { flex: 1; height: 38px; box-sizing: border-box; border: 2px solid var(--muted); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: var(--display-weight); font-size: 15px; color: var(--paper); white-space: nowrap; }
.shape .flow > span.practice { flex: 1.3; font-size: 13px; color: var(--faint); }
.shape .flow > span.on { flex: 1.6; border-color: var(--coral); background: var(--coral); color: var(--ink); }
.shape .rule { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.5; color: var(--paper); }
.shape .rule svg { flex-shrink: 0; margin-top: 2px; }
.hidden-names { min-height: 44px; box-sizing: border-box; border: 2px dashed var(--ink); border-radius: 12px; padding: 0 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.45; }

/* 미리보기 */
.screen.preview { padding-top: 0; }
/* 광고 (static/js/ads.js). 광고가 보이는 화면은 그만큼 줄여 광고가 첫 화면 안에 들어오게 한다 */
#ad { display: none; justify-content: center; padding: 6px 0 calc(10px + env(safe-area-inset-bottom)); }
body.has-ad #ad { display: flex; }
body.has-ad .screen { min-height: calc(100dvh - 66px); padding-bottom: 12px; }
.ad-box { width: 320px; min-height: 50px; display: flex; justify-content: center; }
.ad-box[hidden] { display: none; }
.ad-house { box-sizing: border-box; height: 50px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border: 1.5px dashed var(--muted); border-radius: 12px; font-size: 13px; color: var(--sub); text-decoration: none; }
.ad-house b { flex-shrink: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* 홈 아래 소개 (index.html). 홈에서만, 화면 언어에 맞는 쪽만 보인다 */
.site-foot { display: none; max-width: 480px; margin: 0 auto; padding: 8px 20px calc(28px + env(safe-area-inset-bottom)); font-size: 14px; line-height: 1.65; color: var(--sub); }
body.on-home .site-foot { display: block; }
html:lang(ko) .site-foot section[lang="en"], html:not(:lang(ko)) .site-foot section[lang="ko"] { display: none; }
.site-foot h2 { font-size: 16px; line-height: 1.4; margin: 0 0 6px; color: var(--ink); }
.site-foot p { margin: 6px 0; }
.site-foot nav { margin-top: 10px; font-weight: 700; }
.site-foot a { color: var(--sub); }
.pv-bar { display: flex; align-items: center; gap: 10px; margin: 0 -20px; padding: 44px 16px 12px; background: var(--ink); }
.pv-bar .icon-btn.plain svg { stroke: var(--paper); }

/* 취향 문제 */
.poll-target { border: 2px solid var(--ink); border-radius: 20px; background: var(--ink); box-shadow: 0 4px 0 var(--coral); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.poll-target .t { font-size: 52px; line-height: 1.1; color: var(--coral); text-wrap: balance; }
.poll-target .mine { min-height: 46px; margin-top: 2px; box-sizing: border-box; border: 2px solid var(--sub); border-radius: 12px; padding: 0 12px; display: flex; align-items: center; gap: 8px; }
.poll-target .mine .k { font-size: 12px; font-weight: 700; color: var(--faint); }
.poll-target .mine .v { flex-grow: 1; font-size: 17px; font-weight: 700; color: var(--paper); }
.poll-pick { flex-grow: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-height: 180px; }
.poll-card { box-sizing: border-box; border: 2px solid var(--ink); border-radius: 20px; background: var(--card); padding: 18px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.poll-card .display { font-size: 30px; line-height: 1.15; text-align: center; }
.poll-card .mark { width: 30px; height: 30px; box-sizing: border-box; border: 2px solid var(--faint); border-radius: 999px; }
.poll-card.on { background: var(--ink); box-shadow: 0 4px 0 var(--coral); }
.poll-card.on .display { color: var(--paper); }
.poll-card.on .mark { border-color: var(--coral); background: var(--coral); }
.poll-split .side { font-size: 15px; font-weight: 700; }
.poll-split .side.a { color: var(--coral-deep); }
.poll-split .side.b { color: var(--sub); }
.poll-split .bar { height: 30px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); display: flex; overflow: hidden; }
.poll-split .bar > div { background: var(--coral); display: flex; align-items: center; padding-left: 12px; font-size: 13px; font-weight: 700; }
.poll-split .bar > .rest { flex-grow: 1; background: transparent; color: var(--paper); justify-content: flex-end; padding: 0 12px 0 0; }

/* 온보딩과 점수 가이드 */
.screen.onb { padding-top: 44px; gap: 20px; }
.steps { display: flex; justify-content: center; gap: 7px; }
.steps i { width: 8px; height: 8px; border-radius: 999px; background: #D6CDBD; transition: width .2s; }
.steps i.on { width: 24px; background: var(--ink); }
.guide-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 14px; padding-top: 2px; }
.guide-links .link-btn { font-size: 13px; color: var(--muted); white-space: nowrap; }
.guide-links i { width: 3px; height: 3px; border-radius: 999px; background: var(--faint); }
/* 한국어 링크 넷은 모바일 폭에 한 줄로 안 들어가 2×2로 나눈다 */
:lang(ko) .guide-links { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 0 28px; }
:lang(ko) .guide-links i { display: none; }
.guide-step .n { width: 26px; font-size: 20px; color: var(--faint); }
.guide-step .b { padding-left: 34px; font-size: 14px; line-height: 1.6; color: var(--sub); text-wrap: pretty; }
.guide-step .note { margin-left: 34px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); padding: 12px 14px; font-size: 13px; line-height: 1.6; color: var(--sub); text-wrap: pretty; }
.rule.dark { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.55; color: var(--sub); text-wrap: pretty; }
.rule.dark svg { flex-shrink: 0; margin-top: 3px; }

/* 문제에 달아 둔 링크 (결과 화면) */
.q-link { min-height: 56px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); padding: 0 14px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.q-link .t { font-size: 15px; font-weight: 700; }
.q-link .h { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 문제 세트 보관함 */
.set-card { width: 100%; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.set-card:first-child { box-shadow: 0 4px 0 var(--ink); }
.set-card .name { font-size: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 예측 비교와 게임 내 회고 */
.prediction-bins { display:flex; flex-direction:column; gap:5px; }
.prediction-bin { display:grid; grid-template-columns:64px minmax(0,1fr) 28px; align-items:center; gap:8px; font-size:13px; font-weight:700; }
.prediction-bin-label { text-align:right; }
.prediction-track { height:14px; border-radius:4px; background:var(--paper); overflow:hidden; }
.prediction-fill { height:100%; background:var(--faint); min-width:0; }
.prediction-track.actual { outline:2px solid var(--ink); outline-offset:1px; }
.prediction-track.actual .prediction-fill { background:var(--green-tint); }
.prediction-track.mine .prediction-fill { background:var(--coral); }
.recent-history summary { cursor:pointer; font-size:15px; font-weight:700; min-height:32px; }
.history-entry { display:flex; flex-direction:column; gap:4px; }
.history-entry + .history-entry { padding-top:12px; border-top:1px solid var(--line); }
.boost-choice { display:flex; align-items:center; gap:12px; text-align:left; width:100%; padding:14px; border:2px solid var(--ink); border-radius:14px; background:var(--card); color:var(--ink); }
.boost-choice[aria-pressed="true"] { background:var(--coral-tint); }
.boost-choice .boost-mark { flex-shrink:0; width:24px; height:24px; border:2px solid var(--ink); border-radius:6px; display:flex; align-items:center; justify-content:center; }

/* 팀 대항전 */
.team-dot { display: inline-block; border-radius: 50%; border: 2px solid var(--ink); flex-shrink: 0; }
.team-box { border: 2px solid; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.team-row { min-height: 52px; padding: 4px 6px; display: flex; align-items: center; gap: 10px; border-radius: 10px; }
.team-row .r { width: 22px; font-family: var(--display); font-weight: var(--display-weight); font-size: 20px; }
.team-row .n { font-size: 16px; font-weight: 700; }
.team-row .s { font-size: 13px; color: var(--muted); }
.team-row .p { font-family: var(--display); font-weight: var(--display-weight); font-size: 24px; }
.team-row.me { background: var(--coral-tint); }

/* 결과 요약 인쇄 */
@media print {
  .no-print, .ad, .house-ad, .toast { display: none !important; }
  body, .screen { background: #fff !important; }
  .report .list-row { break-inside: avoid; }
}
