/* Dice and Battle are isolated views; the Jackpot scene remains mounted. */
.mode-content[hidden],.mode-bet-card[hidden],.mode-history[hidden],.mode-tools[hidden],.mode-round-meta[hidden],.mode-content section[hidden],.mode-bet-card form[hidden],.dice-result-marker[hidden],.mode-history-empty[hidden]{display:none!important}
.is-secondary-mode .game-card>.game-stage,.is-secondary-mode .game-card>#round-banner,.is-secondary-mode .game-card>#confetti,.is-secondary-mode .game-heading .round-meta,.is-secondary-mode .main-column>.participants-card,.is-secondary-mode .main-column>.history-card,.is-secondary-mode .sidebar>.bet-card{display:none!important}
.mode-tools{justify-self:end}.mode-fair{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #eee9e3;color:#848590;border-radius:10px;padding:9px;font-size:11px;white-space:nowrap}.mode-fair svg{width:21px;height:21px}.mode-fair:hover{color:#ff631c;border-color:#ffd2b8}.mode-round-meta{display:flex;gap:10px;align-items:center;margin-top:10px;color:#92929b;font-size:13px;white-space:nowrap}
.mode-bet-card{flex:1;padding:26px 22px 20px;display:flex;flex-direction:column;min-width:0}.mode-bet-card form{display:flex;flex-direction:column;flex:1;min-width:0}.mode-bet-card .bet-title h2{font-size:23px}.mode-bet-card .amount-input{height:67px}.mode-bet-card .amount-input input{font-size:32px}.mode-live{font-size:9px;color:#829c83;white-space:nowrap}.mode-bet-card .primary{margin-top:15px;flex:none;font-size:14px;min-height:50px}.mode-bet-card .mode-fee{display:block;font-size:10px;color:#a4a0a0;line-height:1.5;margin-top:16px}.mode-bet-card .field-error:not(:empty){margin-top:12px}.mode-bet-card input:disabled{opacity:.6}.mode-bet-card button:disabled{cursor:not-allowed}
.dice-chance-control{border-top:1px solid #eeebe6;padding-top:18px;margin-top:2px}.dice-chance-control label{display:flex;justify-content:space-between;gap:4px;font-size:12px}.dice-chance-control label>span{color:#a3a1a8}.dice-chance-control .amount-input{height:49px}.dice-chance-control .amount-input input{font-size:26px}.dice-chance-control .amount-input>span{font-size:20px;color:#333}.dice-chance-control input[type=number]{appearance:textfield;-moz-appearance:textfield}.dice-chance-control input::-webkit-inner-spin-button{appearance:none}.dice-chance-control input[type=range]{appearance:none;width:100%;height:6px;border:0;border-radius:10px;margin:14px 0 6px;background:linear-gradient(to right,#ff641c var(--chance,50%),#f1efec var(--chance,50%));accent-color:#ff641c;cursor:pointer}.dice-chance-control input[type=range]::-webkit-slider-thumb{appearance:none;width:22px;height:22px;border:1px solid #dedad5;border-radius:50%;background:#fff;box-shadow:0 2px 4px #0001}.dice-chance-control input[type=range]::-moz-range-thumb{width:22px;height:22px;border:1px solid #dedad5;border-radius:50%;background:#fff}.chance-ticks{display:flex;justify-content:space-between;color:#9c9aa3;font-size:10px;margin-top:6px}.dice-direction{display:grid;grid-template-columns:1fr 1fr;border:1px solid #e4e0dc;border-radius:10px;margin-top:17px;overflow:hidden}.dice-direction button{height:43px;border:0;background:#fff;font-size:13px;font-weight:600}.dice-direction [aria-pressed=true]{background:#ff611b;color:white;border-radius:9px}.dice-range-info{background:#fff3e8;border-radius:12px;padding:14px;margin-top:12px;display:flex;flex-direction:column;gap:6px}.dice-range-info>span,.dice-range-info small{font-size:11px;color:#8c8683}.dice-range-info b{font-size:23px;letter-spacing:-.7px;white-space:nowrap}
.dice-view{padding:0 22px 20px}.dice-result{min-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 0 4px}.dice-symbol{color:#ff641c;margin-bottom:13px}.dice-symbol svg{width:48px;height:48px;display:block}.dice-result-label{font-size:14px;color:#8a8992}.dice-result>strong{font-size:clamp(58px,5.1vw,88px);font-weight:750;line-height:1.13;letter-spacing:-3px;font-variant-numeric:tabular-nums;min-height:99px;margin:4px 0 8px}.dice-result>#dice-result-status{font-size:13px;color:#96929a;min-height:32px;padding:6px 15px;border-radius:22px}.dice-result>#dice-result-status.dice-win{color:#08a954;background:#e2f8eb;font-weight:650}.dice-result>#dice-result-status.dice-loss{color:#9a8a86;background:#f4efec}.dice-result>p{height:24px;font-size:13px;color:#777783;margin-top:7px}.is-rolling .dice-symbol{animation:dice-tumble .8s ease-in-out infinite}.is-rolling #dice-number{color:#ff641c}.dice-scale{--threshold:50%;position:relative;padding:4px 4px 40px;margin:10px 0 8px}.dice-scale-labels{display:flex;justify-content:space-between;font-size:12px;color:#87838c;margin-bottom:14px}.dice-track{height:18px;border-radius:20px;background:#e8eaee;position:relative}.dice-track:after{content:'';pointer-events:none;position:absolute;inset:10px 0 -8px;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(3.125% - 1px),#ddd6cd99 calc(3.125% - 1px),#ddd6cd99 3.125%)}.dice-track-fill{position:absolute;inset:0 auto 0 0;width:var(--threshold);border-radius:20px 0 0 20px;background:linear-gradient(90deg,#ff5c15,#ffaf77)}.is-more .dice-track-fill{left:var(--threshold);right:0;width:auto;border-radius:0 20px 20px 0;background:linear-gradient(90deg,#ffb27b,#ff5c15)}#dice-board-range{appearance:none;position:absolute;inset:-7px 0 auto;width:100%;margin:0;height:32px;background:none;z-index:3;cursor:ew-resize}#dice-board-range::-webkit-slider-thumb{appearance:none;width:27px;height:27px;background:#fff;border:1px solid #ddd9d3;border-radius:50%;box-shadow:0 3px 7px #2a241422}#dice-board-range::-moz-range-thumb{width:27px;height:27px;background:#fff;border:1px solid #ddd9d3;border-radius:50%}.dice-boundary{position:absolute;left:clamp(35px,var(--threshold),calc(100% - 35px));transform:translateX(-50%);bottom:4px;font-size:12px;font-weight:550;white-space:nowrap}.dice-result-marker{position:absolute;left:var(--result);top:-46px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;z-index:4;pointer-events:none;color:#08ae58}.dice-result-marker b{transform:translateX(var(--edge-shift,0%));padding:6px 10px;background:currentColor;border-radius:8px;font-size:13px;position:relative;color:white;background:#08ae58;white-space:nowrap}.dice-result-marker b:after{content:'';position:absolute;bottom:-5px;left:calc(50% - 5px);border:5px solid transparent;border-bottom:0;border-top-color:#08ae58}.dice-result-marker i{width:20px;height:20px;border:4px solid white;box-shadow:0 0 0 1px #d3d9d3;border-radius:50%;background:#08ae58;margin-top:10px}.dice-result-marker.is-loss b,.dice-result-marker.is-loss i{background:#a3918a}.dice-result-marker.is-loss b:after{border-top-color:#a3918a}.dice-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:20px 12px;border:1px solid #eeebe7;border-radius:15px;gap:0}.dice-summary>div{padding:0 15px;border-right:1px solid #eeeae5;min-width:0}.dice-summary>div:last-child{border:0}.dice-summary span{font-size:11px;color:#92909a;display:block;margin-bottom:10px}.dice-summary b{display:block;font-size:clamp(19px,1.65vw,29px);letter-spacing:-.7px;white-space:nowrap}
.battle-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:7px 0 20px}.battle-choice button{border:1px solid #eee8e1;background:white;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:6px;padding:12px 5px;font-size:11px;min-height:45px;white-space:nowrap}.battle-choice i{width:12px;height:12px;border-radius:50%;background:#ff641c;flex:none}.battle-choice [data-team=teal] i{background:#00a6af}.battle-choice [aria-pressed=true]{border-color:#ff641c;background:#fff4ec;color:#f05f19}.battle-choice [data-team=teal][aria-pressed=true]{border-color:#00a6af;background:#effcfc;color:#009ba5}.battle-choice button:disabled{opacity:.4}.battle-personal{display:flex;flex-direction:column;gap:12px;font-size:11px;color:#96909a;margin-bottom:25px}.battle-personal>span{display:flex;justify-content:space-between;gap:5px}.battle-personal b{color:#4b454a;font-size:12px}.battle-personal small{color:#aaa2a0;font-size:10px;line-height:1.5}.mode-bet-card #battle-play{margin-top:auto}.mode-rules{margin-top:25px;border-top:1px solid #eee8e1;padding-top:20px}.mode-rules b{font-size:13px;line-height:1.5}.mode-rules p{font-size:11px;line-height:1.7;color:#97909a;margin:9px 0 15px}.mode-rules button{padding:0;background:none;border:0;color:#77717b;font-size:11px}
.battle-scene{position:relative;background:linear-gradient(#ffffffd9,#ffffff22 55%,#ffffff77),url('assets/stage/stage-white-1729.webp') center bottom/cover;min-height:475px;padding:75px 40px 54px;overflow:hidden}.battle-clock{position:absolute;right:20px;top:0;text-align:right}.battle-clock .timer{margin:0;font-size:23px;min-width:120px;padding:9px 13px}.battle-clock small{display:block;color:#a49a93;font-size:10px;margin-top:10px}.battle-bank{text-align:center;display:flex;align-items:center;flex-direction:column;gap:12px}.battle-bank>span{letter-spacing:3px;color:#93909d;font-size:11px;font-weight:650}.battle-bank>strong{font-size:clamp(34px,3.4vw,54px);letter-spacing:-1.8px;line-height:1.05;font-weight:740}.battle-bank small{font-size:11px;color:#a39a92}.battle-team-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:40px}.battle-team{display:flex;align-items:center;gap:16px}.battle-team.teal{flex-direction:row-reverse;text-align:right}.orange{color:#ff641c}.teal{color:#00a5af}.team-emblem{width:65px;height:65px;border-radius:50%;display:grid;place-items:center;flex:none;border:5px solid #fff9;outline:1px solid #ffd7b9;background:linear-gradient(145deg,#ffa065,#ff5712);box-shadow:0 6px 14px #f2792318;color:white}.teal .team-emblem{background:linear-gradient(145deg,#40d8dc,#009ea7);outline-color:#b4e8e8}.team-emblem svg{width:30px;height:30px}.battle-team h2{font-size:17px;letter-spacing:-.4px;color:#29272f;margin-bottom:5px}.battle-team strong{font-size:clamp(25px,2.35vw,39px);letter-spacing:-1px;font-variant-numeric:tabular-nums;white-space:nowrap}.team-metrics{display:flex;gap:13px;align-items:center;margin-top:4px}.teal .team-metrics{justify-content:flex-end}.team-metrics>b{font-size:19px}.team-metrics>span{font-size:12px;opacity:.8;font-weight:550}.battle-rosters{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:10px}.battle-rosters>div{display:flex;justify-content:center;gap:13px;min-height:55px;flex-wrap:wrap}.roster-person{display:flex;flex-direction:column;align-items:center;gap:7px}.roster-person .avatar{--a:34px;outline:1px solid #ffad7f;outline-offset:3px}#teal-roster .avatar{outline-color:#67cdd1}.roster-person small{font-size:9px;color:#8d8584}.roster-empty{font-size:11px;color:#aca29b;align-self:center}.battle-banner{margin:16px;min-height:74px;background:#fff2e7;border-radius:15px;display:flex;align-items:center;gap:14px;padding:16px 18px;color:#a67b5b}.battle-banner svg{width:25px;height:25px;flex:none;color:#ff6b21}.battle-banner b{display:block;font-size:14px;color:#64564d}.battle-banner small{display:block;font-size:11px;margin-top:6px;line-height:1.5;color:#a19388}.battle-banner.has-winner{justify-content:center}.battle-banner .avatar{--a:48px;outline:2px solid currentColor;outline-offset:3px;margin-right:6px}.battle-banner strong{font-size:29px;letter-spacing:-.8px;display:block;margin-top:3px}.battle-banner.teal{background:#edfaf9}.battle-banner.orange strong{color:#ff641c}.battle-banner.teal strong{color:#009ea6}
.mode-history{padding:20px 20px 5px;min-width:0}.mode-history .section-heading h2{font-size:22px}.mode-table-wrap{overflow:auto;scrollbar-width:thin}.mode-history table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;white-space:nowrap}.mode-history th{font-size:11px;font-weight:400;color:#95929d;border-bottom:1px solid #eee9e3;padding:10px 8px}.mode-history td{border-bottom:1px solid #f1ede8;padding:14px 8px}.mode-history td:first-child{color:#939099}.mode-history td:last-child{color:#96919b;font-size:11px}.mode-history td button{background:none;border:0;color:#92909d;padding:4px 0;font-size:11px}.mode-history td button:hover{color:#ff641c}.mode-history .is-win{color:#08a958}.result-tag{font-size:11px;color:#969099}.mode-history-empty{font-size:13px;color:#a39ba0;text-align:center;padding:30px 15px}.mode-proof-data{max-height:280px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#faf7f3;border:1px solid #eee7df;border-radius:10px;padding:14px;font-size:11px;line-height:1.7;color:#82776c;margin:10px 0 20px}.mode-proof-note{font-size:13px;line-height:1.7;color:#91868a;margin-bottom:20px}.proof-check{font-size:14px;margin:14px 0}.proof-check.is-valid{color:#09a258}
@media(min-width:761px){.layout--focused-bet .main-column>.mode-history{grid-column:2;grid-row:2}.mode-bet-card #battle-form{min-height:570px}}
@media(min-width:1451px){.is-secondary-mode .game-heading{grid-template-columns:minmax(120px,1fr) auto minmax(110px,1fr)}}
@media(max-width:1450px){.battle-scene{padding:80px 24px 35px}.team-emblem{width:48px;height:48px;border-width:3px}.team-emblem svg{width:25px;height:25px}.battle-team{gap:10px}.mode-fair>span{display:none}.dice-summary{padding:16px 5px}.dice-summary>div{padding:0 10px}.mode-bet-card{padding:22px 16px}.mode-bet-card .bet-title h2{font-size:20px}.dice-range-info{padding:12px}.dice-range-info b{font-size:21px}.battle-team h2{font-size:14px}}
@media(max-width:1000px) and (min-width:761px){.battle-scene{padding-left:16px;padding-right:16px}.team-emblem{display:none}.dice-summary{grid-template-columns:repeat(2,1fr);gap:18px 0}.dice-summary>div:nth-child(2){border:0}.battle-team strong{font-size:25px}}
@media(max-width:760px){
 .mode-tools{grid-column:2;grid-row:1}.mode-round-meta{font-size:11px;gap:8px}.mode-round-meta .phase-badge{font-size:8px}.mode-fair{padding:5px;border:0;background:none}.mode-fair svg{width:20px;height:20px}
 .is-secondary-mode .sidebar{display:contents}.is-secondary-mode .main-column{display:contents}.is-secondary-mode .game-card{order:0;width:100%}.mode-bet-card{order:1;width:100%;margin-top:12px;padding:20px 17px;flex:none}.mode-history{order:2;width:100%;margin-top:12px;padding:18px 12px 6px}.is-secondary-mode .footer{order:3;width:100%;padding:20px 5px 95px}.is-secondary-game .chat-launcher{bottom:18px}
 .mode-bet-card .bet-title h2{font-size:22px}.mode-bet-card .live-label{display:flex}.mode-bet-card .amount-input{height:54px}.mode-bet-card .amount-input input{font-size:29px}.mode-bet-card .quick-actions{margin:12px 0 17px}.mode-bet-card .quick-actions button:last-child{display:flex}.mode-bet-card .my-stake{position:static;margin-top:15px;padding-top:14px;border-top:1px solid #eee8e1;font-size:12px}.mode-bet-card .primary{margin-top:15px;height:50px}.mode-bet-card #battle-play{margin-top:10px}.mode-bet-card .mode-rules{margin-top:18px}.mode-bet-card .mode-rules p{margin-bottom:10px}.battle-personal{margin-bottom:7px}.battle-choice button{font-size:12px}.battle-choice{margin-bottom:18px}.dice-chance-control .amount-input{height:47px}.dice-range-info b{font-size:25px}
 .dice-view{padding:0 14px 15px}.dice-result{min-height:238px;padding:18px 0 0}.dice-symbol svg{width:38px;height:38px}.dice-symbol{margin-bottom:10px}.dice-result-label{font-size:12px}.dice-result>strong{font-size:58px;min-height:66px;letter-spacing:-2px}.dice-result>#dice-result-status{font-size:12px}.dice-scale{margin-top:18px}.dice-summary{grid-template-columns:repeat(2,1fr);gap:20px 0;padding:16px 4px}.dice-summary>div:nth-child(2){border:0}.dice-summary span{font-size:10px;margin-bottom:6px}.dice-summary b{font-size:23px}.dice-result-marker b{font-size:11px;padding:6px 8px}.dice-result-marker{top:-44px}
 .battle-scene{padding:78px 16px 25px;min-height:405px}.battle-clock{right:15px;top:7px}.battle-clock .timer{font-size:19px;min-width:104px;padding:8px 11px}.battle-clock small{font-size:9px;margin-top:5px}.battle-bank{gap:10px}.battle-bank strong{font-size:36px}.battle-bank>span{font-size:10px}.battle-bank small{font-size:10px}.battle-team-row{margin-top:28px;gap:8px}.team-emblem{display:none}.battle-team h2{font-size:13px}.battle-team strong{font-size:27px}.team-metrics{gap:9px}.team-metrics>b{font-size:17px}.team-metrics>span{font-size:11px}.battle-rosters{gap:16px;margin-top:0}.battle-rosters>div{gap:11px}.roster-person .avatar{--a:28px}.roster-person small{font-size:8px}.roster-empty{font-size:10px}.battle-banner{padding:13px 12px;gap:10px;margin:10px}.battle-banner b{font-size:12px}.battle-banner small{font-size:10px}.battle-banner strong{font-size:24px}.battle-banner .avatar{--a:39px}.battle-banner svg{width:21px;height:21px}.mode-history table{font-size:11px}.mode-history th{font-size:10px}.mode-history-empty{font-size:12px}
}
@keyframes dice-tumble{0%{transform:rotate(0) translateY(0)}25%{transform:rotate(-12deg) translateY(-5px)}65%{transform:rotate(15deg) translateY(0)}100%{transform:rotate(0) translateY(0)}}
@media(prefers-reduced-motion:reduce){.dice-symbol{animation:none!important}}
.phase-badge.spinning,.phase-badge.locked{background:#fff0e5;color:#f06a28}.roster-person b{font-size:10px;font-weight:650;color:#68605e}.winner-orange #orange-roster .avatar{box-shadow:0 0 15px #ff8a5480}.winner-teal #teal-roster .avatar{box-shadow:0 0 15px #00bac480}.proof-payouts{margin:20px 0}.proof-payouts h3{font-size:15px;margin-bottom:12px}.proof-payouts>div{display:flex;align-items:center;gap:12px;border-bottom:1px solid #eee9e3;padding:10px 0;font-size:13px}.proof-payouts .avatar{--a:32px}.proof-payouts b{margin-left:auto;color:#ff641c}

@media(max-width:760px){.dice-summary b.large-amount{font-size:19px}.battle-team strong.large-amount{font-size:20px}}
/* Dice result travels with its number on the existing 1050ms round clock. */
.dice-result-marker.is-travelling b,.dice-result-marker.is-travelling i{background:#ff641c}.dice-result-marker.is-travelling b:after{border-top-color:#ff641c}
.dice-result-marker b{font-variant-numeric:tabular-nums;min-width:66px;text-align:center}.dice-result-marker b:after{left:calc(50% - 5px - var(--edge-shift,0%))}
.dice-view.is-rolling .dice-symbol{animation:none}
