*{box-sizing:border-box}body{color:#f4efe2;background:#08070d;margin:0;font-family:JetBrains Mono,ui-monospace,monospace}button{cursor:pointer;font-family:inherit}*{scrollbar-width:none}::-webkit-scrollbar{width:0;height:0}.main-btn,.amount,.pill-value,.auto-val,.mult,.hist-chip{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}@keyframes bus-rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.page{background:radial-gradient(120% 80% at 50% 0,#151029 0%,#08070d 60%);min-height:100vh;padding:14px 14px 28px}.top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;width:100%;max-width:1460px;margin:0 auto 12px;display:flex}.brand{align-items:center;gap:12px;display:flex}.logo{background:#0a0a0c;border:3px solid #6dff9b;grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);width:34px;height:34px;display:grid}.brand-title{letter-spacing:.06em;margin:0;font-family:Unbounded,sans-serif;font-size:22px;font-weight:900;line-height:1}.brand-sub{color:#9a92b5;letter-spacing:.14em;margin-top:3px;font-size:10px}.top-right{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.pill{background:#12101c;border:2px solid #2b2440;padding:7px 14px}.pill-label{color:#9a92b5;letter-spacing:.14em;font-size:9px}.pill-value{color:#ffc23c;font-size:17px;font-weight:800}.top-btn{color:#f4efe2;letter-spacing:.1em;background:#12101c;border:2px solid #2b2440;padding:11px 13px;font-size:11px;font-weight:700}.top-btn:hover{color:#6dff9b;border-color:#6dff9b}.top-btn.danger{color:#9a92b5}.top-btn.danger:hover{color:#ff4242;border-color:#ff4242}.layout{flex-wrap:wrap;align-items:flex-start;gap:12px;width:100%;max-width:1460px;margin:0 auto;display:flex}.col-main{flex-direction:column;flex:640px;gap:12px;min-width:min(100%,320px);display:flex}.col-side{flex-direction:column;flex:260px;gap:12px;min-width:min(100%,240px);display:flex}@media (width>=1040px){.col-side{flex:0 0 260px;order:-1}}@media (width<=1039px){.col-main,.col-side{flex-basis:100%}}@media (width>=761px) and (height>=621px){.stage{max-width:92.4444vh;margin-inline:auto}}.history-strip{background:#12101c;border:2px solid #2b2440;align-items:center;gap:8px;padding:8px 10px;display:flex;overflow:hidden}.history-label{color:#9a92b5;letter-spacing:.14em;flex:none;font-size:9px}.history-row{flex:auto;gap:6px;display:flex;overflow:hidden}.hist-chip{text-align:center;background:#0d0b14;border:2px solid #2b2440;flex:none;padding:5px 8px;font-size:12px;font-weight:800}.hist-chip--bribe{background:#1a0d16;border-color:#ff8ad2;box-shadow:0 0 8px #ff8ad24d,inset 0 0 4px #ff8ad226}.hist-chip__tag{letter-spacing:.14em;color:#ff8ad2;margin-top:2px;font-size:7px;font-weight:800}.stage{aspect-ratio:16/9;background:0 0;position:relative;overflow:hidden}.stage canvas{object-fit:contain;width:100%;height:100%;image-rendering:pixelated;display:block}.stage-overlay{pointer-events:none;aspect-ratio:var(--cam-aspect,16 / 9);border:3px solid #2b2440;max-width:100%;max-height:100%;margin:auto;padding:12px;position:absolute;inset:0}.stage-top{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.phase-badge{letter-spacing:.14em;color:#9a92b5;background:#0d0b14cc;border:2px solid #2b2440;padding:5px 9px;font-size:10px;font-weight:800}.badges{flex-direction:column;align-items:flex-end;gap:5px;display:flex}.badge{letter-spacing:.1em;background:#0d0b14cc;border:2px solid;padding:4px 8px;font-size:10px;font-weight:800;animation:.2s ease-out bus-rise}.stage-center{flex-direction:column;align-items:center;gap:8px;display:flex;position:absolute;top:6px;left:0;right:0}.mult{color:#6dff9b;text-shadow:4px 4px #05040a;transform:scale(var(--kick,1));transform-origin:50%;will-change:transform;font-family:"Press Start 2P",monospace;font-size:clamp(22px,4.6vw,44px);line-height:1}.sub{color:#cfc7e4;text-shadow:2px 2px #05040a;text-align:center;font-family:"Press Start 2P",monospace;font-size:clamp(7px,1.1vw,10px);line-height:1.5}.bribe-screen{text-align:center;background:radial-gradient(120% 90%,#261206bd 0%,#07060ced 100%);flex-direction:column;justify-content:center;align-items:center;gap:clamp(6px,1.4vh,14px);padding:0 12px;font-family:"Press Start 2P",monospace;display:none;position:absolute;inset:0}.bribe-title{color:#ffc23c;text-shadow:5px 5px #05040a;margin-top:clamp(28px,7vh,64px);font-size:clamp(16px,3.4vw,36px);line-height:1}.bribe-note{color:#cfc7e4;text-shadow:2px 2px #05040a;font-size:clamp(7px,1.15vw,12px);line-height:1.6}.bribe-row{text-shadow:3px 3px #05040a;opacity:0;font-size:clamp(9px,1.5vw,15px);line-height:1.5;transition:opacity .18s linear,transform .18s ease-out}.bribe-row--pot{color:#f4efe2;margin-top:clamp(4px,1vh,10px)}.bribe-row--cut{color:#ff8ad2}.bribe-row--run{color:#6dff9b}.bribe-timer{color:#ffc23c;text-shadow:4px 4px #05040a;margin-top:clamp(4px,1vh,10px);font-size:clamp(20px,4vw,40px);line-height:1}.bets{flex-wrap:wrap;gap:12px;display:flex}.bet-card{background:#12101c;border:2px solid #2b2440;flex-direction:column;flex:300px;gap:10px;min-width:min(100%,280px);padding:12px;display:flex}.bet-head{justify-content:space-between;align-items:center;display:flex}.bet-title{color:#9a92b5;letter-spacing:.14em;font-size:10px;font-weight:700}.bet-state{letter-spacing:.1em;font-size:10px;font-weight:800}.amount-row{align-items:stretch;gap:8px;display:flex}.sq-btn{color:#f4efe2;background:#1a1728;border:2px solid #2b2440;width:38px;font-size:16px;font-weight:800}.sq-btn:hover{border-color:#6dff9b}.amount{color:#ffc23c;background:#0d0b14;border:2px solid #2b2440;flex:1;justify-content:center;align-items:center;padding:6px 4px;font-size:20px;font-weight:800;display:flex}.chips{gap:6px;display:flex}.chip{color:#9a92b5;background:#0d0b14;border:2px solid #2b2440;flex:1;padding:7px 2px;font-size:11px;font-weight:700}.chip:hover{color:#ffc23c;border-color:#ffc23c}.main-btn{letter-spacing:.05em;border:3px solid;padding:16px 10px;font-family:Unbounded,sans-serif;font-size:15px;font-weight:900;line-height:1.15}.auto-row{flex-wrap:wrap;gap:8px;display:flex}.auto-btn{letter-spacing:.08em;text-align:left;border:2px solid;flex:130px;padding:9px 6px;font-size:10px;font-weight:800}.auto-step{flex:none;align-items:stretch;gap:4px;display:flex}.auto-mini{color:#9a92b5;background:#0d0b14;border:2px solid #2b2440;width:30px;font-weight:800}.auto-val{color:#f4efe2;background:#0d0b14;border:2px solid #2b2440;justify-content:center;align-items:center;min-width:56px;font-size:13px;font-weight:800;display:flex}.loop-btn{letter-spacing:.08em;text-align:left;border:2px solid;padding:9px 6px;font-size:10px;font-weight:800}.panel{background:#12101c;border:2px solid #2b2440}.panel-head{letter-spacing:.14em;color:#9a92b5;border-bottom:2px solid #2b2440;justify-content:space-between;padding:9px 11px;font-size:10px;font-weight:700;display:flex}.board-list{max-height:250px;overflow:auto}.board-row{border-bottom:1px solid #1a1728;align-items:center;gap:8px;padding:7px 11px;display:flex}.board-av{border:2px solid #0d0b14;flex:none;width:20px;height:20px}.board-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:11px;font-weight:700;overflow:hidden}.board-bet{color:#9a92b5;font-size:11px}.board-res{text-align:right;min-width:52px;font-size:12px;font-weight:800}.board-row--mine{background:#131024}.board-row--mine .board-name{letter-spacing:.1em;font-weight:800}.legend-box{padding:11px}.legend-head{letter-spacing:.14em;color:#9a92b5;margin-bottom:8px;font-size:10px;font-weight:700}.legend-rows{flex-direction:column;gap:7px;display:flex}.legend-row{align-items:flex-start;gap:9px;display:flex}.legend-sw{flex:none;width:16px;height:16px;margin-top:1px}.legend-text{color:#cfc7e4;font-size:10px;line-height:1.3}.legend-meta{color:#9a92b5;letter-spacing:.02em;margin-top:2px;font-size:9px}.legend-bribe{border-top:2px solid #2b2440;align-items:flex-start;gap:9px;margin-top:11px;padding-top:10px;display:flex}.legend-bribe .legend-text{line-height:1.45}.legend-bribe-ico{color:#08070d;background:#ffc23c;flex:none;place-items:center;width:16px;height:16px;font-size:11px;font-weight:800;display:grid}button{touch-action:manipulation}@media (width>=1040px){.page{flex-direction:column;height:100vh;padding:10px 14px 12px;display:flex;overflow-y:auto}.top{margin-bottom:10px}.top-btn{padding:9px 12px}.layout{flex:auto;align-items:stretch;gap:10px;min-height:0}.col-main{grid-template-rows:auto minmax(clamp(240px,38vh,460px),1fr) auto;gap:10px;height:100%;display:grid}.col-side{height:100%;overflow-y:auto}.col-side .legend-box{flex:none}.col-side .panel{flex-direction:column;flex:1 1 0;min-height:84px;display:flex}.col-side .panel-head{flex:none}.board-list{flex:auto;min-height:0;max-height:none}.stage{aspect-ratio:auto;width:100%;max-width:none;height:100%;min-height:0;margin-inline:0}}@media (width>=1040px) and (height<=899px){.top{margin-bottom:8px}.top-btn{padding:7px 11px}.pill{padding:5px 12px}.pill-value{font-size:15px}.history-strip{padding:6px 9px}.bet-card{gap:6px;padding:8px}.bet-title,.bet-state{font-size:9px}.sq-btn{width:34px}.amount{padding:2px 4px;font-size:16px}.chip{padding:4px 2px;font-size:10px}.main-btn{padding:10px 8px;font-size:13px}.auto-btn,.loop-btn{padding:5px 6px}.auto-val{font-size:12px}.col-side{gap:8px}.panel-head{padding:7px 10px}.board-row{padding:5px 10px}.legend-box{padding:9px}.legend-bribe{margin-top:8px;padding-top:8px}}.side-toggle,.side-backdrop,.rotate-hint{display:none}@media (hover:none) and (orientation:portrait) and (width<=760px){body:not(.portrait-ok):not(.has-live-bet) .rotate-hint{z-index:100;text-align:center;background:radial-gradient(120% 80% at 50% 0,#151029 0%,#08070d 60%);flex-direction:column;justify-content:center;align-items:center;gap:22px;padding:24px;display:flex;position:fixed;inset:0}.rotate-phone{background:#0a0a0c;border:3px solid #6dff9b;flex:none;width:62px;height:104px;padding:7px 5px;animation:2.6s ease-in-out infinite rotate-phone}.rotate-phone-screen{background:#1b2a2f;width:100%;height:100%}.rotate-title{color:#ffc23c;text-shadow:3px 3px #05040a;font-family:"Press Start 2P",monospace;font-size:15px;line-height:1.6}.rotate-note{letter-spacing:.1em;color:#9a92b5;max-width:280px;font-size:11px;line-height:1.6}.rotate-skip{color:#9a92b5;letter-spacing:.12em;background:#12101c;border:2px solid #2b2440;margin-top:6px;padding:12px 18px;font-family:inherit;font-size:11px;font-weight:700}.page{padding:8px 8px 14px}.top{gap:8px;margin-bottom:8px}.brand-sub{display:none}.brand-title{font-size:17px}.bets{flex-wrap:nowrap;gap:6px}.bet-card{flex:1 1 0;gap:5px;min-width:0;padding:7px}.bet-title,.bet-state{letter-spacing:.04em;font-size:8px}.sq-btn{width:30px;font-size:14px}.amount{padding:3px 2px;font-size:15px}.chip{padding:5px 1px;font-size:9px}.main-btn{letter-spacing:.02em;padding:12px 4px;font-size:11px;line-height:1.1}.auto-row{flex-wrap:nowrap;gap:4px}.auto-btn{flex:auto;padding:6px 4px;font-size:8px}.auto-mini{width:22px}.auto-val{min-width:38px;font-size:10px}.loop-btn{padding:6px 4px;font-size:8px}}@keyframes rotate-phone{0%,26%{transform:rotate(0)}62%,88%{transform:rotate(-90deg)}to{transform:rotate(0)}}@media (prefers-reduced-motion:reduce){.rotate-phone{animation:none;transform:rotate(-90deg)}.badge{animation:none}.mult{transform:none}.col-side{transition:none}}@media (orientation:landscape) and (height<=700px) and (width<=1100px){body{overflow:hidden}.page{height:100svh;height:var(--app-h,100svh);-webkit-overflow-scrolling:touch;min-height:0;padding:5px max(6px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));flex-direction:column;gap:6px;display:flex;overflow-y:auto}.top{flex:none;gap:6px;max-width:none;margin:0}.brand{display:none}.top-right{flex-wrap:nowrap;justify-content:flex-end;gap:6px;width:100%}.pill{margin-right:auto;padding:3px 10px}.pill-label{font-size:8px}.pill-value{font-size:14px}.top-btn{padding:7px 9px;font-size:10px}.side-toggle{color:#b79bff;border-color:#7c4dff;display:block}.layout{flex-wrap:nowrap;flex:auto;align-items:stretch;gap:6px;max-width:none;min-height:0}.col-main{flex:auto;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr) clamp(190px,27%,300px);gap:6px;min-width:0;height:100%;min-height:0;display:grid}.history-strip{grid-column:1/-1;gap:6px;padding:4px 7px}.history-label{font-size:8px}.hist-chip{border-width:1px;padding:3px 6px;font-size:10px}.hist-chip__tag{display:none}.stage{aspect-ratio:auto;grid-area:2/1;width:100%;min-width:0;max-width:100%;height:100%;min-height:0}.stage-overlay{border-width:2px;padding:7px}.bribe-screen{gap:4px;padding-top:52px}.bribe-title{margin-top:0;font-size:18px}.bribe-note{font-size:8px}.bribe-row{font-size:10px}.bribe-timer{margin-top:2px;font-size:22px}.phase-badge,.badge{padding:3px 6px;font-size:9px}.bets{flex-flow:column;grid-area:2/2;gap:5px;min-height:0;overflow-y:auto}.bet-card{flex:1 1 0;justify-content:space-between;gap:2px;min-width:0;min-height:0;padding:6px;overflow:hidden}.bet-head{flex:none}.bet-title,.bet-state{letter-spacing:.06em;font-size:9px}.amount-row{flex:none}.sq-btn{width:28px;padding:0;font-size:14px}.amount{padding:2px;font-size:14px}.chips{flex:none;gap:4px}.chip{padding:2px 1px;font-size:9px}.main-btn{letter-spacing:.02em;border-width:2px;flex:auto;min-height:32px;max-height:74px;padding:6px 4px;font-size:11px;line-height:1.1}.auto-row{flex-wrap:nowrap;flex:none;gap:4px}.auto-btn{flex:auto;padding:3px 5px;font-size:9px}.auto-mini{width:22px}.auto-val{min-width:40px;font-size:10px}.loop-btn{flex:none;padding:3px 5px;font-size:9px}.col-side{z-index:40;width:min(330px,84vw);padding:8px 8px 8px max(8px, env(safe-area-inset-left));overscroll-behavior:contain;visibility:hidden;background:#0b0912;border-right:2px solid #2b2440;flex:none;transition:transform .22s ease-out,visibility 0s linear .22s;position:fixed;top:0;bottom:0;left:0;overflow-y:auto;transform:translate(-102%)}body.side-open .col-side{visibility:visible;transition-delay:0s;transform:none}.side-toggle{z-index:41;position:relative}.side-backdrop{z-index:30;opacity:0;pointer-events:none;background:#05040acc;transition:opacity .2s linear;display:block;position:fixed;inset:0}body.side-open .side-backdrop{opacity:1;pointer-events:auto}.board-list{max-height:none}}@media (orientation:landscape) and (width<=1100px){:root.vh-470 .loop-btn,:root.vh-400 .bet-head{display:none}:root.vh-400 .bet-card{gap:1px}:root.vh-400 .chip{padding:2px 1px}:root.vh-400 .auto-btn,:root.vh-400 .auto-mini,:root.vh-400 .auto-val{padding-top:2px;padding-bottom:2px}:root.vh-340 .auto-row{display:none}}
