:root {
  --ink: #10231b;
  --muted: #68766f;
  --green-950: #071c14;
  --green-900: #0b2b1e;
  --green-800: #134e36;
  --green: #16a36a;
  --lime: #c8f85a;
  --paper: #f4f5ef;
  --card: #ffffff;
  --line: #dde3dc;
  --red: #e55445;
  --amber: #e9a923;
  --shadow: 0 10px 35px rgba(7, 28, 20, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--green-950); }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; background: var(--green-950); color: white; }
.boot-mark, .brand-mark { display: grid; place-items: center; background: var(--lime); color: var(--green-950); font-family: Manrope, sans-serif; font-weight: 800; border-radius: 12px; }
.boot-mark { width: 64px; height: 64px; font-size: 34px; animation: pulse 1s infinite alternate; }
@keyframes pulse { to { transform: translateY(-5px); } }

.setup { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .85fr) minmax(500px, 1.15fr); background: var(--green-950); }
.setup-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 6vw, 90px); color: white; background: radial-gradient(circle at 20% 10%, #1c6547, transparent 45%), var(--green-950); }
.setup-hero::after { content: ''; position: absolute; width: 600px; height: 600px; border: 1px solid rgba(200,248,90,.18); border-radius: 50%; right: -360px; bottom: -240px; box-shadow: 0 0 0 80px rgba(200,248,90,.025), 0 0 0 160px rgba(200,248,90,.025); }
.setup-logo { display: flex; align-items: center; gap: 12px; font-family: Manrope; font-weight: 800; font-size: 21px; letter-spacing: -.4px; }
.brand-mark { width: 38px; height: 38px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.setup-hero .eyebrow { color: var(--lime); }
.setup h1 { margin: 0; max-width: 580px; font: 800 clamp(42px, 6vw, 78px)/.98 Manrope, sans-serif; letter-spacing: -4px; }
.setup-hero p { max-width: 500px; color: #b8c8c0; font-size: 17px; line-height: 1.6; }
.season-pill { position: relative; z-index: 1; align-self: flex-start; padding: 9px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; color: #dbe6e0; font-size: 13px; }
.setup-panel { overflow-y: auto; max-height: 100vh; padding: clamp(30px, 5vw, 72px); background: var(--paper); }
.setup-panel h2 { margin: 0 0 8px; font: 800 30px Manrope; letter-spacing: -1px; }
.setup-panel > p { margin: 0 0 28px; color: var(--muted); }
.coach-field { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 30px; }
.coach-field input { min-width: 0; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 13px 15px; outline: none; }
.coach-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,106,.1); }
.club-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.club-choice { display: flex; align-items: center; gap: 13px; width: 100%; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); text-align: left; transition: .2s; }
.club-choice:hover, .club-choice.selected { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow); }
.club-choice.selected { background: #effbf4; box-shadow: inset 0 0 0 1px var(--green); }
.crest { position:relative; isolation:isolate; overflow:hidden; flex:0 0 auto; display:grid; place-items:center; width:44px; height:48px; border-radius:10px 10px 15px 15px; background:linear-gradient(145deg,var(--club) 0 64%,var(--club2) 65%); color:white; border:2px solid rgba(0,0,0,.1); font:800 12px Manrope; letter-spacing:.5px; text-shadow:0 1px 3px rgba(0,0,0,.75); box-shadow:inset 0 0 0 2px rgba(255,255,255,.18); }
.crest::before { content:''; position:absolute; z-index:-1; opacity:.68; }
.crest.crest-v0::before { inset:-30% 38%; background:var(--club2); transform:rotate(24deg); }
.crest.crest-v1::before { inset:0 0 52%; border-bottom:3px solid rgba(255,255,255,.62); background:var(--club2); }
.crest.crest-v2::before { width:34px; height:34px; border:5px double var(--club2); border-radius:50%; background:rgba(255,255,255,.08); }
.crest.crest-v3::before { inset:0; background:repeating-linear-gradient(90deg,transparent 0 8px,var(--club2) 8px 13px); }
.crest b { position:relative; z-index:1; font:inherit; color:inherit; }
.crest.small { width: 32px; height: 35px; border-radius: 7px 7px 10px 10px; font-size: 9px; }
.crest.large { width: 58px; height: 64px; font-size: 15px; border-radius: 14px 14px 19px 19px; }
.club-choice strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.club-choice span:last-child { color: var(--muted); font-size: 12px; }
.start-btn, .primary-btn { border: 0; border-radius: 12px; background: var(--green-950); color: white; font-weight: 700; transition: .2s; }
.start-btn { margin-top: 24px; width: 100%; padding: 16px; }
.setup-online-link { display:block; margin-top:14px; color:var(--green); font-size:12px; font-weight:800; text-align:center; text-decoration:none; }
.start-btn:hover, .primary-btn:hover { background: var(--green-800); transform: translateY(-1px); }

.shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; background: var(--green-950); color: white; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 25px; font: 800 19px Manrope; }
.nav-label { padding: 10px 12px 8px; color: #70897d; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.nav { display: grid; gap: 4px; }
.nav-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: #9fb2a8; font-size: 14px; text-align: left; }
.nav-btn:hover { color: white; background: rgba(255,255,255,.06); }
.nav-btn.active { color: var(--lime); background: rgba(200,248,90,.1); }
.nav-icon { width: 20px; font-size: 17px; text-align: center; }
.sidebar-club { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.04); }
.sidebar-club strong { display: block; max-width: 125px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.sidebar-club span:last-child { color: #789185; font-size: 10px; }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 clamp(20px, 4vw, 52px); background: rgba(244,245,239,.88); border-bottom: 1px solid rgba(16,35,27,.07); backdrop-filter: blur(14px); }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 20px; }
.top-context { display: flex; align-items: center; gap: clamp(18px,3vw,42px); min-width: 0; }
.date-block span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.date-block strong { font: 700 14px Manrope; }
.header-opponent { display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: clamp(18px,3vw,42px); border-left: 1px solid var(--line); }
.header-opponent div { min-width: 0; }
.header-opponent span, .header-opponent small { display: block; color: var(--muted); font-size: 9px; white-space: nowrap; }
.header-opponent span { text-transform: uppercase; letter-spacing: .8px; }
.header-opponent strong { display: block; max-width: 210px; overflow: hidden; color: var(--ink); font: 700 12px Manrope; text-overflow: ellipsis; white-space: nowrap; }
.team-subheader { position:sticky; top:76px; z-index:19; display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:64px; padding:9px clamp(20px,4vw,52px); border-bottom:1px solid var(--line); background:rgba(255,255,255,.94); box-shadow:0 5px 18px rgba(7,28,20,.04); backdrop-filter:blur(14px); }
.next-opponent { display:flex; align-items:center; gap:10px; min-width:0; }
.next-opponent div { min-width:0; }
.next-opponent span, .next-opponent small, .team-indicators span { display:block; color:var(--muted); font-size:9px; letter-spacing:.55px; text-transform:uppercase; }
.next-opponent strong { display:block; overflow:hidden; max-width:280px; color:var(--ink); font:700 13px Manrope; text-overflow:ellipsis; white-space:nowrap; }
.next-opponent small { text-transform:none; letter-spacing:0; white-space:nowrap; }
.match-context { display:flex; align-items:center; gap:7px; margin-left:14px; }
.match-context b { padding:6px 8px; border-radius:7px; background:#edf4ee; color:#486154; font-size:9px; white-space:nowrap; }
.context-icon { display:grid !important; place-items:center; width:32px; height:32px; border-radius:9px; background:#edf4ee; color:var(--green) !important; font-size:15px !important; }
.team-indicators { display:flex; align-items:center; gap:30px; }
.header-morale { width:150px; }
.header-morale strong { display:block; margin-top:2px; font:800 13px Manrope; }
.header-morale .progress { height:4px; margin-top:3px; }
.header-form .form-row { margin-top:4px; }
.header-form .form { width:22px; height:22px; font-style:normal; }
.header-form small { color:var(--muted); font-size:10px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.account-button { display:inline-flex; align-items:center; gap:7px; max-width:155px; padding:8px 11px; overflow:hidden; border:1px solid var(--line); border-radius:9px; background:white; color:var(--ink); font-size:11px; font-weight:800; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
.online-dot { flex:0 0 auto; width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px rgba(22,163,106,.12); }
.money { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 13px; font-weight: 700; }
.continue-btn { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 10px; background: var(--lime); color: var(--green-950); font-weight: 800; }
.continue-btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.content { width: min(1420px, 100%); margin: 0 auto; padding: 34px clamp(20px, 4vw, 52px) 60px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-head h1 { margin: 0; font: 800 clamp(26px, 3vw, 38px) Manrope; letter-spacing: -1.5px; }
.page-head p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.tag { padding: 7px 10px; border-radius: 8px; background: #e5ece7; color: #52665c; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.grid { display: grid; gap: 18px; }
.dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); }
.card { min-width: 0; padding: 21px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 18px rgba(7,28,20,.035); }
.card.dark { color: white; border: 0; background: linear-gradient(135deg, var(--green-900), var(--green-950)); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.card-title h2 { margin: 0; font: 800 16px Manrope; }
.card-title a, .link-btn { padding: 0; border: 0; background: none; color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.fixture-hero { padding: 28px; overflow: hidden; position: relative; }
.fixture-hero::after { content:''; position:absolute; width:250px; height:250px; border:1px solid rgba(200,248,90,.13); border-radius:50%; right:-130px; top:-80px; }
.fixture-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #8da399; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.fixture-teams { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin: 35px 0; }
.fixture-team { display: grid; justify-items: center; gap: 10px; text-align: center; }
.fixture-team strong { font: 700 14px Manrope; }
.versus { color: var(--lime); font: 800 13px Manrope; }
.match-score { color: var(--lime); font: 800 30px Manrope; letter-spacing: 3px; }
.form-row { display: flex; gap: 5px; }
.form { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: white; font-size: 10px; font-weight: 800; }
.form.w { background: var(--green); } .form.d { background: #89958f; } .form.l { background: var(--red); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { padding: 16px; border-radius: 13px; background: #f7f8f4; }
.stat span { display: block; color: var(--muted); font-size: 11px; }
.stat strong { display: block; margin-top: 5px; font: 800 20px Manrope; }
.progress { overflow: hidden; height: 6px; margin-top: 10px; border-radius: 9px; background: #e2e8e3; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.news-list { display: grid; }
.news-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border: 0; padding-bottom: 0; }
.news-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #eef4ef; }
.news-item strong { display: block; font-size: 13px; line-height: 1.4; }
.news-item time { color: var(--muted); font-size: 11px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 10px; color: var(--muted); font-size: 10px; letter-spacing: .7px; text-align: left; text-transform: uppercase; border-bottom: 1px solid var(--line); }
td { padding: 12px 10px; border-bottom: 1px solid #edf0ec; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbf8; }
tr.my-team { background: #effaf3; }
.club-cell, .player-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.player-cell strong { display: block; }
.player-cell span { color: var(--muted); font-size: 11px; }
.pos-badge { display: inline-grid; place-items: center; min-width: 33px; height: 26px; padding: 0 6px; border-radius: 7px; background: #e8eee9; color: #466052; font-size: 10px; font-weight: 800; }
.rating { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--green-900); color: var(--lime); font-weight: 800; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.mini-btn { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 11px; font-weight: 700; }
.mini-btn:hover { border-color: var(--green); color: var(--green); }
.mini-btn.danger:hover { border-color: var(--red); color: var(--red); }
.mini-btn:disabled, button:disabled { cursor: not-allowed; opacity: .45; transform: none !important; }
.injury-badge { display: inline-block; padding: 5px 8px; border-radius: 7px; background: #fff0ee; color: var(--red); font-size: 10px; font-weight: 800; white-space: nowrap; }
.table-select { min-width: 105px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 11px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.filter-btn { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--muted); font-size: 11px; font-weight: 700; }
.filter-btn.active { background: var(--green-900); border-color: var(--green-900); color: white; }

.tactics-grid { grid-template-columns: minmax(360px, .9fr) minmax(390px, 1.1fr); }
.pitch { position: relative; min-height: 640px; border-radius: 16px; background: repeating-linear-gradient(90deg, #267348 0, #267348 12.5%, #2b7b4e 12.5%, #2b7b4e 25%); border: 5px solid #e9f2e8; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.pitch::before { content:''; position:absolute; inset: 5%; border: 2px solid rgba(255,255,255,.55); }
.pitch::after { content:''; position:absolute; left:50%; top:50%; width:100px; height:100px; border:2px solid rgba(255,255,255,.55); border-radius:50%; transform:translate(-50%,-50%); }
.half-line { position:absolute; z-index:0; left:5%; right:5%; top:50%; border-top:2px solid rgba(255,255,255,.55); }
.pitch-player { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 104px; text-align: center; }
.shirt { display: grid; place-items: center; width: 39px; height: 39px; margin: auto; background: var(--club); color: var(--club2); border-radius: 11px 11px 15px 15px; border: 2px solid rgba(255,255,255,.8); box-shadow: 0 3px 8px rgba(0,0,0,.24); font-size: 10px; font-weight: 800; }
.pitch-player span { display: block; overflow: hidden; margin-top: 4px; padding: 3px 5px; border-radius: 5px; background: rgba(5,24,15,.82); color: white; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; }
.tactic-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.field select { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: white; outline: none; }
.instruction { margin-bottom: 15px; }
.instruction-head { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
input[type='range'] { width: 100%; accent-color: var(--green); }
.bench-list { display: grid; gap: 7px; max-height: 260px; overflow-y: auto; }
.bench-player { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; }
.bench-player strong { flex: 1; }

.finance-grid { grid-template-columns: repeat(3, 1fr); }
.finance-card span { color: var(--muted); font-size: 11px; }
.finance-card strong { display: block; margin: 6px 0 12px; font: 800 25px Manrope; }
.finance-card small { color: var(--green); font-weight: 700; }
.finance-card small.negative { color: var(--red); }
.bar-chart { display: flex; align-items: end; gap: 9px; height: 190px; padding-top: 20px; }
.bar-col { flex: 1; display: grid; align-content: end; gap: 6px; height: 100%; text-align: center; }
.bar { min-height: 4px; border-radius: 7px 7px 2px 2px; background: var(--green); }
.bar.expense { background: #cfd8d1; }
.bar-col span { color: var(--muted); font-size: 9px; }

.result-list { display: grid; gap: 8px; }
.result-row { display: grid; grid-template-columns: 38px 1fr auto 1fr; align-items: center; gap: 9px; padding: 10px; border-radius: 10px; background: #f7f8f4; font-size: 12px; }
.result-row .home { text-align: right; }
.score-chip { padding: 5px 8px; border-radius: 6px; background: var(--green-900); color: white; font-weight: 800; white-space: nowrap; }
.week-chip { color: var(--muted); font-size: 10px; }

.empty { padding: 40px; color: var(--muted); text-align: center; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4,15,10,.72); backdrop-filter: blur(6px); }
.modal { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 26px; border-radius: 20px; background: white; box-shadow: 0 25px 70px rgba(0,0,0,.3); }
.modal h2 { margin: 0 0 8px; font: 800 25px Manrope; }
.modal > p { margin: 0 0 21px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.secondary-btn, .primary-btn { padding: 11px 15px; }
.secondary-btn { border: 1px solid var(--line); border-radius: 11px; background: white; font-weight: 700; }
.match-live { text-align: center; }
.match-modal { width: min(900px, 100%); }
.live-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.live-header > div:first-child { text-align: left; }
.live-header > button { justify-self: end; }
.live-score-block { min-width: 190px; }
.live-score { margin: 25px 0 8px; font: 800 48px Manrope; }
.live-header .live-score { margin: 5px 0 0; font-size: 38px; }
.live-teams { display: flex; justify-content: center; gap: 55px; font-weight: 700; }
.live-summary { display: flex; justify-content: center; gap: 22px; margin: 16px 0; color: var(--muted); font-size: 11px; }
.is-hidden { display: none !important; }
.commentary { display: flex; flex-direction: column; gap: 8px; height: 268px; overflow-y: auto; overflow-x: hidden; margin-top: 22px; text-align: left; overscroll-behavior: contain; }
.comment { flex: 0 0 38px; display: flex; align-items: center; min-width: 0; padding: 9px 11px; border-radius: 8px; background: #f3f6f2; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comment b { color: var(--green); margin-right: 7px; }
.comment.goal { background:#eaf8ef; color:var(--green-900); font-weight:700; }
.comment.card { background:#fff8df; }
.comment.sub { background:#eef3ff; }
.live-actions { align-items:center; }
.live-pitch { position:relative; overflow:hidden; width:100%; aspect-ratio:16/8.2; border:4px solid #e8f0e7; border-radius:14px; background:repeating-linear-gradient(90deg,#28784b 0,#28784b 10%,#2d8252 10%,#2d8252 20%); box-shadow:inset 0 0 0 2px rgba(255,255,255,.5); }
.live-pitch::before { content:''; position:absolute; inset:6%; border:2px solid rgba(255,255,255,.55); }
.live-pitch::after { content:''; position:absolute; left:50%; top:6%; bottom:6%; border-left:2px solid rgba(255,255,255,.55); }
.live-pitch-circle { position:absolute; z-index:1; left:50%; top:50%; width:72px; height:72px; border:2px solid rgba(255,255,255,.55); border-radius:50%; transform:translate(-50%,-50%); }
.live-box { position:absolute; z-index:1; top:27%; width:16%; height:46%; border:2px solid rgba(255,255,255,.5); }
.live-box.left { left:6%; border-left:0; } .live-box.right { right:6%; border-right:0; }
.live-goal { position:absolute; z-index:1; top:41%; width:2.5%; height:18%; border:2px solid rgba(255,255,255,.72); background:repeating-linear-gradient(45deg,transparent 0,transparent 4px,rgba(255,255,255,.25) 4px,rgba(255,255,255,.25) 5px); }
.live-goal.left { left:3.5%; } .live-goal.right { right:3.5%; }
.match-dot { position:absolute; z-index:3; display:grid; place-items:center; width:22px; height:22px; border:2px solid rgba(255,255,255,.88); border-radius:50%; transform:translate(-50%,-50%); box-shadow:0 2px 5px rgba(0,0,0,.3); font-size:7px; font-weight:800; transition:left var(--move-duration,.7s) ease,top var(--move-duration,.7s) ease,transform .2s ease,box-shadow .2s ease; }
.match-dot.home { background:var(--home); color:var(--home2); }
.match-dot.away { background:var(--away); color:var(--away2); }
.match-dot.active-player { z-index:4; transform:translate(-50%,-50%) scale(1.24); box-shadow:0 0 0 4px rgba(200,248,90,.4),0 3px 8px rgba(0,0,0,.4); }
.live-ball { position:absolute; z-index:5; left:50%; top:50%; width:13px; height:13px; border:2px solid #222; border-radius:50%; background:white; transform:translate(-50%,-50%); box-shadow:0 2px 5px rgba(0,0,0,.4); transition:left var(--move-duration,.9s) ease,top var(--move-duration,.9s) ease; }
.live-ball::after { content:'·'; position:absolute; inset:-5px 0 0; color:#222; font-weight:900; }
.live-ball.ball-pulse { animation:ball-pop .55s ease; }
@keyframes ball-pop { 50% { transform:translate(-50%,-50%) scale(1.6); } }
.visual-caption { height:48px; display:flex; align-items:center; justify-content:center; padding:9px 14px; border-radius:0 0 12px 12px; background:var(--green-950); color:white; font-size:12px; }
.substitution-panel { margin-top:16px; padding:18px; border:1px solid #cbd8ec; border-radius:14px; background:#f5f8ff; text-align:left; }
.substitution-panel .card-title small { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.substitution-tables { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.substitution-tables section { min-width:0; overflow:hidden; border:1px solid #dbe3ee; border-radius:11px; background:white; }
.substitution-tables h3 { display:flex; align-items:center; justify-content:space-between; margin:0; padding:10px 12px; border-bottom:1px solid #dbe3ee; font:800 12px Manrope; }
.substitution-tables h3 span { padding:3px 6px; border-radius:5px; background:#edf2fa; color:#58708e; font-size:8px; letter-spacing:.7px; text-transform:uppercase; }
.sub-table-wrap { max-height:228px; overflow:auto; }
.substitution-tables table { min-width:390px; }
.substitution-tables th, .substitution-tables td { padding:8px 9px; font-size:10px; }
.substitution-tables tbody tr { cursor:pointer; transition:.15s; }
.substitution-tables tbody tr:hover { background:#f0f7f3; }
.substitution-tables tbody tr.selected { background:#dff5e8; box-shadow:inset 4px 0 var(--green); }
.substitution-tables tbody tr.selected strong { color:var(--green-800); }
.sub-selection { min-height:38px; display:flex; align-items:center; justify-content:center; gap:8px; margin-top:12px; padding:9px 12px; border-radius:9px; background:#e9eef7; color:#53657d; font-size:11px; text-align:center; }
.sub-selection span { color:var(--green); font-size:17px; }
.match-clock { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 99px; background: #eaf3ed; color: var(--green-800); font-size: 11px; font-weight: 800; }
.match-clock::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--red); animation:pulse-dot 1s infinite; }
@keyframes pulse-dot { 50% { opacity:.35; } }
.tactic-check { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:18px 0; }
.tactic-check .stat strong { font-size:16px; }
.offer-card { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:13px; padding:14px; border:1px solid var(--line); border-radius:13px; background:#fafbf8; }
.offer-actions { display:flex; gap:7px; }
.transfer-agreements { margin-bottom:18px; border-color:#cbd8ec; background:#f8faff; }
.market-search { display:flex; align-items:center; gap:9px; margin-bottom:16px; padding:0 13px; border:1px solid var(--line); border-radius:11px; background:#f9faf7; }
.market-search span { color:var(--muted); font-size:18px; }
.market-search input { width:100%; padding:12px 0; border:0; outline:0; background:transparent; color:var(--ink); }
.cloud-grid { grid-template-columns:minmax(280px,.72fr) minmax(380px,1.28fr); }
.cloud-primary { background:linear-gradient(145deg,#fff,#eff8f2); }
.cloud-primary .primary-btn, .multiplayer-layout .primary-btn { width:100%; margin-top:18px; padding:12px; }
.sync-status { padding:5px 8px; border-radius:7px; background:#dff4e7; color:var(--green-800); font-size:9px; font-weight:800; text-transform:uppercase; }
.cloud-summary { display:grid; gap:5px; }
.cloud-summary strong { font:800 20px Manrope; }
.cloud-summary span, .online-account-card span { color:var(--muted); font-size:11px; }
.cloud-save { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:11px; padding:11px 0; border-bottom:1px solid var(--line); }
.cloud-save:last-child { border:0; }
.cloud-save div { min-width:0; }
.cloud-save strong, .cloud-save span { display:block; }
.cloud-save strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.cloud-save div span { margin-top:3px; color:var(--muted); font-size:10px; }
.cloud-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:9px; background:#e7f2eb; color:var(--green); }
.online-account-card { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; }
.online-account-card strong, .online-account-card span { display:block; }
.login-required { display:grid; justify-items:center; max-width:650px; margin:60px auto; padding:45px; text-align:center; }
.login-required h2 { margin:15px 0 5px; }
.login-required p { margin:0 0 22px; color:var(--muted); }
.login-required div { display:flex; gap:9px; }
.login-required a { display:inline-flex; padding:11px 16px; text-decoration:none; }
.multiplayer-layout { grid-template-columns:minmax(260px,.58fr) minmax(420px,1.42fr); }
.multiplayer-layout .field + .field { margin-top:14px; }
.multiplayer-layout input, .multiplayer-layout select { width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:9px; outline:0; background:white; }
.online-note { color:var(--muted); font-size:11px; line-height:1.55; }
.room-card { padding:14px; border:1px solid var(--line); border-radius:12px; background:#fafbf9; }
.room-card + .room-card { margin-top:10px; }
.room-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.room-heading strong, .room-heading span { display:block; }
.room-heading strong { font-size:13px; }
.room-heading span { margin-top:3px; color:var(--muted); font-size:10px; }
.room-players { display:flex; flex-wrap:wrap; gap:5px; margin-top:11px; }
.room-player { display:inline-flex; align-items:center; gap:4px; padding:5px 7px; border-radius:7px; background:#e9eeea; color:#526159; font-size:9px; font-weight:700; }
.room-player i { display:grid; place-items:center; width:14px; height:14px; border-radius:50%; background:#cfd8d2; font-style:normal; }
.room-player.ready { background:#dff4e7; color:var(--green-800); }
.room-player.ready i { background:var(--green); color:white; }
.error-text { color:var(--red); }
.is-loading { opacity:.55; }
.calendar-event { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); font-size:12px; }
.calendar-event:last-child { border:0; }
.event-date { min-width:55px; color:var(--muted); font-size:10px; font-weight:700; text-transform:uppercase; }
#toast-root { position:fixed; z-index:250; top:158px; right:28px; display:grid; gap:10px; width:min(430px,calc(100vw - 34px)); pointer-events:none; }
.toast { display:grid; grid-template-columns:38px 1fr; align-items:center; min-height:66px; padding:12px 16px 12px 11px; border:1px solid rgba(255,255,255,.12); border-left:5px solid var(--lime); border-radius:13px; background:var(--green-950); color:white; box-shadow:0 16px 42px rgba(7,28,20,.3); font-size:13px; line-height:1.35; animation:toast-in .28s ease-out; }
.toast-icon { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:rgba(200,248,90,.14); color:var(--lime); font:800 13px Manrope; }
.toast.urgent { border-left-color:var(--red); background:#321611; }
.toast.urgent .toast-icon { background:rgba(229,84,69,.18); color:#ff9e93; }
.toast.success { border-left-color:var(--green); }
.toast.success .toast-icon { background:rgba(22,163,106,.2); color:#8ef0ba; }
@keyframes toast-in { from { transform:translateX(24px); opacity:0; } }

@media (max-width: 980px) {
  .setup { grid-template-columns: 1fr; } .setup-hero { min-height: 430px; } .setup-panel { max-height: none; }
  .shell { grid-template-columns: 76px minmax(0,1fr); } .sidebar { padding-inline: 10px; } .brand span, .nav-label, .nav-btn span:not(.nav-icon), .sidebar-club div { display: none; } .brand { justify-content:center; padding-inline:0; } .nav-btn { justify-content:center; } .sidebar-club { justify-content:center; padding:9px; }
  .dashboard-grid, .tactics-grid { grid-template-columns: 1fr; }
  .header-opponent { display:none; }
}
@media (max-width: 680px) {
  .setup-hero { min-height: 370px; padding: 30px 24px; } .setup h1 { font-size: 45px; letter-spacing:-2.5px; } .setup-panel { padding: 32px 20px; } .club-grid { grid-template-columns: 1fr; }
  .shell { display:block; } .sidebar { position:fixed; z-index:50; left:-250px; width:230px; transition:.25s; } .sidebar.open { left:0; box-shadow:20px 0 60px rgba(0,0,0,.3); } .sidebar .brand span, .sidebar .nav-label, .sidebar .nav-btn span:not(.nav-icon), .sidebar .sidebar-club div { display:block; } .sidebar .nav-btn { justify-content:flex-start; } .mobile-menu { display:block; }
  .topbar { height:66px; padding:0 16px; } .date-block { display:none; } .money { font-size:11px; padding:7px; } .continue-btn { padding:9px 10px; font-size:12px; } .content { padding:25px 15px 45px; } .page-head { align-items:start; } .page-head .tag { display:none; }
  .team-subheader { top:66px; flex-wrap:wrap; gap:7px; min-height:94px; padding:8px 14px; } .next-opponent { width:100%; } .next-opponent .crest { display:none; } .next-opponent strong { max-width:110px; font-size:11px; } .next-opponent small { display:none; } .match-context { gap:4px; margin-left:auto; } .match-context b { padding:5px 6px; font-size:8px; } .team-indicators { width:100%; justify-content:space-between; gap:12px; } .header-morale { width:90px; } .header-morale .progress { display:none; } .header-form .form { width:19px; height:19px; }
  .stats-row, .finance-grid { grid-template-columns: repeat(2,1fr); } .fixture-teams { gap:8px; } .fixture-hero { padding:20px 14px; } .fixture-team strong { font-size:11px; } .crest.large { width:48px; height:53px; }
  .tactics-grid { display:block; } .tactics-grid > * { margin-bottom:16px; } .pitch { min-height:520px; } .pitch-player { width:75px; } .pitch-player span { font-size:8px; } .tactic-controls { grid-template-columns:1fr; }
  .offer-card { grid-template-columns:auto 1fr; } .offer-actions { grid-column:1/-1; } .tactic-check { grid-template-columns:1fr; }
  .account-button { max-width:82px; padding:7px; } .cloud-grid, .multiplayer-layout { grid-template-columns:1fr; } .online-account-card { align-items:flex-start; flex-direction:column; } .login-required { margin:20px auto; padding:28px 18px; }
  .live-header { grid-template-columns:1fr auto; } .live-score-block { grid-column:1/-1; grid-row:1; } .live-header > div:first-child { grid-row:2; } .live-header > button { grid-row:2; } .live-summary { flex-wrap:wrap; gap:8px 14px; } .match-modal { padding:18px; } .live-pitch { aspect-ratio:4/3; } .match-dot { width:18px; height:18px; } .live-actions { flex-wrap:wrap; } .substitution-tables { grid-template-columns:1fr; } .sub-table-wrap { max-height:170px; }
  #toast-root { top:172px; right:16px; }
  th, td { padding:10px 7px; } .hide-mobile { display:none; }
}
