/* Penguin Ice Slide : page-specific styles (shared: arcade-kit.css, sim3d.css for the banner / result card) */
.pis-wrap { position: relative; width: 100%; }
.pis-wrap .ak-stage { background: #bae6fd; touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.pis-hud { position: absolute; inset: 0; pointer-events: none; font-family: system-ui, sans-serif; container-type: inline-size; }
.pis-hud button, .pis-hud .sim-result { pointer-events: auto; }
.pis-card { position: absolute; left: 10px; top: 10px; background: rgba(15, 23, 42, .78); color: #fff; border-radius: 12px; padding: 4px 12px; display: flex; flex-direction: column; }
.pis-card b { font: 900 24px/1.1 system-ui, sans-serif; font-variant-numeric: tabular-nums; } .pis-card span { font: 800 13px system-ui, sans-serif; color: #bae6fd; }
.pis-clock { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: min(260px, 40%); height: 26px; border-radius: 13px; background: rgba(15, 23, 42, .7); overflow: hidden; border: 2px solid rgba(255, 255, 255, .5); }
.pis-clock[hidden] { display: none; }
.pis-clock i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #f97316, #fde047); transition: width .3s; }
.pis-clock b { position: relative; display: block; text-align: center; font: 900 15px/22px system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.pis-clock.is-low { animation: pis-blink .5s infinite alternate; } @keyframes pis-blink { to { border-color: #ef4444; } }
.pis-pop { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); font: 900 clamp(22px, 4.2cqw, 38px) system-ui, sans-serif; color: #fde047; text-shadow: 0 2px 8px rgba(15, 23, 42, .8); opacity: 0; white-space: nowrap; text-align: center; }
.pis-pop small { display: block; font-size: .5em; color: #fff; }
.pis-pop.is-on { animation: pis-pop 1.5s ease-out forwards; }
@keyframes pis-pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%); } }
.pis-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(30, 64, 175, .85); color: #fff; font: 800 15px system-ui, sans-serif; border-radius: 999px; padding: 8px 18px; transition: opacity .5s; white-space: nowrap; }
.pis-hint.is-gone { opacity: 0; }
.pis-tb { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.pis-tb button, .pis-tb .ak-mute { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(15, 23, 42, .7); color: #fff; font-size: 17px; cursor: pointer; }
.pis-tb button:focus-visible { outline: 3px solid #ffd54a; }
.pis-hud .sim-banner { pointer-events: none; }
.pis-hud .sim-result[hidden] { display: none; }
.pis-hud.is-over .pis-tb, .pis-hud.is-over .pis-hint { display: none; }
.pis-final { font: 900 34px system-ui, sans-serif; margin: 4px 0; }
.pis-new { text-align: left; background: rgba(250, 204, 21, .12); border-radius: 12px; padding: 6px 12px; margin: 6px 0; } .pis-new p { margin: 0; font-weight: 800; } .pis-new ul { margin: 2px 0 0; padding-left: 18px; }
.pis-missions { margin-top: 14px; } .pis-missions h3 { margin: 0 0 6px; }
.pis-missions ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; }
.pis-missions li { font-size: 13.5px; opacity: .75; } .pis-missions li.is-done { opacity: 1; color: #fde047; }
@container (max-width: 600px) {
  .pis-card { left: 8px; top: 56px; } .pis-card b { font-size: 20px; } .pis-card span { font-size: 12px; }
  .pis-clock { left: 8px; transform: none; top: 10px; width: 46%; }
  .pis-tb { right: 6px; top: 6px; gap: 4px; } .pis-tb button, .pis-tb .ak-mute { width: 36px; height: 36px; font-size: 15px; }
  .pis-hint { font-size: 13px; }
}
