:root{color-scheme:dark;--felt:#064d38;--felt-deep:#00261d;--gold:#ebcc83;--cream:#fff2bf;--red:#ed443e;--accent:#78f4aa;--scene-filter:none;font-family:Arial,Helvetica,sans-serif;background:#00110c;color:var(--cream)}
*{box-sizing:border-box}body{margin:0;background:#00130e}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible,[role=button]:focus-visible{outline:3px solid #fff3a5;outline-offset:4px}button{touch-action:manipulation}a{color:inherit;text-decoration:none}[hidden]{display:none!important}
body[data-theme=sapphire]{--felt:#09395d;--felt-deep:#011a31;--accent:#79c5ff;--scene-filter:hue-rotate(56deg)}body[data-theme=ruby]{--felt:#5a1729;--felt-deep:#270511;--accent:#ffaca8;--scene-filter:hue-rotate(235deg)}body[data-theme=amethyst]{--felt:#412154;--felt-deep:#1e102e;--accent:#ddb3ff;--scene-filter:hue-rotate(115deg)}
.craps-shell{position:relative;isolation:isolate;width:min(100%,1920px);min-height:100svh;margin:auto;padding:0 1.8% 8px;background:#032f23}
.craps-shell:before{content:"";position:absolute;inset:0;z-index:-1;background:url(assets/table-environment.webp) center top/100% 100% no-repeat;filter:var(--scene-filter);pointer-events:none}
.topbar{display:flex;align-items:center;gap:20px;height:66px;margin:0 7%;padding:0 24px;border:1px solid #cfa65c;border-top:0;border-radius:0 0 28px 28px;background:linear-gradient(110deg,#002f23f5,#00150eef);box-shadow:0 5px 20px #0008}
.brand{display:flex;align-items:center;gap:11px;white-space:nowrap;font-size:20px;letter-spacing:.6px}.brand>span{font-size:38px;color:#ffd56c;text-shadow:0 2px 2px #926410}.table-brand{margin:auto;text-align:center;white-space:nowrap}.table-brand h1{font:600 27px/1 Georgia,serif;letter-spacing:3px;margin:0 0 6px}.table-brand>span{font-size:10px;letter-spacing:3px;color:#e9be65}.top-actions{display:flex;align-items:center;gap:9px}.top-actions button,.menu-button,.wallet{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #b58e47;background:linear-gradient(#00382a,#001c16);border-radius:28px;min-height:40px;padding:7px 13px;font-size:14px;white-space:nowrap}.top-actions button:hover,.menu-button:hover{background:#115843}.top-actions b{font-size:21px}.wallet small{font-size:11px;letter-spacing:1px}.wallet strong{font-size:24px;color:#ffda76}.menu-button{font-size:25px;width:43px;padding:0}
.table-hero{height:190px;position:relative;z-index:2}.dragon{position:absolute;width:275px;height:220px;object-fit:contain;left:11%;bottom:-15px;filter:drop-shadow(0 8px 8px #0006);pointer-events:none}.dice-stage{position:absolute;width:360px;height:200px;left:50%;top:-14px;transform:translateX(-50%) translateY(var(--tray-drag-y,0px));transition:transform .1s ease;display:flex;justify-content:center;align-items:center;gap:16px}#diceCanvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.dice-stage.has-webgl>.die{visibility:hidden}.die{font:80px/1 Georgia;color:#efd080;filter:drop-shadow(0 5px 6px #001b17);width:96px;height:96px;text-align:center}.result-plaque{position:absolute;left:50%;bottom:-31px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:174px;height:90px;padding:8px 30px 12px;border-radius:48% 48% 24px 24px;border:3px ridge #f8d687;background:linear-gradient(150deg,#005039,#002319);box-shadow:0 0 0 3px #714611,0 0 0 5px #dbb663,0 7px 15px #00150cc9;color:#fff1b9;z-index:3}.result-plaque>span{position:absolute;top:-21px;color:#fbd682;font-size:29px}.result-plaque>strong{font:700 29px/1 Georgia}.result-plaque>small{margin-top:5px;letter-spacing:1px;font:600 12px Georgia}.result-plaque.is-result>strong{font-size:44px}.result-plaque.is-result{box-shadow:0 0 0 3px #714611,0 0 0 5px #dbb663,0 0 28px #ffdc6555}
.game-grid{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 24%;column-gap:24px;padding:20px 3% 0}.table-wrap{min-width:0}.table-head{height:57px;display:flex;align-items:center;gap:12px;margin-bottom:8px;font-family:Georgia,serif}.point-status{display:flex;align-items:center;gap:11px}.puck{display:grid;place-items:center;width:43px;height:43px;background:linear-gradient(145deg,#fff5cf,#d8b875);color:#08271b;border:4px ridge #eccc7e;border-radius:50%;box-shadow:0 4px 0 #805412,0 7px 10px #0007;font:bold 14px Arial}.puck.on{background:#093c2d;color:#fff3b8}.point-copy{font-size:12px;background:#002c2199;padding:5px 8px;border-radius:12px;font-style:italic}.point-copy strong{margin-left:3px}#rollPhaseTitle{margin:auto;font-size:16px;letter-spacing:1.2px}#coachBtn{background:#00251d99;border:1px solid #b89961;border-radius:16px;padding:7px 12px;font:13px Arial}.betting-layout{display:grid;grid-template-columns:minmax(0,1fr) 22%;gap:13px;align-items:stretch}.classic-board{min-width:0;display:flex;align-items:stretch}.board-vector{display:block;width:100%;height:auto;overflow:visible;align-self:start;background:var(--felt-deep);background:color-mix(in srgb,var(--felt-deep) 32%,transparent);border-radius:18px}.board-outline,.zone-outline{fill:none;stroke:#dfcd99;stroke-width:1.35;vector-effect:non-scaling-stroke}.zone-outline{stroke-width:1;stroke-opacity:.75}.bet-zone{position:relative;background:transparent;border:0;width:100%;height:100%;color:var(--cream);display:flex;align-items:center;justify-content:center;flex-direction:column;font-family:Georgia,serif;padding:8px;overflow:visible;transition:background .15s}.bet-zone:hover:not(:disabled),.bet-zone:focus-visible{background:#efd47f20}.bet-zone:disabled{opacity:1}.bet-zone:disabled:not(.has-bet){cursor:default}.bet-zone.come:disabled>strong{opacity:.77}.bet-zone.dont-come:disabled>strong{opacity:.75}.bet-zone strong{font-weight:600;line-height:1.1}.bet-zone small{letter-spacing:1px;font-size:16px;line-height:1.3}.number strong{font-size:60px;font-style:italic;font-weight:500;text-shadow:0 3px 1px #002417}.number.n6 strong,.number.n9 strong{font-size:42px}.number.n8 strong{color:var(--red)}.number small{margin-top:5px}.come strong{font-size:66px;color:var(--red);letter-spacing:6px;text-shadow:0 2px 1px #091c16}.dont-come strong{font-size:25px;line-height:1.4;font-style:italic}.dont-come small{margin:5px 0 14px}.mini-pair{display:flex;gap:7px;align-items:center;justify-content:center}.mini-die{display:block;width:26px;height:26px}.mini-die rect{fill:#f8e4af;stroke:#c39451;stroke-width:1}.mini-die circle{fill:#043d2b}.field{gap:5px}.field>em{font-style:normal;font-weight:600;font-size:23px;letter-spacing:4px}.field>strong{display:flex;width:92%;justify-content:space-between;align-items:center;gap:12px;font-size:33px;font-weight:500}.field strong b{font-size:33px;border:2px solid #dbc891;border-radius:50%;min-width:55px;height:49px;display:grid;place-items:center;font-weight:500}.field>small{font-size:17px;font-style:italic}.dont{flex-direction:row;gap:27px}.dont strong{font-size:28px;font-style:italic;letter-spacing:2px}.pass strong{font-size:38px;letter-spacing:5px}.bet-chip{position:absolute;right:12px;bottom:7px;display:none;min-width:36px;height:36px;padding:0 6px;border-radius:50%;border:4px dashed #ffe5a1;background:radial-gradient(circle at 40% 20%,#2aa76c,#004831 75%);box-shadow:0 3px 0 #6f561a,0 5px 9px #0008;color:#fff4c8;font:bold 13px/28px Arial;text-align:center;pointer-events:none}.has-bet .bet-chip{display:block}.compact .number strong{font-size:58px}.compact .number.n6 strong,.compact .number.n9 strong{font-size:35px}.compact .number small{font-size:21px;letter-spacing:0}.compact .dont-come strong{font-size:25px}.compact .dont-come small{font-size:22px;letter-spacing:0}.compact .mini-die{width:29px;height:29px}.compact .come strong{font-size:65px}.compact .field>em{font-size:25px}.compact .field>strong{font-size:29px;gap:9px;width:94%}.compact .field strong b{font-size:31px;min-width:48px;height:48px}.compact .field>small{font-size:23px;letter-spacing:0}.compact .dont strong{font-size:29px;letter-spacing:1px}.compact .pass strong{font-size:39px}.compact .bet-chip{width:45px;height:45px;font-size:19px;line-height:37px;right:5px;bottom:3px}
.proposition-panel{display:flex;flex-direction:column;min-width:0}.prop-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;padding:3px 0 8px;background:transparent;border:0;font:600 11px Georgia;letter-spacing:.6px;min-height:25px}.proposition-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,minmax(63px,1fr));gap:5px;flex:1}.prop{gap:5px;padding:8px 3px;min-height:68px}.prop-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.prop-outline rect{fill:color-mix(in srgb,var(--felt-deep) 30%,transparent);stroke:#d7c18c;stroke-width:1;vector-effect:non-scaling-stroke}.prop>*:not(svg){position:relative;z-index:1}.prop>strong{font-size:12px;white-space:nowrap}.prop small{font-size:12px;letter-spacing:.8px}.prop .mini-die{width:21px;height:21px}.prop[data-bet=any-seven]{grid-column:1/-1;flex-direction:row;gap:10px}.prop .bet-chip{position:absolute;min-width:26px;width:26px;height:26px;line-height:20px;border-width:3px;font-size:10px;right:0;bottom:1px;z-index:3}
.dice-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding-top:40px}.arena{position:relative;width:100%;aspect-ratio:1;max-width:350px;background:url(assets/roll-frame.webp) center/contain no-repeat;cursor:pointer;touch-action:none;filter:drop-shadow(0 10px 6px #0008)}.arena:before{content:"";position:absolute;inset:16%;z-index:-1;border-radius:50%;background:radial-gradient(circle,var(--felt),var(--felt-deep));box-shadow:inset 0 0 28px #000c}.arena-copy{position:absolute;inset:23%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:13px;letter-spacing:1.5px;text-align:center}.swipe-chevron{font:70px/.8 Georgia;transform:rotate(-90deg);color:#ffe6a3;text-shadow:0 4px 2px #785318;margin-bottom:16px}.arena-copy>strong{font-size:16px;margin-top:2px}.arena-copy>span:not(.swipe-chevron){margin-top:5px}.arena-copy>small{margin-top:12px;font-size:10px;letter-spacing:1px;color:#d6b674}.arena.is-disabled{cursor:default}.arena.is-charging{filter:drop-shadow(0 0 20px #ffe288a8)}.arena.is-charging .swipe-chevron{animation:chevron .6s ease-in-out infinite}.roll-fallback{border:1px solid #e6be67;border-radius:17px;background:linear-gradient(var(--felt),var(--felt-deep));padding:10px 24px;margin-top:4px;min-width:160px;font:600 15px Georgia;letter-spacing:1px;box-shadow:inset 0 0 0 2px #ffda6c18,0 4px 8px #0005}.roll-fallback:disabled{color:#c7b681}.dealer-text{min-height:28px;text-align:center;font-size:12px;line-height:1.4;margin:11px 0 3px;color:#e8d8ad;max-width:230px}.activity-drawer{font-size:11px;text-align:center;position:relative}.activity-drawer summary{cursor:pointer;letter-spacing:1px}.activity-drawer ol{position:absolute;z-index:20;width:260px;right:0;top:10px;padding:15px 15px 15px 30px;text-align:left;background:#00251ef5;border:1px solid #b9965d;border-radius:12px;font-size:13px;line-height:1.5;box-shadow:0 5px 20px #0008}
.control-dock{grid-column:1/-1;display:grid;grid-template-columns:23% minmax(0,1fr) 25%;align-items:center;gap:14px;margin-top:48px;min-height:125px;padding:0 0 4px}.chips{display:flex;justify-content:space-evenly;align-items:center;gap:9px;padding:5px 10px 14px}.chip{--chip-color:#f8edca;--chip-ink:#103429;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:1;width:clamp(51px,6vw,99px);aspect-ratio:1;min-width:0;border-radius:50%;border:3px solid #d7ad5f;color:var(--chip-ink);background:radial-gradient(circle at 38% 22%,#fff5 0%,transparent 58%),radial-gradient(circle,var(--chip-color) 0 58%,transparent 60%),repeating-conic-gradient(from 10deg,#f8ebc8 0deg 16deg,#ad843d 17deg 19deg,var(--chip-color) 20deg 43deg,#604212 44deg 45deg);box-shadow:inset 0 0 0 3px #ffdc8c80,inset 0 0 0 10px #14161055,0 5px 0 #7c592b,0 8px 0 #402c12,0 12px 10px #0009;transform:rotate(-7deg);transition:transform .15s,filter .15s;isolation:isolate;padding:5px}.chip:before{content:"";position:absolute;inset:13%;border:1px solid #e6be74;border-radius:50%;pointer-events:none}.chip.selected{transform:translateY(-8px) rotate(-7deg);filter:drop-shadow(0 0 6px #ffed8c);outline:2px solid #fff6c2;outline-offset:3px}.chip-crown{font-size:clamp(12px,1.4vw,25px);line-height:1;color:#d0a15a;pointer-events:none}.chip-value{font:700 clamp(18px,2.1vw,35px)/1.25 Georgia;pointer-events:none}.c5{--chip-color:#a6141e;--chip-ink:#fff0bc}.c25{--chip-color:#047144;--chip-ink:#fff0bc}.c100{--chip-color:#141b19;--chip-ink:#fff0bc}.c500{--chip-color:#532088;--chip-ink:#fff0bc}.c1000{--chip-color:#f7e7bc;--chip-ink:#7a4e12}.dock-actions{display:flex;align-items:center;justify-content:center;gap:9px}.dock-actions button{border:1px solid #d1a657;box-shadow:inset 0 0 0 2px #ffffff08,0 3px 7px #0008;background:linear-gradient(var(--felt),var(--felt-deep));border-radius:17px;display:flex;align-items:center;justify-content:center;gap:9px;min-height:55px;padding:10px 14px;flex:1;max-width:140px;font-size:12px;letter-spacing:.5px}.dock-actions b{font-size:25px;font-weight:400}.right-actions button{flex-direction:column;gap:3px;min-width:59px;padding:7px}.right-actions b{font-size:23px;line-height:1}.total{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100px;border:1px solid #c7a056;border-radius:14px;padding:10px 14px;background:#002c22d9;align-self:stretch}.total small{font-size:10px;letter-spacing:1px;white-space:nowrap}.total strong{font:700 32px Georgia;color:#ffda82;line-height:1.2}.table-footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.4px;gap:12px;margin:15px 5% 0;color:#b5b5a1}.table-footer #connectionStatus{color:#d9ceaa}.is-disconnected .table-footer #connectionStatus{color:#ffb899}
dialog{color:#f4e4b7;background:linear-gradient(150deg,#063e30,#001c16);border:1px solid #d9b76b;border-radius:22px;box-shadow:0 22px 90px #000b;width:min(650px,calc(100% - 30px));max-height:85svh;padding:30px;overflow:auto}dialog::backdrop{background:#000a;backdrop-filter:blur(5px)}dialog h1{font:700 28px Georgia;margin:8px 0 22px}dialog h2{font:600 20px Georgia}dialog p{font-size:15px;line-height:1.6}.dialog-close,.coach-close,.theme-close{position:absolute;top:10px;right:12px;background:transparent;border:0;font-size:30px;width:40px;height:40px}.eyebrow{font-size:11px!important;letter-spacing:2px;color:#d8b362}.help-steps article{padding:12px 0;border-bottom:1px solid #e6d9a922}.help-steps article>span{float:left;border:1px solid #d6b575;border-radius:50%;margin:0 12px 0 0;width:31px;height:31px;display:grid;place-items:center}.help-steps h2{margin:3px 0}.preview-note{color:#bfb99e}.coach-recommendation,.coach-lesson{padding:15px;border:1px solid #d9b86b66;border-radius:14px}.coach-recommendation{display:flex;flex-direction:column;gap:9px}.coach-recommendation>span{font-size:12px}.coach-topics{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.coach-topics button{border:1px solid #9a885a;background:#00251b;border-radius:20px;padding:9px 13px;font-size:13px}.coach-topics .selected{background:#e4c379;color:#042719}.coach-picture{font-size:24px;color:#e9cb88}.coach-detail{color:#d7c28b}.theme-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.theme-options button{display:flex;flex-direction:column;gap:7px;text-align:left;background:#001b16;border:1px solid #a7905b66;border-radius:13px;padding:12px}.theme-options button[aria-pressed=true]{border-color:#ffe29c;box-shadow:0 0 0 2px #e7c66744}.theme-options i{display:block;width:100%;height:75px;border-radius:8px;background:radial-gradient(ellipse,#0b6846,#00261b);border:3px ridge #e4b958}.theme-options [data-theme=sapphire] i{background:radial-gradient(ellipse,#205684,#03192e)}.theme-options [data-theme=ruby] i{background:radial-gradient(ellipse,#802b3c,#230511)}.theme-options [data-theme=amethyst] i{background:radial-gradient(ellipse,#654183,#251233)}.theme-options strong{font:600 20px Georgia}.theme-options span{font-size:12px;color:#c9bea4}.sr-only,#resultReveal{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}#toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;background:#002d23f2;border:1px solid #dfbc73;border-radius:16px;padding:15px 22px;max-width:min(500px,92%);font-size:14px;text-align:center;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}.bet-zone.is-win{background:#a9fa532f;box-shadow:inset 0 0 0 2px #e2fd8c,inset 0 0 20px #c9ff63}.bet-zone.is-loss{background:#971e3022}.bet-zone.is-push{background:#ffe18322}.resolution-badge{position:absolute;z-index:7;right:7px;top:6px;padding:5px 8px;border-radius:8px;background:#143923;border:1px solid #fff1a0;color:#fff2b8;font:bold 15px Arial;pointer-events:none}.resolution-particles{display:none}.settlement-layer{position:fixed;inset:0;pointer-events:none;z-index:40}.settlement-chip{position:absolute;border:3px dashed #f5dc97;border-radius:50%;background:#097147;width:32px;height:32px;box-shadow:0 2px 8px #0008}.coach-highlight{outline:3px solid #ffdf86;outline-offset:-3px}
@keyframes chevron{50%{translate:0 -9px}}@media(min-width:1600px){.table-hero{height:210px}.prop>strong,.prop small{font-size:14px}.prop .mini-die{width:25px;height:25px}.prop-toggle{font-size:13px}.control-dock{margin-top:60px;min-height:150px}.dragon{height:250px;width:325px}.dice-stage{width:405px;height:224px}}
@media(max-width:1190px){.topbar{margin:0 2%;padding:0 16px;gap:12px}.brand{font-size:16px}.table-brand h1{font-size:23px}.top-actions{gap:5px}.top-actions button{padding:8px 10px}.top-actions button span{display:none}.wallet{padding:7px 10px}.game-grid{column-gap:14px;padding:20px 2% 0;grid-template-columns:minmax(0,1fr) 23%}.table-hero{height:150px}.dragon{height:184px;width:242px;left:7%}.dice-stage{width:330px;height:178px;top:-7px}.result-plaque{height:70px;bottom:-23px;min-width:152px}.result-plaque>strong{font-size:24px}.result-plaque>small{font-size:10px}.betting-layout{grid-template-columns:minmax(0,1fr) 170px;gap:9px}.prop>strong,.prop small{font-size:11px}.prop .mini-die{width:19px;height:19px}.prop-toggle{font-size:10px}.arena-copy>strong{font-size:13px}.arena-copy{font-size:11px}.swipe-chevron{font-size:50px;margin-bottom:10px}.control-dock{grid-template-columns:19% minmax(0,1fr) 27%;gap:8px;margin-top:43px;min-height:100px}.dock-actions{gap:5px}.dock-actions button{padding:7px;gap:4px;min-height:47px;font-size:10px}.dock-actions b{font-size:21px}.total{min-width:77px;padding:8px}.chips{gap:6px;padding-inline:5px}.chip{width:clamp(52px,6vw,80px)}.total strong{font-size:27px}}
@media(max-width:900px){.craps-shell{padding:0 10px 12px}.craps-shell:before{background-size:auto 900px;background-position:50% 0}.topbar{height:62px;margin:0;padding:0 10px;gap:8px}.brand{font-size:13px;gap:5px}.brand>span{font-size:28px}.table-brand h1{font-size:20px;letter-spacing:1px}.table-brand>span{font-size:8px;letter-spacing:1.5px}.top-actions .wallet{border:0;background:transparent;gap:5px;padding:0}.wallet small{display:none}.wallet strong{font-size:19px}.top-actions button,.menu-button{padding:4px;width:33px;min-height:33px;font-size:16px}.game-grid{grid-template-columns:minmax(0,1fr) 190px;padding:20px 7px 0;gap:12px}.betting-layout{grid-template-columns:minmax(0,1fr)}.proposition-panel{margin-top:8px}.proposition-grid{grid-template-columns:repeat(4,1fr);grid-template-rows:auto auto;gap:6px}.prop{min-height:82px}.prop>strong,.prop small{font-size:12px}.prop-toggle{font-size:13px;min-height:30px}.prop .mini-die{width:22px;height:22px}.prop[data-bet=any-seven]{grid-column:auto;flex-direction:column;gap:5px}.prop[data-bet=yo]{grid-column:span 2}.proposition-panel:not(.is-open) .proposition-grid{display:none}.control-dock{grid-template-columns:1fr 1fr;margin-top:20px;gap:16px;padding:16px 0;background:#002b22e6;border-block:1px solid #ad8d57}.chips{grid-column:1/-1;grid-row:1;justify-content:center;gap:19px}.chip{width:78px}.chip-value{font-size:28px}.chip-crown{font-size:20px}.dock-actions button{font-size:12px;min-height:51px}.left-actions{grid-column:1}.right-actions{grid-column:2}.right-actions button{flex-direction:row;min-width:60px}.total{min-width:94px}.table-head{height:43px}#rollPhaseTitle{font-size:12px}.point-copy{font-size:10px}.puck{width:34px;height:34px;font-size:11px}#coachBtn{font-size:12px;padding:6px 8px}.arena{width:190px}.arena-copy>strong{font-size:12px}.dealer-text{font-size:12px}.dice-panel{justify-content:flex-start;padding-top:65px}.roll-fallback{min-width:150px;font-size:13px}.table-footer{margin-top:12px;font-size:9px}}
@media(max-width:620px){.topbar{flex-wrap:wrap;height:92px;border-radius:0 0 20px 20px;padding:7px 12px;column-gap:10px;row-gap:4px}.brand{font-size:14px}.brand>span{font-size:28px}.table-brand{margin-left:auto;margin-right:0}.table-brand h1{font-size:20px}.table-brand>span{font-size:8px}.top-actions{width:100%;justify-content:flex-end;gap:9px}.wallet{margin-right:auto}.wallet small{display:block;font-size:10px}.wallet strong{font-size:19px}.top-actions button,.menu-button{width:auto;min-width:30px;font-size:13px;padding:3px 9px;min-height:29px}.top-actions #themeBtn span{display:inline}.top-actions #helpBtn span{display:none}.top-actions #soundBtn span{display:inline}.menu-button{font-size:20px}.table-hero{height:150px}.dragon{width:167px;height:144px;left:0;bottom:4px}.dice-stage{width:237px;height:146px;left:69%;top:-7px}.result-plaque{left:69%;bottom:0;height:52px;min-width:133px;padding:8px 15px;border-width:2px}.result-plaque>span{font-size:23px;top:-19px}.result-plaque>strong{font-size:21px}.result-plaque>small{font-size:9px;letter-spacing:.3px;margin-top:3px}.result-plaque.is-result>strong{font-size:29px}.craps-shell:before{background-size:auto 720px;background-position:50% 0}.game-grid{display:flex;flex-direction:column;padding:8px 0 0;gap:0}.table-head{margin-bottom:8px;gap:8px}.point-status{gap:6px}.point-copy{font-size:11px;padding:4px 6px}#rollPhaseTitle{font-size:12px;letter-spacing:.2px}#coachBtn{font-size:12px}.board-vector{background:color-mix(in srgb,var(--felt) 90%,transparent)}.proposition-panel{padding:2px 2px 0;background:var(--felt-deep);border-radius:10px}.prop-toggle{padding:8px 9px;font-size:12px;letter-spacing:.5px}.proposition-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:0 4px 6px}.prop{min-height:88px;padding:6px 2px;gap:7px}.prop>strong{font-size:11px;letter-spacing:0}.prop small{font-size:12px;letter-spacing:0}.prop .mini-die{width:22px;height:22px}.prop .mini-pair{gap:4px}.dice-panel{display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-rows:auto auto;padding:9px 12px;gap:3px 14px;background:var(--felt-deep);border-radius:0 0 18px 18px}.arena{width:100px;grid-row:1/4;grid-column:1;filter:drop-shadow(0 4px 4px #0007)}.arena-copy{inset:23%;letter-spacing:.4px}.swipe-chevron{font-size:27px;margin-bottom:1px}.arena-copy>strong{font-size:9px}.arena-copy>span:not(.swipe-chevron){font-size:8px;margin:2px 0 0}.arena-copy>small{display:none}.roll-fallback{grid-column:2;grid-row:1;margin-top:5px;min-height:42px;font-size:16px;width:100%}.dealer-text{grid-column:2;grid-row:2;margin:1px 0;font-size:12px;max-width:none;min-height:17px}.activity-drawer{grid-column:2;grid-row:3;font-size:10px;padding-bottom:5px}.control-dock{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;border:1px solid #ac8d57;border-radius:18px;padding:14px 7px 9px;background:linear-gradient(#003326,#001a13)}.chips{gap:10px;padding:5px 5px 12px}.chip{width:calc((100vw - 92px)/6);max-width:69px;border-width:2px}.chip-value{font-size:22px}.chip-crown{font-size:14px}.chip:before{inset:13%}.chip.selected{transform:translateY(-4px) rotate(-7deg);outline-offset:2px}.dock-actions{gap:5px}.dock-actions button{font-size:10px;padding:6px 7px;min-height:43px;border-radius:12px;gap:5px}.dock-actions b{font-size:19px}.right-actions button{flex-direction:column;gap:0;min-width:41px}.right-actions b{font-size:18px}.total{min-width:66px;padding:5px 7px;border-radius:12px}.total small{font-size:8px;letter-spacing:.3px}.total strong{font-size:23px}.table-footer{margin:12px 2px 0;font-size:8px;gap:6px}.table-footer #lastRoll{display:none}.theme-options{gap:9px}dialog{padding:25px 20px}.resolution-badge{font-size:19px}.prop .resolution-badge{font-size:11px}.compact .bet-chip{font-size:17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
/* Final layout calibration: artwork stays behind geometry and never supplies grid lines. */
.dragon{mask-image:radial-gradient(ellipse 50% 50% at 50% 52%,#000 66%,#000d 79%,transparent 100%)}
@media(min-width:901px){.topbar{height:clamp(52px,4vw,66px)}.table-hero{height:clamp(125px,10.5vw,184px)}.dragon{height:clamp(175px,15vw,245px);bottom:-3px}.dice-stage{width:clamp(320px,25vw,415px);height:clamp(160px,13vw,218px);top:-17px}.result-plaque{height:69px;bottom:-27px;min-width:157px}.result-plaque>strong{font-size:25px}.result-plaque>small{font-size:10px}.table-head{height:43px;margin-bottom:8px}.game-grid{padding-top:22px}.proposition-grid{grid-template-rows:repeat(4,minmax(52px,1fr))}.prop{min-height:54px;padding:4px 3px;gap:4px}.prop[data-bet=any-seven]{gap:6px}.prop[data-bet=any-seven] .mini-pair{gap:4px}.prop[data-bet=any-seven] small{white-space:nowrap}.prop>strong,.prop small{font-size:clamp(11px,1vw,14px)}.control-dock{margin-top:32px;min-height:112px}.dice-panel{padding-top:25px}.table-footer{margin-top:6px}}
@media(min-width:901px) and (max-width:1200px){.control-dock{min-height:98px;margin-top:22px}.table-hero{height:125px}.prop>strong,.prop small{font-size:11px}}
@media(max-width:620px){.craps-shell:before{background-size:auto 650px}.board-vector{background:var(--felt)}.dragon{mask-image:radial-gradient(ellipse 50% 50% at 50% 52%,#000 66%,#000d 79%,transparent 100%)}}
@media(min-width:901px){.dragon{height:calc(100% + 14px);bottom:0}.prop[data-bet=any-seven]{flex-wrap:wrap;column-gap:10px;row-gap:1px}.prop[data-bet=any-seven]>strong{flex-basis:100%}.table-hero{z-index:1}.topbar{position:relative;z-index:3}}
.ffy-site-music-controls{display:none!important}.shuffle-music{border:1px solid #b99660;border-radius:18px;background:#00372a;color:#eddaa7;padding:9px 16px;margin-top:20px;font-size:14px}
.craps-shell:before{filter:none}.craps-shell:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url(assets/table-environment.webp) center top/100% 100% no-repeat;filter:var(--scene-filter);clip-path:inset(26% 4% 25% 4% round 5%)}
body[data-theme=emerald] .craps-shell:after{display:none}
@media(max-width:900px){.craps-shell:after{display:none}}

/* Keep the play area within the artwork's felt and reserve the lower tray for themes. */
.theme-rail{display:none}
.table-hero .dragon{left:50%;bottom:0;transform:translateX(-50%);width:clamp(240px,22vw,350px);height:calc(100% + 16px)}
.table-hero .result-plaque{left:50%}
.arena .dice-stage{left:50%;top:12%;width:72%;height:55%;gap:8%;transform:translateX(-50%) translateY(var(--tray-drag-y,0px));pointer-events:none}
.arena .dice-stage>.die{width:40%;height:auto;aspect-ratio:1;font-size:clamp(36px,4vw,86px)}
.die img{width:100%;height:100%;object-fit:contain}
.dice-stage:not(.has-webgl) canvas{visibility:hidden}
.arena .arena-copy{inset:auto 20% 22%;font-size:12px;letter-spacing:1px;pointer-events:none}
.arena .arena-copy>.swipe-chevron,.arena .arena-copy>small{display:none}
.arena .arena-copy>strong{font-size:clamp(10px,1vw,15px);margin:0}
.arena .arena-copy>span:not(.swipe-chevron){margin-top:3px}
.chip .chip-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.chip:has(.chip-art){background:none;border:0;box-shadow:none;filter:drop-shadow(0 6px 4px #0008)}
.chip:has(.chip-art):before{display:none}
.chip-art~.chip-crown,.chip-art~.chip-value{visibility:hidden}
.chip:has(.chip-art).selected{outline:2px solid #fff3b6;outline-offset:4px;filter:drop-shadow(0 0 8px #ffe68f) drop-shadow(0 6px 4px #0008)}
.board-surface{position:relative;width:100%;min-width:0;align-self:start}
.board-surface>.board-vector{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.board-buttons{position:absolute;left:0;top:0;transform:scale(var(--board-scale));transform-origin:0 0}
.board-buttons>.bet-zone{position:absolute}
.board-outline,.zone-outline{pointer-events:none}
.bet-guide{flex:1;margin:0 0 0 12px;font:12px/1.4 Arial,sans-serif;text-align:center;color:#f0db9f;text-wrap:balance}
.bet-zone.can-bet:not(.is-win):not(.is-loss):not(.is-push){background:#e7d1810a;box-shadow:inset 0 0 13px #f0d17b17}
.bet-zone.can-bet:hover:not(:disabled){background:#efd47f24;box-shadow:inset 0 0 0 1px #f0d17b8c,inset 0 0 20px #f0d17b33}
.bet-zone.next-bet:not(.is-win){background:#e7d18117;box-shadow:inset 0 0 0 2px #f4dd8d,inset 0 0 24px #e3d78040;animation:next-bet-glow 2.6s ease-in-out infinite}
.arena.next-roll:not(.is-charging){filter:drop-shadow(0 0 14px #eed78b75) drop-shadow(0 8px 6px #0008)}
.roll-fallback.next-roll{border-color:#fff2b5;box-shadow:inset 0 0 0 1px #f2d48388,0 0 16px #ecd78b55,0 4px 8px #0005}
@keyframes next-bet-glow{50%{box-shadow:inset 0 0 0 2px #fff1b0,inset 0 0 34px #e3d78066}}
.dice-panel #coachBtn{display:flex;align-items:center;justify-content:center;gap:9px;width:min(100%,200px);min-height:46px;margin-top:10px;padding:11px 22px;border:1px solid #d7b26d;border-radius:17px;background:linear-gradient(var(--felt),var(--felt-deep));box-shadow:inset 0 0 0 2px #ffda6c18,0 4px 8px #0005;font:600 17px Georgia;letter-spacing:.5px}
.dice-panel #coachBtn:hover{background:color-mix(in srgb,var(--felt) 85%,#e5c477)}
@media(min-width:901px){
 .game-grid{padding-top:clamp(48px,5.2vw,98px);padding-left:8%;padding-right:4%;padding-bottom:110px}
 .table-head{padding-left:5px}
 .top-actions #themeBtn{display:none}
 .theme-rail{position:absolute;z-index:2;left:27%;right:27%;bottom:5%;display:flex;flex-direction:column;align-items:center;gap:8px}
 .theme-rail-label{font-size:10px;letter-spacing:2px;color:#ead4a0;text-shadow:0 1px 3px #000}
 .theme-rail .theme-options{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
 .theme-rail .theme-options button{flex-direction:row;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 10px;background:#00251de8;border-color:#a58951;border-radius:13px;box-shadow:0 3px 7px #0007}
 .theme-rail .theme-options button[aria-pressed=true]{border-color:#ffe29c;box-shadow:inset 0 0 0 1px #ffe29c,0 0 10px #e7c66744}
 .theme-rail .theme-options i{width:22px;height:22px;flex:0 0 22px;border-width:2px;border-radius:50%}
 .theme-rail .theme-options strong{font:600 clamp(11px,1vw,16px) Georgia}
 .table-footer{position:absolute;bottom:1.3%;left:5%;right:5%;margin:0}
}
@media(min-width:901px) and (max-width:1200px){
 .theme-rail{left:24%;right:24%}
 .theme-rail .theme-options{gap:5px}
 .theme-rail .theme-options button{gap:5px;padding:7px 6px}
 .theme-rail .theme-options i{width:18px;height:18px;flex-basis:18px}
}
@media(max-width:620px){
 .table-hero .dragon{width:218px;height:156px;bottom:9px}
 .table-hero .result-plaque{bottom:-9px}
 .bet-guide{font-size:11px;text-align:right;margin-left:5px}
 .dice-panel{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto auto;justify-items:center;padding:14px 16px;gap:8px}
 .dice-panel .arena{grid-column:1;grid-row:1;width:180px;max-width:58vw;justify-self:center}
 .arena .arena-copy{bottom:22%;font-size:10px}
 .arena .arena-copy>strong{font-size:11px}
 .arena .arena-copy>span:not(.swipe-chevron){font-size:9px}
 .dice-panel .roll-fallback{grid-column:1;grid-row:2;width:min(100%,320px);margin:0;min-height:44px}
 .dice-panel #coachBtn{grid-column:1;grid-row:3;width:min(100%,320px);min-height:44px;margin:0;padding:8px 14px;font-size:16px}
 .dice-panel .dealer-text{grid-column:1;grid-row:4;margin:0;max-width:320px}
 .dice-panel .activity-drawer{grid-column:1;grid-row:5;padding-bottom:0}
 .chip:has(.chip-art).selected{outline-offset:3px}
}
@media(prefers-reduced-motion:reduce){.bet-zone.next-bet{animation:none}}
.wallet-top-up{width:min(440px,calc(100% - 30px));padding:24px;text-align:center}
.wallet-top-up-mascot{display:block;width:150px;height:115px;object-fit:contain;margin:-6px auto 8px}
.wallet-top-up h1{font-size:27px;margin:8px 0 14px}.wallet-top-up p{margin:12px 0}
.wallet-top-up strong{color:#ffe49c}.wallet-top-up button{display:block;width:100%;min-height:48px;border-radius:13px;font-weight:700;cursor:pointer}
#walletTopUpButton{background:linear-gradient(#ffe7a6,#dfb65d);border:1px solid #ffe9a6;color:#063327;box-shadow:0 3px 14px #e8c46b33;margin-top:20px;font-size:16px}
#walletTopUpLater{background:transparent;border:1px solid #b6a06c66;color:#e3d1a4;margin-top:10px;font-size:13px}
.wallet-top-up button:disabled{opacity:.55;cursor:wait}#walletTopUpStatus{min-height:20px;font-size:13px;color:#f9dd99}
.bet-chip,.compact .bet-chip,.prop .bet-chip{background:none;border:0;box-shadow:none;padding:0;width:42px;height:42px;min-width:0;line-height:1;filter:drop-shadow(0 2px 2px #0008)}
.bet-chip img{display:block;width:100%;height:100%;object-fit:contain}.bet-chip>span{position:absolute;right:-7px;bottom:-3px;background:#032a21;border:1px solid #e1c578;border-radius:9px;color:#fff2bd;padding:2px 5px;font:700 12px Arial;white-space:nowrap}
.compact .bet-chip{width:46px;height:46px}.compact .bet-chip>span{font-size:16px}.prop .bet-chip{width:28px;height:28px;right:4px;bottom:6px}.prop .bet-chip>span{font-size:10px;padding:1px 3px;right:-3px}

/* Make eligible bets and the first Pass Line action unmistakable. */
.bet-zone.can-bet:not(.is-win):not(.is-loss):not(.is-push){background:#e7d18118;box-shadow:inset 0 0 0 1px #f0d17b70,inset 0 0 18px #f0d17b2b}
.bet-zone.next-bet:not(.is-win){background:#e7d1812b;outline:3px solid #ffe994;outline-offset:-3px;box-shadow:inset 0 0 28px #ffe17b66;animation:pass-bet-guide 2s ease-in-out infinite}
@keyframes pass-bet-guide{50%{background:#e7d18142;box-shadow:inset 0 0 36px #ffe17b99}}
@media(prefers-reduced-motion:reduce){.bet-zone.next-bet{animation:none}}

.craps-menu{position:fixed;inset:70px max(14px,calc((100vw - 1560px)/2 + 24px)) auto auto;margin:0;width:min(270px,calc(100vw - 28px));padding:10px;border:1px solid #d5b859;border-radius:17px;background:#031b15f5;box-shadow:0 14px 40px #0009;color:#e7dfc4}.craps-menu:popover-open{display:grid;gap:7px}.craps-menu button,.craps-menu a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;border:1px solid #63836b88;border-radius:11px;background:#082b20;color:#e7dfc4;text-align:center;text-decoration:none;font:700 12px/1.4 Arial;cursor:pointer}.craps-menu button:hover,.craps-menu a:hover,.craps-menu button:focus-visible,.craps-menu a:focus-visible{border-color:#ffe28a;background:#17412c;outline:2px solid #e4c46b;outline-offset:1px}#menuCopyLink{border-color:#d5b859;color:#ffe28a}.craps-menu input{width:100%;min-width:0;padding:8px;background:#fff5d5;color:#082b20;border-radius:6px}.craps-menu p{margin:0;text-align:center;font:12px/1.4 Arial;color:#ffe28a}.craps-menu p:empty{display:none}@media(max-width:620px){.craps-menu{top:64px;right:12px}}
