*{box-sizing:border-box}body{margin:0;background:#fffdf7;color:#0d1f3c;font:18px 'DM Sans',Arial,sans-serif;border-top:6px solid #4285f4}header{display:flex;align-items:center;gap:16px;padding:12px 4%;background:white;border-bottom:3px solid #fbbc05}header img{width:140px;height:56px;object-fit:contain}header span{flex:1;font-family:Fredoka,Arial;font-size:24px}button,a.link{font:inherit;font-weight:700;min-height:48px;border:2px solid #0d1f3c;border-radius:16px;padding:10px 18px;background:white;color:#0d1f3c;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}button:hover,a.link:hover{background:#eef4ff}button:focus-visible,a:focus-visible{outline:4px solid #4285f4;outline-offset:3px}button:disabled{opacity:.45;cursor:default}.primary{background:#fbbc05}main{max-width:1180px;margin:auto;padding:24px}#modules{display:flex;gap:8px;overflow:auto;padding:5px}#modules button{flex-shrink:0;padding:8px 14px}button.active{background:#0d1f3c;color:white}.heading{display:flex;align-items:center;gap:12px;margin:18px 0}.heading img{width:78px;height:78px;object-fit:contain}h1,h2{font-family:Fredoka,Arial;margin:6px 0 18px}h1{font-size:32px}h2{font-size:28px}small{font-size:15px}#trail{display:flex;justify-content:space-between;background:url('assets/route.svg') center/100% 100% no-repeat;min-height:130px;align-items:center;gap:12px;padding:20px}#trail button{background:#fffdf7eF;box-shadow:0 4px 0 #0d1f3c20}#trail button:nth-child(even){transform:translateY(24px)}#trail button.active{background:#fbbc05;color:#0d1f3c}#screen{background:white;border:2px solid #e1e6ec;border-radius:24px;padding:26px;margin-top:20px;min-height:420px}.lesson{display:grid;grid-template-columns:minmax(300px,1.2fr) minmax(240px,1fr);gap:32px;align-items:center}.board{aspect-ratio:1;display:grid;grid-template-columns:repeat(8,1fr);width:100%;max-width:590px;border:5px solid #0d1f3c;border-radius:12px;overflow:hidden;box-shadow:0 10px 20px #0d1f3c18}.square{position:relative;min-width:0;min-height:0;aspect-ratio:1;padding:0;border:0;border-radius:0;background:#eee7cf;display:block}.square.dark{background:#7f818c}.square:hover{background:#d5dddb}.square img{width:100%;height:100%;object-fit:contain;pointer-events:none;position:relative;z-index:1}.coord{position:absolute;bottom:0;left:3px;font:11px Arial;color:#0d1f3c;background:#fff9;z-index:2}.mark:after{content:'';position:absolute;width:28%;height:28%;border-radius:50%;background:#4285f4b0;top:36%;left:36%}.selected{box-shadow:inset 0 0 0 5px #fbbc05}.legal{box-shadow:inset 0 0 0 5px #34a853}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.prompt{font-size:24px;line-height:1.4}.help{line-height:1.6;color:#344663}details{margin:20px 0}summary{cursor:pointer;padding:12px 0;font-weight:bold}video{width:100%;max-height:560px;border-radius:18px;background:#0d1f3c}.choices{display:grid;gap:12px;margin:20px 0}.choices button{text-align:left;justify-content:flex-start}.feedback{padding:16px;border-radius:12px;background:#eef4ff;line-height:1.5}.feedback:empty{display:none}.counter{font-size:15px;color:#43546b}.gamebar{display:flex;gap:10px;flex-wrap:wrap}.moves{max-height:200px;overflow:auto;line-height:1.8}footer{text-align:center;font-size:14px;padding:26px;color:#43546b}.egg{display:block;width:55px;height:65px;object-fit:contain;margin:0 auto 12px}@media(max-width:720px){main{padding:12px}header{gap:8px;padding:10px}header img{width:95px}header span{display:none}header button{font-size:15px;padding:8px}#trail{min-height:90px;padding:4px;gap:4px;background:none;overflow:auto}#trail button{font-size:15px;padding:8px;min-width:65px}#trail button:nth-child(even){transform:none}#screen{padding:15px}.lesson{grid-template-columns:1fr;gap:20px}.board{max-width:520px;margin:auto}.prompt{font-size:21px}h1{font-size:26px}.square{min-height:0}.coord{font-size:9px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.remote-menu{display:flex;flex-wrap:wrap;gap:18px;align-items:end;padding:24px 0}.remote-menu label{display:flex;flex-direction:column;gap:10px}.remote-menu input,#remote-message input{font:inherit;min-height:52px;max-width:100%;padding:12px;border:2px solid #0d1f3c;border-radius:12px}.room-code{display:block;font:700 28px monospace;letter-spacing:3px;padding:14px;background:#fff4d6;border:2px solid #0d1f3c;border-radius:14px}.remote-menu button{min-height:60px}#remote-message:empty{display:none}#remote-connection{min-height:28px}

.elo-score{font:600 28px Fredoka,Arial,sans-serif;display:inline-block;padding:12px 18px;background:#FBBC05;color:#0D1F3C;border:2px solid #0D1F3C;border-radius:16px}
