/* The public player: a Clickseal post played exactly as posted. Sizes are designed for a 360 px frame and scale
   with --k (set by player.js). Nothing here is ever drawn from the post's own text as markup. */
.stage { --k: 1; position: relative; width: 100%; aspect-ratio: 4 / 5; background: #000; border-radius: 14px; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.stage .layer, .stage .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.stage .layer { opacity: 0; z-index: 1; }
.stage .layer.on { opacity: 1; z-index: 2; }
.stage .still { opacity: 0; z-index: 1; }
.stage .still.on { opacity: 1; z-index: 2; }
.stage .tap { position: absolute; inset: 0; z-index: 5; cursor: pointer; background: transparent; border: 0; padding: 0; }
.stage .marks { position: absolute; inset: 0; z-index: 6; pointer-events: none; }

.ov { position: absolute; transform: translate(-50%, -50%); display: none; max-width: 90%; text-align: center; font-weight: 700; white-space: pre-wrap; line-height: 1.15; }
.ov.on { display: block; }
.ov .full { visibility: hidden; display: block; }
.ov .typed { position: absolute; left: 0; right: 0; top: 0; text-align: left; }
.ov.box .typed, .ov.soft .typed { left: calc(10px * var(--k)); right: calc(10px * var(--k)); top: calc(4px * var(--k)); }
.ov.plain { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75); }
.ov.box, .ov.soft { border-radius: calc(8px * var(--k)); padding: calc(4px * var(--k)) calc(10px * var(--k)); }
.ov.soft { background: rgba(0, 0, 0, 0.55); }
.ov.anim-pop.on { animation: ov-pop 320ms cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.ov.anim-fade.on { animation: ov-fade 380ms ease both; }
.ov.anim-slide.on { animation: ov-slide 300ms ease-out both; }
@keyframes ov-pop { from { transform: translate(-50%, -50%) scale(0.4); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes ov-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ov-slide { from { transform: translate(-50%, calc(-50% + 24px * var(--k))); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }

.st { position: absolute; transform: translate(-50%, -50%); display: none; }
.st.on { display: block; }
.st .pill { display: inline-flex; align-items: center; background: #fff; color: #0a0a0a; font-weight: 800; white-space: nowrap; }
.st .card { background: #fff; color: #0a0a0a; text-align: center; }
.st .card b { display: block; font-weight: 800; }
.st .opt { background: #efefef; font-weight: 700; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st .hint { background: #efefef; color: #6b6b6b; }
.st svg { flex: none; }

.hud { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; display: flex; align-items: center; gap: 10px; padding: 24px 12px 10px; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); color: #fff; }
.hud button { appearance: none; border: 0; background: rgba(255, 255, 255, 0.18); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; }
.hud button:hover { background: rgba(255, 255, 255, 0.3); }
.hud button svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hud .bar { flex: 1; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.hud .bar i { display: block; height: 100%; width: 0; background: #fff; }
.hud .sound-chip { font-size: 12px; font-weight: 700; opacity: 0.95; }

.stage .big-play { position: absolute; z-index: 8; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); display: none; place-items: center; cursor: pointer; padding: 0; }
.stage .big-play.on { display: grid; }
.stage .big-play svg { width: 28px; height: 28px; fill: #fff; stroke: none; }
.stage .msg { position: absolute; inset: 0; z-index: 9; display: none; place-items: center; text-align: center; padding: 24px; color: #fff; background: rgba(0, 0, 0, 0.78); font-size: 14px; line-height: 1.5; }
.stage .msg.on { display: grid; }

@media (prefers-reduced-motion: reduce) {
  .ov.anim-pop.on, .ov.anim-fade.on, .ov.anim-slide.on { animation: none; }
}
