/* Dice Reactor: self-contained shell, native controls, server-owned outcomes. */
.tt-dice.reactor{--lime:#c4f900;--muted:#b7bcbe;--line:#535b61;--panel:#13181b;box-sizing:border-box;position:relative;isolation:isolate;width:100%;max-width:1600px;margin:24px auto 40px;padding:20px;color:#f5f7f6;font-family:Arial,Helvetica,sans-serif;background:repeating-linear-gradient(118deg,#ffffff02 0 1px,transparent 1px 4px),linear-gradient(125deg,#323a40 0%,#11171b 20%,#3d454b 50%,#101519 76%,#333d44);border:2px solid #79858c;border-radius:34px;box-shadow:inset 0 2px 1px #e9efffaa,inset 0 0 0 7px #222a31,0 12px 32px #0007;container-type:inline-size}
.tt-dice.reactor *{box-sizing:border-box}.tt-dice.reactor [hidden]{display:none!important}.tt-dice.reactor button,.tt-dice.reactor input,.tt-dice.reactor select{font:inherit}.tt-dice.reactor button{cursor:pointer;touch-action:manipulation}.tt-dice.reactor button:disabled{cursor:default;opacity:.48}.tt-dice.reactor input:disabled,.tt-dice.reactor select:disabled{opacity:.65}.tt-dice.reactor :is(button,input,select,a,summary):focus-visible{outline:2px solid #d9ff70;outline-offset:4px}.tt-dice.reactor :is(input,select){min-width:0;color:#f5f7f6}.tt-dice.reactor input[type=number]{appearance:textfield;-moz-appearance:textfield}.tt-dice.reactor input::-webkit-outer-spin-button,.tt-dice.reactor input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.reactor-sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.reactor-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 8px 14px 10px;min-height:82px}.reactor-brand{display:flex;flex-direction:column;text-decoration:none;color:#e9edf0;position:relative;padding-left:24px;line-height:1}.reactor-brand:before{content:'';position:absolute;left:2px;top:4px;width:11px;height:42px;background:var(--lime);transform:skew(-22deg);box-shadow:0 0 15px #c4f90030}.reactor-brand b{font-size:clamp(32px,4.8cqw,68px);font-weight:950;font-style:italic;letter-spacing:-3px;background:linear-gradient(#fff 15%,#a9b1b8 55%,#f9ffff 62%,#a0a8b0);background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 3px 1px #000)}.reactor-brand>span{font-size:clamp(12px,1.2cqw,18px);color:#bec4c7;margin:6px 0 0 4px;letter-spacing:.2px}.reactor-header-right{display:flex;gap:12px;align-items:center;min-width:0}.reactor-wallet{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 18px;background:linear-gradient(140deg,#343a3e,#090d10 60%);border:1px solid #66727b;border-radius:14px;box-shadow:inset 1px 2px 5px #000,0 1px 1px #ffffff25}.reactor-wallet strong{font-size:clamp(17px,2.5cqw,34px);white-space:nowrap;font-variant-numeric:tabular-nums}.reactor-wallet select{max-width:100px;background:#151c21;border:0;border-radius:6px;padding:8px 4px;font-size:16px;cursor:pointer}.reactor-header :is(#dice-sound,#dice-help-button){width:52px;height:52px;display:flex;align-items:center;justify-content:center;flex:none;color:#eef0f0;border:1px solid #7d888e;border-radius:13px;background:linear-gradient(150deg,#32393f,#080c0f 80%);box-shadow:inset 0 2px 1px #ffffff35,0 3px 4px #000;font-weight:700;font-size:22px}.reactor-header #dice-sound>span:last-child{display:none}.dice-sound-icon{display:flex}.dice-sound-icon svg{width:24px;height:24px}#dice-sound[aria-pressed=false]{opacity:.5}
.reactor .dice-game{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);gap:24px;align-items:start}.reactor .dice-board{min-width:0;position:relative}.reactor-chamber{position:relative;aspect-ratio:1;container-type:inline-size;margin:-24px -7px -17px}.reactor-art{display:block;width:100%;height:auto;border-radius:50%;mix-blend-mode:lighten;user-select:none;pointer-events:none}.reactor-gauge{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.reactor-scale{position:absolute;inset:0;pointer-events:none;font-weight:800;font-size:clamp(12px,3.3cqw,27px);color:#e6e8e7;text-shadow:0 2px 4px #000}.reactor-scale span{position:absolute;transform:translate(-50%,-50%);background:#151a1dce;padding:1px 3px;border-radius:4px}.reactor-scale span:nth-child(1){left:19%;top:81%}.reactor-scale span:nth-child(2){left:10.5%;top:34%}.reactor-scale span:nth-child(3){left:50%;top:8%}.reactor-scale span:nth-child(4){left:89.5%;top:34%}.reactor-scale span:nth-child(5){left:81%;top:81%}.reactor .dice-result-area{position:absolute;top:46%;left:21%;width:58%;text-align:center}.reactor .dice-empty{padding:4% 0}.reactor #dice-empty-label{font-size:clamp(18px,4.7cqw,34px);line-height:1.2;margin:0;color:#eff3ed;text-shadow:0 2px 12px #000}.reactor .dice-round-status{height:22px;display:flex;gap:5px;align-items:center;justify-content:center;color:#bbd786}.reactor #dice-outcome{margin:0;font-size:clamp(11px,2cqw,16px)}.reactor .dice-round-status.is-loss{color:#ffb7aa}.reactor .dice-result-columns{min-width:0}.reactor #dice-number{display:block;font-size:clamp(38px,15.5cqw,118px);line-height:1.02;letter-spacing:-.045em;font-weight:900;font-variant-numeric:tabular-nums;text-shadow:0 3px 6px #0009}.reactor #dice-number.is-loss{color:#ff9d8e}.reactor .dice-result-payment{display:flex;flex-wrap:wrap;gap:4px 6px;justify-content:center;align-items:baseline;margin-top:6px;font-size:clamp(12px,2.7cqw,21px);color:#c6c8c6}.reactor .dice-result-payment>strong,.reactor #dice-result-currency{color:#dcff78;font-weight:700;max-width:100%;overflow-wrap:anywhere}.reactor .dice-result-payment.is-loss>strong,.reactor .dice-result-payment.is-loss #dice-result-currency{color:#b6bfbd}.reactor .dice-board.is-rolling .reactor-art{animation:reactor-charge .65s ease-in-out infinite alternate}.reactor .dice-board.is-rolling .dice-result-area{opacity:.65}.reactor .dice-board.is-revealing .reactor-chamber:after{content:'';position:absolute;inset:11%;pointer-events:none;border-radius:50%;box-shadow:inset 0 0 55px #c4f90038;animation:reactor-reveal .65s ease-out both}@keyframes reactor-charge{to{filter:brightness(1.28)}}@keyframes reactor-reveal{from{opacity:1}to{opacity:0}}
.reactor-metrics{position:relative;display:grid;grid-template-columns:1fr 1.15fr 1.35fr;gap:0;padding:18px 10px;border:1px solid #8a9297;border-radius:18px;background:linear-gradient(135deg,#363d42,#101517 45%,#282f34);box-shadow:inset 0 3px 1px #ffffff30,inset 0 -5px 8px #000,0 4px 1px #05090b;z-index:1}.reactor-metrics>label,.reactor-metrics>div{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:clamp(12px,1.3cqw,19px);color:#bdc2c4;text-align:center;margin:0;padding:0 8px}.reactor-metrics>:not(:last-child){border-right:1px solid #727b81}.reactor-metrics label>div{display:flex;align-items:center;justify-content:center;gap:1px;min-width:0;width:100%;font-size:clamp(22px,3.1cqw,44px);font-weight:800;line-height:1.2;color:#fff}.reactor-metrics input{background:transparent;border:0;min-width:0;width:4.5ch;padding:0;text-align:center;font:inherit!important;font-variant-numeric:tabular-nums}.reactor-metrics #dice-chance{width:3.4ch}.reactor-metrics strong{font-size:clamp(17px,2.45cqw,34px);color:#d6ff5b;line-height:1.3;overflow-wrap:anywhere;max-width:100%;font-variant-numeric:tabular-nums}
.reactor .dice-controls{position:relative;min-width:0;display:flex;flex-direction:column;gap:18px;padding:26px;background:radial-gradient(ellipse at top left,#353a3c55,transparent 70%),linear-gradient(145deg,#1c2225,#101416 65%,#1d2428);border:2px solid #92999c;border-radius:30px;box-shadow:0 0 0 7px #161b20,0 0 0 10px #45525d,inset 0 0 0 6px #070c10,inset 0 0 25px #000,0 9px 10px #0009}.reactor .dice-tabs{display:flex;padding:4px;border-radius:16px;background:linear-gradient(#343a3e,#080d10);border:1px solid #707b80;box-shadow:0 4px 6px #000a,inset 0 1px 1px #ccd3d64d}.reactor .dice-tabs button{width:50%;min-height:55px;border:1px solid transparent;border-radius:12px;color:#dadcdd;background:transparent;font-size:clamp(18px,2.1cqw,29px);font-weight:700}.reactor .dice-tabs button[aria-pressed=true]{background:linear-gradient(150deg,#e8ff55,#b4e600 48%,#8bac00 90%);color:#142000;border-color:#dbff75;box-shadow:inset 0 2px 2px #f5ff90,0 2px 8px #7ca00060;transform:skew(-7deg)}
.reactor-stake>label{display:block;margin:0 0 12px;font-size:clamp(16px,1.7cqw,24px);color:#cbd0d0}.reactor .dice-bet-input{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;min-height:72px;background:#0b1013;border:1px solid #89939a;border-radius:13px;overflow:hidden;box-shadow:inset 0 3px 8px #000,0 3px 4px #0008}.reactor .dice-bet-input>div{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;padding:5px 8px}.reactor .dice-bet-input input{width:100%;max-width:8ch;text-align:center;border:0;background:transparent;padding:4px 0;font-size:clamp(23px,3cqw,40px);font-weight:800;font-variant-numeric:tabular-nums}.reactor #dice-currency{font-size:clamp(14px,1.8cqw,25px);font-weight:700}.reactor .dice-bet-input button{border:0;background:linear-gradient(140deg,#626d75,#171e24 65%);color:#f3f6f7;font-size:32px;box-shadow:inset 0 1px 1px #ffffff66}.reactor .dice-bet-input button:first-child{border-right:1px solid #7c888f}.reactor .dice-bet-input button:last-child{border-left:1px solid #7c888f}.reactor-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.reactor-presets button{min-height:43px;border-radius:10px;border:1px solid #859098;background:linear-gradient(135deg,#484f54,#171e24);color:#dfe4e7;font-size:20px;font-weight:700;box-shadow:inset 0 1px 1px #ffffff36,0 3px 3px #0008}.reactor-presets button[aria-pressed=true]{border-color:#dfff5a;color:#dfff5a;box-shadow:inset 0 0 12px #b4ed0030,0 0 7px #b4ed0030}.reactor-target>label{display:flex;align-items:center;gap:8px;margin:0;color:#c6cdcf;font-size:clamp(16px,1.8cqw,25px)}.reactor-target input{width:6ch;background:transparent;border:0;color:#d8ff65!important;font-weight:800;font-size:1.08em;padding:0}.reactor-target #dice-sign{font-size:15px;color:#7e8a8d}
.reactor .dice-slider-block{position:relative;display:flex;flex-direction:column;margin:-12px 5px 0;padding:0}.reactor .dice-ticks{display:flex;justify-content:space-between;order:1;color:#aeb8bd;font-size:13px;margin-top:3px}.reactor .dice-ticks span:not(:first-child):not(:last-child){visibility:hidden}.reactor .dice-slider-wrap{position:relative;height:40px;margin:0 10px}.reactor .dice-track{position:absolute;top:12px;left:0;right:0;height:16px;border-radius:12px;box-shadow:0 0 0 1px #9ca8ad,0 0 0 4px #070c0f,0 3px 7px #000;overflow:hidden}.reactor .dice-track:after{content:'';position:absolute;inset:0;background:linear-gradient(#fff7,transparent 40%,#0006);pointer-events:none}.reactor #dice-range{appearance:none;-webkit-appearance:none;position:absolute;inset:0;width:100%;height:40px;margin:0;background:transparent;cursor:ew-resize}.reactor #dice-range::-webkit-slider-thumb{appearance:none;width:30px;height:30px;border-radius:50%;background:conic-gradient(#e7eaea,#777f83,#f5f9fa,#50575a,#e7eaea);border:2px solid #a5adb0;box-shadow:0 0 0 2px #070c0f,0 3px 5px #000}.reactor #dice-range::-moz-range-thumb{width:27px;height:27px;border-radius:50%;background:conic-gradient(#e7eaea,#777f83,#f5f9fa,#50575a,#e7eaea);border:2px solid #a5adb0}.reactor #dice-range-label{order:2;margin:8px 0 0;font-size:12px;line-height:1.4;color:#a7b5bd;min-height:17px}.reactor .dice-result-indicator{position:absolute;top:0;left:0;width:0;height:40px;pointer-events:none}.reactor .dice-result-thumb{position:absolute;width:4px;height:24px;top:8px;left:-2px;background:white;box-shadow:0 0 4px #000}.reactor #dice-marker{display:none}.reactor .dice-range-handle{position:absolute;top:5px;transform:translateX(-50%);width:28px;height:30px;border-radius:9px;border:2px solid #c5d1d9;background:linear-gradient(135deg,#aebbc4,#323f47);box-shadow:0 2px 5px #000;touch-action:none;cursor:ew-resize;z-index:2}.reactor .dice-range-handle:focus{z-index:3}
.reactor .dice-direction{display:flex;gap:12px}.reactor .dice-direction button{flex:1;min-width:0;min-height:62px;border-radius:12px;background:linear-gradient(140deg,#4f575e,#151b20 65%);border:1px solid #6b7981;box-shadow:inset 0 2px 1px #e7edf833,0 4px 5px #0009;font-size:clamp(18px,2cqw,29px);font-weight:750;color:#e3e7e9}.reactor .dice-direction button[aria-pressed=true]{color:#172000;border-color:#e8ff90;background:linear-gradient(150deg,#e6ff51,#b8ee00 50%,#8aa900);box-shadow:inset 0 2px 2px #f4ff8e,0 3px 10px #baff0025;transform:skew(-5deg)}.reactor-extra-modes{font-size:13px;color:#a4b0b5;margin-top:-5px}.reactor-extra-modes summary{cursor:pointer;min-height:24px}.dice-extra-directions{display:flex;gap:6px;margin-top:10px}.dice-extra-directions button{flex:1;min-width:0;border:1px solid #526169;border-radius:8px;background:#111b20;color:#c3ced3;font-size:12px;padding:9px 4px}.dice-extra-directions button[aria-pressed=true]{color:#dfff65;border-color:#c3ed37}.reactor .dice-bounds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.reactor .dice-bounds label{min-width:0;font-size:12px;color:#bdc9cf}.reactor .dice-bounds input{display:block;width:100%;margin-top:5px;padding:10px;border:1px solid #54616a;background:#0b1419;border-radius:8px}
.reactor .reactor-profit{display:flex;justify-content:space-between;gap:12px;color:#abb9bc;font-size:13px}.reactor .reactor-profit strong{color:#d5f59a;font-variant-numeric:tabular-nums;text-align:right}.reactor .dice-primary{position:relative;min-height:87px;padding:15px 12px;color:#162000;font-size:clamp(22px,3cqw,42px);font-weight:900;text-transform:uppercase;line-height:1.12;border:3px solid #dcff72;border-radius:20px;background:linear-gradient(145deg,#edff5a 2%,#baf100 42%,#adcf00 72%,#dbff29);box-shadow:inset 0 5px 0 #f2ff7d,inset 0 -7px 0 #719400,0 0 0 5px #172025,0 0 0 7px #6d797e,0 7px 9px #000;margin:8px 2px 5px;text-shadow:0 1px 0 #eeff8a80}.reactor button:not(:disabled):hover{filter:brightness(1.12)}.reactor button:not(:disabled):active{filter:brightness(.94)}.reactor #dice-error{font-size:14px;color:#ffb3a2;margin:4px 0 0;line-height:1.5}
.reactor #dice-auto-options{border-top:1px solid #4b575e;padding-top:18px}.reactor #dice-auto-options label{display:block;font-size:14px;color:#b7c5ca;margin:10px 0 8px}.reactor #dice-auto-options input:not([type=checkbox]){width:100%;border:1px solid #52626d;border-radius:8px;background:#091116;padding:12px;font-size:16px}.reactor #dice-auto-options small{display:block;color:#a2b2ba;font-size:12px;margin-top:7px}.reactor #dice-remaining{color:#d7f98c!important}.reactor .dice-auto-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:12px}.reactor .dice-auto-toggle input{width:34px;height:22px;accent-color:var(--lime)}.reactor .dice-auto-adjust{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:8px}.reactor .dice-auto-adjust>div[role=group]{display:flex;padding:3px;background:#0b1116;border:1px solid #465660;border-radius:8px}.reactor .dice-auto-adjust button{flex:1;font-size:12px;border:0;border-radius:5px;padding:8px 4px;background:transparent;color:#bac6cc}.reactor .dice-auto-adjust button[aria-pressed=true]{background:#45542a;color:#e0ffb1}.reactor .dice-auto-percent,.reactor .dice-auto-money{display:flex;align-items:center;min-width:0;gap:6px}.reactor .dice-auto-percent span,.reactor .dice-auto-money span{font-size:13px;color:#b5c2c9}.reactor #dice-auto-advanced{display:grid;grid-template-columns:minmax(0,1fr);gap:2px}
.reactor .dice-history{position:relative;margin-top:26px;padding:18px 26px;background:linear-gradient(140deg,#263139,#090e11 30%,#1c252c);border:1px solid #8c9ba4;border-radius:23px;box-shadow:inset 0 0 0 5px #111a20,inset 0 0 0 7px #46535e,0 5px 4px #0009}.reactor #dice-history-items{display:flex;gap:12px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#55616a transparent;padding:3px 0 7px;min-height:58px;align-items:center}.reactor #dice-history-items>span{flex:0 0 auto;min-width:92px;padding:12px 20px;background:linear-gradient(145deg,#3b464e,#0d1419);border:1px solid #6f7e87;border-radius:10px;box-shadow:inset 0 1px 2px #ffffff33,0 3px 3px #0008;font-size:24px;font-weight:800;font-variant-numeric:tabular-nums;text-align:center}.reactor #dice-history-items>.is-win{color:#deff72;border-color:#abc52e;background:linear-gradient(145deg,#3e4c28,#111b0c)}.reactor #dice-history-items>p{font-size:14px;color:#98a9b2;margin:6px 0}.reactor .dice-help-popover{position:fixed;inset:auto;margin:0;width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:22px;border:1px solid #6e808a;border-radius:18px;background:#152027;color:#d7e1e6;box-shadow:0 14px 60px #000a;z-index:99}.reactor .dice-help-popover::backdrop{background:#0004}.reactor .dice-help-popover header{display:flex;align-items:center;justify-content:space-between;gap:16px}.reactor .dice-help-popover strong{font-size:20px}.reactor .dice-help-popover button{border:1px solid #53646e;border-radius:8px;background:#23323b;color:#fff;min-width:38px;min-height:38px;font-size:25px}.reactor .dice-help-popover p{font-size:15px;line-height:1.65;margin:16px 0 0}
@media(min-width:1100px){.reactor .dice-board{position:sticky;top:20px}}
@media(max-width:1100px){.tt-dice.reactor{padding:16px;border-radius:24px}.reactor .dice-game{gap:17px;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.reactor .dice-controls{padding:20px;gap:16px;border-radius:22px;box-shadow:0 0 0 4px #161b20,0 0 0 6px #45525d,inset 0 0 0 4px #070c10}.reactor .dice-bet-input{grid-template-columns:46px minmax(0,1fr) 46px;min-height:60px}.reactor .dice-direction button{min-height:52px}.reactor .dice-primary{min-height:76px}.reactor .dice-tabs button{min-height:47px}.reactor-header :is(#dice-sound,#dice-help-button){width:44px;height:44px}.reactor-metrics{padding:14px 5px}.reactor .reactor-profit{font-size:12px}}
@media(max-width:780px){.tt-dice.reactor{padding:12px;margin:12px auto 24px;border-radius:20px}.reactor-header{padding:3px 4px 18px;gap:10px;min-height:66px}.reactor-header-right{gap:7px}.reactor-brand{padding-left:15px}.reactor-brand:before{width:7px;height:29px;top:0}.reactor-brand b{font-size:34px;letter-spacing:-2px}.reactor-brand>span{font-size:11px;margin-top:5px}.reactor-wallet{padding:8px;gap:6px;border-radius:10px}.reactor-wallet strong{font-size:18px}.reactor-wallet select{font-size:13px;padding:7px 0;max-width:80px}.reactor .dice-game{grid-template-columns:minmax(0,1fr);gap:22px}.reactor .dice-board{width:min(100%,620px);margin:0 auto}.reactor-chamber{margin:-14px 0 -12px}.reactor .dice-controls{margin:0 5px;padding:22px;gap:18px}.reactor-metrics>label,.reactor-metrics>div{font-size:12px}.reactor-metrics label>div{font-size:27px}.reactor-metrics strong{font-size:22px}.reactor .dice-bet-input{min-height:62px;grid-template-columns:54px minmax(0,1fr) 54px}.reactor .dice-bet-input input{font-size:30px}.reactor #dice-currency{font-size:19px}.reactor-stake>label{font-size:18px}.reactor .dice-tabs button{font-size:21px;min-height:50px}.reactor .dice-direction button{font-size:23px;min-height:56px}.reactor-target>label{font-size:20px}.reactor .dice-primary{font-size:28px;min-height:80px}.reactor-presets button{min-height:44px;font-size:18px}.reactor .reactor-profit{font-size:14px}.reactor .dice-history{margin-top:22px;padding:14px 18px}.reactor #dice-history-items>span{font-size:20px;min-width:80px;padding:10px 15px}}
@media(max-width:480px){.tt-dice.reactor{padding:8px;border-width:1px;border-radius:16px}.reactor-header{flex-wrap:wrap;row-gap:12px;padding:6px 5px 13px}.reactor-header-right{margin-left:auto}.reactor-brand b{font-size:28px}.reactor-brand>span{font-size:10px}.reactor-wallet{padding:8px 7px;gap:4px}.reactor-wallet strong{font-size:17px}.reactor-wallet select{font-size:12px;max-width:65px}.reactor-header #dice-sound{display:none}.reactor-header #dice-help-button{width:34px;height:37px;font-size:20px;border-radius:9px}.reactor-metrics{grid-template-columns:1fr 1fr 1.3fr;padding:13px 4px;border-radius:14px}.reactor-metrics>label,.reactor-metrics>div{font-size:11px;padding:0 4px;gap:7px}.reactor-metrics label>div{font-size:22px}.reactor-metrics strong{font-size:17px}.reactor .dice-controls{margin:0 4px;padding:18px 14px;gap:15px;border-radius:18px}.reactor .dice-tabs button{font-size:19px;min-height:46px}.reactor .dice-bet-input{grid-template-columns:44px minmax(0,1fr) 44px;min-height:59px}.reactor .dice-bet-input input{font-size:27px}.reactor-presets{gap:8px}.reactor .dice-direction{gap:10px}.reactor .dice-direction button{font-size:21px}.reactor .dice-primary{font-size:25px;min-height:75px;border-radius:16px}.reactor .reactor-profit{font-size:12px}.reactor .dice-result-payment{gap:2px 4px;margin-top:3px}.reactor .dice-round-status{height:16px}.reactor #dice-history-items>span{font-size:18px;min-width:74px}.reactor .dice-history{padding:12px 16px}.reactor .dice-auto-adjust{grid-template-columns:minmax(0,1fr) 80px}}
@media(prefers-reduced-motion:reduce){.reactor .dice-board.is-rolling .reactor-art,.reactor .dice-board.is-revealing .reactor-chamber:after{animation:none}.reactor .dice-board.is-revealing .reactor-chamber:after{display:none}}
/* The launch button keeps its display type despite inherited site button fonts. */
.tt-dice.reactor .dice-primary{font-size:clamp(24px,3cqw,42px);font-weight:900;clip-path:polygon(4% 0,96% 0,100% 22%,100% 78%,96% 100%,4% 100%,0 78%,0 22%);border-radius:9px;min-height:90px}
@media(max-width:480px){.reactor-header #dice-sound{display:flex;width:34px;height:37px;border-radius:9px}.reactor-header-right{gap:5px}.reactor .reactor-wallet{padding:6px}.reactor .reactor-wallet strong{font-size:16px}.tt-dice.reactor .dice-primary{font-size:25px;min-height:78px}}
/* Phone: result, launch, stake, then settings, in matching keyboard order. */
@media(max-width:780px){.reactor .dice-game{gap:16px}.reactor-chamber{width:min(100%,340px);margin:-12px auto -10px}.reactor-metrics{padding-block:10px}.reactor .dice-controls{padding-top:17px}.tt-dice.reactor .dice-primary{margin:0 2px 4px;min-height:64px;font-size:25px}.reactor .dice-controls>.reactor-stake{margin-top:2px}.reactor .dice-controls>.dice-tabs{margin-top:5px}.reactor .reactor-brand b{font-size:31px}.reactor .reactor-brand>span{font-size:11px}}
@media(max-width:480px){.reactor-chamber{width:min(100%,300px)}.reactor-header{row-gap:8px;padding-top:1px;padding-bottom:10px}.reactor .dice-game{gap:13px}.reactor .dice-controls{padding:14px 12px;gap:14px}.reactor-metrics{padding-block:8px}.reactor .dice-controls>.dice-primary{min-height:63px;font-size:24px;white-space:nowrap}.reactor .dice-tabs button{min-height:43px}.reactor-stake>label{margin-bottom:8px}}
@media(max-width:480px){.reactor .dice-controls>.dice-primary{white-space:normal}}
/* Dedicated mobile stake dock sits immediately after the chamber, before metrics. */
@media(max-width:780px){.reactor-mobile-bet{display:flex;flex-direction:column;gap:16px;padding:18px 14px;margin:8px 4px 16px;border:1px solid #71818b;border-radius:18px;background:linear-gradient(145deg,#212c31,#0b1116);box-shadow:inset 0 1px 1px #c7d3da55,0 3px 4px #0009}.reactor .reactor-mobile-bet>.dice-primary{margin:0 0 2px;min-height:66px;font-size:25px;white-space:normal}.reactor-mobile-bet .reactor-stake>label{font-size:16px;margin-bottom:8px}.reactor-mobile-bet .reactor-presets{margin-top:9px}.reactor .dice-controls{margin-top:0}.reactor .reactor-mobile-bet .dice-bet-input{min-height:56px}.reactor .reactor-mobile-bet .dice-bet-input input{font-size:27px}}
@media(max-width:480px){.reactor-mobile-bet{gap:12px;padding:14px 12px;margin-top:6px;margin-bottom:14px}.reactor .reactor-mobile-bet>.dice-primary{font-size:24px;min-height:63px}}
/* The site's phone header is taller than its desktop page offset. */
@media(max-width:780px){.tt-shell .tt-dice.reactor{margin-top:44px}}

/* Lights follow the physical plate boundaries; result appears after the ball stops. */
.reactor-plate-light{mix-blend-mode:screen}
.reactor #dice-orbit-marker{filter:drop-shadow(0 0 .5px #bfff00);stroke-width:.35px;r:1.05px}
.reactor .dice-board.is-spinning .dice-result-area{visibility:hidden}

/* Warm marker remains distinct from the lime reactor faces. */
.reactor #dice-orbit-marker{fill:#ff7438;stroke:#fff6df;stroke-width:.28px;r:1.3px;filter:drop-shadow(0 0 .35px #ff7538)}

/* A winning payout rises into a readable card after the orbit has stopped. */
.reactor .dice-result-payment{display:none}
.reactor .dice-result-payment.is-win{position:relative;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:5px;width:124%;max-width:380px;margin:10px 0 0;padding:11px 15px 13px;border:1px solid #d7ff83;border-radius:15px;background:linear-gradient(135deg,#284d27f5,#132b26fa 60%,#142529fc);box-shadow:0 8px 24px #000b,0 0 20px #a8f33138,inset 0 1px 0 #eeffb754;z-index:2;pointer-events:none;box-sizing:border-box}
.reactor .reactor-win-caption{font-size:clamp(10px,1.7cqw,13px);font-weight:800;letter-spacing:.16em;line-height:1.2;color:#cfff88}
.reactor .reactor-win-total{display:flex;align-items:baseline;justify-content:center;gap:8px;width:100%;min-width:0;line-height:1.1}
.reactor .reactor-win-total #dice-result-payout{font-size:clamp(24px,5.4cqw,42px);font-weight:900;letter-spacing:-.025em;color:#f4ffd9;white-space:nowrap;min-width:0;overflow:hidden;text-shadow:0 2px 8px #0008}
.reactor .reactor-win-total #dice-result-currency{font-size:clamp(12px,2.5cqw,19px);font-weight:800;white-space:nowrap;color:#cfff88;flex:none}
@media(max-width:480px){.reactor .dice-result-payment.is-win{margin-top:7px;padding:8px 10px 10px;gap:4px;border-radius:12px}}

/* Leave room for italic glyph overhang and the complete editable metric values. */
.reactor-brand b{display:inline-block;align-self:flex-start;white-space:nowrap;padding:.04em .19em .05em .03em;margin-left:-.03em}
.reactor-metrics label>div{gap:3px;white-space:nowrap}
.reactor-metrics input,.reactor-metrics #dice-chance{flex:0 0 auto;width:auto;max-width:100%;line-height:1.25;overflow:visible}
.reactor-metrics label>div>span{flex:0 0 auto}
@media(max-width:360px){.tt-dice.reactor .reactor-presets button{font-size:15px;padding-inline:2px;white-space:nowrap}}

/* Keep the full game name readable alongside the wallet. */
@media(max-width:780px){.reactor-header{flex-wrap:wrap}.reactor .reactor-brand b{font-size:clamp(22px,5.8vw,31px);letter-spacing:-1.2px}}
