:root{--hse-bg:#07131f;--hse-panel:#10263a;--hse-text:#eef7ff;--hse-muted:#b5c7d6;--hse-gold:#ffd35c;--hse-line:rgba(255,255,255,.12)}
.hse-slot{box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:0 auto;padding:22px;border:1px solid var(--hse-line);border-radius:22px;color:var(--hse-text);background:radial-gradient(circle at 15% 0%,#123b58 0,transparent 32%),radial-gradient(circle at 100% 0%,#2d234a 0,transparent 28%),var(--hse-bg);box-shadow:0 18px 50px rgba(0,0,0,.28);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden;overflow-wrap:anywhere;container-type:inline-size;container-name:hse-slot}
.hse-slot *{box-sizing:border-box}.hse-title{text-align:center}.hse-title h2{margin:0;font-size:clamp(26px,4vw,44px);color:var(--hse-text)}.hse-title p{max-width:820px;margin:8px auto 18px;color:var(--hse-muted);line-height:1.5;font-size:14px}
.hse-reels{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:18px 0}.hse-reel{min-height:116px;border-radius:18px;background:#06101a;border:2px solid rgba(255,211,92,.5);display:grid;place-items:center;box-shadow:inset 0 0 28px rgba(0,0,0,.7),0 0 18px rgba(255,211,92,.08)}.hse-num{font-size:clamp(38px,6vw,66px);font-weight:900;color:var(--hse-gold);font-variant-numeric:tabular-nums;text-shadow:0 0 18px rgba(255,211,92,.3)}
.hse-superstar{display:flex;align-items:center;justify-content:center;gap:12px;margin:6px 0 18px}.hse-starball{width:86px;height:86px;border-radius:50%;display:grid;place-items:center;font-size:38px;font-weight:900;background:radial-gradient(circle at 35% 30%,#fff8bf,#ffd35c 44%,#e49400 100%);color:#4d2b00;box-shadow:0 0 30px rgba(255,211,92,.35)}
.hse-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:820px;margin:0 auto 12px}.hse-control,.hse-period{padding:12px 14px;border:1px solid var(--hse-line);border-radius:14px;background:rgba(255,255,255,.04)}.hse-control>div{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px}.hse-control label,.hse-period label{color:var(--hse-muted);font-size:13px}.hse-control input{width:100%}.hse-period{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px}.hse-period select{max-width:260px;width:100%;padding:8px;border-radius:8px}
.hse-presets{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:10px 0 14px}.hse-presets button{width:auto;margin:0;padding:8px 12px;font-size:12px;color:var(--hse-text);background:rgba(255,255,255,.08);border:1px solid var(--hse-line);border-radius:999px;cursor:pointer}.hse-spin{display:block;width:min(320px,100%);margin:0 auto;border:0;border-radius:15px;padding:15px 20px;font-size:18px;font-weight:900;cursor:pointer;color:#382000;background:linear-gradient(135deg,var(--hse-gold),#ff9f2e)}.hse-spin:disabled{opacity:.55;cursor:not-allowed}.hse-disclaimer{max-width:860px;margin:16px auto 0;text-align:center;color:var(--hse-muted);font-size:12px;line-height:1.5}
.hse-layout-compact{padding:12px;border-radius:14px}.hse-layout-compact .hse-title h2{font-size:22px}.hse-layout-compact .hse-title p{font-size:12px}.hse-layout-compact .hse-reels{grid-template-columns:repeat(3,1fr);gap:7px}.hse-layout-compact .hse-reel{min-height:68px}.hse-layout-compact .hse-num{font-size:32px}.hse-layout-compact .hse-controls{grid-template-columns:1fr}.hse-layout-compact .hse-period{grid-column:auto}
.hse-layout-minimal{padding:10px;border-radius:12px}.hse-layout-minimal .hse-title p,.hse-layout-minimal .hse-presets{display:none}.hse-layout-minimal .hse-title h2{font-size:20px}.hse-layout-minimal .hse-reels{gap:6px;margin:8px 0}.hse-layout-minimal .hse-reel{min-height:62px}.hse-layout-minimal .hse-num{font-size:28px}.hse-layout-minimal .hse-controls{grid-template-columns:1fr}.hse-layout-minimal .hse-period{grid-column:auto}.hse-layout-minimal .hse-disclaimer{font-size:9px}
@media(max-width:760px){.hse-reels{grid-template-columns:repeat(3,1fr)}.hse-reel{min-height:92px}.hse-controls{grid-template-columns:1fr}.hse-period{grid-column:auto}}.hse-playbox{max-width:820px;margin:14px auto 0;padding:15px;border:1px solid var(--hse-line);border-radius:16px;background:rgba(255,255,255,.045);display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.hse-check,.hse-contests{font-size:14px;color:var(--hse-muted)}.hse-contests select{margin-left:6px;padding:6px 8px;border-radius:8px}.hse-price{font-size:16px;text-align:right}.hse-price strong{color:var(--hse-gold);font-size:20px}.hse-play{grid-column:1/-1;border:0;border-radius:14px;padding:14px 18px;font-weight:900;font-size:17px;cursor:pointer;background:#eef7ff;color:#07131f}.hse-play:disabled{opacity:.45;cursor:not-allowed}.hse-play-message{grid-column:1/-1;min-height:18px;text-align:center;color:var(--hse-muted);font-size:12px}.hse-star-disabled{opacity:.38;filter:grayscale(1)}
@media(max-width:600px){.hse-playbox{grid-template-columns:1fr}.hse-price{text-align:left}.hse-play{grid-column:auto}.hse-play-message{grid-column:auto}}

.hse-verify{width:100%;margin-top:10px;padding:12px 16px;border:1px solid #c7c7c7;border-radius:10px;background:#fff;font-weight:700;cursor:pointer}.hse-verify:disabled{opacity:.55;cursor:not-allowed}.hse-verify-result{margin-top:12px;padding:14px;border-radius:10px;background:#f6f7f7;line-height:1.5}.hse-verify-result:empty{display:none}.hse-verify-summary{margin-top:6px}.hse-best-draws ul{margin:6px 0 6px 20px}
.hse-history-count,.hse-spin-status{text-align:center;color:var(--hse-muted);font-size:13px}.hse-gate,.hse-system{max-width:820px;margin:16px auto;padding:18px;border:1px solid var(--hse-line);border-radius:16px;background:rgba(255,255,255,.05)}.hse-gate form{display:grid;gap:10px}.hse-gate input[type=email],.hse-system input,.hse-system select{padding:10px;border-radius:9px;border:1px solid #ccd}.hse-gate button,.hse-system button{padding:12px;border:0;border-radius:10px;font-weight:800;cursor:pointer}.hse-system-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:end}.hse-system-grid label{display:grid;gap:5px;color:var(--hse-muted);font-size:13px}.hse-result-card{margin-top:12px;padding:14px;border-radius:12px;background:#06101a;line-height:1.7}.hse-verify{max-width:820px;display:block;margin:12px auto}.hse-verify-result{max-width:820px;margin:12px auto;color:#111}
.hse-history{margin-top:18px}.hse-history ul{margin:8px 0 0 20px}.hse-history hr{border:0;border-top:1px solid rgba(255,255,255,.18);margin:12px 0}


/* Statistiche avanzate v6.7.9 */
.hse-history{max-width:960px;margin:22px auto 0}
.hse-history>h3{text-align:center;margin:0 0 12px}
.hse-history h4{margin:0 0 10px;color:var(--hse-gold);font-size:18px}
.hse-history h5{margin:0 0 10px;color:var(--hse-text);font-size:16px}
.hse-history-summary{border:1px solid rgba(255,211,92,.25)}
.hse-exact-result{margin:14px 0 8px;padding:10px 12px;border-radius:10px;background:rgba(255,211,92,.1);font-weight:800;color:#fff4be}
.hse-stat-help{margin:9px 0 0;color:var(--hse-muted);font-size:12px;line-height:1.5}
.hse-probability-note{margin:10px 0 0;padding:10px 12px;border-left:3px solid var(--hse-gold);background:rgba(255,255,255,.045);color:var(--hse-text);font-size:13px;line-height:1.5}
.hse-section-title{text-align:center;margin:20px 0 10px!important}
.hse-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hse-stat-card{padding:14px;border:1px solid var(--hse-line);border-radius:13px;background:#06101a;line-height:1.65}
.hse-stat-card div,.hse-superstar-stats div,.hse-history-summary div{font-size:13px}
.hse-stat-card b,.hse-superstar-stats b,.hse-history-summary b{color:#fff}
.hse-superstar-stats{border:1px solid rgba(255,211,92,.35);background:radial-gradient(circle at 100% 0%,rgba(255,211,92,.12),transparent 38%),#06101a}
.hse-best-draws li{color:var(--hse-muted);line-height:1.5}
@media(max-width:760px){.hse-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.hse-stats-grid{grid-template-columns:1fr}.hse-stat-card{padding:12px}}

/* Layout responsive v6.8.1 */
.hse-slot button,.hse-slot input,.hse-slot select{max-width:100%;font:inherit}
.hse-slot input[type="range"]{min-width:0;width:100%}
.hse-slot select{min-width:0}
.hse-spin-options{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin:2px auto 12px}
.hse-spin-options label{display:flex;align-items:center;gap:7px;min-height:40px;padding:8px 13px;border:1px solid var(--hse-line);border-radius:999px;background:rgba(255,255,255,.055);color:var(--hse-text);font-size:13px;line-height:1;cursor:pointer;user-select:none}
.hse-spin-options input{width:18px;height:18px;margin:0;accent-color:var(--hse-gold)}
.hse-reel.is-spinning{border-color:var(--hse-gold);box-shadow:inset 0 0 30px rgba(0,0,0,.75),0 0 22px rgba(255,211,92,.22)}
.hse-reel.is-spinning .hse-num,.hse-starball.is-spinning{filter:blur(.7px);opacity:.86}
.hse-reel.is-stopped,.hse-starball.is-stopped{animation:hse-stop-pop .22s ease-out}
@keyframes hse-stop-pop{0%{transform:scale(.88)}65%{transform:scale(1.08)}100%{transform:scale(1)}}
.hse-gate label{display:flex;align-items:flex-start;gap:8px;line-height:1.4}
.hse-gate input[type="checkbox"]{flex:0 0 auto;margin-top:3px}
.hse-result-card,.hse-verify-result,.hse-history{max-width:100%;min-width:0;overflow-wrap:anywhere}

@container hse-slot (max-width:760px){
 .hse-slot{padding:16px;border-radius:18px}
 .hse-title h2{font-size:clamp(24px,8cqw,34px);line-height:1.12}
 .hse-reels{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
 .hse-reel{min-width:0;min-height:82px;border-radius:14px}
 .hse-num{font-size:clamp(32px,13cqw,52px)}
 .hse-controls{grid-template-columns:minmax(0,1fr)}
 .hse-period{grid-column:auto}
 .hse-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@container hse-slot (max-width:480px){
 .hse-slot{padding:12px;border-radius:15px}
 .hse-title h2{font-size:clamp(22px,9cqw,30px)}
 .hse-title p{font-size:13px;margin-bottom:14px}
 .hse-reels{gap:6px}
 .hse-reel{min-height:70px;border-width:1px;border-radius:12px}
 .hse-num{font-size:clamp(29px,14cqw,42px)}
 .hse-superstar{margin-bottom:14px}
 .hse-starball{width:68px;height:68px;font-size:30px}
 .hse-control,.hse-period{padding:10px}
 .hse-period{display:grid;align-items:stretch}
 .hse-period select{width:100%;max-width:none}
	 .hse-spin{min-height:50px;font-size:16px}
	 .hse-spin-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:7px}
	 .hse-spin-options label{justify-content:center;padding:8px 9px}
 .hse-gate,.hse-system{padding:13px}
 .hse-system-grid,.hse-stats-grid{grid-template-columns:minmax(0,1fr)}
 .hse-gate button,.hse-system button,.hse-verify{width:100%;min-height:46px}
 .hse-history h4{font-size:16px}
 .hse-stat-card{padding:11px}
}

@media(prefers-reduced-motion:reduce){.hse-reel.is-stopped,.hse-starball.is-stopped{animation:none}}

@container hse-slot (max-width:340px){
 .hse-slot{padding:9px}
 .hse-reels{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hse-reel{min-height:62px}
 .hse-num{font-size:32px}
 .hse-superstar{flex-direction:column;gap:7px}
}

/* Fallback per browser senza container queries. */
@media(max-width:480px){
 .hse-slot{padding:12px;border-radius:15px}
 .hse-title h2{line-height:1.12}
 .hse-reels{gap:6px}
 .hse-reel{min-width:0;min-height:70px}
 .hse-period{display:grid;align-items:stretch}
 .hse-period select,.hse-gate button,.hse-system button,.hse-verify{width:100%;max-width:none}
}
