/* HPSNOW_PRO_DESIGN_V17 — Habboplein SnowStorm visual system.
   CSS-only visual refresh; game physics, canvas projection and API untouched. */
:root{
 --ss17-deep:#061924;--ss17-dark:#102b39;--ss17-panel:#102e3deb;
 --ss17-border:#a7e5e158;--ss17-mint:#99f1c3;--ss17-gold:#f8da93;
 --ss17-white:#f5fcff;--ss17-ink:#163735;
}
body{background:radial-gradient(ellipse at 14% 10%,#224a4e 0%,transparent 40%),radial-gradient(ellipse at 85% 0%,#123f54 0%,transparent 42%),linear-gradient(180deg,#081f2a,#071621 78%)!important;color:var(--ss17-white)}
body #app{max-width:1500px}
body #app .header{background:linear-gradient(110deg,#122e3be8,#163e44e8)!important;border:1px solid #94d9c15c!important;border-radius:18px!important;box-shadow:0 12px 32px #06152078,inset 0 1px #c9fff327!important;backdrop-filter:blur(12px)}
body #app .server{border-radius:30px!important;border:1px solid #b9ecd455!important;background:#12392f9c!important}
body #welcome{gap:22px!important;align-items:start}
body #welcome .hero{min-height:540px;overflow:hidden;border-radius:25px!important;border:1px solid #bbefde59!important;box-shadow:0 20px 60px #001b288c!important}
body #welcome .hero-copy{min-height:540px;padding:60px 42px 36px}
body #welcome .hero h1{font-family:system-ui,'Segoe UI',sans-serif!important;font-weight:950;letter-spacing:-.075em!important;font-size:clamp(62px,5.3vw,96px)!important;line-height:.94;filter:drop-shadow(0 8px 15px #051a26)}
body #welcome .hero h1 .neon-word{color:#9bf4bb!important}
body #welcome .hero-copy>p{font-size:15px;max-width:390px;line-height:1.7}
body #welcome .hero .hero-play{border-radius:13px;padding:14px 19px;background:linear-gradient(140deg,#cfffc7,#82e8ae);color:#0b3f30;box-shadow:0 5px 0 #267e65,0 12px 25px #061d21a3}
body #welcome .entry{border-radius:23px!important;border:1px solid #f8fff2!important;background:linear-gradient(175deg,#f8fff9,#e5f5ee 100%)!important;box-shadow:0 18px 50px #06182791!important;color:#193e34;overflow:hidden}
body #welcome .entry-topline{background:linear-gradient(90deg,#153e42,#25735e,#16454d);height:31px}
body #welcome .entry-intro{padding:18px 21px 10px}
body #welcome .entry-body{padding:4px 21px 19px}
body #welcome .entry-title{font-size:24px!important;letter-spacing:-.035em!important;font-weight:950}
body #welcome .identity-preview{border-radius:13px!important;box-shadow:0 8px 20px #17473714}
body #welcome .entry input:not([type=checkbox]),body #welcome .entry select{min-height:43px;border-radius:11px;font-size:13px;background:#fff;border:1px solid #b8d7c7;color:#164234;box-shadow:0 2px 8px #10281d0a}
body #welcome .entry input:focus-visible,body #welcome .entry select:focus-visible{outline:3px solid #36ae8a73;outline-offset:1px}
body #welcome .entry .look-details{font-size:11px}
/* Bigger clear action choices that reuse V12's own handlers. */
body #welcome .ss17-launch{margin:19px 0 8px;padding:0;font-family:system-ui,'Segoe UI',sans-serif}
body #welcome .ss17-launch-heading{display:flex;flex-direction:column;gap:5px;margin:0 0 11px}
body #welcome .ss17-caption{display:block;color:#2f8c79;font-size:9px;letter-spacing:.16em;font-weight:900}
body #welcome .ss17-launch-heading strong{color:#163d33;font-size:18px;font-weight:900;letter-spacing:-.035em}
body #welcome .ss17-launch-grid{display:grid;gap:9px}
body #welcome .ss17-launch-card{width:100%;min-height:67px;display:flex;gap:12px;align-items:center;text-align:left;border-radius:14px;padding:11px 12px;border:1px solid #b1d8c9;background:#fff;color:#21493e;box-shadow:0 4px 13px #0a403014;cursor:pointer;transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease}
body #welcome .ss17-launch-card:hover{transform:translateY(-2px);box-shadow:0 8px 19px #0a403026;border-color:#6fceae}
body #welcome .ss17-launch-card:active{transform:translateY(1px)}
body #welcome .ss17-launch-card:focus-visible{outline:3px solid #34b87f;outline-offset:2px}
body #welcome .ss17-launch-card.ss17-practice{background:linear-gradient(115deg,#c9f9dd,#a9edc5);border-color:#83d5ae}
body #welcome .ss17-launch-card.ss17-online{background:linear-gradient(115deg,#e8f8ff,#cfe7f9);border-color:#a8cfe9}
body #welcome .ss17-card-icon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#fff9;font-size:23px;box-shadow:inset 0 0 0 1px #fff}
body #welcome .ss17-card-copy{display:flex;flex:1 1 auto;min-width:0;flex-direction:column;gap:3px}
body #welcome .ss17-card-copy strong{font-size:13px;font-weight:900;line-height:1.2;color:#153b32}
body #welcome .ss17-card-copy small{font-size:10px;color:#52736b;line-height:1.25}
body #welcome .ss17-card-arrow{color:#0c755a;font-size:10px;font-weight:900;white-space:nowrap;letter-spacing:.02em}
body #welcome .ss17-landing-hint{margin:10px 0 0;color:#4f7c6b;font-size:10px;line-height:1.5}
/* Existing start options stay in DOM, but their visible duplicates are folded away. */
body #welcome.ss17-welcome-ready .join-choices{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}
body #welcome .v12-settings{border-radius:13px!important;background:#f4fdf7!important;border:1px solid #c7e7d5!important;padding:12px!important;margin:12px 0!important}
body #welcome .v12-settings label{font-weight:900;font-size:11px!important}
body #welcome .v12-modes{margin-top:12px}
body #welcome .v12-modes button{border-radius:10px!important;min-height:36px;box-shadow:none!important}
body #welcome .ss15-maker,body #welcome .ss16-create{border-radius:16px!important;box-shadow:0 10px 28px #153e3419!important;border:1px solid #b2ddcc!important;background:linear-gradient(135deg,#f5fff8,#e9f7f2)!important;scroll-margin-top:26px}
body #welcome .ss15-maker button,body #welcome .ss16-create button{border-radius:10px!important;min-height:35px}
body #welcome .ss15-input,body #welcome .ss16-select{border-radius:10px!important}
body #welcome .howto{border-radius:22px!important;overflow:hidden}
body #welcome .howto-step{border-radius:16px!important}
body #app .leader-card{border-radius:17px!important;box-shadow:0 12px 30px #03182465!important;overflow:hidden}
/* V10.x viewport-fitted match is authoritative. Keep its sizing unmodified. */
body #game{filter:none!important;isolation:isolate}
body #game .toolbar{background:linear-gradient(95deg,#103a4b,#0c2537)!important;border-color:#a5e6e261!important;color:#ebfffa!important;box-shadow:inset 0 1px #b2eaf43b!important}
body #game .toolbar #mapTitle{color:#f2fcff!important;font-weight:900}
body #game .toolbar .quit{background:#4b2536!important;border-color:#f39eb25e!important;color:#fff4f7!important;box-shadow:none!important;white-space:nowrap}
body #game .scoreboard{background:#0c2c3b!important;border-color:#a0dad666!important;box-shadow:none!important}
body #game .side.red{background:linear-gradient(110deg,#822f4c,#bb496b)!important}
body #game .side.blue{background:linear-gradient(110deg,#27618b,#246fb1)!important}
body #game .side strong{color:#fff!important;text-shadow:0 2px 5px #001b2b7a}
body #game .middle{background:linear-gradient(#153d51,#0d2c3d)!important;box-shadow:inset 0 1px #c4f9f52b!important}
body #game .middle strong{color:#ffe4a2!important;text-shadow:0 1px 6px #061c24}
body #game .fieldbox{position:relative!important;border-color:#c5f8f1a6!important;box-shadow:0 0 0 2px #194b4f,0 8px 28px #001b2b66!important;isolation:isolate!important}
body #game #arena{image-rendering:auto!important;filter:saturate(1.055) contrast(1.03)}
body #game .panel{background:linear-gradient(110deg,#f4fff9,#d7ece8)!important;border-color:#8ec9c8!important;box-shadow:inset 0 1px #fff!important}
body #game .status-info strong{color:#133e38!important}
body #game .status-info small{color:#3a6870!important}
body #game .refill{background:linear-gradient(135deg,#ffe4ac,#f3c46b)!important;color:#62401e!important;border:1px solid #a77d40!important;border-radius:10px!important;box-shadow:0 2px 0 #ac7a39!important;font-weight:900}
body #game .refill:hover{filter:brightness(1.04)}
body #game .score-list{border-color:#84c3c5!important;background:linear-gradient(105deg,#143e50,#143548)!important;box-shadow:none!important}
body #game .score-list .chip{border-radius:7px!important}
body #game .arena-chip{border-radius:8px!important;background:#0d3447e6!important;backdrop-filter:blur(6px)}
body #game .arena-badge{border-radius:9px!important;background:#eefcf5de!important}
body #game .ss13-dock .ss13-dock-btn,body #game .ss14-toggle{border-radius:9px!important;backdrop-filter:blur(8px);box-shadow:0 4px 14px #0719255c}
body #game .ss14-combat{border-radius:12px!important;background:linear-gradient(135deg,#0c3045ee,#123e4bdc)!important;border-color:#9cdfd9a8!important}
body #game .ss13-minimap{border-radius:13px!important;box-shadow:0 7px 22px #0925387a!important}
body #game .ss15-room-overlay,body #game .ss16-bracket{border-radius:14px!important;backdrop-filter:blur(10px)}
/* Small broadcast-style toolbar tools. */
body #game .ss17-live-badge{margin-left:auto;margin-right:6px;color:#a7f2be;white-space:nowrap;font:900 9px/1.15 system-ui,sans-serif;letter-spacing:.12em}
body #game .ss17-help-btn{border-radius:8px;border:1px solid #a7e0d17d;background:#1c5156;color:#ebfff4;padding:4px 9px;font:850 10px/1 system-ui,sans-serif;cursor:pointer;white-space:nowrap}
body #game .ss17-help-btn:hover{background:#2e6e70}
body #game .ss17-help-btn:focus-visible{outline:3px solid #ffe5a0;outline-offset:2px}
body #game .ss17-toast{position:absolute;z-index:42;top:18%;left:50%;transform:translate(-50%,-8px);opacity:0;pointer-events:none;max-width:75%;border:1px solid #b9f4e0;background:#0a3345ed;color:white;border-radius:9px;padding:8px 13px;font:800 11px/1.3 system-ui,sans-serif;text-align:center;transition:opacity .18s,transform .18s}
body #game .ss17-toast-visible{opacity:1;transform:translate(-50%,0)}
body #game .ss17-coach{position:absolute;z-index:12;left:50%;bottom:12px;transform:translate(-50%,9px);max-width:58%;display:flex;align-items:center;gap:9px;padding:7px 11px;opacity:0;pointer-events:none;color:#ebfff9;background:#0b3041d9;border:1px solid #8bd9d083;border-radius:999px;box-shadow:0 5px 18px #03182375;font:750 10px/1.35 system-ui,sans-serif;text-align:center;transition:opacity .25s,transform .25s}
body #game .ss17-coach-visible{opacity:1;transform:translate(-50%,0)}
body #game .ss17-coach-mark{display:grid;place-items:center;background:#83ddb4;color:#0d3b31;border-radius:50%;width:20px;height:20px;flex:none;font-size:12px}
/* Help overlay inside the arena, not a full-screen popup; it never alters gameplay. */
body #game .ss17-help[hidden]{display:none!important}
body #game .ss17-help{position:absolute;z-index:60;inset:9% auto auto 50%;transform:translateX(-50%);width:min(500px,calc(100% - 32px));max-height:82%;overflow:auto;border:1px solid #9ae6cf;background:linear-gradient(155deg,#112f3ef7,#0b2532f7);box-shadow:0 20px 50px #000b;border-radius:19px;padding:17px;color:#f1fff9;font-family:system-ui,'Segoe UI',sans-serif}
body #game .ss17-help-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:10px}
body #game .ss17-help h3{font-size:20px;letter-spacing:-.05em;margin:4px 0}
body #game .ss17-caption{font-size:9px;letter-spacing:.14em;color:#a2efd1;font-weight:900}
body #game .ss17-help-close{border:1px solid #a8dcd366;color:white;background:#245265;border-radius:9px;padding:6px 10px;cursor:pointer}
body #game .ss17-help-steps{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body #game .ss17-help-step{background:#21485a80;border:1px solid #b4e1d136;border-radius:11px;padding:10px;display:grid;gap:4px}
body #game .ss17-help-step b{font-size:9px;color:#a2f4c3}
body #game .ss17-help-step strong{font-size:12px}
body #game .ss17-help-step p{font-size:10px;line-height:1.45;margin:0;color:#cbe4e6}
body #game .ss17-help-footer{margin-top:12px;display:grid;gap:8px}
body #game .ss17-help-footer p{font-size:10px;line-height:1.5;margin:0;color:#c7e7e3}
body #game .ss17-help-go{width:100%;border:1px solid #bdffdc;background:linear-gradient(110deg,#a6efbe,#74d4a0);color:#113e2f;border-radius:10px;padding:10px 12px;font:900 11px system-ui,sans-serif;cursor:pointer}
body #welcome .ss17-lobby-help{background:transparent;border:1px solid #bde6d789;border-radius:10px;color:#e8fff4;font:800 11px system-ui,sans-serif;padding:10px 14px;cursor:pointer}
body #welcome .ss17-lobby-help:focus-visible{outline:2px solid #fff0aa;outline-offset:2px}
@media(min-width:1250px){body #welcome{grid-template-columns:minmax(0,1.25fr) minmax(380px,.85fr)!important}}
@media(max-width:1050px){body #welcome .hero{min-height:440px}body #welcome .hero-copy{min-height:440px;padding:45px 32px 30px}body #welcome .hero h1{font-size:clamp(52px,5vw,75px)!important}}
@media(max-width:790px){body #welcome .hero{min-height:345px}body #welcome .hero-copy{min-height:345px;padding:29px 22px 24px}body #welcome .hero h1{font-size:clamp(43px,9vw,70px)!important}body #welcome .entry-body{padding:7px 14px 17px}body #welcome .ss17-launch-card{min-height:60px}body #game .ss17-coach{max-width:75%;bottom:6px;font-size:9px}}
@media(max-width:550px){body #welcome .hero h1{font-size:clamp(43px,13vw,65px)!important}body #welcome .hero-copy>p{font-size:12px}body #game .ss17-live-badge{display:none}body #game .ss17-help-btn{font-size:9px;padding:3px 6px}body #game .ss17-coach{bottom:54px;font-size:8px;padding:4px 7px;max-width:80%}body #game .ss17-help{padding:10px;top:3%;max-height:94%}body #game .ss17-help h3{font-size:15px}body #game .ss17-help-steps{gap:4px}body #game .ss17-help-step{padding:7px}body #game .ss17-help-step p{font-size:9px}}
@media(max-width:350px){body #game .ss17-help-steps{grid-template-columns:1fr}body #game .ss17-coach{display:none}}
@media(prefers-reduced-motion:reduce){body #welcome .ss17-launch-card,body #game .ss17-toast,body #game .ss17-coach{transition:none!important}}

/* Preserve the existing V9.4 illustrated Christmas lobby, without adding vertical dead space. */
body #welcome.ss17-has-banner .hero{min-height:0!important;display:flex;flex-direction:column}
body #welcome.ss17-has-banner .hero-copy{min-height:0!important;padding:24px 30px 29px!important;max-width:none!important}
body #welcome.ss17-has-banner .hero h1{font-size:clamp(32px,3.2vw,46px)!important;letter-spacing:-.045em!important;line-height:1.07!important;margin:5px 0 13px}
body #welcome.ss17-has-banner .hero h1>span{display:inline}
body #welcome.ss17-has-banner .hero h1>.neon-word{margin-left:9px}
body #welcome.ss17-has-banner .hero .hero-pills{padding-top:18px}
body #welcome.ss17-has-banner .hero .christmas-hero-banner{width:100%;flex:0 0 auto;aspect-ratio:1983/793;overflow:hidden}
body #welcome.ss17-has-banner .hero .christmas-hero-banner img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
@media(max-width:790px){body #welcome.ss17-has-banner .hero-copy{padding:21px 19px 23px!important}body #welcome.ss17-has-banner .hero h1{font-size:clamp(31px,7.5vw,39px)!important}}

/* Match-mode secondary actions are clearly readable and no longer grey defaults. */
body #welcome .v12-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body #welcome .v12-modes button{color:#164337!important;background:#e5f7f0!important;border:1px solid #add5c8!important;padding:9px 7px!important;font:850 10px/1.3 system-ui,sans-serif!important;cursor:pointer}
body #welcome .v12-modes button:hover{background:#c7efdf!important}
body #welcome .v12-modes small{grid-column:1/-1;font-size:10px;color:#557a70}
body #welcome .ss17-launch-card:disabled{opacity:.65;cursor:not-allowed;filter:saturate(.6)}
body #welcome .ss17-launch-card:disabled:hover{transform:none;box-shadow:0 4px 13px #0a403014}
@media(max-width:400px){body #welcome .v12-modes{grid-template-columns:1fr}}
