* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #10131a; color: #eef; font-family: system-ui, sans-serif; touch-action: none; user-select: none; }
canvas { display: block; width: 100vw; height: 100vh; }
.overlay { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 1rem; overflow-y: auto; touch-action: pan-y; text-align: center; background: #000a; padding: 1rem; }
.overlay h1 { font-size: clamp(2rem, 8vw, 4rem); margin: 0; }
.btn { font: inherit; font-size: 1.4rem; font-weight: 700; padding: .8rem 2.4rem; border: 0; border-radius: 12px; background: #5b8cff; color: #fff; cursor: pointer; }
.hidden { display: none !important; }
.overlay p { max-width: 34rem; line-height: 1.4; margin: 0; }
.small { font-size: .9rem; opacity: .8; }
#table { font-size: 1.2rem; border-collapse: collapse; }
#table td { padding: .2rem .7rem; text-align: left; }
#table tr.me { background: #5b8cff33; font-weight: 700; }
.boost { display: none; position: fixed; right: 20px; bottom: 24px; width: 92px; height: 92px; border-radius: 50%; border: 3px solid #fff8;
  background: #0008; color: #fff; font: 700 1rem system-ui; touch-action: none; overflow: hidden; padding: 0; }
.boost b { position: relative; }
.boost.drift { bottom: 128px; width: 74px; height: 74px; right: 29px; background: #1e88e5aa; font-size: .9rem; }
.boost.drift.active { background: #1e88e5; }
#boostFill { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: #ffb300cc; }
.boost.active { border-color: #fff; }
.boost.active #boostFill { background: #ff3d00; }
@media (pointer: coarse) { .boost { display: block; } }
.overlay h2 { margin: 1rem 0 0; }
.overlay h3 { font-size: .9rem; margin: .8rem 0 .3rem; opacity: .85; }
.diffs { display: flex; gap: .5rem; }
.diff { font: 700 1.1rem system-ui; padding: .6rem 1.1rem; border-radius: 10px; border: 2px solid #fff4; background: #222838; color: #fff; cursor: pointer; }
.diff.sel { background: #ff5252; border-color: #fff; }
#garage { max-width: 40rem; padding-bottom: 2rem; }
.skins { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.skin { width: 66px; font-size: .7rem; cursor: pointer; border-radius: 8px; padding: 3px; border: 2px solid transparent; background: #ffffff10; }
.skin.sel { border-color: #ffd54f; background: #ffd54f22; }
.tile { width: 60px; height: 36px; display: block; margin: 0 auto; }
.tile.locked { opacity: .7; }
.unlock { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-weight: 700; color: #ffd54f; }
.wheel { width: 220px; height: 220px; }
.prize { display: flex; align-items: center; gap: .6rem; }
.unlock .tile { width: 90px; height: 54px; }
.row { display: flex; gap: .6rem; }
.btn.grey { background: #4a5163; }
.small-btn { font-size: 1rem; padding: .4rem 1rem; }
