@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap');
:root{--red:#087a43;--yellow:#f2c230;--bg:#0c151d;--panel:#17242e;--muted:#9aaab4}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#fff;font-family:Inter,Arial,sans-serif}#app{max-width:1520px;margin:auto;padding:14px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.brand{display:flex;align-items:center;gap:12px;letter-spacing:.08em}.brand b{font-size:12px}.brand small{display:block;color:var(--muted);font-size:8px;letter-spacing:.18em;margin-top:4px}.logo{background:var(--red);border:2px solid white;padding:6px 9px;font:900 23px 'Barlow Condensed';box-shadow:3px 3px 0 var(--yellow)}.top-actions{display:flex;gap:6px}.top-actions button{background:#1c2b36;color:white;border:1px solid #ffffff2b;padding:8px 10px;border-radius:7px;font-size:9px;font-weight:900;cursor:pointer}.top-actions button.active{background:var(--red)}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:12px}.game-area{position:relative;height:min(74vh,760px);min-height:510px;border:2px solid #ffffff25;border-radius:12px;overflow:hidden;background:#9dc0ce}#game{position:absolute;inset:0}#game canvas{width:100%;height:100%;display:block}
.hud{position:absolute;left:10px;right:10px;display:flex;gap:7px;pointer-events:none}.hud.top{top:10px}.hud.bottom{bottom:10px}.tile{background:#0d171ee8;border:1px solid #ffffff29;border-radius:7px;padding:8px 10px;min-width:90px;backdrop-filter:blur(5px);flex:1}.tile small{display:block;color:#bac5ca;font-size:7px;font-weight:900;letter-spacing:.13em}.tile b{display:block;font:800 17px 'Barlow Condensed';margin-top:3px}.tile i{font:700 8px Inter;color:#aab8c0}
.sidebar{display:flex;flex-direction:column;gap:10px}.side-card{background:var(--panel);border:1px solid #ffffff17;border-radius:9px;padding:12px}.side-head{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:.06em;margin-bottom:10px}.side-head span{font-size:7px;color:#bdc7cc;background:#2a3b47;border-radius:4px;padding:5px 7px}.rival{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #ffffff12}.rank{width:21px;height:21px;display:grid;place-items:center;background:#2a3b46;border-radius:5px;font:800 12px 'Barlow Condensed'}.rival.me .rank{background:var(--yellow);color:#111}.rival-info{flex:1}.rival-info b{display:block;font-size:9px}.rival-info small{font-size:7px;color:var(--muted)}.rival strong{font:800 13px 'Barlow Condensed';color:var(--yellow)}
.route-list{display:grid;gap:8px}.route-stop{display:flex;gap:8px;align-items:center;color:#9eabb4}.route-stop i{width:9px;height:9px;border:2px solid #637681;border-radius:50%;background:#273943}.route-stop.done i{background:#37bd77;border-color:#37bd77}.route-stop.active{color:white}.route-stop.active i{background:var(--yellow);border-color:var(--yellow);box-shadow:0 0 0 4px #ffd34e20}.route-stop b{font-size:9px}.route-stop small{display:block;color:#8b9aa4;font-size:7px;margin-top:2px}
.ticket{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ticket div{background:#22343f;padding:9px;border-radius:6px}.ticket small{display:block;font-size:7px;color:#aab8c0;font-weight:800}.ticket b{display:block;font:800 20px 'Barlow Condensed';margin-top:3px;color:var(--yellow)}.tip{font-size:8px;line-height:1.5;color:#aab8c0;margin:9px 0 0}.quote{background:#39251e;border-color:#76472f}.quote b{font:900 15px 'Barlow Condensed';color:var(--yellow)}.quote p{font-size:9px;color:#ead6c5;margin:5px 0 0}
.screen{position:absolute;inset:0;background:#07131de0;backdrop-filter:blur(5px);display:grid;place-items:center;padding:15px;z-index:4}.hidden{display:none!important}.modal{width:min(450px,96%);background:#f8f0e4;color:#17232c;border:4px solid white;border-radius:13px;padding:24px;text-align:center;box-shadow:8px 8px 0 #0008}.modal.small{width:min(320px,96%)}.eyebrow{font-size:8px;letter-spacing:.2em;font-weight:900;color:var(--red)}h1{font:900 clamp(43px,7vw,68px)/.82 'Barlow Condensed';margin:12px 0}h1 span{color:var(--red)}h2{font:900 39px 'Barlow Condensed';margin:9px}.modal p{font-size:11px;line-height:1.55;color:#5e6c73}.bus-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}.choice{border:2px solid #d5d0c7;background:white;border-radius:8px;padding:9px;display:flex;flex-direction:column;align-items:center;gap:3px;color:#18232a;cursor:pointer}.choice.active{border-color:var(--red);background:#fff4f0}.choice span{font-size:26px}.choice b{font-size:9px}.choice small{font-size:8px;color:#77838a}.feature-pills{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;margin:12px 0}.feature-pills span{font-size:7px;font-weight:900;background:#e7dfd3;border-radius:4px;padding:5px 7px}.start{width:100%;background:var(--red);color:white;border:0;border-radius:7px;padding:14px;font-weight:900;font-size:11px;letter-spacing:.1em;cursor:pointer;box-shadow:0 4px 0 #75151d}.start b{float:right;font-size:17px}.note{display:block;font-size:7px;color:#78848b;margin-top:12px;line-height:1.5}.results{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0}.results div{background:white;border-radius:6px;padding:9px}.results small{display:block;color:#76838a;font-size:7px;font-weight:900}.results b{display:block;font:900 23px 'Barlow Condensed';margin-top:4px}
.toast{position:absolute;top:22%;left:50%;transform:translateX(-50%);background:#101b23ed;color:white;padding:10px 16px;border-radius:30px;font-size:10px;font-weight:800;opacity:0;transition:opacity .2s;white-space:nowrap;z-index:3;pointer-events:none}
.mobile-controls{display:none;gap:6px;justify-content:center;margin-top:9px}.mobile-controls button{background:#263a46;color:white;border:1px solid #ffffff33;border-radius:8px;padding:10px 12px;min-width:50px;font-weight:900;touch-action:none}.mobile-controls small{font-size:7px}footer{text-align:center;color:#657580;font-size:8px;padding:12px}
@media(max-width:980px){.layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.game-area{height:65vh}.quote{display:none}}
@media(max-width:600px){#app{padding:6px}.brand b{font-size:9px}.brand small{font-size:6px}.top-actions button{font-size:7px;padding:7px 6px}.game-area{height:60vh;min-height:410px}.hud{left:5px;right:5px;gap:4px}.tile{padding:6px;min-width:0}.tile small{font-size:6px}.tile b{font-size:13px}.sidebar{grid-template-columns:1fr 1fr;gap:6px}.side-card{padding:8px}.side-head{font-size:8px}.mobile-controls{display:flex}.note{font-size:6px}.modal{padding:17px}}

.music-card #ytPlayer{width:100%;aspect-ratio:16/9;min-height:160px;background:#080d11;border-radius:7px;overflow:hidden}
.music-card #ytPlayer iframe{width:100%;height:100%;display:block}
.music-controls{display:flex;gap:7px;margin-top:8px}
.music-controls button{flex:1;background:#b51f2b;color:#fff;border:0;border-radius:6px;padding:9px 6px;font-size:9px;font-weight:900;cursor:pointer}
.music-controls button+button{background:#2b3b46}
.music-note{display:block;color:#9aaab4;font-size:8px;margin-top:7px}
@media(max-width:900px){.music-card #ytPlayer{min-height:190px}}

.logo{background:#087a43;box-shadow:3px 3px 0 #f2c230}
.start{background:#087a43!important;border-color:#f2c230!important}
.choice.active{border-color:#f2c230!important;background:#173c2b!important}
.music-controls button{background:#087a43}
.music-controls button+button{background:#334338}

.nav-hud{top:64px;left:10px;right:10px;max-width:760px;z-index:4}
.nav-hud .tile{background:#071b13ed;border-color:#35d98a88}
.nav-hud .tile b{font-size:14px}
.pay-prompt{position:absolute;z-index:8;left:50%;top:50%;transform:translate(-50%,-50%);width:min(330px,90%);background:#101c18f5;border:2px solid #f2c230;border-radius:12px;padding:16px;display:flex;flex-direction:column;align-items:center;gap:9px;box-shadow:0 12px 35px #0009}
.pay-prompt b{font-size:11px;letter-spacing:.14em;color:#f2c230}
.pay-prompt span{font:900 32px 'Barlow Condensed'}
.pay-prompt button{background:#087a43;color:white;border:1px solid #f2c230;border-radius:7px;padding:12px;font-weight:900;width:100%;cursor:pointer}
.pay-prompt.hidden{display:none}
@media(max-width:900px){.nav-hud{top:58px;gap:4px}.nav-hud .tile{min-width:0;padding:6px}.nav-hud .tile b{font-size:11px}.nav-hud .tile small{font-size:6px}}
