@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700;900&family=Inter:wght@500;700&display=swap');

:root { --lime: #d5ff32; --ink: #07100d; --muted: #9aa7a0; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; color: #f5f8f4; font-family: Inter, system-ui; background: linear-gradient(115deg, #06100cdd, #07100dd9), url('https://images.unsplash.com/photo-1579952363873-27f3bade9f55?auto=format&fit=crop&w=2000&q=85') center / cover fixed; }
.app-shell { max-width: 1100px; min-height: 100vh; margin: auto; padding: 28px 32px; }
.topbar, .round-meta { display: flex; justify-content: space-between; align-items: center; }
.brand { color: white; text-decoration: none; font: 900 32px/1 'Barlow Condensed'; letter-spacing: 1px; }
.brand span, .eyebrow, .team p, .rounds-dialog b { color: var(--lime); }
.brand small { margin-left: 8px; font: 700 12px Inter; letter-spacing: 2px; }
.hero, .match-view { margin-top: 12vh; }
.eyebrow { margin: 0 0 10px; font: 700 12px Inter; letter-spacing: 2px; }
h1 { margin: 0; font: 900 clamp(54px, 10vw, 110px)/.84 'Barlow Condensed'; text-transform: uppercase; }
.intro, .round-meta { color: var(--muted); }
.intro { max-width: 430px; }
.players-form { max-width: 720px; margin-top: 40px; }
.players-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.players-grid label, .scoreboard label { color: var(--muted); font: 700 10px Inter; letter-spacing: 1px; }
input { display: block; width: 100%; margin-top: 6px; padding: 13px; color: white; font: 700 18px 'Barlow Condensed'; background: #ffffff13; border: 1px solid #ffffff28; border-radius: 4px; }
button { font: 700 15px Inter; cursor: pointer; }
.primary-button, .draw-button { margin-top: 24px; padding: 16px 25px; color: var(--ink); background: var(--lime); border: 0; border-radius: 4px; }
.primary-button:disabled, .draw-button:disabled { opacity: .55; cursor: wait; }
.outline-button { padding: 11px 16px; color: white; background: transparent; border: 1px solid #ffffff70; border-radius: 4px; }
.round-meta { padding-bottom: 12px; border-bottom: 1px solid #ffffff24; }
.empty-pitch { position: relative; display: grid; height: 360px; margin-top: 25px; overflow: hidden; text-align: center; place-items: center; align-content: center; background: #0a2b1fb8; border: 1px solid #7eff571f; }
.field-lines { position: absolute; inset: 30px; border: 1px solid #a7ff8b55; }
.field-lines::after { position: absolute; top: 0; bottom: 0; left: 50%; content: ''; border-left: 1px solid #a7ff8b55; }
.empty-pitch p, .draw-button { z-index: 1; }
.draw-button { padding: 22px 60px; font-size: 24px; }
.roulette-pick { animation: roulette .45s ease-out; }
@keyframes roulette { from { color: var(--lime); opacity: .2; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.match-card { max-width: 820px; margin: 45px auto; padding: 30px; text-align: center; background: #0a1713e8; border: 1px solid #ffffff25; }
.match-number { color: var(--muted); font-size: 12px; }
.teams { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; gap: 10px; }
.team p { font: 700 12px Inter; letter-spacing: 2px; }
.team strong { font: 900 clamp(28px, 4vw, 48px)/.95 'Barlow Condensed'; text-transform: uppercase; }
.versus { color: var(--lime); font: 900 44px 'Barlow Condensed'; }
.scoreboard { display: flex; justify-content: center; align-items: end; gap: 20px; margin: 28px 0; }
.scoreboard input { width: 105px; text-align: center; font-size: 36px; }
.new-round { display: block; margin: 0 auto; }
.rounds-dialog { width: min(650px, 92vw); padding: 30px; color: #fff; background: #10201b; border: 1px solid #ffffff35; }
.rounds-dialog::backdrop { background: #000b; }
.rounds-dialog h2 { margin: 0 0 20px; font: 900 40px 'Barlow Condensed'; }
.rounds-dialog section { border-top: 1px solid #ffffff24; }
.close-dialog { float: right; color: #fff; font-size: 28px; background: none; border: 0; }
.toast { position: fixed; bottom: 20px; left: 50%; padding: 13px 18px; color: #07100d; background: #e7f3eb; border-radius: 4px; transform: translate(-50%, 140%); transition: .2s; }
.toast.show { transform: translate(-50%, 0); }
@media (max-width: 620px) { .app-shell { padding: 22px 16px; } .players-grid { grid-template-columns: 1fr 1fr; } .teams { grid-template-columns: 1fr; } .versus { margin: 8px; } .round-meta { display: block; } .brand small { display: none; } .team strong { font-size: 32px; } }
