:root{--blue:#2d6cdf;--blue-d:#1d4fb0;--yellow:#ffc83d;--yellow-d:#e0a400;--green:#22b35a;--green-d:#178a43;--red:#e5484d;--ink:#1b2440;--card:#fffffff5;--shadow:0 6px 0 #0000002e, 0 10px 24px #0000002e;--font:"Segoe UI", "Nunito", "Trebuchet MS", system-ui, -apple-system, sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{height:100%;font-family:var(--font);color:var(--ink);-webkit-user-select:none;user-select:none;touch-action:none;overscroll-behavior:none;background:#9cc9f5;margin:0;overflow:hidden}#oyun{outline:none;width:100%;height:100%;display:block;position:fixed;inset:0}#ui{pointer-events:none;position:fixed;inset:0}#ui>*{pointer-events:auto}.hidden{display:none!important}.btn{font-family:var(--font);color:#fff;background:var(--blue);box-shadow:0 6px 0 var(--blue-d), 0 10px 20px #0003;cursor:pointer;letter-spacing:.3px;border:0;border-radius:22px;padding:14px 26px;font-size:22px;font-weight:900;transition:transform 80ms,box-shadow 80ms,filter .15s}.btn:hover{filter:brightness(1.06)}.btn:active{box-shadow:0 2px 0 var(--blue-d), 0 4px 10px #0003;transform:translateY(4px)}.btn.yellow{background:var(--yellow);color:var(--ink);box-shadow:0 6px 0 var(--yellow-d), 0 10px 20px #0003}.btn.green{background:var(--green);box-shadow:0 6px 0 var(--green-d), 0 10px 20px #0003}.btn.white{color:var(--ink);background:#fff;box-shadow:0 6px #c9d3e6,0 10px 20px #00000026}.btn.big{border-radius:30px;padding:18px 64px;font-size:40px}#loading{z-index:50;background:linear-gradient(#5aa7f2,#bfe2ff 70%,#8fd16a 70.2%,#6fbf4a);flex-direction:column;justify-content:center;align-items:center;gap:22px;display:flex;position:fixed;inset:0}#loading .logo{font-size:64px;animation:1.1s ease-in-out infinite bounce}#loading .bar{background:#ffffffb3;border:4px solid #fff;border-radius:20px;width:min(460px,80vw);height:30px;overflow:hidden;box-shadow:inset 0 3px 6px #00000026}#loading .fill{background:repeating-linear-gradient(45deg, var(--yellow) 0 18px, #ffd86b 18px 36px);width:0%;height:100%;transition:width .2s}#loading .label{color:#fff;text-shadow:0 2px 4px #0000004d;font-size:22px;font-weight:800}@keyframes bounce{0%,to{transform:translateY(0)rotate(-3deg)}50%{transform:translateY(-14px)rotate(3deg)}}.screen{z-index:20;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}#title{background:radial-gradient(#fff0 30%,#14285a59);flex-direction:column;gap:26px}#title h1{color:#fff;text-align:center;text-shadow:0 5px 0 var(--blue-d), 0 10px 22px #00000059;-webkit-text-stroke:2px #1b244040;margin:0;font-size:clamp(40px,8vw,88px);font-weight:900;line-height:1.02}#title h1 span{color:var(--yellow)}#title .sub{color:#fff;background:#1b244073;border-radius:999px;padding:8px 18px;font-size:22px;font-weight:800}#title .row{gap:14px;display:flex}#setup{justify-content:flex-start;padding:16px}.card{background:var(--card);box-shadow:var(--shadow);border-radius:28px;padding:22px 24px}#setup .card{flex-direction:column;gap:14px;width:min(520px,94vw);max-height:94vh;margin-left:max(0px,8vw - 40px);display:flex;overflow:auto}.card h2{margin:0;font-size:30px;font-weight:900}.field label{margin-bottom:6px;font-size:19px;font-weight:900;display:block}.field input[type=text]{width:100%;font-family:var(--font);color:var(--ink);-webkit-user-select:text;user-select:text;border:4px solid #cfd9ee;border-radius:18px;outline:none;padding:12px 18px;font-size:28px;font-weight:800}.field input[type=text]:focus{border-color:var(--blue)}.err{color:#fff;background:var(--red);border-radius:14px;padding:8px 14px;font-size:17px;font-weight:800}.picker{align-items:center;gap:12px;display:flex}.picker .btn{padding:8px 18px;font-size:26px}.picker .val{text-align:center;flex:1;font-size:22px;font-weight:900}.swatches{flex-wrap:wrap;gap:12px;display:flex}.swatch{cursor:pointer;border:5px solid #fff;border-radius:50%;width:56px;height:56px;box-shadow:0 0 0 3px #cfd9ee,0 4px 8px #0003}.swatch.on{box-shadow:0 0 0 5px var(--blue), 0 4px 8px #0003;transform:scale(1.08)}.toggle{cursor:pointer;align-items:center;gap:12px;font-size:19px;font-weight:800;display:flex}.toggle .sw{background:#cfd9ee;border-radius:20px;flex:none;width:64px;height:36px;transition:background .15s;position:relative}.toggle .sw:after{content:"";background:#fff;border-radius:50%;width:28px;height:28px;transition:left .15s;position:absolute;top:4px;left:4px;box-shadow:0 2px 4px #0003}.toggle.on .sw{background:var(--green)}.toggle.on .sw:after{left:32px}.small{opacity:.75;font-size:15px;font-weight:700}details summary{cursor:pointer;font-size:17px;font-weight:800}#hud{pointer-events:none;z-index:10;position:fixed;inset:0}#hud>*{pointer-events:auto}.pill{background:#ffffffeb;border-radius:999px;align-items:center;gap:8px;padding:8px 16px;font-size:22px;font-weight:900;display:flex;box-shadow:0 4px #0000001f,0 6px 14px #00000026}#hud .tl{left:max(12px, env(safe-area-inset-left));top:max(12px, env(safe-area-inset-top));align-items:center;gap:10px;display:flex;position:absolute}#hud .tr{right:max(12px, env(safe-area-inset-right));top:max(12px, env(safe-area-inset-top));gap:10px;display:flex;position:absolute}.iconbtn{cursor:pointer;width:58px;height:58px;font-size:28px;font-family:var(--font);color:var(--ink);background:#fff;border:0;border-radius:20px;justify-content:center;align-items:center;font-weight:900;display:flex;box-shadow:0 5px #c9d3e6,0 8px 14px #00000026}.iconbtn:active{transform:translateY(3px);box-shadow:0 2px #c9d3e6}.iconbtn.on{background:var(--yellow);box-shadow:0 5px 0 var(--yellow-d), 0 8px 14px #00000026}#net{cursor:pointer;font-size:17px}#net .dot{background:#aaa;border-radius:50%;width:14px;height:14px}#net.online .dot{background:var(--green)}#net.connecting .dot{background:var(--yellow)}#prompt{cursor:pointer;padding:12px 22px 12px 12px;font-size:26px;animation:.25s pop;position:absolute;bottom:22%;left:50%;transform:translate(-50%)}#prompt kbd{background:var(--yellow);font-family:var(--font);box-shadow:0 3px 0 var(--yellow-d);border-radius:12px;padding:2px 12px;font-weight:900}#prompt.nokey kbd{display:none}#prompt.nokey{opacity:.9;cursor:default;padding-left:22px;font-size:20px}@keyframes pop{0%{transform:translate(-50%)scale(.7)}to{transform:translate(-50%)scale(1)}}#toasts{pointer-events:none;flex-direction:column;align-items:center;gap:8px;display:flex;position:absolute;top:84px;left:50%;transform:translate(-50%)}.toast{color:#fff;white-space:nowrap;background:#1b2440d9;border-radius:999px;padding:8px 18px;font-size:19px;font-weight:800;animation:.25s toastin}@keyframes toastin{0%{opacity:0;transform:translateY(-10px)}}#speedo{right:max(18px, env(safe-area-inset-right));bottom:max(18px, env(safe-area-inset-bottom));color:#fff;pointer-events:none;background:radial-gradient(circle at 50% 40%,#2b3558,#151b30);border:7px solid #fff;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:170px;height:170px;display:flex;position:absolute;box-shadow:0 8px 20px #0000004d}#speedo canvas{width:100%;height:100%;position:absolute;inset:0}#speedo .num{z-index:1;font-size:50px;font-weight:900;line-height:1}#speedo .unit{opacity:.8;z-index:1;font-size:16px;font-weight:800}#speedo .icons{z-index:1;gap:6px;height:22px;margin-top:4px;font-size:18px;display:flex}#speedo .icons span{opacity:.18}#speedo .icons span.on{opacity:1}#carbar{width:-moz-fit-content;width:fit-content;left:0;right:0;bottom:max(14px, env(safe-area-inset-bottom));flex-wrap:wrap;justify-content:center;gap:8px;max-width:calc(100vw - 400px);margin:0 auto;display:flex;position:absolute}#carbar .iconbtn{gap:6px;width:auto;min-width:58px;padding:0 12px;font-size:24px}#carbar .iconbtn small{opacity:.6;font-size:13px}#emotes{left:max(12px, env(safe-area-inset-left));flex-direction:column;gap:10px;display:flex;position:absolute;top:50%;transform:translateY(-50%)}#emotes .iconbtn{width:54px;height:54px;font-size:28px}.celebrate{pointer-events:none;z-index:30;color:#fff;text-shadow:0 5px 0 var(--yellow-d), 0 8px 20px #00000059;justify-content:center;align-items:center;font-size:clamp(40px,7vw,80px);font-weight:900;animation:3.2s forwards celebrate;display:flex;position:fixed;inset:0}@keyframes celebrate{0%{opacity:0;transform:scale(.3)}15%{opacity:1;transform:scale(1.1)}25%{transform:scale(1)}85%{opacity:1}to{opacity:0}}.confetti{z-index:29;pointer-events:none;width:12px;height:18px;animation:linear forwards fall;position:fixed;top:-20px}@keyframes fall{to{transform:translateY(110vh)rotate(720deg)}}#touch{pointer-events:none;position:absolute;inset:0}#touch>*{pointer-events:auto}#joy{left:max(24px, env(safe-area-inset-left));bottom:max(24px, env(safe-area-inset-bottom));touch-action:none;background:#ffffff4d;border:5px solid #ffffffd9;border-radius:50%;width:190px;height:190px;position:absolute}#joy .knob{background:#fff;border-radius:50%;width:84px;height:84px;margin:-42px 0 0 -42px;position:absolute;top:50%;left:50%;box-shadow:0 6px 12px #0000004d}#tbtns{right:max(20px, env(safe-area-inset-right));bottom:max(24px, env(safe-area-inset-bottom));grid-template-columns:repeat(2,96px);gap:14px;display:grid;position:absolute}.tbtn{width:96px;height:96px;font-family:var(--font);color:var(--ink);touch-action:none;background:#ffffffeb;border:0;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;font-size:17px;font-weight:900;line-height:1.05;display:flex;box-shadow:0 6px #0000002e,0 8px 18px #0003}.tbtn b{font-size:34px}.tbtn:active,.tbtn.down{transform:translateY(4px);box-shadow:0 2px #0000002e}.tbtn.primary{background:var(--yellow)}body.touch #speedo{transform-origin:bottom;bottom:6px;left:50%;right:auto;transform:translate(-50%)scale(.72)}body.touch #carbar{max-width:96vw;top:84px;bottom:auto}body.touch #prompt{bottom:250px}body.touch #toasts{top:156px}.overlay{z-index:40;background:#0f193773;justify-content:center;align-items:center;padding:14px;display:flex;position:fixed;inset:0}.menu{flex-direction:column;gap:14px;width:min(560px,96vw);max-height:94vh;display:flex;overflow:auto}.menu .btn{width:100%}.menu .head{justify-content:space-between;align-items:center;gap:10px;display:flex}.menu table{border-collapse:collapse;width:100%;font-size:17px}.menu td{border-bottom:2px solid #eef2fa;padding:6px 4px}.menu kbd{font-weight:900;font-family:var(--font);white-space:nowrap;background:#eef2fa;border-radius:8px;padding:2px 8px;box-shadow:0 2px #cfd9ee}.seg{gap:8px;display:flex}.seg .btn{flex:1;padding:10px;font-size:19px}.seg .btn.off{color:var(--ink);background:#eef2fa;box-shadow:0 4px #cfd9ee}input[type=range]{width:100%;height:40px;accent-color:var(--blue)}.plist{flex-direction:column;gap:8px;display:flex}.plist .p{background:#f3f6fc;border-radius:16px;align-items:center;gap:10px;padding:8px 10px;font-size:19px;font-weight:800;display:flex}.plist .p .c{border:3px solid #fff;border-radius:50%;width:22px;height:22px;box-shadow:0 0 0 2px #cfd9ee}.plist .p .n{flex:1}.plist .iconbtn{width:46px;height:46px;font-size:22px}.about p{margin:4px 0;font-size:16px;line-height:1.4}@media (max-width:700px),(max-height:520px){.btn.big{padding:14px 44px;font-size:30px}#speedo{width:130px;height:130px}#speedo .num{font-size:38px}.iconbtn{width:50px;height:50px;font-size:24px}#carbar{max-width:96vw}.tbtn{width:84px;height:84px}#tbtns{grid-template-columns:repeat(2,84px)}#joy{width:160px;height:160px}}.menu .head .btn{width:auto}
