/* 블록 맞추기 — app.css 위에 이 게임에만 필요한 것 */

.stage--blocks { padding: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.stage--blocks .num { position: absolute; top: 22px; left: 22px; }
.stage--blocks .num.is-off { visibility: hidden; }
.live-score { position: absolute; top: 14px; right: 20px; font: 400 40px/1 var(--font-pixel); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--on-stage); pointer-events: none; }
.live-score.is-bump { animation: kk-pop 300ms var(--ease-pop); }
/* 콤보는 턴 수 자리(왼쪽 위)에 떠요. 가운데 두면 큰 점수와 겹쳐요 */
.combo { position: absolute; top: 16px; left: 16px; transform-origin: left center; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 12px; border-radius: var(--radius-pill); background: #FFC53D; color: var(--on-grain); font: 700 12px/1 var(--font-sans); pointer-events: none; }
.combo b { font: 600 13px/1 var(--font-mono); }
.combo__pips { display: inline-flex; gap: 3px; margin-left: 4px; }
.combo__pips i { width: 6px; height: 6px; border-radius: 50%; background: rgba(18, 22, 19, 0.22); transition: background var(--dur-ui) var(--ease-out); }
.combo__pips i.is-on { background: var(--on-grain); }
.combo.is-hot { background: #FF6F91; }
.combo.is-bump { animation: kk-pop 360ms var(--ease-pop); }
.combo.is-last .combo__pips i.is-on { animation: bk-blink 520ms steps(2, jump-none) infinite; }
@keyframes bk-blink { 50% { opacity: 0.25; } }
/* 끝 화면: 점수가 어디서 났는지 */
/* 끝 화면: 이번 주 랭킹 맛보기 · 다른 게임 */
.rank-mini { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; gap: 4px; }
.rank-mini .rank-row { height: 38px; background: var(--paper); }
.rank-mini .rank-row.is-me { background: var(--grain); }
.rank-mini__gap { text-align: center; font: 500 12px/14px var(--font-mono); color: var(--ink-muted); }
.more { display: grid; gap: 8px; }
.more__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.more__g { display: grid; align-content: start; gap: 4px; min-height: 76px; padding: 12px 12px 11px; border-radius: var(--radius-md); background: var(--paper-raised); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.more__g b { font-size: 14px; line-height: 18px; font-weight: 700; word-break: keep-all; }
.more__g span { font-size: 11.5px; line-height: 15px; color: var(--ink-muted); word-break: keep-all; }
.more__g:active { transform: translateY(1px); }
.more__g:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cue--end { top: 38%; }
.cue--end .cue__big { text-shadow: 0 2px 16px rgba(var(--stage-bg), 0.85); }
.cue--end .cue__sub { color: var(--on-stage); }

.link-btn { border: 0; background: none; padding: 8px 12px; color: var(--ink-muted); font: 600 14px/20px var(--font-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.seed-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--grain); color: var(--on-grain); font-size: 13px; font-weight: 600; }
.seed-pill b { font: 600 13px/1 var(--font-mono); }
.intro-foot { gap: 8px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { display: grid; gap: 6px; justify-items: center; padding: 16px 0 14px; border-radius: var(--radius-md); background: var(--paper-raised); box-shadow: inset 0 0 0 1.5px var(--line); }
.stat__v { font: 600 22px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.stat__k { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.total { margin: 28px 0 0; }

/* 랭킹 */
.link-row { display: flex; gap: 4px; justify-content: center; }
.rank-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--paper-raised); box-shadow: inset 0 0 0 1.5px var(--line); }
.rank-box__msg { margin: 0; text-align: center; font-size: 14px; line-height: 20px; font-weight: 600; }
.rank-box__msg b { font: 600 15px/1 var(--font-mono); }
.rank-box__msg .muted { font-weight: 500; }
/* 카카오 로그인 버튼: 카카오 디자인 가이드 색 그대로 */
.kakao-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: #FEE500; color: rgba(0, 0, 0, 0.85); font: 600 15px/1 var(--font-sans); cursor: pointer; }
.kakao-btn svg { width: 20px; height: 20px; color: #000; }
.kakao-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rank-head h1 { margin: 6px 0 4px; font: 400 32px/1.1 var(--font-pixel); }
.rank-sub { margin: 0; font-size: 13px; line-height: 18px; }
.seg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--paper-raised); box-shadow: inset 0 0 0 1.5px var(--line); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink-muted); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.seg button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.rank-list { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.rank-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: var(--radius-md); background: var(--paper-raised); box-shadow: inset 0 0 0 1.5px var(--line); }
.rank-row__n { font: 600 14px/1 var(--font-mono); color: var(--ink-muted); }
.rank-row__name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row__s { font: 600 15px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.rank-row.is-top .rank-row__n { color: var(--ink); }
.rank-row.is-me { background: var(--grain); color: var(--on-grain); box-shadow: none; }
.rank-row.is-me .rank-row__n { color: var(--on-grain); }
.rank-empty { padding: 28px 0; text-align: center; font-size: 14px; color: var(--ink-muted); }
.rank-me { font-size: 13px; text-align: center; color: var(--ink-muted); }
.rank-me b { font: 600 14px/1 var(--font-mono); color: var(--ink); }
.rank-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rank-who { margin: 0; font-size: 13px; color: var(--ink-muted); }
.rank-who .link-btn { padding: 4px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .live-score.is-bump, .combo.is-bump, .combo.is-last .combo__pips i.is-on { animation: none; } }
