* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0d1530; color: #fff; font-family: Inter, system-ui, sans-serif; user-select: none; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; }
.hidden { display: none !important; }
#hud { position: fixed; inset: 0; pointer-events: none; text-shadow: 0 2px 4px rgba(0,0,0,.5); }
#progress { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); text-align: center; }
#progress b { display: block; font-family: "Luckiest Guy", Impact, sans-serif; font-size: 34px; letter-spacing: 2px; color: #ffd34d; -webkit-text-stroke: 1px #5a2a00; }
#progress span { font-size: 14px; font-weight: 700; }
#stats { position: absolute; left: 18px; top: 18px; display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 15px; background: rgba(0,0,0,.3); padding: 8px 12px; border-radius: 8px; }
#stats b { font-family: "Luckiest Guy", Impact, sans-serif; font-size: 18px; margin-left: 6px; }
#team { position: absolute; right: 18px; top: 18px; display: flex; flex-direction: column; gap: 6px; }
#team div { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.35); padding: 6px 12px; border-radius: 8px; font-weight: 800; }
#team i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
#banner { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); font-family: "Luckiest Guy", Impact, sans-serif; font-size: 64px; text-align: center; color: #fff;
  -webkit-text-stroke: 2px #3a1d6e; text-shadow: 0 6px 0 #3a1d6e; opacity: 0; transition: opacity .3s, transform .3s; }
#banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
#banner small { display: block; font-size: 22px; -webkit-text-stroke: 0; text-shadow: 0 2px 4px rgba(0,0,0,.6); font-family: Inter, sans-serif; font-weight: 800; }
#help { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 14px; font-weight: 700; background: rgba(0,0,0,.35); padding: 6px 14px; border-radius: 8px; white-space: nowrap; }
#help b { color: #ffd34d; }

#lobby { position: fixed; inset: 0; display: flex; align-items: center; justify-content: flex-start; padding: 16px 16px 16px max(16px, 4vw); z-index: 10;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,140,60,.35), transparent 50%), radial-gradient(ellipse at 80% 90%, rgba(80,120,255,.35), transparent 50%), rgba(10,14,40,.55); }
.card { width: min(600px, 100%); max-height: 100%; overflow: auto; background: rgba(16,20,48,.88); border: 2px solid rgba(255,255,255,.12); border-radius: 18px; padding: 26px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.logo { font-family: "Luckiest Guy", Impact, sans-serif; font-size: 72px; line-height: 1; color: #ffd34d; -webkit-text-stroke: 2px #5a2a00; text-shadow: 0 6px 0 #5a2a00; transform: rotate(-2deg); }
.logo span { color: #9fd8ff; -webkit-text-stroke-color: #12305a; text-shadow: 0 6px 0 #12305a; }
.tag { margin: 12px 0 8px; color: #d8def5; font-size: 16px; }
h3 { margin: 16px 0 8px; font-size: 13px; letter-spacing: 4px; color: #9fb0e0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .choice { grid-template-columns: 1fr; } }
.choice button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 2px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.choice button b { display: block; font-family: "Luckiest Guy", Impact, sans-serif; font-size: 22px; letter-spacing: 1px; font-weight: 400; }
.choice button small { color: #c9d1ee; font-size: 13px; }
.choice button.sel { border-color: #ffd34d; background: rgba(255,211,77,.14); }
.choice button:disabled { opacity: .5; cursor: default; }
#slots { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
#slots div { flex: 1; min-width: 120px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.06); border: 2px dashed rgba(255,255,255,.18); font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; }
#slots div.on { border-style: solid; border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); }
#slots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); display: inline-block; }
.go { margin-top: 18px; width: 100%; padding: 14px; border: 0; border-radius: 12px; cursor: pointer; font-family: "Luckiest Guy", Impact, sans-serif; font-size: 30px; letter-spacing: 2px;
  background: linear-gradient(180deg, #ffe066, #ffb400); color: #3a1d6e; box-shadow: 0 6px 0 #b36b00; }
.go:disabled { filter: grayscale(1); opacity: .6; cursor: default; }
#lstatus { margin-top: 10px; font-size: 14px; color: #c9d1ee; min-height: 18px; text-align: center; }
