/* BkL: игра «Угадай клип». Подключается после game.css; экран раунда использует его классы (.melody, .opts, .opt, .practicebar, .pauselayer). */

/* карточка клипа: размер не меняется ни в одной фазе (видео фиксированной высоты и строка состояния одной высоты) */
.clipbox .clipcard { flex: none; position: relative; margin: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.cvid { position: relative; width: 100%; height: clamp(132px, 27dvh, 236px); background: #000; overflow: hidden; }
.cvid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.cbadge { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 4px; background: var(--red); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .08em; z-index: 2; }
.ccover { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; pointer-events: none; }
.ccover.load, .ccover.err, .ccover.play { background: rgba(0, 0, 0, .8); pointer-events: auto; }
.ccover.count { background: rgba(0, 0, 0, .35); }
.ccover .cltxt { color: #fff; font-weight: 800; font-size: 16px; padding: 0 16px; }
.ccover .spin { width: 34px; height: 34px; margin: 0; border-width: 4px; border-color: rgba(255, 255, 255, .2); border-top-color: var(--red); }
.ccover .cnum { color: #fff; font-size: 84px; font-weight: 800; line-height: 1; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); animation: beat 1s ease-out infinite; font-variant-numeric: tabular-nums; }
.ccover.play { flex-direction: row; gap: 16px; }
.ccover.play .playbtn { width: 76px; height: 76px; margin: 0; flex: none; pointer-events: auto; }
.ccover.play .playbtn svg { width: 32px; height: 32px; }
.ccover.play .stopbtn { pointer-events: auto; }
.cstrip { display: flex; align-items: center; gap: 8px; height: 74px; padding: 6px 12px; }
.cstrip .ctx { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-align: left; }
.cstate { font-size: 16.5px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cstate.ok { color: #2fbf5b; }
.cstate.half { color: var(--gold); }
.cstate.bad { color: var(--red-hi); }
:root[data-theme="light"] .cstate.half { color: var(--red); }
.cstate.song { color: var(--text); }
.csub { white-space: pre-line; font-size: 12.5px; line-height: 1.25; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cstate:empty, .csub:empty { display: none; }
.cbig { flex: none; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 64px; font-size: 30px; font-weight: 800; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
:root[data-theme="light"] .cbig { color: var(--red); }
.cbig .coin { flex: none; width: 24px; height: 24px; background-size: 24px 24px; vertical-align: 0; }
.cbig.low { color: var(--red-hi); }
.cbig:empty { display: none; }
.cbig .cact { display: flex; flex-direction: column; gap: 6px; }
.cbig .cact .btn { min-height: 34px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
body.prac-on .cbig:not(.low) { color: var(--bc); }
.clipcard .cbar { margin: 0; height: 5px; }
.opt.pop { animation: clipPop .22s ease-out; }
@keyframes clipPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .opt.pop, .ccover .cnum { animation: none; } }
.gclip .gline { margin-top: auto; }
