/* 박자 맞추기 — lib/mini.css 위에 이 게임에만 필요한 것 */
.app[data-game="beat"] .stage--mini { touch-action: manipulation; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app[data-game="beat"] .mini-body { inset: 52px 16px 20px; pointer-events: none; }
.beat { display: grid; gap: 16px; justify-items: center; width: 100%; }
.beat__say { margin: 0; display: grid; gap: 2px; justify-items: center; min-height: 66px; align-content: end; }
.beat__say b { font: 400 40px/44px var(--font-display); font-weight: 400; }
.beat__say span { font: 600 15px/22px var(--font-sans); color: var(--on-stage-muted); }
.beat__pad { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin: 26px 0; }
.beat__core { position: absolute; width: 84px; height: 84px; border-radius: 50%; background: rgb(var(--stage-ink)); }
.beat__core.is-hit { animation: beat-hit 180ms ease-out; }
@keyframes beat-hit { 0% { transform: scale(1.22); background: var(--sprout); } 100% { transform: none; } }
.beat__ring { position: absolute; width: 84px; height: 84px; border-radius: 50%; box-shadow: inset 0 0 0 4px rgb(var(--stage-ink)); opacity: 0.2; will-change: transform, opacity; }
.beat__dots { display: flex; align-items: flex-start; gap: 10px; }
.beat__grp { display: flex; gap: 7px; }
.beat__sep { width: 2px; height: 18px; border-radius: 1px; background: rgba(var(--stage-ink), 0.25); }
.beat__d { display: grid; justify-items: center; gap: 5px; width: 24px; }
.beat__d i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(var(--stage-ink), 0.3); }
.beat__grp:not(.beat__grp--me) .beat__d i { border-radius: 4px; }   /* 들은 박은 네모, 내가 누른 박은 동그라미 */
.beat__d.is-on i { background: rgb(var(--stage-ink)); box-shadow: none; }
.beat__d em { min-height: 14px; font: 600 11px/14px var(--font-mono); font-style: normal; font-variant-numeric: tabular-nums; color: var(--on-stage-muted); white-space: nowrap; }
.beat__d.is-good i { background: var(--sprout); } .beat__d.is-good em { color: var(--sprout); }
.beat__d.is-mid i { background: var(--grain); } .beat__d.is-mid em { color: var(--grain); }
.beat__d.is-bad i { background: var(--p1); } .beat__d.is-bad em { color: var(--p1); }
.beat__d.is-miss i { background: none; box-shadow: inset 0 0 0 2px rgba(var(--stage-ink), 0.3); }
.beat__res { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 6px; }
.beat__res b { font: 400 48px/1 var(--font-pixel); font-weight: 400; color: var(--sprout); font-variant-numeric: tabular-nums; display: inline-block; }
.beat__res b.is-pop { animation: kk-pop 420ms var(--ease-pop, ease-out); }
.beat__res span { font: 500 14px/1 var(--font-mono); color: var(--on-stage-muted); }
.beat__res em { flex-basis: 100%; font: 400 20px/26px var(--font-display); font-style: normal; }
.beat--intro { gap: 4px; } .beat--intro .beat__pad { width: 96px; height: 96px; margin: 8px 0; } .beat--intro .beat__core, .beat--intro .beat__ring { width: 56px; height: 56px; }
.beat--intro .beat__d em { display: none; }
@media (max-height: 700px) { .beat { gap: 8px; } .beat__pad { margin: 14px 0; width: 112px; height: 112px; } .beat__core, .beat__ring { width: 72px; height: 72px; } .beat__say { min-height: 58px; } .beat__say b { font-size: 34px; line-height: 38px; } .beat__res b { font-size: 40px; } .beat__res em { font-size: 17px; line-height: 22px; } }
@media (min-width: 960px) and (min-height: 620px) {
  .beat { gap: 20px; } .beat__say b { font-size: 56px; line-height: 60px; } .beat__say { min-height: 88px; }
  .beat__pad { width: 160px; height: 160px; margin: 30px 0; } .beat__core, .beat__ring { width: 104px; height: 104px; }
  .beat__d { width: 30px; } .beat__d i { width: 20px; height: 20px; } .beat__d em { font-size: 12px; } .beat__res b { font-size: 60px; }
}
@media (min-width: 960px) and (min-height: 620px) and (max-height: 760px) { .beat { gap: 8px; } .beat__pad { width: 120px; height: 120px; margin: 16px 0; } .beat__core, .beat__ring { width: 80px; height: 80px; } .beat__say b { font-size: 40px; line-height: 44px; } .beat__say { min-height: 64px; } .beat__res b { font-size: 44px; } }
@media (prefers-reduced-motion: reduce) { .beat__core.is-hit { animation: none; } .beat__res b.is-pop { animation: none; } }
