*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none;position:fixed;inset:0;width:100%;background:#2a1458;font-family:"Rubik","Varela Round","IBM Plex Sans Hebrew",Arial,sans-serif;color:#fff;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none}
button{font-family:inherit;color:inherit;cursor:pointer;border:none;touch-action:manipulation}
#cv{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}
.iconbtn{width:44px;height:44px;border-radius:50%;border:2px solid #ffe14d;background:#2c2150;font-size:21px;display:flex;align-items:center;justify-content:center;flex:none;padding:0}
.iconbtn:active{transform:translateY(2px)}
.hide{display:none!important}
#top{position:fixed;top:0;left:0;right:0;z-index:10;padding:max(6px,env(safe-area-inset-top)) 8px 0;pointer-events:none;display:none;flex-direction:column;gap:5px}
.game #top{display:flex}
#bar{display:flex;gap:8px;justify-content:flex-start;pointer-events:auto}
#sb{display:flex;flex-direction:column;gap:3px;pointer-events:none;direction:ltr;width:100%;max-width:520px;margin:0 auto}
.srow{display:flex;align-items:stretch;gap:2px;background:#0007;border-radius:8px;padding:2px;border:2px solid transparent}
.srow.cur{border-color:#ffe14d;background:#1b0d3a}
.sname{flex:0 0 52px;font:800 11px/1.1 Rubik,Arial;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;direction:auto}
.fc{flex:1 1 0;min-width:0;background:#ffffff18;border-radius:4px;text-align:center;display:flex;flex-direction:column;font:700 11px/1.15 Rubik,Arial}
.fc.t{flex:1.45 1 0}
.fc .m{display:flex;justify-content:center;gap:2px;height:14px;align-items:center;color:#ffe14d}
.fc .m b{flex:1;font-weight:800}
.fc .c{font-size:12px;font-weight:800;min-height:15px}
.fc.on{background:#ffe14d33;outline:1px solid #ffe14d}
.srow.rush{justify-content:space-between;align-items:center;padding:7px 12px;font:800 15px Rubik,Arial}.srow.rush b{color:#ffe14d}
#rushTop{white-space:pre-line;text-align:center;font-weight:800;line-height:1.5}
#turn{position:fixed;left:0;right:0;z-index:9;text-align:center;font:800 14px Rubik,Arial;text-shadow:0 2px 0 #0008;pointer-events:none;display:none}
.game #turn{display:block}
#banner{position:fixed;left:0;right:0;top:34%;z-index:12;text-align:center;pointer-events:none;font:900 clamp(34px,11vw,64px)/1.05 Rubik,Arial;color:#ffe14d;text-shadow:0 4px 0 #b65f10,0 0 24px #ffe14d99;opacity:0;transform:scale(.4);padding:0 10px}
#banner.show{animation:pop 1.5s ease-out forwards}
#banner small{display:block;font-size:.38em;color:#fff;text-shadow:0 2px 0 #0008;margin-top:6px}
@keyframes pop{0%{opacity:0;transform:scale(.3) rotate(-6deg)}14%{opacity:1;transform:scale(1.15) rotate(2deg)}26%{transform:scale(1) rotate(0)}82%{opacity:1}100%{opacity:0;transform:scale(1.05)}}
#ctl{position:fixed;left:0;right:0;bottom:0;z-index:10;display:none;flex-direction:column;align-items:center;gap:7px;padding:8px 12px max(10px,var(--sab,8px))}
.game #ctl{display:flex}
#ctl.ai{opacity:.45;pointer-events:none}
.crow{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;max-width:420px}
.crow label{font:800 13px Rubik,Arial;flex:0 0 auto;min-width:46px;text-align:center}
#ang{flex:1;height:34px;accent-color:#ffe14d;touch-action:none;direction:ltr}
.seg{display:flex;gap:6px;direction:ltr}
.seg button{min-width:56px;min-height:44px;border-radius:14px;background:#2c2150;border:2px solid #ffe14d;font:800 18px Rubik,Arial}
.seg button.sel{background:#ffe14d;color:#2c2150}
#meterWrap{width:100%;max-width:420px;height:26px;border-radius:13px;background:#0008;border:2px solid #fff6;position:relative;overflow:hidden;direction:ltr}
#zone{position:absolute;top:0;bottom:0;left:72%;width:23%;background:#5fd38d99}
#zone2{position:absolute;top:0;bottom:0;left:0;width:35%;background:#ff6a6a55}
#mk{position:absolute;top:-2px;bottom:-2px;width:8px;margin-left:-4px;border-radius:4px;background:#ffe14d;box-shadow:0 0 8px #ffe14d;left:0}
#meterWrap.pos{background:linear-gradient(90deg,#1f3b8a99,#2c2150cc 50%,#1f3b8a99)}#meterWrap.pos #zone,#meterWrap.pos #zone2{display:none}#meterWrap.pos::after{content:"";position:absolute;left:50%;top:5px;bottom:5px;width:2px;margin-left:-1px;background:#fff6}#meterWrap.pos #mk{width:18px;margin-left:-9px;border-radius:50%;background:#fff;box-shadow:0 0 8px #fff;top:2px;bottom:2px}
#go{width:100%;max-width:420px;min-height:54px;border-radius:18px;background:linear-gradient(#5fd38d,#2fb36a);box-shadow:0 4px 0 #1d7c48;font:900 21px Rubik,Arial}
#go:active{transform:translateY(3px);box-shadow:0 1px 0 #1d7c48}
#go.stop{background:linear-gradient(#ff8a6a,#e04a2a);box-shadow:0 4px 0 #8a2310}
#fth{position:fixed;left:50%;transform:translateX(-50%);z-index:11;max-width:min(92vw,420px);background:#fff;color:#2c2150;border-radius:16px;padding:8px 14px;font:800 14px/1.25 Rubik,Arial;text-align:center;box-shadow:0 3px 0 #0005;display:none;touch-action:manipulation}#fth.on{display:block}
#hintk{font:600 12px Rubik,Arial;opacity:.75;text-align:center;line-height:1.3}

/* big laptop / desktop windows: scale the menu & result screens up so they do not look tiny */
.an-menu{--an-accent:#6b3fb0}
.an-set{display:flex;flex-direction:column;gap:8px}.an-set>b{font-size:15px;color:var(--an-soft);font-weight:600}
#lgProg{display:flex;gap:6px;font-size:24px;justify-content:center}#lgOpp{font-weight:700;font-size:15px;text-align:center}
#rushTop{white-space:pre-line;text-align:center;font-weight:700;line-height:1.5;font-size:15px}
#ballRow{justify-content:center}
#over #oS{font-size:20px;font-weight:700;line-height:1.5}#over #oB{font-weight:700;color:var(--an-soft)}
html[data-an] .n1ov{padding-top:calc(var(--an-bar-h) + 8px)}
.an-sheet .keys{font-size:14px;color:var(--an-soft)}
#ballRow{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
/* short landscape phones: controls beside each other so the lane keeps its height */
@media (orientation:landscape) and (max-height:480px){
#top{flex-direction:row;align-items:flex-start;gap:8px}#bar{flex:0 0 auto}#sb{flex:1 1 auto}
#ctl{flex-direction:row;flex-wrap:wrap;gap:4px 10px;padding:4px 12px max(6px,var(--sab,6px))}
#ctl .crow,#ctl #meterWrap{flex:1 1 300px;width:auto;max-width:none}#ctl #go{flex:1 1 200px;width:auto;max-width:none;min-height:50px;font-size:19px}
.fc .m{height:12px}.fc .c{min-height:12px;font-size:11px}.sname{font-size:10px}.srow{padding:1px}
#hintk{display:none}.seg button{min-height:44px}}
.bsk{width:44px;height:44px;border-radius:50%;border:3px solid #fff;box-shadow:0 2px 0 #0006;padding:0;font-size:16px}.bsk.sel{border-color:#ffe14d;transform:scale(1.15)}.bsk.lock{opacity:.35;filter:grayscale(1)}
@media (orientation:landscape) and (max-height:520px){.an-menu .an-in.one{flex-direction:column;align-items:stretch}.an-menu .an-in.one>*{align-self:stretch;grid-column:auto;grid-row:auto}}
