html, body { margin: 0; overflow: hidden; background: #87ceeb; font-family: "Trebuchet MS", sans-serif; }
canvas { display: block; }
#hud { position: fixed; top: 12px; left: 12px; color: white; font-size: 24px; font-weight: bold; text-shadow: 2px 2px 0 #000; }
#help { position: fixed; bottom: 12px; width: 100%; text-align: center; color: white; font-size: 18px; text-shadow: 2px 2px 0 #000; }
#win { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #ffe14d; font-size: 48px; font-weight: bold; text-shadow: 3px 3px 0 #000; background: rgba(0,0,0,0.4); }
#win[hidden] { display: none; }
#item { position: fixed; top: 12px; right: 12px; color: #fff; font-size: 26px; font-weight: bold; text-shadow: 2px 2px 0 #000; }
#msg { position: fixed; top: 25%; width: 100%; text-align: center; color: #ffe14d; font-size: 40px; font-weight: bold; text-shadow: 3px 3px 0 #000; pointer-events: none; }
#msg[hidden] { display: none; }
#players { position: fixed; top: 48px; right: 12px; color: #fff; font-size: 20px; font-weight: bold; text-shadow: 2px 2px 0 #000; }
#pick { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0; box-sizing: border-box; overflow-y: auto; background: rgba(10, 20, 40, 0.85); color: #fff; }
#pick[hidden] { display: none; }
#pick h2 { margin: auto 0 0; font-size: 32px; text-shadow: 2px 2px 0 #000; }
#cards { display: grid; grid-template-columns: repeat(6, 120px); gap: 8px; }
.card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 4px solid transparent; border-radius: 12px; background: #1f3358; color: #fff; font: bold 16px "Trebuchet MS", sans-serif; cursor: pointer; }
.card.on { border-color: #ffe14d; background: #2e4a80; }
.card .face { width: 64px; height: 64px; image-rendering: pixelated; margin-bottom: 4px; }
#go { margin: 0 0 auto; flex-shrink: 0; padding: 14px 40px; font: bold 28px "Trebuchet MS", sans-serif; color: #fff; background: #43a047; border: 0; border-radius: 14px; cursor: pointer; }
#go:hover { background: #2e7d32; }
#cards { flex-shrink: 0; }
#pick h3 { margin: 0; font-size: 24px; text-shadow: 2px 2px 0 #000; flex-shrink: 0; }
#cars { display: flex; gap: 8px; flex-shrink: 0; }
.car { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 118px; padding: 6px 4px; border: 4px solid transparent; border-radius: 12px; background: #1f3358; color: #fff; font: bold 14px "Trebuchet MS", sans-serif; cursor: pointer; }
.car.on { border-color: #ffe14d; background: #2e4a80; }
.car img { width: 104px; height: 65px; }
