:root { --lime: #a3e635; --fog: #dfe3ea; --asphalt: #3a3b42; --ink: #23252a; --chadai: #8b5cf6; --clamcode: #ff8a6b; --pill: rgba(35, 37, 42, 0.74); } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; overflow: hidden; background: var(--fog); overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; } body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); } #game { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; } #hud { position: fixed; inset: 0; pointer-events: none; } #hud [data-show] { display: none; } #hud[data-state="title"] [data-show="title"], #hud[data-state="play"] [data-show="play"], #hud[data-state="over"] [data-show="over"] { display: block; } /* Title card: bottom left, over a soft shade so the words hold over any sky. */ #hud[data-state="title"]::before { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(to top, rgba(18, 22, 30, 0.62), rgba(18, 22, 30, 0)); } .title { position: absolute; left: clamp(20px, 5vw, 72px); bottom: max(clamp(28px, 9vh, 96px), env(safe-area-inset-bottom)); max-width: min(600px, 88vw); } .title h1 { margin: 0; font-size: clamp(64px, 12vw, 148px); line-height: 0.88; font-weight: 900; letter-spacing: -0.045em; color: var(--lime); text-shadow: 0 2px 30px rgba(12, 16, 22, 0.35); } .title .tag { margin: 16px 0 24px; max-width: 32ch; font-size: clamp(17px, 2.1vw, 23px); line-height: 1.35; font-weight: 600; color: #fff; text-shadow: 0 1px 14px rgba(10, 14, 20, 0.6); } .go { display: inline-block; margin: 0; padding: 11px 18px; border-radius: 999px; background: var(--pill); color: var(--lime); font-size: 16px; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } /* While riding. */ .place { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 14px; padding: 8px 13px 9px; border-radius: 12px; background: rgba(223, 227, 234, 0.84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 14px rgba(20, 24, 30, 0.12); } .place b { display: block; font-size: 15px; font-weight: 800; } .place span { display: block; font-size: 14px; color: #4a4d55; } .place span:empty { display: none; } .speed { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; padding: 4px 14px 6px; border-radius: 12px; background: var(--pill); color: #fff; text-align: right; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } .speed b { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; } .speed span { margin-left: 5px; font-size: 14px; font-weight: 700; color: var(--lime); } .speed { transition: box-shadow 0.15s ease, background 0.15s ease; } .speed.boosting { background: rgba(35, 37, 42, 0.86); box-shadow: 0 0 0 2px var(--lime), 0 0 22px rgba(163, 230, 53, 0.55); } .speed.boosting b { color: var(--lime); } .speed i { display: none; margin-left: 6px; padding: 1px 6px 2px; border-radius: 6px; background: #f0a14a; font-style: normal; font-size: 13px; font-weight: 900; color: #3a2210; vertical-align: 3px; } .speed.fed { background: rgba(58, 34, 16, 0.86); box-shadow: 0 0 0 2px #f0a14a, 0 0 24px rgba(240, 150, 60, 0.6); } .speed.fed b { color: #ffd29a; } .speed.fed i { display: inline-block; } /* GPUs taken, under the speed. */ .gpus { position: absolute; top: calc(max(14px, env(safe-area-inset-top)) + 60px); right: 14px; padding: 5px 12px 6px; border-radius: 10px; background: var(--pill); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } .gpus b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; color: #9ef0ff; } .gpus span { margin-left: 5px; font-size: 13px; font-weight: 700; } #hud .banner, #hud .msg, #hud .help { display: block; opacity: 0; transition: opacity 0.35s ease; } #hud[data-state="play"] .banner.on, #hud[data-state="play"] .msg.on, #hud[data-state="play"] .help.on { opacity: 1; } #hud:not([data-state="play"]) .banner, #hud:not([data-state="play"]) .msg, #hud:not([data-state="play"]) .help { display: none; } .banner { position: absolute; top: 17%; left: 50%; transform: translateX(-50%); text-align: center; color: #fff; text-shadow: 0 1px 16px rgba(10, 14, 20, 0.65); white-space: nowrap; } .banner b { display: block; font-size: clamp(28px, 5vw, 46px); font-weight: 900; letter-spacing: -0.02em; } .banner span { font-size: 16px; font-weight: 600; } .msg { position: absolute; top: 33%; left: 50%; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; background: var(--pill); color: #fff; font-size: 18px; font-weight: 800; white-space: nowrap; } .msg[data-kind="air"] { color: var(--lime); } .msg[data-kind="gpu"] { color: #9ef0ff; } .msg[data-kind="burrito"] { color: #ffd29a; } .help { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: 92vw; padding: 9px 15px; border-radius: 12px; background: var(--pill); color: #f1f2f4; font-size: 14px; font-weight: 600; text-align: center; } /* The ride summary. */ .summary { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(380px, 90vw); padding: 22px 24px 20px; border-radius: 18px; background: rgba(223, 227, 234, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 40px rgba(18, 22, 30, 0.25); } .summary h2 { margin: 0 0 12px; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; } .summary h2::after { content: ""; display: block; width: 44px; height: 5px; margin-top: 8px; border-radius: 3px; background: var(--lime); } .summary dl { margin: 0 0 16px; } .summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(35, 37, 42, 0.1); font-size: 15px; } .summary dt { color: #4a4d55; } .summary dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; } .nogl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; } .nogl h1 { margin: 0 0 8px; font-size: 64px; color: var(--asphalt); } /* Touch controls. */ .stick { position: fixed; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.55); background: rgba(35, 37, 42, 0.25); display: none; pointer-events: none; } .stick.on { display: block; } .stick i { position: absolute; left: 38px; top: 38px; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); } .boost { position: fixed; right: 22px; bottom: calc(max(22px, env(safe-area-inset-bottom)) + 100px); width: 76px; height: 76px; border: 0; border-radius: 50%; background: var(--lime); color: var(--ink); font: 800 16px ui-sans-serif, system-ui, sans-serif; } .hop { position: fixed; right: 18px; bottom: max(22px, env(safe-area-inset-bottom)); width: 84px; height: 84px; border: 0; border-radius: 50%; background: var(--pill); color: var(--lime); font: 800 17px ui-sans-serif, system-ui, sans-serif; }