* { box-sizing: border-box; user-select: none; -webkit-user-select: none; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #0a0c14; font-family: 'Arial Black', sans-serif; touch-action: none; overscroll-behavior: none; overscroll-behavior-y: none; }
#game-wrap { position: relative; width: 100%; height: 100%; max-width: 480px; margin: 0 auto; overflow: hidden; background: #1e272e; }
canvas { display: block; width: 100%; height: 100%; }
#hud { position: absolute; top: 12px; left: 10px; right: 10px; z-index: 20; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.hud-row { display: flex; justify-content: space-between; align-items: center; }
.pill { background: rgba(10,14,26,0.88); border: 2.5px solid #000; border-radius: 14px; padding: 6px 12px; color: #fff; font-size: 15px; box-shadow: 0 4px 0 #000; }
#pos-badge { color: #ffdd59; font-size: 19px; }
#progress-bar-wrap { width: 100%; height: 14px; background: rgba(0,0,0,0.8); border: 2.5px solid #000; border-radius: 10px; position: relative; }
#progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #ff4757, #ffdd59, #2ed573); border-radius: 7px; }
.prog-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; border: 2px solid #000; font-size: 9px; display: flex; align-items: center; justify-content: center; color: #fff; }
#bottom-controls { position: absolute; bottom: 18px; left: 12px; right: 12px; z-index: 30; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
#speedo-box { width: 106px; height: 106px; border-radius: 50%; background: radial-gradient(circle, #1e2738, #0b0f19); border: 3.5px solid #ffdd59; box-shadow: 0 6px 0 #000; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 13px; }
#speedo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#speed-val { position: relative; z-index: 2; font-size: 22px; line-height: 1; color: #fff; }
#speed-unit { position: relative; z-index: 2; font-size: 9px; color: #ffdd59; }
#item-btn { pointer-events: auto; width: 74px; height: 74px; border-radius: 50%; border: 3.5px solid #000; background: radial-gradient(circle, #ffdd59, #e67e22); box-shadow: 0 5px 0 #000; display: none; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
#item-btn span.ico { font-size: 30px; line-height: 1; }
#item-btn span.lbl { font-size: 9px; color: #000; }
#gas-btn { pointer-events: auto; width: 104px; height: 104px; border-radius: 24px; border: 4px solid #000; background: linear-gradient(180deg, #2ed573, #1eae57); box-shadow: 0 7px 0 #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
#gas-btn.pressed { transform: translateY(5px) scale(0.96); box-shadow: 0 2px 0 #000; background: linear-gradient(180deg, #ffdd59, #f39c12); color: #000; }
#gas-btn .gas-ico { font-size: 32px; line-height: 1; }
#gas-btn .gas-txt { font-size: 12px; margin-top: 4px; }
.overlay { position: absolute; inset: 0; z-index: 50; background: rgba(8,11,22,0.88); display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: #fff; }
.card { width: 100%; max-width: 360px; background: linear-gradient(180deg, #1e2746, #11162b); border: 3px solid #ffdd59; border-radius: 20px; padding: 20px 18px; }
.card h1 { margin: 0 0 10px; font-size: 25px; color: #ffdd59; }
.card p { font-family: -apple-system, sans-serif; font-size: 14.5px; line-height: 1.4; color: #e2e8f0; margin: 8px 0; }
.camp-row { display: flex; gap: 10px; margin-top: 12px; }
.camp-btn { flex: 1; padding: 10px; border-radius: 12px; border: 2.5px solid #000; font-weight: 900; color: #fff; cursor: pointer; opacity: 0.72; }
.camp-btn.active { opacity: 1; border-color: #ffdd59; }
.big-btn { margin-top: 14px; width: 100%; padding: 14px; border-radius: 14px; border: 3px solid #000; background: linear-gradient(180deg, #2ed573, #1eae57); color: #fff; font-size: 20px; font-weight: 900; box-shadow: 0 5px 0 #000; cursor: pointer; }
