:root{color-scheme:dark;--ink:#e7faff;--muted:#93b0bd;--cyan:#61e3f4}*{box-sizing:border-box}html{background:#071419}body{margin:0;color:var(--ink);background:radial-gradient(ellipse at 50% 0,#18474e,transparent 60%),linear-gradient(135deg,#091014,#081b22);min-height:100svh;font:600 13px/1.4 system-ui,sans-serif}button,input{font:inherit}button,a,input{touch-action:manipulation}button{color:inherit;cursor:pointer;background:#122a34;border:1px solid #3f646e;border-radius:10px}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #ffe6a7;outline-offset:3px}[hidden]{display:none!important}#dice-app{max-width:510px;padding:0 10px;margin:auto}header{display:flex;align-items:center;gap:7px;height:48px;border-bottom:1px solid #34545d;margin-bottom:7px}.brand{font-size:25px;font-style:italic;font-weight:950;letter-spacing:-1.5px;color:#fff0bf;text-decoration:none;white-space:nowrap}.brand span{color:#afe13e}.wallet{margin-left:auto;text-align:right}.wallet small{display:block;font-size:9px;letter-spacing:1.2px;color:var(--muted)}.wallet strong{font-size:21px;line-height:1.1}header button{height:35px;width:35px;flex-shrink:0;font-size:21px}.scene,.controls{border:1px solid #3a606b;border-radius:17px;background:linear-gradient(145deg,#122a34ed,#09191ff5);box-shadow:inset 0 1px 0 #a6d6e227,0 8px 28px #0003}.scene{padding:10px 13px 9px}.heading{display:flex;align-items:center;justify-content:space-between}.heading h1{margin:0;color:#e9fbff;font-size:23px;line-height:1.1;letter-spacing:4px}.heading span{font-size:10px;font-weight:850;color:#8cdde6;border:1px solid #47727a;border-radius:6px;padding:3px 7px}.digit-panel{text-align:center;padding:10px 0 7px}.digit-panel small{display:block;font-size:9px;letter-spacing:2px;color:var(--muted)}.digit-panel strong{display:block;font:850 68px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:-4px;color:#e7f9ff;text-shadow:0 0 28px #65d8e133}.digit-panel strong.won{color:#88f1cd;text-shadow:0 0 28px #5ae2aa55}.digit-panel strong.lost{color:#f08fa5;text-shadow:0 0 28px #e56e9955}.rolling{animation:glow .15s infinite alternate}.roll-track{position:relative;height:25px;display:flex;align-items:center;margin:3px 0 0}#range{appearance:none;-webkit-appearance:none;width:100%;height:9px;border-radius:10px;margin:0;border:0;padding:0;cursor:pointer}#range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:21px;height:21px;border-radius:50%;border:3px solid #eafcff;background:#1b5f70;box-shadow:0 2px 7px #0006}#range::-moz-range-thumb{width:16px;height:16px;border-radius:50%;border:3px solid #eafcff;background:#1b5f70}#marker{position:absolute;top:-8px;transform:translateX(-50%);font-size:13px;line-height:1;color:#ffe1a0;pointer-events:none;filter:drop-shadow(0 0 3px #efc383)}.scale{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:var(--muted)}.scale span:nth-child(2){color:#c5e4e9;font-size:10px}.receipt{display:flex;justify-content:space-between;padding-top:8px;margin-top:8px;border-top:1px solid #34545e}.receipt>div:last-child{text-align:right}.receipt small{display:block;font-size:8px;letter-spacing:1px;color:var(--muted)}.receipt b{font-size:15px;color:#d6f2f5}.controls{margin-top:7px;padding:9px 12px 8px}.directions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:7px}.directions button{height:32px;font-size:12px;color:#acc8d0}.directions button[aria-pressed=true]{background:linear-gradient(110deg,#c4f7f7,#60cfdf);border-color:#b0f6ff;color:#113642;font-weight:900}.stake-head{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:var(--muted);margin-bottom:4px}.stake-head label:last-child{width:88px;text-align:center}.setup-row{display:flex;gap:8px}.stake{display:flex;flex:1;min-width:0;height:42px;border:1px solid #668c97;border-radius:10px;overflow:hidden;background:#071c25}.stake button{width:38px;background:none;border:0;border-radius:0;font-size:24px;flex-shrink:0}.stake input{width:0;min-width:0;flex:1;border:0;background:transparent;color:var(--ink);text-align:center;font-size:23px;font-weight:850}.chance-box{display:flex;align-items:center;justify-content:center;width:88px;border:1px solid #668c97;border-radius:10px;background:#071c25}.chance-box input{width:42px;min-width:0;background:transparent;color:var(--ink);border:0;text-align:center;font-size:20px;font-weight:850}.chance-box span{font-size:12px;color:#a6c5d0}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button{appearance:none}.offer{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin-top:7px}.offer b{color:#a7edf2;margin-left:3px}.accept{display:flex;gap:7px;align-items:flex-start;font-size:10px;line-height:1.3;color:#b6d0d6;margin:8px 0}.accept input{width:17px;height:17px;accent-color:#6cdfec;margin:0;flex-shrink:0}.primary{height:44px;width:100%;background:linear-gradient(110deg,#d1fcf4,#69d8ed);border-color:#c1f8fc;color:#103744;font-size:18px;font-weight:950;letter-spacing:1px;box-shadow:inset 0 1px 0 #fff8,0 3px 0 #367f91}.primary span{margin-left:10px;font-size:21px}#status{font-size:10px;line-height:1.3;text-align:center;color:var(--muted);margin:7px 0 0}#recover{width:100%;padding:9px;margin-top:7px;border-color:#f6d494;color:#f6d494}.login{display:block;text-align:center;color:var(--cyan);margin:7px}footer{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:9px 0;font-size:9px;color:var(--muted)}footer a,footer button{color:#c3dde4;text-decoration:none;font-size:9px}footer button{border:0;background:none;padding:0}dialog{width:min(580px,94vw);max-height:86svh;overflow:auto;border:1px solid #537b87;border-radius:18px;padding:18px;background:#0e242e;color:var(--ink);font-size:13px}dialog::backdrop{background:#01070bcc;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0 0 10px}.dialog-head button{padding:8px 12px}details{border-top:1px solid #34505e;padding:12px 0}summary{font-weight:850;cursor:pointer}dialog p{color:#b0ccd5}dialog label{display:block;margin-top:10px}dialog input{display:block;width:100%;padding:10px;border:1px solid #4f7383;background:#071b25;color:var(--ink);border-radius:8px}dialog table{width:100%;border-collapse:collapse;font-size:11px}dialog th,dialog td{text-align:left;padding:7px 4px;border-bottom:1px solid #34505e}code{font-size:11px;overflow-wrap:anywhere}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px}@keyframes glow{from{opacity:.65}to{opacity:1}}@media(max-width:360px){#dice-app{padding:0 8px}.brand{font-size:22px}.wallet strong{font-size:18px}header{gap:6px}header button{width:32px;height:34px}.scene{padding:8px 10px}.digit-panel strong{font-size:60px}.controls{padding-left:10px;padding-right:10px}.stake input{font-size:21px}.chance-box,.stake-head label:last-child{width:78px}.offer{font-size:9px}.heading h1{font-size:21px}}@media(max-height:620px){header{height:44px}.digit-panel{padding-top:6px;padding-bottom:3px}.digit-panel strong{font-size:56px}.receipt{padding-top:6px;margin-top:6px}.controls{padding-top:7px}.accept{margin:6px 0}footer{padding:7px 0}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
