.sn { width:min(1200px, 100%); margin:0 auto; padding:0 12px 20px; }
.sn-menu { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.sn-options,.sn-start { display:flex; flex-direction:column; gap:12px; padding:24px; }
.sn h3 { margin:0 0 8px; } .sn label,.sn legend { font-weight:600; }
.sn input:not([type=checkbox]):not([type=radio]),.sn select { width:100%; padding:10px 12px; color:inherit; border:1px solid #425368; border-radius:9px; background:#172532; font:inherit; }
.sn-toggle { display:flex; align-items:center; gap:10px; } .sn-toggle input { width:19px; height:19px; accent-color:#70df95; }
.sn-heads { border:0; padding:0; margin:0; min-width:0; } #sn-head-options { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:8px; }
.sn-head-choice { position:relative; display:flex; flex-direction:column; align-items:center; border:1px solid #425368; border-radius:12px; background:#172532; padding:6px; cursor:pointer; }
.sn-head-choice:has(input:checked) { border-color:#70df95; box-shadow:0 0 0 2px #70df9533; background:#204137; }
.sn-head-choice:focus-within { outline:2px solid #ccecff; outline-offset:2px; } .sn-head-choice input { position:absolute; top:8px; left:8px; }
.sn-head-choice canvas { width:72px; height:64px; } .sn-head-choice span { font-size:.8rem; }
.sn-start hr { border:0; border-top:1px solid #425368; width:100%; }
.sn-start details { font-size:.9rem; line-height:1.5; } .sn-start summary { cursor:pointer; font-weight:600; } .sn-start ol { padding-left:24px; }
.sn-lobby { padding:24px; max-width:720px; margin:auto; } .sn-lobby ul { padding:0; list-style:none; display:grid; gap:8px; }
.sn-lobby li { display:flex; align-items:center; gap:12px; padding:8px 12px; border-radius:9px; background:#172532; } .sn-member-head { width:48px; height:42px; }
.sn-lobby-options { display:grid; gap:10px; margin:20px 0; } .sn-actions { display:flex; gap:10px; flex-wrap:wrap; }
.sn-toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:8px 0; font-size:.9rem; } #sn-effect { position:relative; height:84px; margin:8px 0; color:#9cf3bc; overflow:hidden; }
#sn-mode { position:absolute; top:20px; left:12px; }
.sn-scores { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0; }
.sn-score { border:1px solid #425368; border-radius:20px; padding:5px 12px; font-size:.85rem; background:#172532; } .sn-score.sn-dead { opacity:.5; }
.sn-arena { position:relative; background:#12212a; border:2px solid #4f6e70; border-radius:16px; overflow:hidden; }
#sn-canvas { display:block; width:100%; height:auto; touch-action:none; outline-offset:-5px; }
.sn-center { position:absolute; inset:0; display:grid; place-content:center; text-align:center; padding:16px; white-space:pre-line; font-weight:800; font-size:clamp(22px,5vw,64px); pointer-events:none; color:#fff; text-shadow:0 3px 8px #000; }
.sn-center:not(:empty) { background:#08182055; }
.sn-dpad { margin:12px auto 0; text-align:center; touch-action:none; user-select:none; }
.sn-dpad button { width:58px; height:46px; margin:3px; border:1px solid #57746d; background:#204137; color:#c9ffe0; border-radius:12px; font:700 26px system-ui; cursor:pointer; touch-action:none; }
.sn-dpad button:active { background:#437b5c; } .sn-result { padding:20px; margin-top:12px; }
@media (pointer:fine) { .sn-dpad { display:none; } }
@media (max-width:720px) { .sn-menu { grid-template-columns:1fr; } .sn-options,.sn-start { padding:18px; } .sn { padding:0 6px 12px; } .sn-toolbar { gap:6px; } }

/* Fixed announcement area above the arena: effects never resize the page. */
#sn-buff { position:absolute; top:0; left:0; height:60px; display:flex; align-items:center; gap:12px; width:fit-content; max-width:100%; box-sizing:border-box; padding:6px 12px 10px; border:2px solid #ffb13a; border-radius:10px; background:linear-gradient(180deg,#78140a,#3c0804); box-shadow:0 0 12px #ff782840; }
#sn-buff[hidden] { display:none; }
.sn-buff-copy { display:flex; flex-direction:column; min-width:0; max-width:240px; }
#sn-buff-name { color:#ffd24a; font-size:.85rem; text-transform:uppercase; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#sn-buff-owner { color:#ffe8d6; font-size:.72rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#sn-buff-timer { flex:none; min-width:2.6ch; text-align:center; font:900 1.7rem/1 system-ui,sans-serif; font-variant-numeric:tabular-nums; color:#fff; text-shadow:0 2px 0 #3a0a04; }
#sn-buff-progress { position:absolute; bottom:2px; left:8px; width:calc(100% - 16px); height:3px; border:0; border-radius:4px; overflow:hidden; appearance:none; background:#ffffff26; color:#ffd24a; }
#sn-buff-progress::-webkit-progress-bar { background:#ffffff26; }
#sn-buff-progress::-webkit-progress-value { background:#ffd24a; }
#sn-buff-progress::-moz-progress-bar { background:#ffd24a; }
#sn-buff.sn-buff-ending { border-color:#ff665b; }
.sn-buff-ending #sn-buff-timer { color:#ffb5ad; }
#sn-ghost-warning { position:absolute; bottom:0; left:0; width:100%; height:20px; line-height:20px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#ffd24a; font-size:.75rem; }
