
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#0d1728;color:#f3f7fd;font:14px system-ui,-apple-system,sans-serif;user-select:none}body{background:radial-gradient(ellipse at 50% 0,#2a426b,#101d32 52%,#080e1c)}button,input{font:inherit}button{border:1px solid #ffffff21;border-radius:10px;background:linear-gradient(145deg,#294663,#192c46);color:#e9f2fa;font-weight:800;padding:9px 13px;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.4;cursor:default}.primary{background:linear-gradient(130deg,#73f2cc,#28b2c5);color:#092534;border:0}.gold{background:linear-gradient(120deg,#ffe09b,#e6a344);color:#382509;border:0}.head{position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:8px;background:#111e33ee;border-bottom:1px solid #fff2;padding:9px 12px}.brand{font-size:20px;font-weight:950;font-style:italic;letter-spacing:-.04em}.brand em{color:#78e8dc;font-style:normal}.wallet{font-size:12px;color:#ffda8a;font-weight:850;white-space:nowrap}.shell{max-width:1000px;margin:auto;padding:12px}.tabs,.row{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.tabs button{flex:1;font-size:11px;padding:8px;min-width:75px}.hero{display:flex;align-items:center;justify-content:space-between;margin:12px 0;border:1px solid #6ed4dd40;border-radius:18px;padding:20px;background:radial-gradient(ellipse at 85% 60%,#246c8255,transparent 60%),linear-gradient(130deg,#1b4559,#16233d);overflow:hidden}.hero h1{font-size:clamp(26px,5vw,48px);line-height:.95;letter-spacing:-.05em;margin:8px 0}.hero svg{width:32%;max-height:170px}.eyebrow{font-size:10px;font-weight:900;color:#83e9e1;letter-spacing:.12em}.muted,p{color:#a8bdd4;font-size:12px;line-height:1.4}p{margin:5px 0 8px}h2{font-size:19px;margin:15px 0 8px}h3{font-size:15px;margin:5px 0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.card{background:linear-gradient(145deg,#233b57,#132239);border:1px solid #809cbd2e;border-radius:13px;padding:12px;min-width:0}.card button{width:100%;margin-top:7px;font-size:12px}.card small{color:#83e6dd;font-weight:850;font-size:10px}.bar{height:6px;background:#0a1426;border-radius:8px;margin:7px 0;overflow:hidden}.bar i{height:100%;display:block;background:linear-gradient(90deg,#32bcbf,#82efce);border-radius:8px}.cueArt{height:9px;border-radius:5px;margin:14px 0;background:linear-gradient(90deg,#111927 3%,var(--cue) 3% 40%,#e0bf89 41% 96%,#eee6c8 96% 98%,#68cde0 98%);box-shadow:0 4px 6px #0007}.hallArt{height:60px;border-radius:8px;border:6px solid var(--rail);background:var(--felt);box-shadow:inset 0 0 20px #0004;display:grid;place-items:center;font-weight:950;font-size:21px}.selected{border-color:#77e8d1}.stat{font-size:25px;font-weight:900;color:#ffd589}.road{display:flex;align-items:center;gap:10px;margin:6px 0}.road .medal{height:38px;width:38px;display:grid;place-items:center;background:#55462e;border-radius:50%;font-weight:950;color:#ffda8e;flex:none}.road .medal.done{background:#206b50;color:#baffcf}.road .desc{flex:1}.note{padding:9px;background:#214552;color:#c9f0e9;border-radius:8px;font-size:12px;margin:8px 0}.foot{font-size:10px;color:#7e95ac;text-align:center;margin:14px 0}.game{display:flex;flex-direction:column;min-height:100dvh;max-width:1500px;margin:auto}.gameHead{display:flex;align-items:center;justify-content:space-between;padding:5px 8px;background:#101e33;font-size:11px;font-weight:850;gap:5px}.gameHead button{font-size:11px;padding:5px 9px}.score{display:grid;grid-template-columns:1fr .8fr 1fr;gap:5px;padding:4px 8px}.player{display:flex;align-items:center;gap:6px;min-width:0;padding:5px;border:1px solid #ffffff20;border-radius:9px;background:#172a42}.player.active{border-color:#6befca;box-shadow:inset 0 -2px #6befca}.player.right{flex-direction:row-reverse;text-align:right}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;font-weight:950;font-size:18px;background:linear-gradient(140deg,#3dc5c4,#3e59b0);flex:none}.right .avatar{background:linear-gradient(140deg,#eac066,#9b456f)}.ptext{min-width:0;flex:1}.pname{font-size:12px;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dots{display:flex;flex-wrap:wrap;gap:2px}.right .dots{justify-content:flex-end}.dot{display:inline-grid;place-items:center;width:11px;height:11px;border:1px solid #fff5;border-radius:50%;font-size:7px;font-weight:900}.dot.out{opacity:.2}.status{background:#0d1b2f;color:#c6f3e9;display:grid;place-items:center;text-align:center;font-size:10px;padding:4px;border-radius:8px}.feedback{text-align:center;color:#ffda91;font-size:11px;font-weight:850;height:17px;line-height:17px}.field{flex:1;min-height:0;display:grid;grid-template-columns:60px minmax(0,1fr) 60px;gap:5px;align-items:center;padding:0 7px}.wrap{display:grid;place-items:center;min-width:0;min-height:0}.wrap canvas{display:block;touch-action:none;max-width:100%;max-height:100%}.rail{display:flex;flex-direction:column;gap:5px;align-items:center}.rail button{width:100%;font-size:10px;padding:6px 3px}.power{height:clamp(90px,38dvh,310px);width:37px;border-radius:8px;background:linear-gradient(180deg,#db7a4e,#edcc67,#32b8ad,#135073);position:relative;border:1px solid #b4d6e188;touch-action:none;box-shadow:inset 0 0 12px #0005}.power i{position:absolute;top:0;left:0;right:0;background:#0a122970;border-bottom:3px solid #fff4cd;pointer-events:none}.small{font-size:10px;color:#bacce0}.bottom{display:flex;gap:6px;align-items:center;padding:6px 8px;background:#101f34}.bottom .primary{flex:1}.bottom button{font-size:12px;padding:8px}.bottom span{flex:1;font-size:10px;color:#aec2da}.overlay{position:fixed;inset:0;z-index:30;display:grid;place-items:center;background:#050a14b9;backdrop-filter:blur(4px);padding:10px;overflow:auto}.overlay[hidden], [hidden]{display:none!important}.modal{width:min(430px,100%);max-height:94dvh;overflow:auto;background:linear-gradient(145deg,#28455e,#122139);border:1px solid #8eb5d54a;border-radius:17px;padding:18px;text-align:center;box-shadow:0 10px 60px #0008}.modal h2{font-size:25px;color:#eefbf7}.modal .row button{flex:1}.spin{margin:12px auto;width:105px;height:105px;border-radius:50%;background:radial-gradient(circle at 30% 20%,white,#b4c7d1);position:relative;touch-action:none}.spin i{position:absolute;left:50%;top:50%;width:12px;height:12px;border:2px solid #d54b49;border-radius:50%;transform:translate(-50%,-50%)}.toast{position:fixed;bottom:10px;left:50%;transform:translateX(-50%);z-index:40;background:#225550;color:#edfff4;border:1px solid #6bcebb;border-radius:9px;padding:9px 14px;font-size:12px;max-width:90%}.rotate{display:none}.name{width:100%;background:#0b1627;color:white;padding:10px;border:1px solid #fff3;border-radius:7px}
@media(max-width:600px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shell{padding:8px}.hero{padding:14px}.field{grid-template-columns:40px minmax(0,1fr) 40px;gap:3px;padding:0 3px}.power{width:29px;height:160px}.rail button{font-size:9px}.score{padding:3px}.avatar{width:25px;height:25px;font-size:14px}.pname{font-size:10px}.rotate{display:block;text-align:center;font-size:10px;color:#8ca9c3}.bottom{flex-wrap:wrap}.bottom span{min-width:100px}}
@media(orientation:landscape) and (max-height:550px){.game{height:100dvh;min-height:0;overflow:hidden}.wrap{height:100%}.field{grid-template-columns:48px minmax(0,1fr) 48px;overflow:hidden}.power{height:clamp(70px,33dvh,230px);width:30px}.gameHead{padding:2px 7px}.score{padding:3px 6px}.player{padding:3px 5px}.avatar{width:26px;height:26px;font-size:14px}.pname{font-size:10px}.small{font-size:9px}.dot{width:9px;height:9px;font-size:6px}.rail button{padding:4px 2px;font-size:9px}.rail{gap:3px}.feedback{height:13px;line-height:13px;font-size:9px}.bottom{padding:3px 6px}.bottom button{font-size:10px;padding:5px 8px}.hero{padding:12px;min-height:115px}.hero svg{max-height:100px}.hero h1{font-size:30px}.modal{padding:10px}.modal h2{font-size:20px;margin:4px 0}}
