/* Tobigo Arcade: colours inspired by @tobigo.officiel, not an official brand manual. */
:root{--tobigo-blue:#173e85;--tobigo-royal:#086bd3;--tobigo-orange:#f8a52b;--tobigo-ink:#12336a}
html{background:#080b24;color-scheme:dark}body{background:#080b24;color:#fff}
body:before{content:'';position:fixed;inset:0;pointer-events:none;background:linear-gradient(#080b2438,#080b2438),url('assets/tobigo-neon-background.png') center/cover no-repeat;z-index:0}
.shell{position:relative;padding-top:14px}.mast{border-color:#ffffff35;padding-bottom:12px;gap:20px}.wordmark{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}.wordmark img{width:68px;height:68px;object-fit:contain;border-radius:50%}.wordmark span{color:#fff;font:850 11px system-ui;letter-spacing:4px;border-left:1px solid #ffffff60;padding-left:16px}.tag{color:#fff;letter-spacing:4px;font-size:11px}.status{background:#ffffff14;border:1px solid #ffffff25;padding:10px 14px;border-radius:24px;color:#ffe292;font-weight:800;letter-spacing:1px}
.layout{gap:45px;min-height:calc(100dvh - 145px)}.intro .kicker{color:#a8dbff;font-size:10px;letter-spacing:1.9px;line-height:1.8}.intro h1{font-size:clamp(48px,5.8vw,84px);line-height:.97;letter-spacing:-4px;font-style:italic;text-shadow:3px 4px 0 #092c6e;transform:rotate(-3deg);transform-origin:left center;margin:23px 0 28px}.intro h1 em{color:#ffc24e;text-shadow:3px 4px 0 #a55b17}.intro>p:last-of-type{color:#d1eaff;font-size:14px;max-width:275px}.edition{color:#fff;border-color:#ffffff55;font-size:9px;background:#0a2f7280;transform:rotate(-2deg);padding:12px 14px}
.machine{background:#082961;border:2px solid #64b7ff;border-radius:31px;box-shadow:0 0 0 5px #ffffff0a,0 25px 70px #031c6470;height:min(790px,calc(100dvh - 155px));padding:9px}.screen{background:#f5faff;color:var(--tobigo-ink);border-radius:21px}.top{padding:8px 16px;border-color:#dbe8f5;background:white;min-height:68px}.game-brand{display:flex;align-items:center;gap:8px}.game-brand>img{width:46px;height:46px;border-radius:50%}.game-brand>span{font-size:13px;letter-spacing:3px}.game-brand small{display:block;font-size:7px;letter-spacing:1px;color:#4276ab;margin-top:4px}.icon{border-color:#d0e1f0;color:var(--tobigo-blue);background:#f3f8fc}
.lobby{gap:11px;padding:17px 20px;background:radial-gradient(ellipse at 50% 35%,#e2f1ff,transparent 60%),#f8fbff}.pill{background:#d8ecff;color:#15549a;font-size:9px;letter-spacing:1px;padding:7px 12px}.lobby h2{color:#123d83;font-style:italic;letter-spacing:-1.7px;font-size:37px;line-height:1.02;font-weight:950}.lobby h2 span{color:#db7912}.hero{min-height:120px;max-height:205px;margin:0 -5px}.hero:before{width:170px;height:170px;background:repeating-conic-gradient(from 0deg,#248be9 0deg 12deg,#389cec 12deg 24deg);box-shadow:0 0 0 12px #e3f0ff,0 0 0 13px #b6d8f4;transform:rotate(-10deg)}.hero img{width:88%;height:calc(100% - 24px);max-height:180px;filter:drop-shadow(7px 15px 8px #123d8330);transform:rotate(-11deg)}.hero b{background:#ffc34d;border:3px solid white;outline:1px solid #e49728;box-shadow:3px 5px 0 #14418230;color:#113c80;font-size:10px;right:4px;top:12px;transform:rotate(12deg)}
.hint,.record{color:#54718f}.primary{background:linear-gradient(120deg,#0c6bd0,#16448e);color:white;box-shadow:0 4px 0 #0b2f69;border:1px solid #3a90e2;min-height:53px;transition:transform .15s,box-shadow .15s}.primary:hover{background:#1559b3;transform:translateY(-1px)}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #0b2f69}.primary span{color:#ffce63;font-size:20px}.secondary{border-color:#bed2e8;color:#144a8b;background:#f0f6fc}.secondary:hover{background:#e2f0ff}.account-entry{font-size:11px;min-height:43px;margin-top:2px}.rule{border-color:#ffffff25;padding:18px 0}.side h2{color:#abdaff;font-size:10px;letter-spacing:2px}.rule strong{background:#ffffff12;color:#ffc44f;border:1px solid #ffffff2b;border-radius:12px;width:42px;height:42px;min-width:42px;display:grid;place-items:center;font-size:18px;transform:rotate(-5deg)}.rule b{font-size:13px;color:#fff}.rule p{color:#c1ddf7;font-size:12px}.keys{color:#b1d6fa;margin-top:20px}kbd{color:#fff;border-color:#74a9da;background:#143e79}.brand-link{display:flex;justify-content:space-between;gap:10px;border:1px solid #78b0e1;background:#ffffff0b;border-radius:12px;margin-top:23px;padding:13px;color:#fff;text-decoration:none;font-weight:700;font-size:12px}.brand-link span{color:#ffca54}.foot{color:#b1d1f3;letter-spacing:1px;font-size:8px;padding-top:12px}
.hud span{color:#587ca2}.hud b{color:#123f86}.arena{background:#123a80;box-shadow:inset 0 0 0 1px #ffffff12;border-radius:17px}.track{background:#dae7f7}.track i{background:linear-gradient(90deg,#ffac27,#ffcf65)}.meter label{color:#12427e}.play-tools{color:#6686a8}.overlay{background:#f5fafff5;color:#123d83}.overlay p{color:#56779c}.big-score{color:#1766be;text-shadow:3px 3px 0 #c8e1ff}.toast{background:#16478d;color:#fff;box-shadow:0 5px 30px #051c5330}.account-dialog{background:#f7fbff;color:#163f7c;border-color:#91bce3}.account-dialog input{border-color:#bfd3e9;color:#143e77}.account-note{color:#52749b}.account-row{border-color:#d3e2f2}.account-dialog:modal{box-shadow:0 20px 80px #031b634d}.account-dialog::backdrop{background:#03285ac2}
@media(max-width:1050px){.layout{gap:28px}.intro h1{font-size:66px}.machine{height:min(790px,calc(100dvh - 150px))}}
@media(max-width:700px){.shell{padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}.layout{height:100%;min-height:0}.machine{height:100%;min-height:0;border-radius:26px;padding:5px}.top{min-height:62px;padding:6px 14px}.game-brand>img{width:43px;height:43px}.lobby{padding:14px 15px;gap:10px}.lobby h2{font-size:35px}.hero{max-height:225px}.hero img{max-height:195px}.primary{min-height:51px}.hint{font-size:11px}.account-entry{margin-top:0}.record{font-size:10px}}
@media(max-height:680px){.lobby{padding:10px 15px;gap:8px}.lobby h2{font-size:29px}.hero{min-height:75px;max-height:130px}.hero:before{width:95px;height:95px}.hero img{max-height:110px;height:calc(100% - 16px)}.hero b{width:46px;height:46px;font-size:8px}.pill{font-size:8px}.top{min-height:54px}.game-brand>img{width:38px;height:38px}.primary{min-height:46px}.account-entry{min-height:40px}.hint{font-size:10px}}
@media(orientation:landscape) and (max-height:550px){.layout{height:calc(100dvh - 10px)}.machine{height:100%;border-radius:23px}.top{padding:5px 8px;min-height:50px;background:transparent}.game-brand>img{width:35px;height:35px}.game-brand>span{font-size:10px;letter-spacing:2px}.game-brand small{font-size:6px}.lobby{padding:8px 25px;gap:6px 30px;background:#f5faff}.lobby h2{font-size:29px}.lobby .pill{margin-top:36px}.hero{max-height:130px;height:130px;grid-row:3/8}.hero img{max-height:105px}.lobby .account-entry{grid-column:2}.hud{padding-top:58px}.screen{grid-template-columns:190px 1fr}.hero:before{width:95px;height:95px}}
@media(prefers-reduced-motion:reduce){.primary{transition:none}}
.hero:before{width:clamp(72px,13vh,130px);height:clamp(72px,13vh,130px)}.lobby{scrollbar-width:thin;scrollbar-color:#b4d4ef transparent}
@media(min-width:701px) and (min-height:551px) and (max-height:780px){.top{min-height:58px;padding:5px 14px}.lobby{padding:8px 16px;gap:7px}.lobby h2{font-size:30px}.hero{min-height:64px;max-height:135px}.hero img{height:calc(100% - 12px);max-height:115px}.hero b{width:44px;height:44px;font-size:8px;top:5px}.hero:before{width:70px;height:70px}.hint{font-size:10px}.pill{font-size:8px}.primary{min-height:46px}.account-entry{min-height:38px}.record{font-size:10px}}
@media(orientation:landscape) and (max-height:550px){.shell{padding:5px max(8px,env(safe-area-inset-right)) 5px max(8px,env(safe-area-inset-left));height:100dvh;overflow:hidden}}
#start{justify-content:center;align-self:center;justify-self:center;max-width:328px;min-height:48px;padding:0;background:transparent;border:0;box-shadow:none;flex-shrink:0}
#start img{display:block;width:100%;height:auto;pointer-events:none}
@media(prefers-reduced-motion:no-preference){
 #start img{animation:update-nudge 2.2s ease-in-out 2}
}
@keyframes update-nudge{
 0%,55%,100%{transform:none}
 25%{transform:translateY(-4px) scale(1.025)}
}
#start:disabled{opacity:.65;cursor:wait;transform:none}
@media(orientation:landscape) and (max-height:550px){#start img{max-height:70px;object-fit:contain}}
.lobby-title-image{display:block;width:min(100%,400px);height:auto;margin-inline:auto}@media(orientation:landscape) and (max-height:550px){.lobby-title-image{max-height:65px;object-fit:contain}}
.lobby-how-to{display:block;width:auto;height:auto;max-width:100%;max-height:clamp(130px,28dvh,225px);align-self:center;flex-shrink:0;border-radius:12px}
@media(orientation:landscape) and (max-height:550px){.lobby-how-to{grid-column:1;grid-row:3/7;justify-self:center;max-height:clamp(72px,28dvh,140px)}}
.machine,.screen,.lobby{background:transparent}
.screen{color:#f1f8ff}
.top{background:#080d2866;border-color:#a6d7ff3d}
.screen .hint,.screen .record,.hud span,.play-tools,.screen .overlay p,.screen .local-note,.history-dialog .local-note{color:#e4f1ff}
.screen .hint,.screen .record,.hud,.meters,.play-tools{text-shadow:0 1px 4px #03051b,0 1px 8px #03051b}
.hud b,.meter label,.screen .big-score{color:#fff}
.screen .big-score{text-shadow:0 0 16px #3eaaff80}
.screen .icon,.screen .secondary,.history-dialog .secondary{background:#101c3de6;border-color:#8fc8f491;color:#edf7ff}
.screen .icon:hover,.screen .secondary:hover,.history-dialog .secondary:hover{background:#213e68}
.screen .overlay,.history-dialog{background:#080d28ed;color:#f1f8ff}
.screen .overlay #challengeResult{color:#b3e7ff!important}
.history-dialog .recent-run{border-color:#90c7f55e}
.meter label{align-items:center;gap:3px}
.pickup-label{display:flex;align-items:center;gap:3px}
.pickup-label canvas{width:18px;height:14px;flex:none}
@media(orientation:landscape) and (max-height:550px){.pickup-label{gap:2px}.pickup-label canvas{width:14px;height:11px}}
@media(min-width:701px){
 .shell>.mast,.layout>.intro,.layout>.side,.shell>.foot{display:none}
 .shell{padding:16px 24px}
 .layout{grid-template-columns:minmax(0,500px);justify-content:center;min-height:calc(100dvh - 32px);gap:0}
 .machine{width:100%;height:min(790px,calc(100dvh - 32px));min-height:0}
}
@media(min-width:701px) and (orientation:landscape) and (max-height:550px){
 .shell{padding:5px max(8px,env(safe-area-inset-right)) 5px max(8px,env(safe-area-inset-left))}
 .layout{min-height:0}
 .machine{height:100%}
}
.player-entry {
 grid-column:1/-1;
 grid-row:1;
 flex:1;
 display:grid;
 align-items:safe center;
 justify-items:center;
 overflow:auto;
 padding:20px;
}
.player-form {
 width:min(100%,350px);
 display:grid;
 gap:14px;
 padding:clamp(16px,4vw,26px);
 border:1px solid #80caff80;
 border-radius:18px;
 background:#080d28ed;
 box-shadow:0 0 24px #38a8ff36;
}
.player-form label {display:grid;gap:6px;font-size:14px;font-weight:750}
.player-form input {
 width:100%;
 min-width:0;
 min-height:44px;
 padding:8px 12px;
 border:1px solid #8fc8f491;
 border-radius:10px;
 background:#101c3d;
 color:#f1f8ff;
 font:inherit;
 font-size:16px;
}
.player-form input:focus-visible {outline:2px solid #7edbff;outline-offset:2px}
.player-form .primary {justify-content:center}
.player-form .local-note {margin:0;text-align:center;font-size:12px}
@media(orientation:landscape) and (max-height:550px) {
 .player-entry {padding:48px 16px 8px}
 .player-form {gap:8px}
}
