@charset "UTF-8";
/* Previous round and current wager have independent visual markers. */
.board-legend{display:flex;flex-wrap:wrap;gap:9px 18px;padding:0 2px 10px;font-size:10px;color:#b0baab}
.board-legend>span{display:inline-flex;align-items:center;gap:5px}
.board-legend i{font-style:normal;font-size:12px}
.legend-previous{color:#8ad4f3}.legend-winner{color:#f0d89a}
.legend-current{display:inline-block;width:13px;height:9px;border-radius:8px;background:#dfc587;border:1px dashed #fff0bd}
.previous-marker{display:none;position:absolute;top:4px;left:5px;color:#8ad4f3;font-size:11px;line-height:1;text-shadow:0 1px 3px #071b24;pointer-events:none;z-index:3}
.bet-cell.previous-bet .previous-marker{display:block}
.bet-cell.previous-bet:before{content:"";position:absolute;inset:3px;border:1px dashed #83c8e780;border-radius:3px;pointer-events:none;z-index:2}
.position-limit{color:#a9be9f;font-size:8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.betting-board .sums .bet-cell{gap:3px;padding:8px 2px;min-height:79px}
.betting-board .sums .bet-cell.selected .position-limit{visibility:hidden}
.rules-table td:nth-child(3){color:#d9c389;white-space:nowrap}
.rules-table td:nth-child(4){color:#a9c5cc;font-size:10px}
.history-panel .history-row,.history-panel .history-columns{grid-template-columns:minmax(0,1fr) 30px 57px}
.history-panel .result-badge,.full-row .result-badge{white-space:nowrap}
@media(max-width:480px){.history-panel .history-row,.history-panel .history-columns{grid-template-columns:minmax(0,1fr) 24px 47px}.dialog-body .full-row{grid-template-columns:26px minmax(0,1fr) 23px 47px 73px}.full-row .result-badge{font-size:8px}}
@media(max-width:599px){.board-legend{font-size:9px;gap:7px 14px}.board-legend i{font-size:11px}.position-limit{font-size:8px}.rules-table td:nth-child(4){font-size:9px}}
@media(orientation:landscape) and (max-height:600px) and (max-width:1100px){.betting-board .sums .bet-cell{min-height:68px;padding:6px 2px}}
:root{color-scheme:dark;--bg:#101616;--panel:#182121;--muted:#8d9b97;--text:#eeeee4;--gold:#cfb278;--line:#34413c;--felt:#1b3833;--green:#93c6ac;--red:#ca6962;font-family:Inter,"Pretendard","Segoe UI","Malgun Gothic",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 42% 20%,#1d2a26 0,transparent 60%),var(--bg);color:var(--text);font-size:13px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.38}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid #f5d896;outline-offset:4px}button{transition:background .18s,transform .18s,box-shadow .18s}button:hover:not(:disabled){filter:brightness(1.14)}.header{height:86px;padding:0 3.6%;border-bottom:1px solid #ffffff0c;display:flex;align-items:center;justify-content:space-between;background:#111817cc}.brand{display:flex;align-items:center;gap:13px;font-size:27px;font-weight:700;letter-spacing:5px;color:var(--gold)}.brand-mark{font-size:42px;transform:rotate(-12deg);line-height:1}.brand small{display:block;font-size:8px;letter-spacing:3px;color:#9b9f8e;margin-top:4px}.header nav{display:flex;height:100%;gap:34px}.nav-button{border:0;background:none;color:var(--muted);position:relative;padding:0 4px;font-size:13px;font-weight:600}.nav-button.active{color:var(--gold)}.nav-button.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--gold)}.nav-button span{font-size:14px;margin-left:5px}.header-right{display:flex;align-items:center;gap:23px}.practice{font-size:10px;letter-spacing:1.6px;color:#b2c9b8}.practice i,.status-tag i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#a3d3af;margin-right:7px}.icon-button{width:38px;height:38px;background:transparent;border:1px solid var(--line);border-radius:50%;font-size:17px;position:relative}.sound-off{font-size:7px;position:absolute;bottom:4px;left:12px;color:#a6b3ab}main{max-width:1500px;margin:auto;padding:30px 3.6% 0}.intro{display:flex;align-items:center;justify-content:space-between;margin:2px 0 25px}.eyebrow{font-size:9px;letter-spacing:2.5px;color:var(--gold);font-weight:600}h1{font-size:26px;letter-spacing:-1.2px;margin:8px 0 0}h1 span{font-size:13px;font-weight:400;letter-spacing:-.2px;color:var(--muted);margin-left:13px}.text-button{border:0;background:none;color:#aab5ad;font-size:11px;display:flex;gap:8px;align-items:center;padding:10px 0}.circle-help{display:inline-grid;place-items:center;border:1px solid #718278;border-radius:50%;width:15px;height:15px;font-size:10px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:22px}.game-main{min-width:0}.table-stage{height:200px;position:relative;border:1px solid #56624b63;border-radius:12px;background:radial-gradient(ellipse at 75% 140%,#5c653550,transparent 64%),linear-gradient(110deg,#162725,#24332b 80%,#202d24);display:flex;align-items:center;overflow:hidden}.table-stage:after{content:"";position:absolute;inset:8px;border:1px solid #bba57116;border-radius:7px;pointer-events:none}.stage-info{padding:25px 28px;z-index:1;width:55%}.table-number{font-size:9px;letter-spacing:1.2px;color:#879687}.table-number>span:first-child{padding:0 8px}.status-tag{font-size:10px;color:#a7cfb4;display:flex;align-items:center;margin:21px 0 9px}.status-tag i{box-shadow:0 0 10px #b2e4be55}h2{margin:0}.stage-info h2{font-size:24px;letter-spacing:-.7px;font-weight:600}.stage-info p{font-size:11px;color:#a3b1a5;margin:10px 0 0;line-height:1.6}.dice-scene{position:absolute;right:0;top:0;bottom:0;width:45%;display:flex;align-items:center;justify-content:center;perspective:700px}.dice-orbit{position:absolute;width:240px;height:240px;border:1px solid #acb68215;border-radius:50%;top:-22px}.dice-orbit:before{content:"";position:absolute;inset:18px;border:1px solid #acb68212;border-radius:50%}.dice-plinth{position:absolute;width:230px;height:67px;border-radius:50%;background:radial-gradient(ellipse,#0a161e,#142621 58%,#384637 62%,#6c745349 64%,#111d17 67%);bottom:35px;box-shadow:0 14px 15px #0004}.stage-dice{display:flex;align-items:center;gap:12px;z-index:2;transform:translateY(-5px)}.stage-dice .die{--size:53px;box-shadow:0 7px 0 #afa18a,0 12px 10px #0007;border:2px solid #fff3d5;background:linear-gradient(145deg,#fffdf3,#d9cfb9);transform:rotate(-13deg);color:#b83932}.stage-dice .die:nth-child(2){transform:rotate(10deg) translateY(-18px)}.stage-dice .die:nth-child(3){transform:rotate(21deg)}.stage-dice.rolling .die{animation:tumble .18s infinite alternate}.stage-dice.rolling .die:nth-child(2){animation-delay:-.1s}.stage-dice.rolling .die:nth-child(3){animation-delay:-.06s}.scene-wordmark{position:absolute;top:22px;font-family:Georgia,serif;font-size:10px;letter-spacing:5px;color:#c1be9555}.stage-result{position:absolute;bottom:19px;font-size:10px;color:#acb79a;letter-spacing:.2px;z-index:2}.table-toolbar{display:flex;align-items:center;justify-content:space-between;padding:20px 2px 12px;color:#a8b4aa;font-size:10px}.table-toolbar>span:first-child{color:#d4d9ca;font-weight:600;font-size:12px}.table-toolbar b{font-weight:500;color:#c1c8bb;margin-left:3px}.table-toolbar em{font-style:normal;margin:0 9px;color:#526359}.gold-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--gold);margin-right:7px}.betting-shell{border:1px solid #a591604f;border-radius:9px;background:radial-gradient(ellipse at 50% 10%,#29494077,transparent 70%),repeating-linear-gradient(90deg,transparent 0 3px,#101c1810 3px 4px),var(--felt);padding:11px}.betting-board{border:1px solid #a69a6b70;border-radius:5px;overflow:hidden}.bet-top{display:grid;grid-template-columns:1.05fr 3.6fr 1.05fr}.side-bets{display:grid;grid-template-rows:1fr 1fr}.bet-cell{border:0;border-right:1px solid #a69a6b60;border-bottom:1px solid #a69a6b60;background:transparent;position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px 3px;isolation:isolate;touch-action:manipulation}.bet-cell:hover:not(:disabled){background:#c9b97516;filter:none}.bet-cell.selected{background:#d7bd7330;box-shadow:inset 0 0 0 1px #d1b67099}.bet-cell.winner{background:#b6ad4c30;box-shadow:inset 0 0 16px #c9b97b19}.bet-cell.winner:after{content:"✦";position:absolute;right:5px;top:3px;color:#f0d89a;font-size:11px}.bet-cell .odds{font-size:9px;color:#a4b19a;font-weight:400}.major-bet{min-height:79px;gap:3px}.major-label{font-family:Georgia,"Malgun Gothic",serif;letter-spacing:2px;font-size:21px;color:#eee6c4}.major-bet .minor{font-size:9px;color:#bfc8ac;letter-spacing:.5px}.major-bet .chinese{position:absolute;right:6px;top:12px;font-family:serif;font-size:39px;color:#c4b66e10;z-index:-1}.side-bets:last-child .bet-cell{border-right:0}.center-bets{display:flex;flex-direction:column}.group-caption{height:21px;text-align:center;display:flex;align-items:center;justify-content:center;gap:8px;font-size:9px;letter-spacing:.7px;color:#c8c3a1;border-right:1px solid #a69a6b60;border-bottom:1px solid #a69a6b60;background:#0c191820}.group-caption span{color:#839d8c;font-size:8px}.triple-row{display:grid;grid-template-columns:repeat(6,1fr)}.triple-row .bet-cell{height:57px;padding:7px 0;gap:5px}.dice-group{display:flex;gap:3px;align-items:center;justify-content:center}.triple-row .dice-group{gap:2px}.triple-row .die{--size:15px}.double-section{display:grid;grid-template-columns:2.9fr 1.2fr;flex:1}.double-group{display:grid;grid-template-columns:repeat(6,1fr)}.double-group .bet-cell{gap:6px;padding:7px 0}.double-group .dice-group{flex-direction:column;gap:3px}.double-group .die{--size:17px}.any-triple .dice-group{gap:4px}.any-triple strong{font-size:10px;font-weight:500;letter-spacing:.2px}.any-triple .die{--size:19px}.sums{display:grid;grid-template-columns:repeat(14,1fr)}.sums .bet-cell{min-height:66px}.sum-label{font-family:Georgia,serif;font-size:29px;color:#eee5c3;line-height:1.1}.sums .bet-cell:last-child,.combos .bet-cell:last-child,.singles .bet-cell:last-child{border-right:0}.board-caption{color:#a2b59d;font-size:9px;letter-spacing:.3px;background:#0b211d40;display:flex;justify-content:center;gap:12px;align-items:center;padding:7px 5px;border-bottom:1px solid #a69a6b60}.board-caption b{color:#d2c9a4;font-weight:500}.combos{display:grid;grid-template-columns:repeat(15,1fr)}.combos .bet-cell{height:60px;padding:9px 0}.combos .dice-group{flex-direction:column;gap:4px}.combos .die{--size:20px}.singles{display:grid;grid-template-columns:repeat(6,1fr)}.singles .bet-cell{flex-direction:row;gap:13px;height:65px;border-bottom:0}.single-name{font-family:Georgia,serif;letter-spacing:1px;font-size:11px;color:#dad8bd}.singles .die{--size:30px}.die{--size:25px;width:var(--size);height:var(--size);flex:0 0 var(--size);display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:calc(var(--size)*.14);gap:calc(var(--size)*.07);background:linear-gradient(135deg,#e77660,#bb4238);color:#ffeed6;border-radius:calc(var(--size)*.15);border:1px solid #fac6aa88;box-shadow:0 1px 2px #0004}.die i{background:currentColor;border-radius:50%;box-shadow:0 .4px .4px #fff4}.die[data-face="1"] i{grid-area:2/2}.die[data-face="2"] i:nth-child(1),.die[data-face="3"] i:nth-child(1),.die[data-face="4"] i:nth-child(1),.die[data-face="5"] i:nth-child(1),.die[data-face="6"] i:nth-child(1){grid-area:1/1}.die[data-face="2"] i:nth-child(2),.die[data-face="3"] i:nth-child(3),.die[data-face="4"] i:nth-child(4),.die[data-face="5"] i:nth-child(5),.die[data-face="6"] i:nth-child(6){grid-area:3/3}.die[data-face="3"] i:nth-child(2),.die[data-face="5"] i:nth-child(3){grid-area:2/2}.die[data-face="4"] i:nth-child(2),.die[data-face="5"] i:nth-child(2),.die[data-face="6"] i:nth-child(2){grid-area:1/3}.die[data-face="4"] i:nth-child(3),.die[data-face="5"] i:nth-child(4),.die[data-face="6"] i:nth-child(5){grid-area:3/1}.die[data-face="6"] i:nth-child(3){grid-area:2/1}.die[data-face="6"] i:nth-child(4){grid-area:2/3}.bet-marker{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);min-width:30px;padding:4px 5px;font-size:9px;line-height:1;color:#1c241e;background:#dfc587;border:1px dashed #fff0bd;border-radius:20px;box-shadow:0 2px 5px #0008;font-weight:800;pointer-events:none;z-index:3}.bet-marker:empty{display:none}.board-footnote{display:flex;justify-content:space-between;font-size:9px;color:#8fa78f;padding:10px 2px 0;gap:10px}.control-deck{display:grid;grid-template-columns:1fr 1fr 191px;align-items:center;gap:18px;padding:20px 0 18px}.control-label{font-size:10px;color:#96a799;display:flex;align-items:center;gap:10px;margin-bottom:12px}.control-label span{color:var(--gold);font-variant-numeric:tabular-nums}.chips{display:flex;gap:10px;padding:0 3px}.chip{--chip-color:#b4b8a6;width:45px;height:45px;border-radius:50%;border:3px dashed #ffffffa6;background:var(--chip-color);position:relative;box-shadow:0 3px 0 #0008,inset 0 0 0 3px var(--chip-color),inset 0 0 0 4px #fff9;display:grid;place-items:center;color:white;font-size:10px;font-weight:750}.chip:before{content:"";position:absolute;inset:6px;border:1px solid #fff5;border-radius:50%}.chip[data-amount="1000"]{--chip-color:#c1c5b4;color:#27382f}.chip[data-amount="5000"]{--chip-color:#606fba}.chip[data-amount="10000"]{--chip-color:#a85252}.chip[data-amount="50000"]{--chip-color:#b68a3c}.chip[aria-pressed="true"]{outline:2px solid var(--gold);outline-offset:4px;transform:translateY(-3px)}.bet-controls{border-left:1px solid #354036;padding-left:18px}.bet-total{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}.bet-total>span{font-size:10px;color:#96a799}.bet-total strong{font-size:20px;color:#e5d4a7;font-variant-numeric:tabular-nums}.bet-total small,.wallet-bar small{font-size:10px;color:#8f9d8c;font-weight:400;margin-left:3px}.utility-buttons{display:flex;gap:5px}.utility-buttons button{border:1px solid #3c473d;background:#202a23;border-radius:4px;padding:7px 6px;font-size:9px;white-space:nowrap}.roll-button{height:59px;border:1px solid #eed29b;border-radius:7px;background:linear-gradient(135deg,#d4b77c,#bfa064);color:#17251b;font-size:14px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 4px 18px #c9ae5310}.roll-button>span:first-child{font-size:24px}.roll-button>span:last-child{font-size:18px;margin-left:3px}.roll-button:disabled{opacity:.6}.wallet-bar{border-top:1px solid #c8c69d1a;border-bottom:1px solid #c8c69d1a;padding:16px 1px;display:flex;justify-content:space-between;align-items:center}.wallet-bar>div:first-child{display:flex;gap:12px;align-items:center}.wallet-icon{display:grid;place-items:center;border:1px solid #42503d;background:#263024;width:38px;height:38px;border-radius:8px;color:#aab394;font-size:21px}.wallet-bar>div span:not(.wallet-icon){display:block;font-size:10px;color:#8f9d8c;margin-bottom:5px}.wallet-bar strong{font-size:20px;letter-spacing:.3px;font-weight:600;font-variant-numeric:tabular-nums}.last-profit{text-align:right}.last-profit strong{font-size:15px}.sidebar{display:flex;flex-direction:column;gap:16px}.history-panel,.trend-panel{border:1px solid #56624b44;background:#19221f77;border-radius:10px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 17px 16px}.panel-heading h2{font-size:13px;font-weight:600}.panel-heading>span{font-size:8px;letter-spacing:.6px;color:#7d9180}.history-columns{display:grid;grid-template-columns:1fr 39px 43px;font-size:9px;color:#789180;margin:0 16px;padding:0 0 10px;border-bottom:1px solid #344135}.history-columns span:not(:first-child){text-align:center}.history-row{display:grid;grid-template-columns:1fr 39px 43px;align-items:center;padding:11px 0;border-bottom:1px solid #3441357a;gap:0;margin:0 16px}.history-row .dice-group{justify-content:flex-start;gap:5px}.history-row .die{--size:24px;background:#e5e1cd;color:#343c2f;border-color:#ffefd299}.history-row .die[data-face="1"],.history-row .die[data-face="4"]{color:#c35d51}.history-row>strong{text-align:center;font-size:16px;font-family:Georgia,serif;color:#d7dcc5}.result-badge{font-size:9px;border-radius:4px;padding:5px 3px;text-align:center;background:#274239;color:#b6d3bf}.result-badge.small{color:#c2c9e4;background:#30394a}.result-badge.triple{background:#554627;color:#e7c991}.history-row.latest{background:#d9d0a207;margin:0;padding-left:16px;padding-right:16px}.all-history{border:0;background:none;width:100%;padding:15px 17px;color:#9dad9a;font-size:10px;display:flex;justify-content:space-between}.empty-history{height:205px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#758975}.empty-history>span{font-size:40px;color:#4e6554;transform:rotate(-12deg);margin-bottom:15px}.empty-history strong{font-size:11px;color:#9eac97;font-weight:500}.empty-history p{font-size:10px;line-height:1.7;margin:7px 0}.trend-panel{padding-bottom:13px}.trend-labels{display:flex;justify-content:space-between;margin:1px 17px 10px;color:#92b9a3;font-size:18px}.trend-labels>span:last-child{color:#9eafd4}.trend-labels b{font-size:10px;font-weight:400}.trend-labels strong{font-size:12px;margin:0 4px;font-weight:500}.trend-bar{display:flex;height:5px;margin:0 17px;border-radius:3px;background:#303d32;overflow:hidden}.trend-bar span{transition:width .5s;width:0}.trend-bar span:nth-child(1){background:#729782}.trend-bar span:nth-child(2){background:#7b89ae}.trend-bar span:nth-child(3){background:#b69b64}.trend-key{display:flex;gap:13px;margin:11px 17px 15px;font-size:8px;color:#879c87}.trend-key i{display:inline-block;width:4px;height:4px;border-radius:50%;margin-right:4px}.big-dot{background:#729782}.small-dot{background:#7b89ae}.triple-dot{background:#b69b64}.trend-key b{font-weight:400;margin-left:3px}.road{display:grid;grid-template-rows:repeat(3,1fr);grid-auto-flow:column;grid-template-columns:repeat(10,1fr);gap:4px;margin:0 17px}.road span{border:1px solid #3d514155;border-radius:50%;aspect-ratio:1;display:grid;place-items:center;font-size:8px;color:#a1c7af}.road span.big{background:#314e3c;border-color:#7a9b7e55}.road span.small{background:#364153;color:#b4c1df;border-color:#8c9abb55}.road span.triple{background:#52492c;color:#dcc48e}.trend-panel>p{font-size:8px;color:#718572;text-align:center;margin:13px 0 0}.tip-panel{display:flex;gap:12px;padding:8px 3px;color:#889d89}.tip-icon{font-size:24px;color:#b59d69}.tip-panel h3{font-size:10px;font-weight:500;color:#b1bd9e;margin:3px 0 6px}.tip-panel p{font-size:10px;line-height:1.8;margin:0}footer{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#627664;padding:24px 0 22px;gap:15px}footer>span:first-child{letter-spacing:1px;color:#869579}.footer-divider{margin:0 8px;color:#526049}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#e6d8b4;color:#21352a;padding:13px 22px;border-radius:7px;box-shadow:0 5px 25px #0005;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:20;max-width:90vw;width:max-content}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #636649;border-radius:14px;background:#1b2621;color:var(--text);width:min(650px,94vw);max-height:88vh;padding:0;box-shadow:0 15px 90px #0008}dialog::backdrop{background:#080f0edb;backdrop-filter:blur(5px)}.dialog-heading{padding:25px 25px 20px;border-bottom:1px solid #3d4d3c;display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:22px;margin-top:7px}.dialog-heading button{border:1px solid #4a5745;background:none;border-radius:50%;width:32px;height:32px;font-size:23px;color:#bac6ae}.dialog-body{padding:20px 25px 26px}.dialog-body>h3{font-size:14px;margin:22px 0 15px}.dialog-body p{line-height:1.9}.how-to{display:flex;gap:12px}.how-to p{font-size:11px;flex:1;margin:0}.how-to b{display:block;color:var(--gold);font-size:18px;margin-bottom:3px}.rules-table{width:100%;border-collapse:collapse;font-size:11px}.rules-table td,.rules-table th{text-align:left;padding:12px 5px;border-bottom:1px solid #40533d}.rules-table th{font-weight:400;color:#94a68b;font-size:10px}.rules-table td:last-child{color:#d9c389;white-space:nowrap}.rules-table small{display:block;color:#94a68b;line-height:1.7;font-size:10px;margin-top:3px}.rules-note{font-size:11px;color:#9aaa90}.source-link{font-size:11px;color:#d0b77e;text-decoration:underline;text-underline-offset:4px}.session-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.session-stats>div{padding:15px;border:1px solid #42533c;border-radius:6px}.session-stats span{display:block;color:#9bad8f;font-size:10px;margin-bottom:9px}.session-stats strong{font-size:20px}.muted{font-size:10px;color:#81987d}.full-row{display:grid;grid-template-columns:40px 1fr 45px 50px 100px;align-items:center;border-bottom:1px solid #3a4e37;padding:14px 0;gap:8px}.full-row .dice-group{justify-content:flex-start}.full-row>span:first-child{font-size:10px;color:#8ca180}.full-row .profit{text-align:right;font-variant-numeric:tabular-nums}.profit.positive{color:#b7d29c}.profit.negative{color:#d08774}.small-dialog{width:420px}.small-dialog .dialog-body>p{font-size:13px;color:#aebb9e}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.dialog-actions button{border:1px solid #4f6047;background:none;border-radius:5px;padding:10px 16px;font-size:12px}.dialog-actions .primary{background:#c6b177;color:#20311e;border-color:#c6b177}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes tumble{from{transform:translateY(-12px) rotate(-15deg)}to{transform:translateY(9px) rotate(35deg)}}
@media(min-width:1550px){main{padding-top:38px}.table-stage{height:215px}.major-bet{min-height:88px}.sums .bet-cell{min-height:72px}.combos .bet-cell{height:65px}.singles .bet-cell{height:72px}}
@media(max-width:1200px){.game-layout{grid-template-columns:minmax(0,1fr) 220px;gap:16px}main{padding-left:25px;padding-right:25px}.control-deck{grid-template-columns:1fr 1fr;gap:16px}.roll-button{grid-column:1/-1;height:46px}.chip{width:43px;height:43px}.single-name{font-size:9px}.singles .bet-cell{gap:8px}.triple-row .die{--size:12px}.triple-row .dice-group{gap:1px}.any-triple .die{--size:16px}.bet-top{grid-template-columns:1fr 3.5fr 1fr}.sum-label{font-size:25px}.stage-info{padding-left:22px}.stage-info h2{font-size:22px}.stage-dice .die{--size:46px}.dice-plinth{width:195px}.stage-dice{gap:9px}.header nav{gap:23px}}
@media(max-width:960px){.game-layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr}.tip-panel{display:none}.history-panel{display:flex;flex-direction:column}.empty-history{height:160px}.history-panel #recent-history{flex:1;max-height:220px;overflow:auto}.all-history{border-top:1px solid #344135}.road{grid-template-columns:repeat(10,20px);justify-content:space-between}.trend-panel{align-self:start}.control-deck{grid-template-columns:1fr 1fr 190px;gap:17px}.roll-button{grid-column:auto;height:59px}.triple-row .die{--size:15px}.single-name{font-size:11px}.table-stage{height:190px}footer{font-size:8px}}
@media(max-width:760px){.header{height:70px;padding:0 20px}.header nav{gap:20px}.brand{font-size:21px;gap:9px;letter-spacing:3px}.brand-mark{font-size:33px}.brand small{font-size:6px;letter-spacing:2px}.nav-button{font-size:11px}.header-right .practice{display:none}.header-right{gap:0}.icon-button{width:32px;height:32px}.sound-off{left:9px}.header nav .nav-button:last-child{display:none}main{padding:24px 18px 0}.intro{margin-bottom:20px}h1{font-size:24px}h1 span{font-size:11px;display:block;margin:8px 0 0}.intro>.text-button{font-size:10px}.table-stage{height:180px}.stage-info{width:56%;padding:20px}.stage-info h2{font-size:21px}.stage-info p{font-size:10px;max-width:200px}.stage-dice .die{--size:40px}.dice-plinth{width:170px;bottom:32px;height:54px}.dice-orbit{width:195px;height:195px;top:-5px}.stage-result{font-size:9px;bottom:21px}.scene-wordmark{top:20px}.status-tag{margin-top:17px}.table-toolbar{padding-top:18px}.betting-shell{padding:8px}.betting-board{min-width:650px}.board-scroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#8f9260 #153328;padding-bottom:5px}.control-deck{grid-template-columns:1fr 1fr;gap:20px 16px;padding:20px 1px}.roll-button{grid-column:1/-1;height:51px}.chips{gap:13px}.chip{width:43px;height:43px}.utility-buttons{gap:4px}.utility-buttons button{font-size:9px;padding:8px 5px}.bet-controls{padding-left:14px}.bet-total strong{font-size:19px}.board-footnote{font-size:8px;line-height:1.6}.board-footnote>span:last-child{white-space:nowrap}.sidebar{gap:14px}.trend-panel .panel-heading{padding:17px 14px}.road{grid-template-columns:repeat(10,1fr);gap:3px;margin:0 14px}.trend-labels,.trend-bar{margin-left:14px;margin-right:14px}.panel-heading h2{font-size:12px}.panel-heading>span{font-size:7px}.history-row .die{--size:20px}.history-row{grid-template-columns:1fr 30px 36px;margin:0 13px}.history-columns{grid-template-columns:1fr 30px 36px;margin:0 13px}.history-row .dice-group{gap:3px}.history-row.latest{padding-left:13px;padding-right:13px}.panel-heading{padding:17px 14px}.trend-key{gap:9px;margin-left:14px}.trend-panel>p{font-size:7px}footer{flex-direction:column;align-items:flex-start;gap:9px;padding-bottom:20px}.wallet-bar strong{font-size:19px}.last-profit strong{font-size:14px}}
@media(max-width:480px){.header{padding:0 16px}.header nav{gap:16px}.brand{font-size:19px}.brand small{letter-spacing:1.5px}.brand-mark{font-size:31px}.nav-button{font-size:10px}.header-right{display:none}.intro>.text-button{font-size:0;gap:0}.intro .circle-help{font-size:12px;width:22px;height:22px}.table-stage{height:170px}.stage-info{padding-left:17px;width:58%}.stage-info h2{font-size:19px}.stage-info p{font-size:9px;max-width:160px}.table-number{font-size:7px;letter-spacing:.7px}.table-number>span:first-child{padding:0 4px}.stage-dice{gap:7px}.stage-dice .die{--size:31px;border-width:1px;box-shadow:0 5px 0 #afa18a,0 9px 8px #0007}.dice-scene{width:42%}.dice-plinth{width:130px;height:45px;bottom:39px}.stage-result{font-size:8px;bottom:22px}.scene-wordmark{font-size:8px;top:27px}.dice-orbit{width:168px;height:168px;top:0}.table-toolbar>span:last-child{font-size:8px}.table-toolbar em{margin:0 4px}.table-toolbar>span:first-child{font-size:11px}.control-deck{gap:17px 12px}.chips{gap:9px}.chip{width:36px;height:36px;font-size:9px;border-width:2px}.chip:before{inset:5px}.bet-controls{padding-left:10px}.utility-buttons{display:grid;grid-template-columns:1fr 1fr;gap:5px}.utility-buttons button{padding:5px 3px;font-size:8px}.bet-total{margin-bottom:7px}.bet-total strong{font-size:18px}.control-label{margin-bottom:17px}.wallet-icon{display:none}.wallet-bar strong{font-size:17px}.wallet-bar>div span:not(.wallet-icon){font-size:9px}.last-profit strong{font-size:13px}.wallet-bar .text-button{font-size:9px}.board-footnote>span:last-child{display:none}.sidebar{grid-template-columns:1fr 1fr;gap:10px}.history-row .die{--size:18px}.history-row>strong{font-size:14px}.history-columns{font-size:8px}.result-badge{font-size:8px}.history-row .dice-group{gap:2px}.history-row{margin:0 10px;grid-template-columns:1fr 24px 31px}.history-columns{margin:0 10px;grid-template-columns:1fr 24px 31px}.history-row.latest{padding-left:10px;padding-right:10px}.panel-heading{padding:15px 11px}.panel-heading h2{font-size:11px}.panel-heading>span{font-size:6px}.trend-panel .panel-heading{padding:15px 11px}.trend-labels{font-size:16px;margin-top:6px}.trend-labels strong{font-size:10px;margin:0 2px}.trend-labels b{font-size:8px}.road{gap:2px;margin:0 10px}.road span{font-size:6px}.trend-key{font-size:7px;gap:8px;margin-left:11px}.trend-panel>p{font-size:6px}.empty-history{height:152px}.empty-history strong{font-size:10px}.empty-history p{font-size:8px}.all-history{font-size:9px;padding:13px 11px}.dialog-body{padding:18px}.dialog-heading{padding:20px 18px}.dialog-heading h2{font-size:20px}.rules-table{font-size:10px}.how-to{gap:9px}.how-to p{font-size:10px}.session-stats{gap:6px}.session-stats>div{padding:12px 9px}.session-stats strong{font-size:17px}.full-row{grid-template-columns:30px 1fr 25px 35px 73px;gap:5px;font-size:11px}.full-row .die{--size:20px}.full-row .dice-group{gap:3px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Fit the entire board horizontally. Portrait uses additional rows. */
@media(max-width:760px){.betting-board{min-width:0}.board-scroll{overflow:visible;padding:0}}
@media(max-width:599px){.bet-top{grid-template-columns:repeat(4,1fr)}.side-bets{display:contents}.major-bet{order:0;min-height:73px}.center-bets{grid-column:1/-1;order:1}.side-bets:last-child .bet-cell{border-right:1px solid #a69a6b60}.side-bets:last-child .bet-cell:last-child{border-right:0}.major-label{font-size:18px;letter-spacing:1px}.major-bet .minor{font-size:8px}.major-bet .odds{font-size:8px}.triple-row .die{--size:14px}.triple-row .bet-cell{height:60px}.triple-row .bet-cell:last-child,.group-caption,.any-triple{border-right:0}.double-section{min-height:75px}.double-group .die{--size:17px}.double-group .bet-cell{gap:5px}.sums{grid-template-columns:repeat(7,1fr)}.sums .bet-cell{min-height:60px}.sums .bet-cell:nth-child(7){border-right:0}.sum-label{font-size:28px}.combos{grid-template-columns:repeat(5,1fr)}.combos .bet-cell{height:49px}.combos .dice-group{flex-direction:row;gap:5px}.combos .bet-cell:nth-child(5n){border-right:0}.combos .die{--size:22px}.singles{grid-template-columns:repeat(3,1fr)}.singles .bet-cell{height:59px;gap:10px}.singles .bet-cell:nth-child(-n+3){border-bottom:1px solid #a69a6b60}.singles .bet-cell:nth-child(3){border-right:0}.singles .die{--size:28px}.single-name{font-size:10px}.bet-marker{padding:3px 6px;font-size:8px;bottom:3px}.board-footnote{font-size:8px}}
@media(orientation:landscape) and (max-height:600px) and (max-width:1100px){.header{height:53px}.header .brand{font-size:20px}.brand-mark{font-size:30px}.brand small{font-size:6px}.intro{margin:0 0 14px}main{padding-top:17px}.eyebrow{font-size:8px}h1{font-size:20px;margin-top:5px}h1 span{display:inline;font-size:11px;margin-left:12px}.table-stage{height:133px}.stage-info{padding:12px 20px}.status-tag{margin:10px 0 7px}.stage-info h2{font-size:20px}.stage-info p{margin-top:7px}.stage-dice .die{--size:37px}.dice-plinth{bottom:22px;height:42px;width:160px}.stage-result{bottom:10px}.scene-wordmark{top:11px}.dice-orbit{height:175px;width:175px;top:-22px}.table-toolbar{padding-top:13px}.major-bet{min-height:65px}.triple-row .bet-cell{height:49px}.triple-row .die{--size:13px}.double-group .die{--size:13px}.any-triple .die{--size:15px}.group-caption{height:18px}.sums .bet-cell{min-height:53px}.sum-label{font-size:24px}.combos .bet-cell{height:51px}.combos .die{--size:17px}.singles .bet-cell{height:53px}.singles .die{--size:26px}.control-deck{grid-template-columns:1fr 1fr 185px;gap:14px}.roll-button{grid-column:auto;height:53px}.chips{gap:11px}.chip{width:39px;height:39px}.utility-buttons button{font-size:8px}.sidebar{grid-template-columns:1fr 1fr}.betting-board{min-width:0}.board-scroll{overflow:visible}}

/* Keep the dice in view while the player reaches the controls. */
.table-stage{position:sticky;top:8px;z-index:5;box-shadow:0 6px 18px #08120e55}

/* A short, non-blocking burst behind the result. No extra assets or animation loop. */
.table-stage.is-win{border-color:#d9bb70;box-shadow:0 0 0 1px #e5c77733,0 6px 24px #d1ad4826}
.table-stage.is-win .stage-info h2{color:#ffe1a1;text-shadow:0 0 18px #edbd5744}
.table-stage.is-win .status-tag{color:#edcf8e}
.dice-scene{z-index:1}
.win-celebration{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;border-radius:inherit;contain:strict}
.firework{position:absolute;left:var(--x);top:var(--y);width:0;height:0}
.firework:after{content:"";position:absolute;width:32px;height:32px;left:-16px;top:-16px;border:1px solid #ffe0a0;border-radius:50%;opacity:0;animation:firework-ring 1s ease-out var(--delay) both}
.firework-spark{position:absolute;left:0;top:0;width:4px;height:8px;border-radius:2px;background:var(--spark-color);box-shadow:0 0 5px var(--spark-color);opacity:0;animation:firework-burst 1.5s cubic-bezier(.12,.64,.3,1) var(--delay) both}
@keyframes firework-burst{0%{opacity:0;transform:translate(0,0) rotate(0) scale(.3)}12%{opacity:1}65%{opacity:.9}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--spin)) scale(.25)}}
@keyframes firework-ring{0%{opacity:.7;transform:scale(.15)}100%{opacity:0;transform:scale(3.2)}}
@media(max-width:599px){.firework-spark{width:3px;height:6px}}
@media(prefers-reduced-motion:reduce){.win-celebration{display:none}}

/* Laptop windows have less vertical space than the desktop layout. */
@media(min-width:961px) and (max-height:900px){
  .header{height:58px}
  main{padding-top:14px}
  .intro{margin:0 0 14px}
  h1{font-size:23px;margin-top:4px}
  .table-stage{height:124px}
  .stage-info{padding:12px 22px}
  .status-tag{margin:9px 0 6px}
  .stage-info h2{font-size:21px}
  .stage-info p{margin-top:6px;font-size:10px}
  .stage-dice .die{--size:39px}
  .dice-plinth{bottom:21px;height:43px;width:180px}
  .dice-orbit{height:174px;width:174px;top:-25px}
  .scene-wordmark{top:10px;font-size:8px}
  .stage-result{bottom:9px}
  .table-toolbar{padding:12px 2px 8px}
  .board-legend{padding-bottom:8px}
  .betting-shell{padding:8px}
  .major-bet{min-height:59px}
  .major-label{font-size:19px}
  .group-caption{height:18px}
  .triple-row .bet-cell{height:45px;padding:5px 0;gap:3px}
  .triple-row .die{--size:13px}
  .double-group .bet-cell{padding:4px 0;gap:3px}
  .double-group .die{--size:14px}
  .any-triple{gap:4px;padding:5px 2px}
  .any-triple .die{--size:16px}
  .betting-board .sums .bet-cell{min-height:64px;padding:5px 2px;gap:2px}
  .sum-label{font-size:25px}
  .board-caption{padding:4px 5px}
  .combos .bet-cell{height:47px;padding:5px 0}
  .combos .dice-group{gap:3px}
  .combos .die{--size:17px}
  .singles .bet-cell{height:49px}
  .singles .die{--size:26px}
  .board-footnote{padding-top:7px}
  .control-deck{grid-template-columns:minmax(155px,1fr) minmax(232px,1fr) 175px;gap:14px;padding:14px 0 12px}
  .control-label,.bet-total{margin-bottom:9px}
  .chips{gap:9px}
  .chip{width:36px;height:36px}
  .bet-controls{padding-left:12px}
  .utility-buttons button{padding:7px 4px}
  .roll-button{grid-column:auto;height:49px;font-size:13px}
}

/* Narrow preview panels still use the portrait board without sideways scrolling. */
@media(max-width:359px){
  .control-deck{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px 10px}
  .chips{gap:4px;padding:0}
  .chip{width:26px;height:26px;font-size:8px}
  .chip:before{inset:3px}
  .bet-controls{padding-left:7px}
  .utility-buttons button{padding:5px 1px;font-size:7px}
  .triple-row .die{--size:11px}
  .combos .die{--size:18px}
  .combos .dice-group{gap:3px}
}
