/* FOOTBALL 26 — styling */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #07120a; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #eef5ee; user-select: none; }

#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.hidden { display: none !important; }

/* ---------- screens ---------- */
#screens { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.screen { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; background: radial-gradient(ellipse at center, rgba(4,14,8,0.42) 0%, rgba(2,8,4,0.78) 100%); pointer-events: auto; }
.screen.active { display: flex; }

/* title */
.title-wrap { text-align: center; padding: 20px; }
.logo { font-weight: 900; letter-spacing: 2px; line-height: 0.9; }
.logo-f { font-size: clamp(42px, 9vw, 110px); color: #fff; text-shadow: 0 4px 0 #0a3d1e, 0 8px 24px rgba(0,0,0,0.6); }
.logo-26 { font-size: clamp(46px, 10vw, 130px); color: #ffd700; text-shadow: 0 4px 0 #8a6d00, 0 8px 24px rgba(0,0,0,0.6); }
.subtitle { font-size: clamp(13px, 2.4vw, 22px); margin: 10px 0 26px; color: #cdeccd; letter-spacing: 3px; }
.menu-btns { display: flex; flex-direction: column; gap: 12px; width: min(360px, 82vw); margin: 0 auto; }
.title-foot { margin-top: 26px; font-size: 13px; color: #8fb89a; }

/* buttons */
.btn { display: block; width: 100%; padding: 15px 18px; font-size: 18px; font-weight: 800; letter-spacing: 1px; border: none; border-radius: 14px; cursor: pointer; color: #07120a; background: linear-gradient(180deg, #d7f5d0, #8fd98a); box-shadow: 0 5px 0 #2e6b35, 0 10px 20px rgba(0,0,0,0.45); transition: transform 0.08s, box-shadow 0.08s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #2e6b35, 0 14px 26px rgba(0,0,0,0.5); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #2e6b35; }
.btn-gold { background: linear-gradient(180deg, #fff3b0, #ffd24d); box-shadow: 0 5px 0 #9a7a00, 0 10px 20px rgba(0,0,0,0.45); }
.btn-gold:hover { box-shadow: 0 7px 0 #9a7a00, 0 14px 26px rgba(0,0,0,0.5); }
.btn-ghost { background: rgba(255,255,255,0.10); color: #eaf7ea; border: 2px solid rgba(255,255,255,0.35); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,0.18); box-shadow: none; }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 10px; width: auto; }
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* panels */
.panel { background: rgba(6,16,10,0.92); border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: 26px 30px; width: min(560px, 92vw); max-height: 92vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,0.6); text-align: center; }
.panel-wide { width: min(960px, 94vw); }
.panel h2 { margin-bottom: 16px; font-size: 26px; }
.panel h3 { margin: 6px 0 8px; font-size: 15px; color: #9fd8a8; text-transform: uppercase; letter-spacing: 1px; }

/* setup controls */
.setup-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.setup-label { font-size: 15px; color: #cdeccd; font-weight: 700; min-width: 130px; text-align: left; }
.setup-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { padding: 9px 14px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.07); color: #eaf7ea; font-weight: 700; font-size: 14px; cursor: pointer; }
.opt:hover { background: rgba(255,255,255,0.14); }
.opt.active { background: #ffd24d; color: #1a2a12; border-color: #ffd24d; }
.team-pick { display: flex; gap: 8px; align-items: center; justify-content: center; }
.team-badge { width: 46px; height: 46px; border-radius: 12px; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; color: #111; text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
.team-name { font-size: 17px; font-weight: 800; min-width: 120px; }
.nav-btn { width: 42px; height: 42px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); color: #fff; font-size: 18px; font-weight: 900; cursor: pointer; }
.nav-btn:hover { background: rgba(255,255,255,0.18); }
.divider { height: 1px; background: rgba(255,255,255,0.14); margin: 18px 0; }
.human-toggle { display: flex; gap: 8px; justify-content: center; }
.ctrl-cycle { font-size: 12px; color: #ffd24d; cursor: pointer; margin-top: 4px; }

/* tournament hub */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.standings-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.standings-table th, .standings-table td { padding: 6px 8px; text-align: center; }
.standings-table th { color: #9fd8a8; font-size: 12px; text-transform: uppercase; }
.standings-table td.team-cell { text-align: left; font-weight: 700; }
.standings-table tr.user-row td { background: rgba(255, 210, 77, 0.18); }
.wc-grid { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.wc-col { flex: 1 1 320px; text-align: left; }
.fixture-list { list-style: none; font-size: 14px; }
.fixture-list li { padding: 7px 10px; margin: 4px 0; background: rgba(255,255,255,0.05); border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fixture-list li.done { opacity: 0.65; }
.fixture-list li.next { border: 2px solid #ffd24d; background: rgba(255,210,77,0.12); font-weight: 800; }
.fixture-list .fixt-txt { display: flex; align-items: center; gap: 8px; }
.fixt-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; display: inline-block; flex: none; }
.ko-bracket { margin-top: 14px; text-align: left; }
.ko-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; margin: 5px 0; background: rgba(255,255,255,0.05); border-radius: 10px; font-weight: 700; }
.ko-row.next { border: 2px solid #ffd24d; background: rgba(255,210,77,0.12); }
.ko-row.won { background: rgba(120,220,120,0.15); }
.wc-tip { margin-top: 12px; font-size: 13px; color: #8fb89a; }

/* result */
.result-score { font-size: clamp(48px, 10vw, 84px); font-weight: 900; letter-spacing: 4px; margin: 10px 0; }
.result-teams { font-size: 18px; font-weight: 800; display: flex; justify-content: center; gap: 26px; align-items: center; flex-wrap: wrap; }
.result-sub { color: #9fd8a8; margin: 8px 0 14px; font-size: 15px; }
.scorer-list { font-size: 14px; color: #cdeccd; margin-bottom: 16px; }
.scorer-list span { display: inline-block; margin: 3px 8px; }

/* champion */
.champ-wrap { text-align: center; }
.trophy { font-size: clamp(80px, 18vw, 160px); filter: drop-shadow(0 12px 30px rgba(255,215,0,0.5)); animation: bounce 1.6s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(4deg); } }
.champ-name { font-size: clamp(30px, 6vw, 54px); font-weight: 900; color: #ffd24d; text-shadow: 0 3px 0 #6b5500, 0 8px 20px rgba(0,0,0,0.6); margin: 8px 0 4px; }
.champ-sub { color: #cdeccd; margin-bottom: 22px; letter-spacing: 2px; }

/* controls */
.ctrl-wrap h2 { text-align: center; }
.ctrl-note { font-size: 14px; color: #cdeccd; margin-bottom: 14px; }
.ctrl-grid { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; text-align: left; }
.ctrl-col { min-width: 240px; }
.ctrl-col table { border-collapse: collapse; width: 100%; font-size: 14px; }
.ctrl-col td { padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.keys span { display: inline-block; min-width: 30px; text-align: center; padding: 3px 7px; margin: 2px; background: #222; border: 1px solid #555; border-radius: 6px; font-weight: 700; font-size: 13px; box-shadow: 0 2px 0 #000; }
.pad-title { margin-top: 16px; }
.ctrl-extra { margin-top: 14px; font-size: 13px; color: #8fb89a; text-align: center; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hud-top { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; background: rgba(4,12,7,0.72); border: 1px solid rgba(255,255,255,0.18); border-radius: 40px; padding: 8px 20px; }
.hud-team { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 16px; min-width: 120px; }
.hud-team.right { flex-direction: row-reverse; text-align: right; }
.hud-team .score { font-size: 24px; background: rgba(0,0,0,0.4); padding: 2px 10px; border-radius: 10px; min-width: 46px; text-align: center; }
.hud-team .mini-badge { width: 26px; height: 26px; border-radius: 7px; border: 2px solid #fff; flex: none; }
#hud-clock { font-weight: 900; font-size: 19px; color: #ffd24d; min-width: 64px; text-align: center; }

#player-cards { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.pcard { background: rgba(4,12,7,0.72); border: 2px solid; border-radius: 12px; padding: 6px 12px 8px; min-width: 118px; text-align: center; }
.pcard .pname { font-weight: 900; font-size: 13px; margin-bottom: 3px; }
.pcard .stam-wrap { height: 7px; background: rgba(255,255,255,0.18); border-radius: 5px; overflow: hidden; }
.pcard .stam { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #ffd24d, #ff9d2d); }
.pcard .pk { font-size: 10px; color: #bcd6c0; margin-top: 3px; letter-spacing: 0.5px; }
.pcard.has-ball { box-shadow: 0 0 12px rgba(255,255,255,0.6); }

#pen-hud { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); background: rgba(4,12,7,0.78); border: 1px solid rgba(255,255,255,0.2); border-radius: 16px; padding: 10px 22px; text-align: center; }
#pen-hud .pen-teams { display: flex; gap: 18px; align-items: center; font-weight: 900; font-size: 15px; }
#pen-hud .pen-score { font-size: 30px; font-weight: 900; color: #ffd24d; }
#pen-hud .pen-info { font-size: 12px; color: #9fd8a8; margin-top: 4px; }
.pip { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; margin: 0 2px; }
.pip.goal { background: #6ee06e; }
.pip.miss { background: #ff6b6b; }

/* overlay (goal / halftime / etc) */
#overlay { position: fixed; inset: 0; z-index: 15; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); pointer-events: none; }
#overlay-inner { text-align: center; }
#overlay-inner .big { font-size: clamp(44px, 11vw, 120px); font-weight: 900; text-shadow: 0 4px 0 #000, 0 10px 30px rgba(0,0,0,0.7); }
#overlay-inner .mid { font-size: clamp(20px, 4vw, 40px); font-weight: 900; color: #ffd24d; text-shadow: 0 3px 0 #6b5500; margin-top: 6px; }
#overlay-inner .small { font-size: 16px; color: #dcecdc; margin-top: 8px; }

/* pause */
#pause { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); }
#pause .panel { width: min(340px, 90vw); display: flex; flex-direction: column; gap: 12px; }
