/* Native pieces on the shared, quiet Brokeprint canvas. */
#pageContent .game-workspace .expansion-stage{display:flex!important;flex-direction:column!important;gap:6px!important;padding:12px 16px!important;overflow:hidden!important;min-width:0;min-height:0}
.x-scene{position:relative;isolation:isolate;display:flex;flex:1;min-height:0;flex-direction:column;width:100%;overflow:hidden;color:#f2ead8;container-type:size;background:#100e0c;border-radius:9px}
.x-scene-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;font:600 11px/1.4 'DM Sans',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#aeaaa0;padding:7px 12px}
.x-scene-top button{appearance:none;background:none!important;border:0!important;color:#b3b6ab!important;font:500 10px/1.4 'DM Sans',sans-serif;padding:5px;min-height:28px;text-transform:none;letter-spacing:0}
.x-hud{position:absolute;top:45px;left:0;right:0;z-index:2;display:flex;flex-direction:column;align-items:center;pointer-events:none;gap:3px}
.x-hud>span{font:600 10px/1.4 'DM Sans',sans-serif;letter-spacing:.14em;color:#a5b6af}
.x-hud>strong{font:650 clamp(24px,6cqh,46px)/1.06 Outfit,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.03em;color:#f1e4c7}
.x-hud>small{font:500 10px/1.4 'DM Sans',sans-serif;letter-spacing:.04em;color:#b8b8a7}
.x-artboard{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:0 10px}
.x-artboard>svg{display:block;width:100%;height:100%;min-height:0;max-height:100%;overflow:visible}
.x-status{flex:none;min-height:30px;max-width:100%;margin:0!important;padding:4px 8px;text-align:center;font:500 11px/1.45 'DM Sans',sans-serif;color:#bcb9ab;white-space:normal;position:relative;z-index:3}
.x-progress{flex:none;height:2px;background:#29332e;margin:0 16px 6px;overflow:hidden;border-radius:2px}
.x-progress i{display:block;height:100%;width:0;background:#c9b17c}
.x-control-stats{display:grid;gap:8px;margin:12px 0;font:500 11px/1.5 'DM Sans',sans-serif;color:#c2baaa;min-width:0}
.x-control-stats>span{display:flex;gap:8px;align-items:center;justify-content:space-between}.x-control-stats b{color:#f0e5ca;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}.x-warning{color:#efb67b;font-size:10px}
.x-two-fields{display:grid;grid-template-columns:1fr 1fr;gap:5px 9px;margin-top:8px}.x-two-fields .bet-label{margin:0!important;grid-row:1}.x-two-fields input{grid-row:2;min-width:0!important;width:100%}
.x-quick-picks{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:10px}.x-quick-picks label{font-size:10px;color:#c4bcab;flex:1}.x-quick-picks select{width:48px!important;padding:5px!important;min-height:30px!important}.x-quick-picks button{background:#332d25;border:1px solid #51473c;border-radius:5px;padding:6px 8px;color:#eee0c6;font:600 10px 'DM Sans',sans-serif;min-height:30px}
.x-paytable{font-size:10px;color:#bdbaa9;border-top:1px solid #443b31;padding-top:8px;margin-bottom:9px}.x-paytable summary{cursor:pointer;padding:3px}.x-paytable>div{display:flex;justify-content:space-between;padding:3px 0}.x-paytable b{color:#e3d4b2}
.expansion-layout .button-secondary{background:#38342c!important;color:#ede2c7!important;border:1px solid #625645!important;margin-top:6px!important}
.x-scene-elevator .x-hud{left:15px;right:auto;top:24%;align-items:flex-start;max-width:24%}.x-scene-elevator .x-hud strong{font-size:clamp(30px,8cqh,61px)}.x-scene-elevator .x-hud small{line-height:1.8}
.x-scene-trip .x-hud{top:13%}.x-scene-trip .x-hud strong{font-size:clamp(35px,10cqh,67px)}
.x-scene-drill .x-hud{top:40px}.x-scene-drill .x-artboard{padding-top:80px;flex-direction:column}.x-drill-select{display:flex;justify-content:center;gap:6px;width:100%;flex:none;padding:3px 0 8px}.x-drill-select button{border:1px solid #3d4c46;background:#1e2925;border-radius:5px;padding:7px 9px;color:#c7c9bc;font:600 10px/1.3 'DM Sans',sans-serif;min-height:32px}.x-drill-select button[aria-pressed=true]{border-color:#d0b579;background:#34352b;color:#f5d99f}.x-scene-drill .x-artboard>svg{flex:1}.x-drill-thread{transform:translateY(var(--thread,0px))}
.x-number-draw{position:absolute;top:10%;left:0;right:0;text-align:center;z-index:1;pointer-events:none;display:flex;flex-direction:column;gap:6px}.x-number-draw>span{font:600 10px 'DM Sans',sans-serif;letter-spacing:.1em;color:#a6b5ae}.x-number-draw>strong{font:650 clamp(44px,16cqh,96px)/1 Outfit,sans-serif;letter-spacing:-.045em;color:#e5e8d4;font-variant-numeric:tabular-nums}.x-number-draw>small{font:600 11px 'DM Sans',sans-serif;color:#cbb588}.x-scene-closer .x-hud,.x-scene-range .x-hud{top:auto;bottom:49px;flex-direction:row;gap:8px;justify-content:center}.x-scene-closer .x-hud>strong,.x-scene-range .x-hud>strong{font-size:23px}.x-scene-closer .x-hud>small,.x-scene-range .x-hud>small{display:none}
.x-tower-viewport{position:relative;align-self:stretch;flex:1;min-height:200px;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:pan-y;container-type:size}.x-tower-floor{position:absolute;bottom:9%;left:20%;width:60%;height:26%;border-radius:50%;background:#1c211b;border:1px solid #343b2d;transform:rotateX(55deg)}.x-tower-perspective{position:absolute;bottom:22%;left:50%;perspective:850px;perspective-origin:50% 10%;width:0;height:0;transform:scale(clamp(.55,1.9cqh,1))}.x-tower{position:relative;transform-style:preserve-3d;transform:rotateX(-16deg) rotateY(var(--yaw,-32deg)) rotateZ(var(--sway,0deg)) scale(var(--tower-scale,1));transition:transform .12s linear}.x-block{appearance:none;display:block;position:absolute;left:-50px;top:-22px;width:100px;height:22px;padding:0!important;border:0!important;background:none!important;transform-style:preserve-3d;transform:translate3d(var(--bx),calc(var(--by) + var(--rise,0px) + var(--fall,0px)),var(--bz)) rotateY(var(--br)) translateX(var(--pull,0px)) rotateZ(var(--tilt,0deg));cursor:pointer;opacity:1!important;min-width:0!important;min-height:0!important;overflow:visible!important;outline:0}
.x-block i{position:absolute;display:block;backface-visibility:hidden;box-sizing:border-box;border:1px solid #88603b;border-radius:2px;font:700 9px/20px 'DM Sans',sans-serif;color:#38291e;letter-spacing:0;text-align:center}.x-block .face-front,.x-block .face-back{width:100px;height:22px;background:#d3a66d}.x-block .face-front{transform:translateZ(15px)}.x-block .face-back{transform:rotateY(180deg) translateZ(15px);background:#b38b58}.x-block .face-top,.x-block .face-bottom{width:100px;height:30px;top:-4px;background:#e9c18b;transform:rotateX(90deg) translateZ(11px)}.x-block .face-bottom{transform:rotateX(-90deg) translateZ(11px);background:#b08b5d}.x-block .face-left,.x-block .face-right{width:30px;height:22px;left:35px;background:#b98953;transform:rotateY(-90deg) translateZ(50px)}.x-block .face-right{transform:rotateY(90deg) translateZ(50px);background:#c49962}.x-block:not(:disabled):hover i,.x-block:focus-visible i{border-color:#fff0bd;background-color:#efd09a}.x-block.is-selected i{border:2px solid #fff0a7;background-color:#efce8f}.x-block:disabled{cursor:default}.x-block:disabled i{filter:saturate(.7)}
.x-scene-jenga .x-artboard{padding:80px 0 0;flex-direction:column}.x-scene-jenga .x-hud{top:38px}.x-rotation{display:flex;align-items:center;justify-content:center;gap:12px;position:relative;z-index:2;flex:none;padding:3px}.x-rotation button{background:#2c3229;border:1px solid #5a6049;color:#e9dbb8;border-radius:6px;min-height:32px;min-width:36px;font-size:20px}.x-rotation label{display:flex;gap:6px;align-items:center;font:500 10px 'DM Sans',sans-serif;color:#bfc3ad}.x-rotation input{width:100px;accent-color:#d0b47c}
.x-scene-russian .x-hud{top:43px}.x-scene-russian .x-artboard{padding-top:65px;flex-direction:column}.x-scene-russian .x-artboard>svg{flex:1}.x-chambers{display:flex;align-items:center;justify-content:center;gap:9px;flex:none;padding-bottom:7px}.x-chambers i{display:flex;align-items:center;justify-content:center;width:21px;height:21px;border:2px solid #5e7377;background:#142229;border-radius:50%;font:700 12px 'DM Sans',sans-serif;color:#c0d6af}.x-chambers .is-empty{border-color:#a3bb8b;background:#354b3a}
.x-scene-snakes .x-artboard{padding-top:80px}.x-scene-snakes .x-hud{top:36px}.x-snake-board{display:grid;position:relative;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr);gap:7px;width:min(100%,56cqh,450px);aspect-ratio:1;max-height:100%;flex:none}.x-snake-cell{position:relative;background:#263a34;border:1px solid #45594a;border-bottom:4px solid #182d26;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden}.x-snake-cell b{font:650 clamp(10px,2.5cqh,18px) Outfit,sans-serif;color:#e3ddae}.x-snake-cell.is-snake{background:#332a23;border-color:#67503a}.x-snake-cell.is-go{background:#1c2925;border-color:#445344;color:#9bad94;font:700 11px 'DM Sans',sans-serif}.x-snake-cell svg{width:82%;height:78%}.x-dice-center{grid-column:2/4;grid-row:2/4;align-self:center;text-align:center}.x-dice{display:flex;gap:10px;align-items:center;justify-content:center}.x-die-svg{width:clamp(28px,6.5cqh,52px);height:auto;filter:drop-shadow(0 5px 0 #0a1513)}.x-dice-center>span{display:block;margin-top:12px;font:600 10px 'DM Sans',sans-serif;letter-spacing:.06em;color:#a8b59b}.x-snake-token{position:absolute;pointer-events:none;left:calc(var(--token-x)*(100% + 7px)/4);top:calc(var(--token-y)*(100% + 7px)/4);width:calc((100% - 21px)/4);height:calc((100% - 21px)/4);display:grid;place-items:center;transform:translateY(var(--hop,0px));z-index:3}.x-snake-token i{width:16px;height:16px;border-radius:50%;background:#e3b96b;border:3px solid #fff1c1;box-shadow:0 3px 0 #705d38;transform:translate(-22px,-19px)}
.x-scene-bars .x-hud{top:36px}.x-scene-bars .x-artboard{padding-top:91px;flex-direction:column}.x-bars-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px 12px;width:min(100%,420px);flex:1;min-height:0;max-height:65cqh;padding:5px 8px}.x-gold-bar{position:relative;aspect-ratio:1.6;border:1px solid transparent!important;border-radius:7px;background:none!important;padding:0!important;min-width:0!important;min-height:0!important;transform-style:preserve-3d;transition:transform .25s,background .15s}.x-bar-front{position:absolute;inset:0;display:grid;place-items:center;backface-visibility:hidden;transform:rotateX(0deg);transition:transform .3s,opacity .25s}.x-bar-front svg{width:100%;height:100%;max-height:100%}.x-bar-value{position:absolute;inset:0;display:grid;place-items:center;backface-visibility:hidden;transform:rotateX(-90deg);opacity:0;font:700 clamp(10px,2.9cqh,19px) Outfit,sans-serif;color:#a2aaa1;transition:transform .3s,opacity .25s}.x-gold-bar.is-revealed .x-bar-front{transform:rotateX(90deg);opacity:0}.x-gold-bar.is-revealed .x-bar-value{transform:rotateX(0deg);opacity:1}.x-gold-bar.is-selected{border-color:#f4d489!important;background:#453a24!important;box-shadow:inset 0 0 0 1px #9e8144}.x-gold-bar.is-selected .x-bar-value{color:#e8d29a}.x-gold-bar.is-paying .x-bar-value{color:#b5dab3}.x-gold-bar:not(:disabled):hover{transform:translateY(-3px);background:#2f3025!important}.x-gold-bar:focus-visible{outline:2px solid #fff0c4;outline-offset:2px}.x-bars-hint{font:500 10px/1.4 'DM Sans',sans-serif;color:#adbaab;margin:7px 0!important;text-align:center;flex:none}
@media(min-width:761px){#pageContent .expansion-layout .x-input{min-height:35px!important;padding:6px 10px!important;font-size:14px!important}.expansion-layout .control-help{font-size:10px!important;line-height:1.5!important;margin:9px 0!important}.expansion-layout .original-controls>.bet-label{margin-top:9px!important}.expansion-layout .original-controls>.button{min-height:40px!important}}
@media(max-width:760px){#pageContent .game-workspace .expansion-stage{padding:6px!important}.x-scene-top{padding:3px 8px;font-size:10px}.x-scene-top button{font-size:9px}.x-hud{top:35px}.x-hud>strong{font-size:clamp(24px,8cqh,40px)}.x-hud>small{font-size:9px}.x-status{min-height:28px;font-size:10px;padding:3px 6px}.x-scene-elevator .x-hud{left:5px;top:28%;max-width:27%}.x-scene-elevator .x-hud small{font-size:8px}.x-scene-trip .x-hud{top:17%}.x-scene-drill .x-artboard{padding-top:68px}.x-scene-drill .x-hud{top:30px}.x-drill-select{gap:4px;padding:0 0 3px}.x-drill-select button{font-size:9px;padding:6px;min-height:28px}.x-scene-closer .x-hud,.x-scene-range .x-hud{bottom:40px}.x-number-draw{top:10%;gap:4px}.x-number-draw>strong{font-size:clamp(30px,18cqh,70px)}.x-number-draw>small{font-size:10px}.x-scene-jenga .x-artboard{padding-top:63px}.x-scene-jenga .x-hud{top:29px}.x-tower-viewport{min-height:100px}.x-tower-perspective{bottom:17%;transform:scale(.65)}.x-rotation{gap:9px}.x-rotation input{width:85px}.x-rotation button{min-height:28px;min-width:32px}.x-scene-snakes .x-artboard{padding-top:65px}.x-scene-snakes .x-hud{top:29px}.x-snake-board{width:min(100%,59cqh,330px);gap:5px}.x-snake-cell{border-radius:5px;border-bottom-width:2px}.x-snake-cell b{font-size:clamp(8px,3.1cqh,14px)}.x-snake-token{width:calc((100% - 15px)/4);height:calc((100% - 15px)/4);left:calc(var(--token-x)*(100% + 5px)/4);top:calc(var(--token-y)*(100% + 5px)/4)}.x-snake-token i{width:11px;height:11px;border-width:2px;transform:translate(-12px,-10px)}.x-dice{gap:7px}.x-dice-center>span{font-size:8px;margin-top:8px}.x-scene-bars .x-artboard{padding-top:66px}.x-scene-bars .x-hud{top:28px}.x-bars-grid{gap:3px 7px;max-height:62cqh;max-width:320px;padding:0 4px}.x-bar-value{font-size:clamp(9px,3.7cqh,17px)}.x-bars-hint{font-size:9px;margin:4px 0!important}.x-scene-russian .x-hud{top:29px}.x-scene-russian .x-artboard{padding-top:55px}.x-chambers{gap:7px;padding-bottom:3px}.x-chambers i{width:17px;height:17px}}
@media(prefers-reduced-motion:reduce){.x-block,.x-gold-bar,.x-bar-front,.x-bar-value,.x-tower{transition:none!important}.x-gold-bar:not(:disabled):hover{transform:none}}

#pageContent .expansion-layout .game-controls .x-input{background:#171411!important;border-color:#51443a!important;color:#f2ead8!important}
.x-glass-overlay{position:absolute;inset:0;z-index:6;pointer-events:none;width:100%;height:100%}.x-tower-perspective{transform:scale(1.3)}
@media(max-width:760px){.x-tower-perspective{transform:scale(.67)}.x-scene-russian .x-artboard{padding-top:45px}.x-scene-jenga .x-hud>small{display:none}.x-scene-jenga .x-artboard{padding-top:75px}.x-tower-viewport{overflow:visible}.x-tower-perspective{bottom:16%}.x-scene-jenga .x-hud{z-index:4}.x-scene-jenga .x-status{min-height:22px;padding-top:2px;padding-bottom:0;font-size:9px}}
@media(max-width:760px) and (max-height:650px){.x-scene-jenga .x-artboard{padding-top:55px}.x-tower-perspective{transform:scale(.48)}.x-scene-jenga .x-hud{left:5px;right:auto;align-items:flex-start;top:28px}.x-scene-jenga .x-hud>span{font-size:8px}.x-scene-jenga .x-hud>strong{font-size:23px}.x-rotation{padding:0}.x-rotation button{min-height:25px;height:25px}.x-rotation label{font-size:9px}.x-rotation input{width:65px}}
html[data-motion=reduce] :is(.x-block,.x-gold-bar,.x-bar-front,.x-bar-value,.x-tower){transition:none!important}
.x-scene[data-compact=true] .x-scene-top{padding:2px 7px;font-size:9px;min-height:24px;box-sizing:border-box}
.x-scene[data-compact=true] .x-scene-top button{min-height:22px;padding:2px;font-size:9px}
.x-scene[data-compact=true] .x-hud{position:relative;inset:auto;display:flex;flex:none;flex-direction:row;align-items:center;justify-content:center;gap:7px;height:29px;max-width:100%;z-index:2}
.x-scene[data-compact=true] .x-hud>span{font-size:8px;letter-spacing:.07em}
.x-scene[data-compact=true] .x-hud>strong{font-size:24px;line-height:1}
.x-scene[data-compact=true] .x-hud>small{display:none}
.x-scene[data-compact=true] :is(.x-artboard,.x-scene-drill .x-artboard){padding-top:0!important}
.x-scene[data-compact=true] .x-status{min-height:20px;line-height:1.3;font-size:9px;padding:2px 5px;box-sizing:border-box}
.x-scene[data-compact=true] .x-progress{margin:0 8px 3px;height:2px}
.x-scene[data-compact=true] .x-snake-board{width:min(100%,66cqh);gap:4px}
.x-scene[data-compact=true] .x-snake-cell b{font-size:9px}
.x-scene[data-compact=true] .x-die-svg{width:24px}
.x-scene[data-compact=true] .x-dice-center>span{font-size:7px;margin-top:6px}
.x-scene[data-compact=true] .x-snake-token{left:calc(var(--token-x)*(100% + 4px)/4);top:calc(var(--token-y)*(100% + 4px)/4);width:calc((100% - 12px)/4);height:calc((100% - 12px)/4)}
.x-scene[data-compact=true] .x-snake-token i{transform:translate(-8px,-7px);width:9px;height:9px}
.x-scene[data-compact=true] .x-drill-select{padding:0 0 2px;gap:4px}
.x-scene[data-compact=true] .x-drill-select button{font-size:8px;min-height:23px;padding:3px 6px}
.x-scene[data-compact=true] .x-bars-grid{width:min(100%,245px);gap:2px 6px;max-height:100%;padding-top:4px}
.x-scene[data-compact=true] .x-gold-bar{aspect-ratio:auto}
.x-scene[data-compact=true] .x-bars-hint{font-size:8px;margin:3px 0!important}
.x-scene[data-compact=true] .x-bar-value{font-size:10px}
.x-scene[data-compact=true] .x-tower-viewport{min-height:65px;overflow:hidden}
.x-scene[data-compact=true] .x-tower-perspective{transform:scale(.4);bottom:12%}
.x-scene[data-compact=true] .x-rotation{padding:0;gap:8px}
.x-scene[data-compact=true] .x-rotation button{min-height:24px;height:24px;min-width:29px;font-size:17px}
.x-scene[data-compact=true] .x-rotation label{font-size:9px}
.x-scene[data-compact=true] .x-rotation input{width:70px}
.x-scene[data-compact=true]:is(.x-scene-closer,.x-scene-range) .x-artboard{flex-direction:column;gap:0}
.x-scene[data-compact=true] .x-number-draw{position:static;flex:none;gap:1px}
.x-scene[data-compact=true] .x-number-draw>span{font-size:8px}
.x-scene[data-compact=true] .x-number-draw>strong{font-size:34px}
.x-scene[data-compact=true] .x-number-draw>small{font-size:8px}
.x-scene[data-compact=true] #xNumberSvg{flex:1;min-height:0;width:100%}
.x-scene[data-compact=true] #xPickLabel{display:none}
.x-scene[data-compact=true] .x-chambers{gap:6px;padding:2px 0}
.x-scene[data-compact=true] .x-chambers i{height:13px;width:13px;font-size:8px}

/* Keep the thirty choices usable on a short phone; only the board scrolls. */
.x-scene[data-compact=true] .x-bars-grid{grid-template-rows:repeat(6,36px);grid-auto-rows:36px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;align-content:start;max-height:100%}.x-scene[data-compact=true] .x-bar-value{font-size:13px}.x-scene[data-compact=true] .x-bars-hint{font-size:8px}

/* Artwork edition: keep the pieces large, with their original proportions. */
.x-scene:has(.x-mechanical-svg) .x-artboard{padding:0;overflow:hidden}
.x-scene:has(.x-mechanical-svg) .x-mechanical-svg{overflow:hidden;flex:1;min-height:0;object-fit:contain}
.x-scene-elevator .x-hud{top:27%;left:4%;max-width:27%;text-shadow:0 2px 8px #100e0c}
.x-scene-elevator .x-hud>strong{font-size:clamp(30px,9cqh,66px)}
.x-scene-trip .x-hud{top:13%;gap:4px}
.x-scene-trip .x-hud>strong{font-size:clamp(32px,9cqh,66px)}
.x-scene-drill .x-artboard{padding-top:75px!important}
.x-drill-select{padding:0 10px 8px;box-sizing:border-box;gap:8px}
.x-drill-select button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:95px;min-height:33px;background:#24201d;border-color:#4f443a;color:#c3bbb2;font-size:11px;transition:border-color .15s,background .15s}
.x-drill-select button i{display:block;width:7px;height:7px;border-radius:50%;box-shadow:0 0 0 3px #ffffff08}
.x-drill-select button[aria-pressed=true]{color:#f7e6c1;background:#3c3025;border-color:#d6b77d}
.x-drill-sprite{transform-box:fill-box;transform-origin:center;transform:scaleX(var(--bit-turn,1))}
.x-scene-jenga .x-artboard{padding-top:75px}
.x-tower-viewport{overflow:hidden!important;min-height:0!important}
.x-tower-perspective{bottom:14%!important;transform:scale(var(--tower-fit,1.5))!important}
.x-tower{transition:none;transform-origin:50% 0}
.x-tower-floor{left:20%;width:60%;bottom:0;height:24%;background:radial-gradient(ellipse,#7c54272e,transparent 70%);border:0;transform:rotateX(30deg)}
.x-block i{border-color:#6b3e22;border-radius:3px;box-shadow:inset 0 1px 0 #ffdaa2,inset 1px 0 0 #ffd39b;filter:none!important}
.x-block .face-front,.x-block .face-back{background-color:#c88449;background-image:url('brokeprint-assets/jenga-supplied-v1.png');background-size:591px 263px;background-position:-246px -58px}
.x-block .face-back{background-position:-246px -100px}
.x-block .face-top{background:linear-gradient(90deg,#f9c27d,#edac65 45%,#ffd297);box-shadow:inset 0 1px 0 #ffe6bd,inset 0 -1px 0 #aa6834}
.x-block .face-bottom{background:#a96735}
.x-block .face-left,.x-block .face-right{background:linear-gradient(110deg,#f8bd78,#bd713b);box-shadow:inset 1px 1px 0 #ffd49d,inset -1px -1px 0 #92512c}
.x-block.is-selected i{border:1.5px solid #ffe8a5;box-shadow:inset 0 0 0 1px #ffdc80,0 0 5px #f5be4b55}
.x-block.is-selected .face-front{color:#fff8d7;text-shadow:0 1px 3px #492b16;background-blend-mode:multiply;background-color:#e8bd6f}
.x-block:not(:disabled):hover i,.x-block:focus-visible i{box-shadow:inset 0 0 0 1px #ffe6a8,0 0 5px #ffce7e66}
.x-scene[data-phase=result] .x-number-draw>strong{color:#f4dda4}
.x-scene:is(.x-scene-closer,.x-scene-range) #xNumberSvg{overflow:visible}
.x-number-draw strong{transition:color .2s;min-width:4ch;font-feature-settings:'tnum';text-shadow:0 3px 0 #0004}
.x-bar-front svg{filter:drop-shadow(0 3px 1px #0005)}
.x-gold-bar.is-selected{outline:1px solid #e7c27a55;outline-offset:2px}
.x-gold-bar.is-revealed.is-paying{background:#31422b!important;box-shadow:inset 0 0 0 1px #a7bc7955}
.x-bar-front,.x-bar-value{transition-timing-function:cubic-bezier(.2,.7,.2,1)}
.x-snake-cell.is-landed{border-color:#ebce8b;box-shadow:0 0 0 2px #e7bd6755;background:#45523a}
.x-snake-cell.is-landed.is-snake{background:#663c2e;border-color:#d89973}
.x-snake-token i{box-shadow:0 3px 0 #705d38,0 0 0 3px #e3b96b25}
@media(max-width:760px){
 .x-scene-drill .x-artboard{padding-top:60px!important}
 .x-drill-select{gap:4px;padding:0 5px 4px}
 .x-drill-select button{min-width:0;flex:1;max-width:110px;padding:4px 5px;min-height:29px;font-size:9px;gap:4px}
 .x-scene-jenga .x-artboard{padding-top:63px}
 .x-scene-elevator .x-hud{left:3%;top:28%}
 .x-scene-elevator .x-hud>strong{font-size:clamp(30px,10cqh,53px)}
 .x-scene-elevator .x-hud>small{font-size:8px;letter-spacing:0}
}
.x-scene[data-compact=true]:has(.x-mechanical-svg) .x-artboard{padding-top:0!important}
.x-scene[data-compact=true] .x-tower-perspective{bottom:9%!important}
.x-scene[data-compact=true] .x-drill-select button{font-size:8px;min-height:23px;padding:3px}
.x-scene[data-compact=true] .x-drill-select{padding-bottom:2px}

/* Direct number controls stay on the board, including on phones. */
.x-scene:is(.x-scene-closer,.x-scene-range) .x-artboard{flex-direction:column;padding:0 14px 46px;gap:0}
.x-scene:is(.x-scene-closer,.x-scene-range) #xNumberSvg{flex:1;min-height:0}
.x-number-controls{position:absolute;bottom:4px;left:9%;right:9%;display:flex;gap:18px;justify-content:center}
.x-number-controls label{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;max-width:265px;font:500 10px 'DM Sans',sans-serif;color:#b9b1a4}
.x-number-controls span{display:flex;justify-content:space-between;gap:10px}.x-number-controls b{font-variant-numeric:tabular-nums;color:#f0dbac}
.x-number-controls input{width:100%;margin:0;accent-color:#d7ba7c;height:25px;cursor:pointer;min-height:25px!important;padding:0!important}
.x-number-controls input:disabled{cursor:default;opacity:.5}
.x-scene:is(.x-scene-closer,.x-scene-range) .x-hud{bottom:98px}
.x-scene[data-compact=true]:is(.x-scene-closer,.x-scene-range) .x-artboard{padding:0 8px 34px!important}
.x-scene[data-compact=true] .x-number-controls{bottom:0;gap:12px;left:5%;right:5%}
.x-scene[data-compact=true] .x-number-controls label{font-size:8px;gap:0}
.x-scene[data-compact=true] .x-number-controls input{height:20px;min-height:20px!important}
.x-scene[data-compact=true]:is(.x-scene-closer,.x-scene-range) .x-hud{position:relative;bottom:auto}

.x-block .face-front,.x-block .face-back{top:0;left:0}.x-block .face-top,.x-block .face-bottom{left:0}

.x-block{transform:translate3d(calc(var(--bx) + var(--scatter-x,0px)),calc(var(--by) + var(--rise,0px) + var(--fall,0px)),calc(var(--bz) + var(--scatter-z,0px))) rotateY(var(--br)) translateX(var(--pull,0px)) rotateZ(var(--tilt,0deg))}

.x-block .face-left,.x-block .face-right{top:0}

.x-scene-elevator #xMetric[data-digits="4"]{font-size:clamp(24px,6cqh,40px)}
