:root {
  --bg: #06100d;
  --panel: #0b1814;
  --panel-2: #0f201a;
  --line: rgba(221, 240, 231, .11);
  --muted: #899c94;
  --text: #eff8f3;
  --lime: #cbf56a;
  --mint: #58e6ae;
  --amber: #ffbd68;
  --red: #ff6b62;
  --blue: #4f83ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 14px;
  overflow-x: hidden;
}
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.ambient { position: fixed; z-index: -1; filter: blur(110px); border-radius: 50%; pointer-events: none; }
.ambient-one { width: 420px; height: 420px; right: -140px; top: 80px; background: rgba(69, 204, 147, .08); }
.ambient-two { width: 360px; height: 360px; left: -170px; top: 500px; background: rgba(79, 131, 255, .06); }

.topbar {
  height: 72px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand > span:last-child { display: grid; line-height: 1; gap: 4px; }
.brand b { font: 700 13px "Unbounded", sans-serif; letter-spacing: .06em; }
.brand small { color: var(--muted); font-size: 8px; letter-spacing: .27em; }
.flag { width: 28px; height: 31px; display: grid; grid-template-rows: repeat(3, 1fr); border-radius: 4px; overflow: hidden; transform: skew(-8deg); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.flag i:nth-child(1) { background: #d42834; }
.flag i:nth-child(2) { background: #2455b9; }
.flag i:nth-child(3) { background: #f29b2f; }
.status-pill { display: flex; align-items: center; gap: 8px; color: #afc0b8; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(88,230,174,.08); }
.source-link { text-decoration: none; color: #a8bbb2; font-size: 12px; border-bottom: 1px solid #476057; padding-bottom: 3px; }
.source-link:hover { color: var(--lime); border-color: var(--lime); }

main { max-width: 1500px; margin: 0 auto; padding: 0 34px 60px; }
.hero { min-height: 250px; display: flex; justify-content: space-between; align-items: flex-end; padding: 54px 0 38px; }
.eyebrow { margin: 0 0 16px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; font: 600 clamp(36px, 5vw, 67px)/1.04 "Unbounded", sans-serif; letter-spacing: -.055em; }
h1 em { font-style: normal; color: #86a198; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(105px, 1fr)); gap: 12px; width: min(470px, 40%); }
.hero-meta > div { border-left: 1px solid var(--line); padding-left: 18px; }
.hero-meta strong { display: block; font: 600 29px "Unbounded", sans-serif; }
.hero-meta span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.hero-meta .alert-stat strong { color: var(--amber); }

.workspace { border: 1px solid var(--line); border-radius: 18px; background: rgba(8, 22, 17, .88); box-shadow: 0 25px 80px rgba(0,0,0,.25); overflow: hidden; }
.workspace-head { min-height: 68px; padding: 11px 16px 11px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.view-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 10px; background: #07120f; }
.view-tab { border: 0; background: transparent; padding: 10px 16px; border-radius: 7px; color: var(--muted); cursor: pointer; font-weight: 700; font-size: 12px; }
.view-tab.active { color: var(--text); background: #15241f; box-shadow: 0 1px 0 rgba(255,255,255,.05); }
.head-actions { display: flex; gap: 8px; }
.ghost-btn, .save-btn { height: 38px; border-radius: 9px; padding: 0 15px; cursor: pointer; font-weight: 700; font-size: 11px; }
.ghost-btn { border: 1px solid var(--line); background: transparent; color: #a2b4ac; }
.save-btn { border: 0; background: var(--lime); color: #132008; }
.save-btn span { margin-right: 5px; }
.builder-view { display: grid; grid-template-columns: 230px minmax(500px, 1fr) 285px; min-height: 650px; }
.quick-select {
  grid-column: 1 / -1;
  padding: 15px 18px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(203,245,106,.045), transparent 58%), #091511;
}
.quick-select-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.quick-select-head > div:first-child { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: start; gap: 4px 10px; }
.quick-kicker { color: var(--lime); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.quick-select-head strong { font-size: 12px; }
.quick-select-head small { grid-column: 2; color: var(--muted); font-size: 8px; }
.quick-filters { display: flex; gap: 4px; }
.quick-filter { padding: 6px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #768c82; font-size: 8px; font-weight: 800; cursor: pointer; }
.quick-filter:hover { color: #cbd9d2; }
.quick-filter.active { color: #16200e; background: var(--lime); }
.quick-swap-row { display: grid; grid-template-columns: 172px 24px minmax(0, 1fr); align-items: stretch; gap: 9px; }
.quick-current { min-height: 60px; }
.quick-current-card {
  height: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(203,245,106,.32);
  border-radius: 9px;
  background: rgba(203,245,106,.06);
}
.quick-current-card.empty { display: flex; color: #72877e; border-style: dashed; border-color: var(--line); background: transparent; font-size: 9px; line-height: 1.4; }
.quick-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: #17210d; font-size: 9px; font-weight: 800; }
.quick-current-card strong, .quick-option strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
.quick-current-card small, .quick-option small { display: block; margin-top: 4px; color: #768c82; font-size: 7px; }
.quick-arrow { display: grid; place-items: center; color: var(--lime); font-size: 15px; }
.quick-players { display: flex; gap: 7px; min-width: 0; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; scrollbar-color: #33493f transparent; }
.quick-option {
  position: relative;
  flex: 0 0 145px;
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0e1d18;
  text-align: left;
  cursor: pointer;
  transition: .16s ease;
}
.quick-option:hover { border-color: rgba(203,245,106,.45); background: #14271f; transform: translateY(-1px); }
.quick-option .quick-avatar { width: 32px; height: 32px; color: #b8c8c0; background: #1b3027; }
.quick-option.fit .quick-avatar { color: #142008; background: var(--lime); }
.quick-option.adapt .quick-avatar { color: var(--amber); background: #313c24; box-shadow: inset 0 0 0 1px var(--amber); }
.quick-option.risk .quick-avatar { color: #ff9189; background: #39201c; box-shadow: inset 0 0 0 1px var(--red); }
.fit-label { position: absolute; top: 5px; right: 6px; color: var(--mint); font-size: 6px; font-weight: 800; text-transform: uppercase; }
.quick-option.adapt .fit-label { color: var(--amber); }
.quick-option.risk .fit-label { color: var(--red); }
.quick-empty { display: flex; align-items: center; color: #71877d; font-size: 9px; }
.control-panel, .analysis-panel { padding: 24px 20px; background: rgba(7,17,14,.66); }
.control-panel { border-right: 1px solid var(--line); }
.analysis-panel { border-left: 1px solid var(--line); }
.control-block { margin-bottom: 25px; }
.control-block > label, .label { display: block; color: #789086; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .13em; font-size: 9px; font-weight: 800; }
.select-wrap { position: relative; }
.select-wrap::after { content: "⌄"; position: absolute; right: 12px; top: 50%; transform: translateY(-55%); color: var(--lime); pointer-events: none; font-size: 15px; }
select { width: 100%; appearance: none; color: var(--text); background: #10201a; border: 1px solid var(--line); border-radius: 9px; outline: none; padding: 11px 32px 11px 11px; font-weight: 700; font-size: 12px; cursor: pointer; }
select:focus { border-color: rgba(203,245,106,.55); }
.formation-select select { font: 600 18px "Unbounded", sans-serif; padding-top: 13px; padding-bottom: 13px; }
.control-note { min-height: 48px; color: var(--muted); margin: 10px 2px 0; font-size: 10px; line-height: 1.55; }
.checks { display: grid; gap: 8px; }
.check { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); }
.check i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.check strong { display: block; font-size: 10px; line-height: 1.3; }
.check small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.check.good i { background: var(--mint); box-shadow: 0 0 10px rgba(88,230,174,.5); }
.check.warn i { background: var(--amber); }
.check.bad i { background: var(--red); box-shadow: 0 0 10px rgba(255,107,98,.35); }
.tip-card { display: flex; gap: 10px; padding: 13px; margin-top: 35px; border-radius: 10px; background: rgba(79,131,255,.07); border: 1px solid rgba(79,131,255,.12); }
.tip-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: #203a5a; color: #8ab3ff; flex: 0 0 auto; }
.tip-card strong { font-size: 10px; }
.tip-card p { color: #82988f; font-size: 9px; line-height: 1.55; margin: 5px 0 0; }

.pitch-card { display: flex; flex-direction: column; padding: 18px clamp(18px, 3vw, 40px) 14px; }
.pitch-toolbar { height: 35px; display: flex; align-items: flex-start; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.pitch-toolbar > div { display: flex; align-items: center; gap: 8px; }
.pitch-toolbar b { color: #dce9e3; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px rgba(203,245,106,.8); }
.pitch {
  position: relative;
  flex: 1;
  min-height: 535px;
  border: 1px solid rgba(201,234,218,.24);
  border-radius: 8px;
  overflow: hidden;
  background-color: #153d2b;
  background-image: linear-gradient(90deg, rgba(255,255,255,.018) 50%, transparent 50%);
  background-size: 25% 100%;
  box-shadow: inset 0 0 70px rgba(0,0,0,.18);
}
.pitch::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(222,245,234,.32); border-radius: 2px; }
.pitch-lines span { position: absolute; display: block; pointer-events: none; }
.halfway { left: 9px; right: 9px; top: 50%; border-top: 1px solid rgba(222,245,234,.32); }
.center-circle { width: 92px; height: 92px; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(222,245,234,.32); border-radius: 50%; }
.center-dot { width: 3px; height: 3px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(222,245,234,.5); }
.box { width: 48%; height: 17%; left: 26%; border: 1px solid rgba(222,245,234,.32); }
.box-top { top: 8px; border-top: 0; }
.box-bottom { bottom: 8px; border-bottom: 0; }
.six { width: 22%; height: 7%; left: 39%; border: 1px solid rgba(222,245,234,.32); }
.six-top { top: 8px; border-top: 0; }
.six-bottom { bottom: 8px; border-bottom: 0; }
.arc { width: 56px; height: 28px; left: calc(50% - 28px); border: 1px solid rgba(222,245,234,.28); border-radius: 0 0 55px 55px; border-top: 0; }
.arc-top { top: 17%; }
.arc-bottom { bottom: 17%; transform: rotate(180deg); }
#player-slots { position: absolute; inset: 0; }
.player-slot { position: absolute; width: 106px; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; cursor: pointer; z-index: 2; }
.player-slot:focus { outline: none; }
.player-slot:focus .player-marker, .player-slot:hover .player-marker { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.player-marker { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--lime); border-radius: 50%; color: #15240c; background: var(--lime); font: 800 11px "Unbounded", sans-serif; transition: .18s ease; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.player-slot.adapt .player-marker { border-color: var(--amber); background: #2b3a22; color: var(--amber); }
.player-slot.risk .player-marker { border-color: var(--red); background: #39201c; color: #ff8d86; }
.role-tag { position: absolute; right: -11px; top: -6px; padding: 2px 4px; border: 1px solid rgba(255,255,255,.15); border-radius: 3px; color: #dbe8e2; background: #0b1713; font: 700 7px "Manrope", sans-serif; }
.player-name { max-width: 106px; padding: 4px 7px; color: #f5faf7; background: rgba(5,15,11,.87); border: 1px solid rgba(255,255,255,.1); border-radius: 5px; font-size: 9px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 3px 10px rgba(0,0,0,.16); }
.player-slot.selected .player-name { color: #17210d; background: var(--lime); }
.pitch-legend { min-height: 32px; display: flex; align-items: flex-end; justify-content: center; gap: 18px; color: #778d84; font-size: 8px; }
.pitch-legend span, .compare-legend span { display: flex; gap: 5px; align-items: center; }
.pitch-legend i, .compare-legend i { width: 5px; height: 5px; border-radius: 50%; }
.dot-fit { background: var(--mint); } .dot-adapt { background: var(--amber); } .dot-risk { background: var(--red); }

.panel-title { padding-bottom: 20px; }
.panel-title > div { display: flex; justify-content: space-between; align-items: center; }
.panel-title span { font: 600 14px "Unbounded", sans-serif; }
.panel-title strong { color: var(--lime); font: 600 28px "Unbounded", sans-serif; }
.panel-title small { display: block; color: var(--muted); font-size: 8px; text-align: right; }
.risk-list { display: grid; gap: 8px; }
.risk-item { border: 1px solid var(--line); border-radius: 9px; padding: 11px; background: rgba(255,255,255,.018); }
.risk-item header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.risk-item header div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.risk-item i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.risk-item strong { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.risk-item em { font-style: normal; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.risk-item p { margin: 6px 0 0 16px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.risk-item.good i { background: var(--mint); } .risk-item.good em { color: var(--mint); }
.risk-item.warn i { background: var(--amber); } .risk-item.warn em { color: var(--amber); }
.risk-item.bad i { background: var(--red); } .risk-item.bad em { color: var(--red); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.panel-subtitle { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.panel-subtitle span { font-weight: 800; font-size: 10px; }
.panel-subtitle small { color: var(--muted); font-size: 7px; }
.position-depth { display: grid; gap: 11px; }
.depth-row { display: grid; grid-template-columns: 30px 1fr 35px; align-items: center; gap: 8px; }
.depth-row > span { color: #b0c0b9; font-size: 8px; font-weight: 800; }
.depth-bar { height: 5px; background: #15231e; border-radius: 5px; overflow: hidden; }
.depth-bar i { display: block; height: 100%; border-radius: inherit; }
.depth-row small { color: var(--muted); font-size: 7px; text-align: right; }
.context-card { margin-top: 25px; border-left: 2px solid var(--blue); padding: 12px 12px 12px 14px; background: rgba(79,131,255,.06); }
.context-card > span { color: #78a2ff; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.context-card p { margin: 6px 0 0; color: #94a8a0; font-size: 8px; line-height: 1.55; }
.context-card b { color: #cadbd3; }

.compare-view { padding: 25px 30px 35px; }
.compare-view[hidden] { display: none; }
.compare-intro { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.compare-intro p { margin: 0; color: #9bafa6; font-size: 11px; }
.compare-legend { display: flex; gap: 14px; color: var(--muted); font-size: 8px; }
.compare-grid { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; }
.versus { display: grid; place-items: center; width: 34px; height: 34px; margin: auto; border: 1px solid var(--line); border-radius: 50%; color: #7a8f86; font: 700 8px "Unbounded", sans-serif; background: #08130f; z-index: 2; }
.mini-board { border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: #081510; }
.mini-board-head { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 13px; }
.mini-board-head > span { color: var(--lime); font: 600 21px "Unbounded", sans-serif; }
.mini-pitch { position: relative; min-height: 500px; border: 1px solid rgba(210,235,222,.24); border-radius: 7px; background-color: #143b29; background-image: linear-gradient(90deg, rgba(255,255,255,.018) 50%, transparent 50%); background-size: 25% 100%; overflow: hidden; }
.mini-pitch::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(222,245,234,.27); background: linear-gradient(transparent calc(50% - .5px), rgba(222,245,234,.27) 50%, transparent calc(50% + .5px)); pointer-events: none; }
.mini-pitch::after { content: ""; position: absolute; width: 70px; height: 70px; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px solid rgba(222,245,234,.27); border-radius: 50%; pointer-events: none; }
.mini-player { position: absolute; transform: translate(-50%,-50%); z-index: 1; text-align: center; }
.mini-player i { display: grid; place-items: center; width: 29px; height: 29px; margin: auto; border-radius: 50%; background: var(--lime); color: #17210d; font-style: normal; font-size: 8px; font-weight: 800; border: 1px solid var(--lime); }
.mini-player.adapt i { background: #314027; border-color: var(--amber); color: var(--amber); }
.mini-player.risk i { background: #3c201b; border-color: var(--red); color: #ff9189; }
.mini-player b { display: block; max-width: 94px; margin-top: 3px; color: #ebf5ef; background: rgba(5,15,11,.82); padding: 3px 5px; border-radius: 4px; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; min-height: 25px; }
.summary-pill { padding: 5px 8px; border-radius: 12px; font-size: 8px; font-weight: 700; background: #14231d; color: #a3b6ad; }
.summary-pill.bad { color: #ff8f88; background: rgba(255,107,98,.1); }
.summary-pill.good { color: var(--mint); background: rgba(88,230,174,.08); }

.squad-section { padding: 70px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.section-head .eyebrow { margin-bottom: 10px; }
h2 { margin: 0; font: 600 31px "Unbounded", sans-serif; letter-spacing: -.04em; }
.filter-row { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; background: #091511; border: 1px solid var(--line); border-radius: 10px; }
.filter { border: 0; border-radius: 7px; padding: 8px 12px; color: #7f958b; background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; }
.filter.active { color: #17210d; background: var(--lime); }
.squad-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 22px; }
.squad-grid { display: grid; grid-template-columns: repeat(4, minmax(145px, 1fr)); gap: 8px; align-content: start; }
.squad-card { display: grid; grid-template-columns: 37px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 62px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #0a1713; cursor: pointer; text-align: left; transition: .17s ease; }
.squad-card:hover { transform: translateY(-2px); border-color: rgba(203,245,106,.3); background: #0f2019; }
.squad-card.selected { border-color: var(--lime); box-shadow: inset 0 0 0 1px rgba(203,245,106,.18); }
.squad-card.in-xi { background: #102219; }
.avatar { position: relative; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #1c3027; color: #aec0b8; font-size: 9px; font-weight: 800; }
.in-xi .avatar { color: #142008; background: var(--lime); }
.avatar small { position: absolute; right: -3px; bottom: -1px; min-width: 15px; padding: 2px; border-radius: 4px; color: #92a69d; background: #06100d; border: 1px solid var(--line); text-align: center; font-size: 6px; }
.squad-info { min-width: 0; }
.squad-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
.squad-info span { display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6f867c; font-size: 7px; }
.squad-info em { color: var(--blue); font-style: normal; }
.watchlist { display: grid; gap: 9px; align-content: start; }
.watchlist > .label { margin-bottom: 2px; }
.watch-card { border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: #0a1713; }
.watch-card header { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 7px; }
.watch-card header span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #15241e; color: #71877e; font-size: 7px; }
.watch-card header b { font-size: 10px; }
.watch-card header em { font-style: normal; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.watch-card p { margin: 9px 0 0 29px; color: #82978e; font-size: 8px; line-height: 1.55; }
.watch-card.danger { border-left: 2px solid var(--red); } .watch-card.danger em { color: var(--red); }
.watch-card.warning { border-left: 2px solid var(--amber); } .watch-card.warning em { color: var(--amber); }
.watch-card.positive { border-left: 2px solid var(--mint); } .watch-card.positive em { color: var(--mint); }
.injury-section { margin-top: 48px; padding: 24px; border: 1px solid rgba(255,107,98,.16); border-radius: 14px; background: linear-gradient(135deg, rgba(255,107,98,.055), transparent 45%), #091511; }
.injury-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.injury-head .eyebrow { margin-bottom: 8px; color: var(--red); }
.injury-head h3 { margin: 0; font: 600 21px "Unbounded", sans-serif; letter-spacing: -.035em; }
.injury-count { display: flex; align-items: center; gap: 9px; padding-left: 16px; border-left: 1px solid rgba(255,107,98,.2); }
.injury-count strong { color: var(--red); font: 600 25px "Unbounded", sans-serif; }
.injury-count span { color: #82978e; font-size: 8px; line-height: 1.4; text-transform: uppercase; letter-spacing: .07em; }
.injury-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 8px; }
.injury-card { position: relative; min-width: 0; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 58px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(7,17,14,.72); }
.injury-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #ff8d86; background: rgba(255,107,98,.1); font-size: 17px; font-weight: 500; transform: rotate(45deg); }
.injury-card div { min-width: 0; }
.injury-card strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
.injury-card small { display: block; margin-top: 4px; color: #71877d; font-size: 7px; }
.injury-card em { padding: 3px 5px; border-radius: 4px; color: #ff8d86; background: rgba(255,107,98,.08); font-style: normal; font-size: 6px; font-weight: 800; }
.injury-note { margin: 14px 0 0; color: #71877d; font-size: 8px; }
footer { min-height: 70px; margin-top: 35px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #61756c; font-size: 9px; }
footer div { display: flex; gap: 18px; }
footer a { text-decoration: none; color: #8ca198; }
footer a:hover { color: var(--lime); }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 120px); z-index: 10; padding: 11px 16px; border: 1px solid rgba(203,245,106,.25); border-radius: 9px; background: #16231d; color: var(--lime); box-shadow: 0 15px 45px rgba(0,0,0,.4); font-size: 10px; font-weight: 800; opacity: 0; transition: .3s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

body.embed-mode { background: #07110e; }
.embed-mode .topbar,
.embed-mode .hero { display: none; }
.embed-mode main { max-width: none; padding: 10px 10px 36px; }
.embed-mode .workspace { border-radius: 12px; }
.embed-mode .squad-section { padding-top: 32px; }

@media (max-width: 1180px) {
  .builder-view { grid-template-columns: 210px minmax(440px, 1fr); }
  .analysis-panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr 1fr 1fr; gap: 24px; }
  .analysis-panel .divider { display: none; }
  .context-card { margin-top: 0; }
  .squad-grid { grid-template-columns: repeat(3, minmax(145px, 1fr)); }
}
@media (max-width: 900px) {
  .topbar, main { padding-left: 18px; padding-right: 18px; }
  .source-link { display: none; }
  .hero { min-height: auto; display: block; padding: 40px 0 30px; }
  .hero-meta { width: 100%; margin-top: 30px; }
  .builder-view { display: block; }
  .quick-select-head { align-items: flex-start; }
  .quick-select-head > div:first-child { display: block; }
  .quick-select-head strong, .quick-select-head small { display: block; margin-top: 4px; }
  .quick-filters { max-width: 54%; overflow-x: auto; padding-bottom: 3px; }
  .control-panel { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 15px; }
  .tip-card { display: none; }
  .control-block { margin: 0; }
  .pitch-card { min-height: 650px; }
  .analysis-panel { display: grid; grid-template-columns: 1fr 1.7fr; }
  .squad-layout { display: block; }
  .watchlist { margin-top: 28px; grid-template-columns: repeat(3, 1fr); }
  .watchlist > .label { grid-column: 1 / -1; }
  .injury-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .watch-card header { grid-template-columns: 22px 1fr; }
  .watch-card header em { grid-column: 2; }
  .compare-grid { grid-template-columns: 1fr; gap: 14px; }
  .versus { margin: -24px auto; }
}
@media (max-width: 650px) {
  .topbar { height: 62px; padding-left: 14px; padding-right: 14px; }
  .status-pill { font-size: 0; }
  .status-pill span { width: 8px; height: 8px; }
  main { padding: 0 10px 40px; }
  h1 { font-size: 35px; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .hero-meta > div { padding-left: 10px; }
  .hero-meta strong { font-size: 21px; }
  .hero-meta span { font-size: 8px; }
  .workspace-head { align-items: flex-start; gap: 10px; }
  .view-tab { padding: 9px 10px; font-size: 9px; }
  .ghost-btn { display: none; }
  .save-btn { padding: 0 10px; font-size: 9px; }
  .quick-select { padding: 12px 9px; }
  .quick-select-head { display: block; }
  .quick-filters { max-width: 100%; margin-top: 10px; }
  .quick-swap-row { grid-template-columns: 125px 15px minmax(0, 1fr); gap: 5px; }
  .quick-current-card { grid-template-columns: 29px minmax(0, 1fr); gap: 6px; padding: 6px; }
  .quick-current-card.empty { font-size: 8px; }
  .quick-avatar { width: 29px; height: 29px; font-size: 8px; }
  .quick-option { flex-basis: 128px; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; padding: 6px; }
  .quick-option .quick-avatar { width: 28px; height: 28px; }
  .control-panel { grid-template-columns: 1fr 1fr; padding: 16px 13px; }
  .control-block:nth-child(3) { grid-column: 1 / -1; }
  .checks { grid-template-columns: repeat(3, 1fr); }
  .check { display: block; }
  .check i { display: block; margin-bottom: 5px; }
  .pitch-card { padding: 13px 6px 8px; min-height: 590px; }
  .pitch { min-height: 520px; }
  .player-slot { width: 78px; }
  .player-marker { width: 34px; height: 34px; }
  .player-name { max-width: 78px; font-size: 7px; padding: 3px 4px; }
  .analysis-panel { display: block; padding: 20px 15px; }
  .analysis-panel > * { margin-bottom: 20px; }
  .compare-view { padding: 18px 7px 28px; }
  .compare-intro { display: block; }
  .compare-legend { margin-top: 10px; }
  .mini-pitch { min-height: 430px; }
  .section-head { display: block; }
  .filter-row { margin-top: 18px; width: max-content; max-width: 100%; }
  .squad-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .squad-card { min-height: 58px; grid-template-columns: 33px minmax(0,1fr); gap: 8px; }
  .avatar { width: 33px; height: 33px; }
  .watchlist { grid-template-columns: 1fr; }
  .injury-section { margin-top: 30px; padding: 16px 10px; }
  .injury-head h3 { font-size: 17px; }
  .injury-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
  footer div { flex-wrap: wrap; gap: 10px; }
  .embed-mode main { padding: 4px 4px 24px; }
  .embed-mode .workspace { border-radius: 8px; }
}
