* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1a12; font-family: "Trebuchet MS", system-ui, sans-serif; color: #fff; }
#app, #app canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; overflow: auto; background: rgba(8, 24, 16, 0.86); text-align: center; }
.menu { justify-content: flex-start; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 52px); text-shadow: 0 3px 0 #0006; }
h2 { margin: 6px 0 0; font-size: 20px; color: #ffd23f; }
button { font: inherit; color: inherit; cursor: pointer; }
.big { background: #ffd23f; color: #222; border: 0; border-radius: 14px; padding: 12px 28px; font-size: 20px; font-weight: bold; box-shadow: 0 4px 0 #b88f00; }
.big:hover { filter: brightness(1.08); }
.field { font-size: 18px; } .field input { font: inherit; padding: 6px 10px; border-radius: 8px; border: 0; width: 180px; margin-left: 8px; }
.cards { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.card { background: var(--c); border: 3px solid transparent; border-radius: 14px; padding: 12px 18px; min-width: 190px; display: flex; flex-direction: column; gap: 4px; opacity: 0.7; }
.card.on { border-color: #ffd23f; opacity: 1; transform: scale(1.05); }
.card small { opacity: 0.85; }
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; width: min(900px, 100%); }
.team { background: #1d3a2b; border: 2px solid transparent; border-radius: 10px; padding: 8px; display: flex; align-items: center; gap: 8px; text-align: left; }
.team.on { border-color: #ffd23f; background: #2c5a42; } .team small { margin-left: auto; opacity: 0.7; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 4px solid; display: inline-block; flex: none; }
.help { opacity: 0.8; font-size: 14px; margin: 0; }
.vs { display: flex; align-items: center; gap: 28px; font-size: 22px; }
.vs > div { display: flex; flex-direction: column; align-items: center; gap: 4px; } .vs span { color: #ffd23f; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 16px; } .results .mine { color: #ffd23f; font-weight: bold; }
.hud { position: absolute; inset: 0; pointer-events: none; }
.score { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: #000b; border-radius: 14px; padding: 6px 18px; display: flex; gap: 12px; align-items: center; font-size: 20px; }
.score b { font-size: 32px; color: #ffd23f; }
.clock { position: absolute; top: 62px; left: 50%; transform: translateX(-50%); background: #000a; padding: 2px 12px; border-radius: 10px; font-size: 14px; }
.power { position: absolute; bottom: 24px; left: 50%; width: 240px; margin-left: -120px; height: 16px; background: #0008; border-radius: 8px; overflow: hidden; transition: opacity 0.1s; }
#pw { height: 100%; background: linear-gradient(90deg, #7dff6a, #ffd23f, #ff4d6d); }
.banner { position: absolute; top: 30%; width: 100%; text-align: center; font-size: clamp(32px, 7vw, 80px); font-weight: bold; text-shadow: 0 4px 0 #0008; }
.banner.goal { color: #ffd23f; font-size: clamp(60px, 12vw, 140px); }
.toast { position: absolute; top: 90px; width: 100%; text-align: center; font-size: 22px; text-shadow: 0 2px 0 #000; }
.pens { background: rgba(8, 24, 16, 0.8); }
.pk { display: flex; align-items: center; gap: 14px; font-size: 22px; } .pk > b { width: 180px; text-align: right; }
.dots { display: flex; gap: 6px; min-width: 200px; }
.pkd { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: bold; color: #222; } .pkd.ok { background: #7dff6a; } .pkd.no { background: #ff4d6d; }
.end { background: rgba(8, 24, 16, 0.55); justify-content: flex-end; padding-bottom: 40px; }
.end.win h1 { color: #ffd23f; }
.end p { font-size: 20px; margin: 0; text-shadow: 0 2px 0 #000; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
