:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#292344;background:#f8f7ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 2% 4%,#e9e3ff 0,transparent 35%),radial-gradient(circle at 95% 65%,#e8f4ff 0,transparent 35%),#f9f8ff}button,input,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a69bfa;outline-offset:3px}[hidden]{display:none!important}.shell{max-width:1050px;margin:0 auto;padding:13px clamp(12px,3vw,26px) 22px}.topbar,.brand,.header-right,.labelrow,.playerrow,.toolbar,.gamebar,.gameUnder,.pophead{display:flex;align-items:center;justify-content:space-between;gap:10px}.topbar{margin-bottom:12px}.brand{justify-content:start}.mark{width:41px;height:41px;display:grid;place-items:center;border-radius:14px;color:#fff;background:linear-gradient(145deg,#8c73ff,#5440c9);font-size:30px;font-weight:850;box-shadow:0 7px 18px #7065d737}.brand strong{display:block;font-size:20px;letter-spacing:-.5px}.brand small{display:block;color:#837a9c;font-size:11px;font-weight:650;margin-top:-2px}.badge{font-size:11px;color:#6c5db2;background:#eeebff;border-radius:999px;padding:6px 9px;font-weight:800}.tinyBtn,.outline{border:1px solid #e3def3;background:#fff;color:#6554ba;border-radius:11px;padding:9px 12px;font-size:12px;font-weight:780}.hero{display:flex;justify-content:space-between;align-items:center;padding:9px 3px 15px}.eyebrow{letter-spacing:1.7px;font-weight:850;font-size:10px;color:#8d7de1}.hero h1{font-size:clamp(24px,4vw,36px);letter-spacing:-1.3px;line-height:1.12;margin:4px 0}.hero h1 em{font-style:normal;color:#7661e4}.hero p{font-size:13px;color:#8b849d;margin:0}.hero-star{font-size:75px;color:#b6a4ff;line-height:.8;opacity:.7;margin-right:14px}.panel{background:white;border:1px solid #ede9f7;border-radius:21px;box-shadow:0 12px 34px #4537800a;padding:17px 20px}.config{position:relative}.labelrow{margin-bottom:6px}label{display:block;color:#534b73;font-size:12px;font-weight:850;margin-bottom:7px}.labelrow label{margin:0}.linkbtn{font-size:12px;font-weight:800;background:none;border:none;padding:4px;color:#7360da}.field{position:relative;min-width:0}.playerrow{justify-content:start}.playerrow select{max-width:330px}.select,.fakeSelect{width:100%;height:43px;background:#fdfcff;border:1.5px solid #e5e0f2;border-radius:11px;padding:0 12px;color:#3b3268;font-size:14px;font-weight:750;appearance:auto}.fakeSelect{display:flex;justify-content:space-between;align-items:center;text-align:left;appearance:none}.smallnote,.muted{color:#918ba4;font-size:12px}.settings3{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:11px;margin-top:12px}.options{display:grid;grid-template-columns:1fr 1fr;gap:11px;align-items:end;margin-top:13px}.compact{height:42px}.togglebox{border:1.5px solid #eee9fa;background:#faf9ff;display:flex;align-items:center;gap:9px;border-radius:11px;padding:8px 10px;margin:0;min-height:47px}.togglebox input{accent-color:#7964ed;width:19px;height:19px;flex-shrink:0}.togglebox b{display:block;font-size:12px;color:#4b3b85}.togglebox small{display:block;font-size:10px;color:#938ba8;margin-top:2px}.goalbox input{height:38px;border:1px solid #e1dcf3;border-radius:9px;padding:7px;width:100%;margin-top:6px}.mainBtn,.tinyPrimary{border:0;color:#fff;background:linear-gradient(125deg,#806af7,#5844d3);font-weight:850;border-radius:13px;box-shadow:0 8px 19px #6352d738}.mainBtn{width:100%;min-height:48px;margin-top:16px;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px}.mainBtn span{margin-left:8px}.tinyPrimary{padding:10px 20px}.error{margin:8px 0 0;color:#c8355c;font-size:12px;font-weight:700;min-height:0}.popover{position:absolute;top:100%;left:0;z-index:15;margin-top:5px;min-width:270px;width:max(260px,100%);padding:12px;background:#fff;border:1px solid #e6dffd;border-radius:16px;box-shadow:0 17px 39px #362d7340}.tablesGrid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:10px 0 13px}.tablePick{border:1px solid #e5e0f7;background:#faf9ff;color:#574e86;border-radius:10px;min-height:41px;font-weight:840}.tablePick[aria-pressed=true]{background:#7660e7;color:white;border-color:#7660e7}.popover .tinyPrimary{width:100%}.accordion{margin-top:11px;padding:0;overflow:hidden}.accordion summary{list-style:none;cursor:pointer;padding:15px 19px;font-size:13px;font-weight:850;color:#5e4bb6;display:flex;justify-content:space-between}.accordion summary::-webkit-details-marker{display:none}.accordion summary span{font-size:19px}.accordion[open] summary{border-bottom:1px solid #efedf8}.historyContent{padding:15px 18px 18px}.switches{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:13px}.tab{border:1px solid #e4e0f2;background:#fff;color:#736c88;border-radius:10px;padding:9px;font-size:12px;font-weight:770}.tab.active{background:#ece8ff;color:#5845ba;border-color:#cabffc}.recordGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}.recordTile{border:1px solid #ede8f8;background:#fbfaff;border-radius:12px;padding:11px}.recordTile strong{display:block;color:#4938a1;margin-bottom:5px}.recordTile p{font-size:12px;margin:4px 0;color:#746b92}.recordTile small{color:#9891aa}.micro{font-size:11px;line-height:1.5}.toolbar{justify-content:start;flex-wrap:wrap}hr{border:0;border-top:1px solid #eeeaf8;margin:16px 0}.historyContent input[type=email]{max-width:300px}#historyResults{min-height:38px}
#game{margin-top:7px}.gamebar{margin-bottom:12px}.gameMeta{text-align:center;display:flex;flex-direction:column;gap:2px}.gameMeta b{font-size:15px}.gameMeta small{color:#897fa0;font-size:11px}.gameStats{display:grid;grid-template-columns:1.4fr 1fr;gap:12px;margin-bottom:12px}.streakStat{background:linear-gradient(125deg,#8068f3,#5946d3);color:white;border-radius:19px;padding:15px 18px;box-shadow:0 9px 23px #6556d929}.streakStat small{display:block;font-size:11px;font-weight:800;color:#eeeaff}.streakStat strong{font-size:51px;line-height:1.03;display:block;margin:5px 0;font-weight:900}.bar{height:7px;border-radius:6px;background:#ffffff57;overflow:hidden;margin:7px 0}.bar>div{height:100%;width:0;background:#fff;transition:width .2s}.otherStats{background:#fff;border-radius:19px;border:1px solid #eeeafa;padding:11px 17px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px}.otherStats small{display:block;color:#857c9b;font-weight:800;font-size:11px;margin-bottom:7px}.otherStats b{font-size:30px;color:#5743b9}.gameCards{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(255px,.75fr);gap:12px}.problem,.keypadPanel{border:1px solid #ebe8f6;border-radius:21px;background:white;padding:16px;min-height:351px}.problem{position:relative;display:flex;flex-direction:column}.problemHead{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#847b99;font-weight:850}.problemHead strong{color:#604cca;background:#f2efff;padding:8px 11px;font-size:20px;border-radius:11px;min-width:82px;text-align:center;font-variant-numeric:tabular-nums}.problemHead strong.urgent{background:#fff0f3;color:#c23f68}.equation{flex:1;display:flex;align-items:center;justify-content:center;gap:13px;font-size:clamp(37px,5vw,64px);font-weight:900;letter-spacing:-1.8px;white-space:nowrap}.equal{color:#8978de}.answer{min-width:76px;min-height:75px;display:grid;place-items:center;background:#f3f0ff;color:#6956d8;border:2px solid #e7e0ff;border-radius:14px;padding:5px 12px}.timerTrack{height:9px;background:#efedf7;border-radius:9px;overflow:hidden}.timerTrack div{height:100%;background:linear-gradient(90deg,#6eccaa,#7560e8);width:100%}#gameHint{font-size:12px;color:#9990aa;margin:10px 0 0;text-align:center}.keypadPanel{display:flex;flex-direction:column;padding:12px}.keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:1}.key{border:1px solid #e9e4f3;background:#f9f8ff;color:#382d69;border-radius:13px;min-height:65px;font-weight:880;font-size:27px;touch-action:manipulation;user-select:none}.key:active{background:#eae4ff;transform:scale(.98)}.key.special{background:#eae6ff;color:#6451c9;font-size:23px}.key.clear{background:#7965e8;color:white;border:0}.keynote{text-align:center;color:#938ba6;font-size:10px;margin-top:9px}.gameUnder{padding:12px 4px;color:#918ba6;font-size:11px}.flash{position:absolute;bottom:40px;left:12px;right:12px;background:#f1fff6;border:1px solid #aee6c9;color:#18835c;padding:12px;text-align:center;border-radius:11px;font-size:14px;font-weight:850;z-index:2}.flash.bad{color:#bb375d;background:#fff2f5;border-color:#fac4d1}.cover{position:absolute;inset:0;background:#fdfcffed;z-index:5;border-radius:20px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:15px}.coverIcon{font-size:46px;background:#eae5ff;color:#604bc9;border-radius:20px;width:85px;height:85px;display:grid;place-items:center}.cover h2{color:#4c38b0;margin:14px 0 7px}.cover p{font-size:14px;color:#837a9a;margin:0 0 14px}.coverActions{display:flex;gap:9px;flex-wrap:wrap;justify-content:center}.coverActions button{border:0;background:#7762e6;color:#fff;border-radius:12px;padding:12px 15px;font-weight:850}.coverActions button.secondary{color:#6250ba;background:#eae5ff}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}footer{font-size:11px;color:#aca5b9;text-align:center;margin-top:17px}
@media(max-width:600px){.shell{padding:8px 10px 16px}.topbar{margin-bottom:6px}.mark{width:36px;height:36px;border-radius:12px;font-size:26px}.brand strong{font-size:18px}.hero{padding:5px 3px 10px}.hero h1{font-size:24px}.hero p{font-size:11px}.hero-star{font-size:49px;margin-right:6px}.panel{padding:13px;border-radius:17px}.select,.fakeSelect{height:40px;font-size:12px;padding:0 7px}.smallnote{display:none}.playerrow select{max-width:none}.settings3{gap:6px;margin-top:10px}.settings3 label{font-size:11px}.options{grid-template-columns:1fr;gap:8px;margin-top:10px}.togglebox{min-height:43px}.mainBtn{margin-top:10px;min-height:47px}.accordion{padding:0;margin-top:7px}.accordion summary{padding:12px}.historyContent{padding:12px}.popover{left:auto;right:0;width:min(300px,91vw)}.gamebar .outline{padding:8px;font-size:11px}.gameStats{gap:7px}.streakStat{padding:12px}.streakStat strong{font-size:41px}.otherStats{padding:8px;gap:5px}.otherStats b{font-size:26px}.otherStats small{font-size:10px}.gameCards{grid-template-columns:1fr;gap:9px}.problem{min-height:225px;padding:11px}.problemHead strong{font-size:17px;padding:5px 9px}.equation{font-size:clamp(38px,10vw,58px)}.answer{min-height:65px;min-width:72px}.keypadPanel{min-height:285px;padding:8px}.key{min-height:63px;font-size:25px}.keynote{margin-top:5px}.gameUnder{padding:8px 3px}.coverIcon{width:62px;height:62px;font-size:32px}.cover h2{margin-top:6px}}
.modeField{margin-top:16px}.settingsNote{line-height:1.6;margin:12px 0 0}.sessionStats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.sessionStats>div{padding:12px 15px;background:#fff;border:1px solid #e7e1f7;border-radius:15px}.sessionStats small{display:block;font-size:11px;color:#73698c}.sessionStats strong{display:block;margin-top:3px;font-size:24px;color:#5643b3;font-variant-numeric:tabular-nums}.lastResult{padding:12px 15px;border-radius:13px;background:#e7f8ee;color:#246844;font-size:13px;line-height:1.5}.storageNotice{padding:12px 16px;border-radius:12px;background:#fff4d9;color:#674a10;font-size:13px}.timeBest{background:#f0ecff;padding:12px;border-radius:10px;font-size:13px}#timesResults{border-top:1px solid #e9e3f6;margin-top:20px}#timesResults h3{font-size:16px;color:#5946a6}.hero p{max-width:650px;line-height:1.5}.badge{white-space:nowrap}@media(max-width:600px){.sessionStats{gap:6px}.sessionStats>div{padding:9px}.sessionStats strong{font-size:20px}.sessionStats small{font-size:10px}.modeField .select{font-size:11px}.hero-star{display:none}.settings3{grid-template-columns:1.1fr 1fr 1fr}.gameMeta b{max-width:130px;overflow-wrap:anywhere}.lastResult{font-size:12px}.popover{left:0;right:auto;width:min(300px,91vw);min-width:0}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}


@media(max-width:600px){.gameStats{margin-bottom:9px}.streakStat{padding:9px 11px}.streakStat strong{font-size:32px;margin:3px 0}.streakStat small{font-size:10px}.otherStats b{font-size:24px}.problem{min-height:175px}.equation{font-size:40px}.answer{min-height:50px;min-width:66px}.keypadPanel{min-height:242px}.key{min-height:48px;font-size:24px}.sessionStats{margin-bottom:9px}.gameUnder{padding:6px 3px}}

.onlinePanel{position:fixed;inset:0;z-index:30;background:#f8f7ff;overflow:auto;padding:20px}.onlineContent{max-width:850px;margin:auto}.onlineHeader{display:flex;align-items:center;justify-content:space-between;gap:15px}.onlineHeader h1{font-size:28px}.onlineContent .panel{margin:20px 0}.onlineContent label:not(.consent){display:block;margin:16px 0 6px;font-weight:650}.onlineContent button{margin:8px 6px 8px 0}.onlineContent p{line-height:1.6}.onlineContent .consent{display:flex;gap:10px;align-items:start;margin:16px 0;font-size:14px}.consent input{width:20px;height:20px;flex-shrink:0}.eventRibbon{display:block;width:100%;padding:15px;border:0;border-radius:14px;background:#eee7ff;color:#493487;text-align:left;font:inherit}.eventPick{display:block;width:100%;text-align:left;white-space:normal}.eventCountdown{font-size:24px;color:#674bc7}.eventEquation{text-align:center;font-size:clamp(30px,7vw,52px);font-weight:700;margin:25px 0}#eventKeys{max-width:340px;margin:auto}.podium{display:flex;gap:10px;flex-wrap:wrap}.podium>div{flex:1;min-width:130px;padding:16px;border-radius:15px;background:#eee7ff}#topTen{list-style:none;padding:0}#topTen li{padding:12px 0;border-bottom:1px solid #e8e1f5}.adminFields{max-width:600px}#cloudLogin{max-width:480px}.onlineContent [hidden],.eventRibbon[hidden]{display:none!important}@media(max-width:520px){.onlinePanel{padding:14px}.onlineHeader{align-items:start}.onlineHeader h1{font-size:23px}.onlineHeader button{font-size:12px}.onlineContent .historyContent{padding:16px}}
.objectiveHeader{display:flex;align-items:center;justify-content:space-between;gap:6px}
#objectiveFeedback{opacity:0;font-size:14px;font-weight:900;white-space:nowrap}
.streakStat.success{background:linear-gradient(125deg,#239f70,#137650)}
.streakStat.success #objectiveFeedback{opacity:1}
.streakStat .lastResult{padding:5px 7px;margin:6px 0 0;font-size:11px;line-height:1.3}
body.playing .topbar,body.playing footer,body.playing .eventRibbon{display:none}
body.playing .gameUnder{padding:0 3px 7px}
@media(max-width:600px){
 body.playing .shell{padding: max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));height:100dvh;display:flex;flex-direction:column}
 body.playing #game{margin:0;flex:1;min-height:0;display:flex;flex-direction:column;gap:4px}
 body.playing .gamebar{margin:0;min-height:40px}
 body.playing .gamebar button{min-height:40px}
 body.playing .gameMeta b{font-size:13px;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.playing .gameMeta small{font-size:10px;max-width:140px}
 body.playing .gameUnder{padding:0 2px;font-size:10px;min-height:12px}
 body.playing .sessionStats{gap:5px;margin:0}
 body.playing .sessionStats>div{padding:6px 8px;border-radius:11px}
 body.playing .sessionStats small{font-size:9px}
 body.playing .sessionStats strong{font-size:18px;margin-top:1px}
 body.playing .gameStats{gap:6px;margin:0;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
 body.playing .streakStat{padding:8px 10px;border-radius:14px}
 body.playing .streakStat strong{font-size:29px;margin:2px 0}
 body.playing .streakStat small{font-size:9px;line-height:1.3}
 body.playing .bar{height:5px;margin:4px 0}
 body.playing .otherStats{padding:8px;border-radius:14px;grid-template-columns:1fr;gap:5px}
 body.playing .otherStats>div{display:flex;align-items:center;justify-content:space-between;gap:4px}
 body.playing .otherStats small{font-size:9px;margin:0}
 body.playing .otherStats b{font-size:21px}
 body.playing .lastResult{font-size:10px;padding:4px 5px;margin-top:4px}
 body.playing .gameCards{flex:1;min-height:311px;grid-template-columns:1fr;grid-template-rows:minmax(100px,.8fr) minmax(205px,1.2fr);gap:6px}
 body.playing .problem{min-height:0;padding:9px;border-radius:15px}
 body.playing .problemHead{font-size:10px}
 body.playing .problemHead strong{font-size:15px;padding:3px 8px;min-width:70px}
 body.playing .equation{font-size:clamp(32px,10vw,46px);gap:9px;letter-spacing:-1px}
 body.playing .answer{min-height:45px;min-width:62px;padding:3px 7px;border-radius:11px}
 body.playing .timerTrack{height:5px}
 body.playing #gameHint,body.playing .keynote{display:none}
 body.playing .keypadPanel{min-height:0;padding:6px;border-radius:15px}
 body.playing .keys{gap:5px;grid-template-rows:repeat(4,minmax(44px,1fr))}
 body.playing .key{min-height:44px;font-size:25px;border-radius:11px}
 body.playing .flash{bottom:9px;left:8px;right:8px;padding:7px;font-size:12px}
 body.playing .cover{padding:8px;border-radius:15px}
 body.playing .coverIcon{display:none}
 body.playing .cover h2{font-size:19px;margin:0 0 4px}
 body.playing .cover p{font-size:11px;margin:0 0 6px}
 body.playing .coverActions button{padding:9px 12px;min-height:36px}
}
