/* Snowball Fight Arena : page-specific styles (shared: arcade-kit.css, sim3d.css for the banner / result card) */
.sf-wrap { position: relative; width: 100%; }
.sf-wrap .ak-stage { background: #e6f0fb; cursor: crosshair; touch-action: none; }
.sf-hud { position: absolute; inset: 0; pointer-events: none; font-family: system-ui, sans-serif; container-type: inline-size; }
.sf-hud button, .sf-hud .sim-result { pointer-events: auto; }
.sf-card { position: absolute; left: 10px; top: 10px; background: rgba(15, 23, 42, .82); color: #fff; border-radius: 12px; padding: 5px 11px; display: flex; flex-direction: column; gap: 1px; max-width: 46%; }
.sf-card b { font: 900 16px system-ui, sans-serif; letter-spacing: 1px; } .sf-card span { font: 800 12.5px system-ui, sans-serif; color: #bae6fd; }
.sf-card.is-empty span { color: #fde047; animation: sf-blink .6s infinite alternate; }
@keyframes sf-blink { to { opacity: .55; } }
.sf-sb { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: rgba(15, 23, 42, .82); color: #fff; border-radius: 14px; padding: 4px 14px; font: 900 18px system-ui, sans-serif; white-space: nowrap; }
.sf-sb small { font: 700 11px system-ui, sans-serif; color: #cbd5e1; margin-left: 4px; }
.sf-sb .sf-b, .sf-sb .sf-r { display: inline-block; min-width: 30px; text-align: center; border-radius: 8px; padding: 0 6px; font-size: 22px; }
.sf-b { background: #2563eb; } .sf-r { background: #dc2626; }
.sf-pop { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); font: 900 clamp(20px, 4cqw, 34px) system-ui, sans-serif; color: #1e3a8a; text-shadow: 0 2px 0 #fff, 0 0 10px #fff; opacity: 0; white-space: nowrap; text-align: center; }
.sf-pop small { display: block; font-size: .5em; color: #334155; }
.sf-pop.is-on { animation: sf-pop 1.6s ease-out forwards; }
@keyframes sf-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%); } }
.sf-tb { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.sf-tb button, .sf-tb .ak-mute { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(15, 23, 42, .78); color: #fff; font-size: 17px; cursor: pointer; }
.sf-tb button:focus-visible { outline: 3px solid #ffd54a; }
.sf-hud .sim-banner { pointer-events: none; }
.sf-hud .sim-result[hidden] { display: none; }
/* touch: floating joystick on the left, throw button on the right */
.sf-stick { position: absolute; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; border: 3px solid rgba(30, 58, 138, .45); background: rgba(255, 255, 255, .35); display: none; }
.sf-stick.is-on { display: block; }
.sf-stick i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(30, 58, 138, .75); }
.sf-throw { position: absolute; right: 16px; bottom: 18px; width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff; background: rgba(37, 99, 235, .85); font-size: 36px; display: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.sf-throw.is-on { transform: scale(.92); background: rgba(219, 39, 119, .9); }
.sf-hud.is-touch .sf-throw { display: block; }
.sf-hud.is-over .sf-throw.sf-throw, .sf-hud.is-over .sf-tb, .sf-hud.is-over .sf-stick { display: none; }
.sf-opts { margin-top: 14px; }
.sf-opts h3 { margin: 10px 0 6px; }
.sf-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
.sf-levels { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.sf-row button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; font: inherit; }
.sf-levels button { align-items: flex-start; text-align: left; }
.sf-row button b { font-size: 15px; } .sf-row button small { font-size: 11.5px; opacity: .8; } .sf-row button em { font-style: normal; font-size: 13px; min-height: 1em; }
.sf-row button[aria-pressed="true"] { border-color: #7dd3fc; background: rgba(14, 165, 233, .18); } .sf-row button:disabled { opacity: .45; cursor: not-allowed; }
.sf-row button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
.sf-final { font: 900 22px system-ui, sans-serif; margin: 4px 0; } .sf-st { font-size: 28px; margin: 2px 0; }
@container (max-width: 600px) {
  .sf-card { left: 8px; top: 54px; padding: 4px 8px; } .sf-card b { font-size: 14px; } .sf-card span { font-size: 11px; }
  .sf-sb { left: 8px; transform: none; top: 8px; font-size: 15px; padding: 3px 10px; } .sf-sb .sf-b, .sf-sb .sf-r { font-size: 17px; min-width: 24px; }
  .sf-tb { right: 6px; top: 6px; gap: 4px; } .sf-tb button, .sf-tb .ak-mute { width: 36px; height: 36px; font-size: 15px; }
  .sf-pop { font-size: 22px; }
}
