/* PUDDLE — home stage (rotating feature panel with live widgets) + roll verifier.
   Flat navy ladder from ui.css; ice = live / links, green = the single primary action. */
.stage { margin: 0 0 32px; }
.st-frame { position: relative; background: var(--bg-1); border-radius: 8px; box-shadow: var(--shadow-1); overflow: hidden; }
.st-slides { display: grid; position: relative; }
.st-slide { position: relative; grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: center;
    padding: 40px 44px; min-height: 360px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.st-slide.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.st-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.st-bg svg { width: 100%; height: 100%; display: block; }
.st-bg .l { fill: none; stroke: rgba(255, 255, 255, .045); stroke-width: 1.5; }
.st-copy, .st-widget { position: relative; z-index: 1; min-width: 0; }
.st-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-1); margin-bottom: 14px; }
.st-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); animation: stPulse 1.8s ease-in-out infinite; }
@keyframes stPulse { 50% { opacity: .35; } }
.st-copy h2 { margin: 0; font-size: 38px; line-height: 1.08; font-weight: 800; letter-spacing: -.028em; max-width: 14em; }
.st-copy p { margin: 16px 0 0; max-width: 31em; color: var(--text-1); font-size: 15px; line-height: 1.6; }
.st-cta { display: flex; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.st-cta .btn { min-height: 46px; padding: 0 24px; border-radius: 8px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }
.st-link { font-size: 14px; font-weight: 600; color: var(--ice); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.st-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.st-slide a:focus-visible, .st-tab:focus-visible, .st-slide button:focus-visible, .vf input:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

.st-panel { background: var(--bg-0); border: 1px solid var(--bg-2); border-radius: 8px; }
.st-panel-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--bg-2); font-size: 12px; font-weight: 600; color: var(--text-1); }
.st-panel-h b { color: #fff; font-weight: 700; }

/* ---- tab rail ---- */
.st-rail { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--bg-2); background: rgba(0, 0, 0, .12); position: relative; z-index: 2; }
.st-tab { position: relative; text-align: left; background: none; border: 0; border-left: 1px solid var(--bg-2); color: var(--text-1); padding: 15px 22px 17px; cursor: pointer; font: inherit; transition: background .15s, color .15s; }
.st-tab:first-child { border-left: 0; }
.st-tab:hover { background: rgba(255, 255, 255, .03); color: #fff; }
.st-tab small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 3px; }
.st-tab span { font-size: 14px; font-weight: 600; }
.st-tab[aria-selected="true"] { color: #fff; }
.st-tab[aria-selected="true"] small { color: var(--ice); }
.st-tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ice); transform: scaleX(0); transform-origin: left; }
.st-tab[aria-selected="true"]::after { transform: scaleX(1); }
.stage.run .st-tab[aria-selected="true"]::after { transform: scaleX(0); animation: stFill var(--dur, 8s) linear forwards; }
.stage.pause .st-tab[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes stFill { to { transform: scaleX(1); } }

/* ---- sportsbook widget ---- */
.sw-list { display: block; }
.sw-m { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--bg-2); color: inherit; text-decoration: none; transition: background .15s; }
.sw-m:last-child { border-bottom: 0; }
.sw-m:hover { background: rgba(255, 255, 255, .03); }
.sw-t { min-width: 0; }
.sw-meta { font-size: 11px; color: var(--text-2); margin-bottom: 5px; display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-meta .lv { color: var(--ice); font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.sw-meta .lv::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); }
.sw-n { font-size: 13.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-o { display: flex; gap: 6px; }
.sw-o span { min-width: 54px; text-align: center; background: var(--bg-2); border-radius: 4px; padding: 6px 4px 5px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sw-o span em { display: block; font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--text-2); letter-spacing: .06em; margin-bottom: 1px; }
.sw-foot { padding: 11px 16px; border-top: 1px solid var(--bg-2); font-size: 12px; color: var(--text-2); display: flex; justify-content: space-between; }
.sw-foot a { color: var(--ice); font-weight: 600; text-decoration: none; }

/* ---- crash widget ---- */
.cw-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--bg-2); gap: 12px; }
.cw-state { font-size: 12px; font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.cw-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); }
.cw-state.live i { background: var(--ice); animation: stPulse 1.2s ease-in-out infinite; }
.cw-state.dead i { background: var(--red); }
.cw-hist { display: flex; gap: 5px; overflow: hidden; flex-direction: row-reverse; justify-content: flex-end; min-width: 0; }
.cw-hist span { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 4px; background: var(--bg-2); color: var(--text-1); font-variant-numeric: tabular-nums; flex: none; }
.cw-hist span.hi { background: var(--ice-bg); color: var(--ice); }
.cw-hist span.mega { background: rgba(255, 200, 0, .14); color: var(--gold); }
.cw-chart { position: relative; height: 218px; }
.cw-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cw-mult { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; pointer-events: none; font-size: 54px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.cw-mult small { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--text-1); }
.cw-mult.dead { color: var(--red); }
.cw-bar { height: 3px; background: var(--bg-2); }
.cw-bar b { display: block; height: 100%; width: 0; background: var(--ice); }

/* ---- mines widget ---- */
.mw-body { padding: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.mw-grid { display: grid; grid-template-columns: repeat(5, 46px); gap: 6px; }
.mw-t { width: 46px; height: 46px; border-radius: 6px; background: var(--bg-2); display: grid; place-items: center; transition: background .2s, transform .2s; }
.mw-t svg { width: 22px; height: 22px; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.mw-t.gem { background: #123a4d; } .mw-t.gem svg { opacity: 1; transform: none; color: var(--ice); }
.mw-t.mine { background: #4a1f2c; } .mw-t.mine svg { opacity: 1; transform: none; color: var(--red); }
.mw-t.ghost svg { opacity: .38; transform: none; }
.mw-t.ghost.mine { background: var(--bg-1); }
.mw-t.pop { transform: scale(.92); }
.mw-side small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.mw-x { font-size: 40px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 2px 0 12px; }
.mw-x.win { color: var(--win); } .mw-x.bust { color: var(--red); }
.mw-msg { font-size: 12.5px; color: var(--text-1); min-height: 2.6em; line-height: 1.3; }

/* ---- bonus / vip widget ---- */
.bw-steps { margin: 0; padding: 6px 0; list-style: none; counter-reset: s; }
.bw-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--bg-2); align-items: start; }
.bw-steps li:last-child { border-bottom: 0; }
.bw-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--bg-3); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ice); }
.bw-steps b { display: block; font-size: 14px; }
.bw-steps span { display: block; font-size: 12.5px; color: var(--text-1); margin-top: 2px; line-height: 1.45; }
.vw { padding: 20px; }
.vw-r { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vw-r b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.vw-r span { font-size: 12.5px; color: var(--text-1); font-variant-numeric: tabular-nums; }
.vw-track { height: 8px; border-radius: 4px; background: var(--bg-2); margin: 16px 0 10px; overflow: hidden; }
.vw-track i { display: block; height: 100%; background: var(--ice); border-radius: 4px; transition: width .6s ease; }
.vw-n { font-size: 12.5px; color: var(--text-1); line-height: 1.5; }
.vw-n b { color: #fff; font-variant-numeric: tabular-nums; }
.vw-ladder { display: flex; gap: 6px; margin-top: 18px; }
.vw-ladder i { flex: 1; height: 28px; border-radius: 4px; background: var(--bg-2); position: relative; }
.vw-ladder i.on { background: var(--ice); }
.vw-ladder i.now { background: #123a4d; box-shadow: inset 0 0 0 1px var(--ice); }
.vw-ladder i:nth-child(n) { opacity: 1; }
.is-member, .is-guest { }
html.is-authed .is-guest { display: none !important; }
html:not(.is-authed) .is-member { display: none !important; }

/* ---- roll verifier ---- */
.vf { margin: 0 0 32px; background: var(--bg-1); border-radius: 8px; box-shadow: var(--shadow-1); padding: 22px 26px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; gap: 28px; align-items: center; }
.vf h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.vf-copy p { margin: 8px 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-1); }
.vf-copy a { font-size: 13px; font-weight: 600; color: var(--ice); text-decoration: none; }
.vf-copy a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vf-f { display: grid; grid-template-columns: 1.5fr 1fr 90px; gap: 12px; }
.vf-f label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.vf input { width: 100%; height: 40px; background: var(--bg-0); border: 1px solid var(--bg-2); border-radius: 6px; color: #fff; padding: 0 12px; font: 13px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.vf input[readonly] { color: var(--text-1); }
.vf input:focus { border-color: var(--ice); outline: 0; }
.vf-hash { grid-column: 1 / -1; font: 12px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.vf-hash b { color: var(--ice); font-weight: 500; }
.vf-out { text-align: right; }
.vf-out small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.vf-out strong { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }

@media (max-width: 1180px) {
    .st-slide { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding: 34px 32px; }
    .st-copy h2 { font-size: 32px; }
    .mw-grid { grid-template-columns: repeat(5, 40px); } .mw-t { width: 40px; height: 40px; }
}
@media (max-width: 900px) {
    .st-slide { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px 26px; min-height: 0; align-content: start; }
    .st-slide:not(.on) { position: absolute; inset: 0; }
    .st-copy h2 { font-size: 28px; }
    .st-copy p { font-size: 14px; }
    .st-rail { overflow-x: auto; display: flex; scrollbar-width: none; }
    .st-tab { flex: 1 0 150px; padding: 12px 16px 14px; }
    .vf { grid-template-columns: 1fr; gap: 18px; }
    .vf-out { text-align: left; }
}
@media (max-width: 520px) {
    .st-slide { padding: 24px 18px 22px; }
    .st-copy h2 { font-size: 25px; }
    .mw-body { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .vf { padding: 20px 18px; }
    .vf-f { grid-template-columns: 1fr 1fr; } .vf-f > div:first-child { grid-column: 1 / -1; }
    .sw-m { grid-template-columns: 1fr; } .sw-o { justify-content: stretch; } .sw-o span { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .st-slide, .st-tab, .mw-t, .mw-t svg { transition: none; } .st-eyebrow i, .cw-state.live i { animation: none; } }
