:root { --blue: #35b5ee; --blue-dark: #1880ae; --ink: #25495a; --cream: #fffdf1; }
body { background: #122e3b; }
#app { background: #173e50; box-shadow: 0 0 70px #0005; }
header { padding: 12px 14px 10px; background: #16394b; z-index: 1; box-shadow: 0 3px #102e3d33; }
#city { font-size: 10px; color: #9bc5d4; font-weight: 800; letter-spacing: .12em; }
h1 { font-size: 19px; margin: 3px 0 10px; }
.wallets { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.wallet { display: flex; align-items: center; gap: 8px; background: var(--cream); border-radius: 9px; height: 36px; padding: 0 9px; color: var(--ink); box-shadow: 0 3px #0003; }
.currency-icon { width: 31px; height: 31px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
#cash { font-size: 23px; line-height: 1; font-weight: 900; color: var(--ink); }
#gems { font-size: 23px; font-weight: 900; }
.earnings-row { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 5px; }
#rate { font-size: 10px; color: #b6d9e6; font-weight: 700; }
.garage-label { font-size: 9px; color: #b6d9e6; font-weight: 800; letter-spacing: .08em; }
#progress { height: 12px; margin-top: 0; background: #0d2a3b; border: 2px solid #426475; }
#bar { background: linear-gradient(#80d6f6, #30b0e9); }
#pct { font-size: 8px; line-height: 8px; text-shadow: 0 1px #16394b; }
#stage { background: #63865b; }
#c { width: 100%; height: 100%; }
#hint { background: #16394b; color: #a4c5d4; font-size: 10px; padding: 7px 0 5px; }
#actions { background: #16394b; padding: 5px 12px max(14px, env(safe-area-inset-bottom)); gap: 10px; }
.buy { background: var(--blue); color: white; border: 2px solid #70d6f6; border-radius: 10px; box-shadow: 0 4px var(--blue-dark); font-weight: 900; transition: filter .1s, transform .1s; }
.buy:active:not(:disabled), .menu-button:active, .close:active { transform: translateY(3px); box-shadow: none; }
.buy.no, .buy:disabled { background: #d2dadb; border-color: #e2e8e5; color: #71848c; box-shadow: 0 4px #a5b3b6; }
.buy.max, .buy.gold { background: #e4ac3f; border-color: #f8d681; color: #513d20; box-shadow: 0 4px #b27e25; }
.buy.alt { background: #5e91aa; border-color: #9dbfce; box-shadow: 0 4px #3c657b; }
.buy.owned { background: transparent; box-shadow: none; border-color: transparent; }
#actions #pit { height: 52px; font-size: 12px; line-height: 1.3; }
#actions .menu-button { width: 54px; flex-basis: 54px; border: 2px solid #75d6f6; background: var(--blue); border-radius: 10px; box-shadow: 0 4px var(--blue-dark); }
#actions .menu-button span { font-size: 9px; }
#menu { backdrop-filter: blur(3px); }
#menu-card { border: 3px solid #fff; background: var(--cream); box-shadow: 0 7px #173c4e88, 0 20px 50px #0003; }
.menu-heading { padding-bottom: 15px; color: var(--ink); }
.menu-heading h2 { font-weight: 900; }
.close { border: 2px solid #ff9c83; background: #f96651; box-shadow: 0 4px #c94b3e; }
#menu .item { background: #e9edeb; border: 1px solid #dce3df; border-radius: 12px; padding: 11px; }
#menu .item .name { color: var(--ink); font-size: 13px; font-weight: 850; }
#menu .item .sub { font-size: 11px; line-height: 1.45; }
.perk-icon { width: 38px; height: 38px; background: #d0e4e6; color: #3185a2; border-radius: 10px; padding: 8px; flex-shrink: 0; }
.perk-icon svg { width: 100%; height: 100%; fill: currentColor; }
#station-popup { border: 3px solid #fff; background: var(--cream); box-shadow: 0 5px #244c5d66, 0 12px 30px #0004; }
#station-popup .station-level { color: var(--ink); }
#station-popup .station-name { color: #617985; }
.station-stats { color: var(--ink); align-items: center; }
.station-stats .currency-icon { width: 19px; height: 19px; margin-right: 3px; }
.station-stats span { display: inline-flex; align-items: center; }
.station-progress { box-shadow: inset 0 2px #0001; }
.station-next { font-size: 10px; }
.station-name { font-size: 12px; }
.overlay .card { background: var(--cream); color: var(--ink); border: 3px solid white; box-shadow: 0 6px #173c4e88; }
.overlay h2 { color: var(--ink); }
.overlay p { color: #617985; }
.overlay .big { color: #2188ae; }
@media (max-height: 520px) { header { padding: 6px 12px; } h1 { margin: 0 0 5px; font-size: 16px; } #city { font-size: 8px; } .earnings-row { margin: 5px 0; } #hint { padding: 4px; } #actions { padding-bottom: 9px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
#sponsor-target { position: absolute; z-index: 3; border: 0; background: transparent; border-radius: 10px; padding: 0; touch-action: manipulation; }
#sponsor-target[hidden], #sponsor-popup[hidden] { display: none; }
#sponsor-popup { position: absolute; z-index: 6; width: 224px; max-width: calc(100% - 16px); padding: 15px 12px 12px; border: 3px solid white; border-radius: 13px; background: var(--cream); color: var(--ink); box-shadow: 0 5px #244c5d66, 0 12px 30px #0004; text-align: center; }
#sponsor-popup::after { content: ''; position: absolute; top: 100%; left: var(--arrow, 50%); margin-left: -10px; border: 10px solid transparent; border-top-color: var(--cream); }
#sponsor-popup .close { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; font-size: 16px; }
#sponsor-popup .station-name { padding: 0 23px; font-size: 10px; }
#sponsor-popup .station-level { font-size: 20px; margin-top: 8px; }
#sponsor-popup .buy { width: 100%; }
.sponsor-reward { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 8px; font-size: 24px; }
.sponsor-time { font-size: 11px; font-weight: 800; color: #956c2e; margin: 10px 0; }
