﻿:root {
  --ink: #17201b;
  --muted: #627069;
  --paper: #f7f4ef;
  --panel: #ffffff;
  --line: #d8ddd5;
  --grass: #246b45;
  --grass-dark: #185238;
  --gold: #c9972d;
  --red: #be3b35;
  --blue: #2f6f98;
  --shadow: 0 18px 40px rgba(25, 35, 30, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #f6f3ed 0%, #e9eee8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar h1,
.setup-content h2,
.draft-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.top-actions,
.setup-actions,
.draft-head,
.tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.primary,
.secondary,
.tab {
  min-height: 42px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.icon-button {
  width: auto;
  min-width: 58px;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 850;
}

.primary {
  padding: 0 18px;
  color: #fff;
  background: var(--grass);
  border-color: var(--grass);
  font-weight: 800;
}

.secondary,
.tab {
  padding: 0 14px;
  font-weight: 700;
}

.wide {
  width: 100%;
}

.hidden {
  display: none !important;
}

.setup-panel {
  position: relative;
  min-height: min(760px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.pitch-hero {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 12.5%),
    repeating-linear-gradient(90deg, var(--grass), var(--grass) 120px, var(--grass-dark) 120px, var(--grass-dark) 240px);
}

.pitch-hero::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 3px solid rgba(255,255,255,0.82);
}

.center-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(28vw, 280px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255,255,255,0.82);
  border-radius: 50%;
}

.box {
  position: absolute;
  top: 28%;
  width: 15%;
  height: 44%;
  border: 3px solid rgba(255,255,255,0.82);
}

.box-left {
  left: 28px;
  border-left: 0;
}

.box-right {
  right: 28px;
  border-right: 0;
}

.ball {
  position: absolute;
  left: 49%;
  top: 49%;
  width: 18px;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(23, 32, 27, 0.08);
}

.setup-content {
  position: relative;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(36px, 8vw, 92px) 0 34px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.3);
}

.setup-content h2 {
  max-width: 660px;
  font-size: clamp(2rem, 7vw, 5.5rem);
  line-height: 0.94;
}

.setup-content p:not(.eyebrow) {
  max-width: 650px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.setup-actions {
  flex-wrap: wrap;
  max-width: 720px;
  padding-top: 12px;
}

select {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
}

.game-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

.side-panel,
.main-panel {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.side-panel {
  position: sticky;
  top: 16px;
  padding: 16px;
}

.main-panel {
  padding: 18px;
}

.team-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.team-badge span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(135deg, var(--grass), var(--blue));
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(23, 32, 27, 0.16);
}

.team-badge strong,
.team-badge small {
  display: block;
}

.team-badge small {
  color: var(--muted);
}

.meter-block {
  display: grid;
  gap: 8px;
  padding: 16px 0;
}

.meter-row,
.quota-item,
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meter {
  height: 9px;
  overflow: hidden;
  background: #e6ebe4;
  border-radius: 999px;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--grass);
  transition: width 160ms ease;
}

.quota-list {
  display: grid;
  gap: 8px;
  padding: 10px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quota-item {
  color: var(--muted);
  font-size: 0.92rem;
}

.quota-item strong {
  color: var(--ink);
}

.tactics {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.tactics label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tactics select {
  width: 100%;
  color: var(--ink);
  font-weight: 700;
  text-transform: none;
}

.draft-head {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.draft-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 190px;
}

.player-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.player-card.star {
  border-color: rgba(201, 151, 45, 0.55);
  box-shadow: inset 3px 0 0 var(--gold);
}

.player-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-right: 30px;
}

.player-title {
  min-width: 0;
}

.player-title strong,
.player-country {
  display: block;
}

.player-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.05rem;
}

.player-country,
.source-line,
.player-line,
.attr-line {
  color: var(--muted);
}

.player-country {
  margin-top: 3px;
  font-size: 0.88rem;
  font-weight: 700;
}

.ger {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.info-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  background: #eef4f1;
  font-weight: 900;
  font-size: 0.9rem;
}

.info-btn:hover,
.info-btn:focus-visible {
  outline: 2px solid rgba(47, 111, 152, 0.22);
  border-color: var(--blue);
}

.player-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.player-line span + span,
.player-line strong {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  background: #edf4f7;
  color: #173f52;
  font-size: 0.78rem;
}

.player-line strong {
  color: #6b4800;
  background: #f5dc97;
}

.country-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 20px;
  padding: 0;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--badge-hue), 48%, 34%), hsl(calc(var(--badge-hue) + 28), 54%, 44%));
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.attr-line {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.source-line {
  font-size: 0.86rem;
  line-height: 1.35;
}

.squad-card-main .country-badge {
  transform: translateY(-1px);
}

.profile-note {
  margin: 0;
  padding: 10px;
  border-left: 3px solid var(--blue);
  color: var(--ink);
  background: #f5f8f4;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pick-btn {
  min-height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.tabs {
  margin: 18px 0 14px;
  border-bottom: 1px solid var(--line);
}

.tab {
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #edf1eb;
}

.tab.active {
  background: var(--panel);
  color: var(--grass);
}

.squad-list {
  display: grid;
  gap: 12px;
}

.squad-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.squad-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  background: #edf1eb;
  border-bottom: 1px solid var(--line);
}

.squad-group h3 {
  margin: 0;
  font-size: 0.95rem;
}

.squad-group header span {
  color: var(--muted);
  font-weight: 900;
}

.squad-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 8px;
  padding: 8px;
}

.squad-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.15fr) minmax(0, 0.95fr) 58px;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 9px 10px;
  border: 1px solid #e7ece5;
  border-radius: 8px;
  background: #fff;
}

.squad-foot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #173f52;
  background: #dfeef4;
  font-weight: 900;
}

.squad-card-main,
.squad-card-traits,
.squad-card-side {
  min-width: 0;
}

.squad-card-main strong,
.squad-card-main small,
.squad-card-traits span,
.squad-card-traits small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.squad-card-main strong {
  font-size: 0.95rem;
}

.squad-card-main small,
.squad-card-traits small {
  color: var(--muted);
  font-size: 0.8rem;
}

.squad-card-traits span {
  font-size: 0.86rem;
  font-weight: 800;
}

.squad-card-side {
  display: flex;
  width: 58px;
  justify-self: end;
  justify-content: flex-end;
  overflow: hidden;
  text-align: right;
}

.squad-card-side strong {
  display: block;
  max-width: 100%;
  padding-right: 2px;
  overflow: hidden;
  font-size: 0.96rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-overflow: clip;
  white-space: nowrap;
}

.empty-slot {
  min-height: 42px;
  padding: 10px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.lineup-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.lineup-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.lineup-pitch {
  display: none;
}

.lineup-pitch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 50%;
}

.shirt {
  position: absolute;
  width: clamp(124px, 17%, 164px);
  min-height: 58px;
  transform: translate(-50%, -50%);
  padding: 9px 11px;
  border-radius: 8px;
  color: #fff;
  background: rgba(23, 32, 27, 0.84);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.shirt.pos-sector-defense {
  background: linear-gradient(135deg, rgba(92, 34, 32, 0.9), rgba(23, 32, 27, 0.84));
  border: 1px solid rgba(233, 176, 170, 0.45);
}

.shirt.pos-sector-mid {
  background: linear-gradient(135deg, rgba(100, 80, 34, 0.9), rgba(23, 32, 27, 0.84));
  border: 1px solid rgba(236, 213, 151, 0.45);
}

.shirt.pos-sector-attack {
  background: linear-gradient(135deg, rgba(40, 76, 105, 0.9), rgba(23, 32, 27, 0.84));
  border: 1px solid rgba(173, 205, 229, 0.45);
}

.shirt.pos-sector-gk {
  background: linear-gradient(135deg, rgba(46, 67, 56, 0.9), rgba(23, 32, 27, 0.84));
  border: 1px solid rgba(191, 207, 196, 0.36);
}

.shirt strong,
.shirt small {
  margin-top: 3px;
  color: #d9e6dc;
  font-size: 0.72rem;
  line-height: 1.15;
  white-space: nowrap;
}

.shirt strong {
  font-size: 0.82rem;
  line-height: 1.12;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.shirt small {
  color: #d9e6dc;
  font-size: 0.7rem;
}

.report,
.cup-results {
  display: grid;
  gap: 10px;
}

.report-card,
.group-card,
.knockout-card,
.match-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.match-scroll-area {
  display: grid;
  gap: 10px;
}

.match-summary-panel {
  box-shadow: 0 8px 18px rgba(22, 34, 28, 0.06);
}

.match-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.match-summary-panel.collapsed .scoreboard {
  grid-template-columns: 1fr 58px 1fr;
}

.match-summary-panel.collapsed .scoreboard > div:not(.clock) {
  padding: 8px 10px;
}

.match-summary-panel.collapsed .scoreboard span {
  font-size: 1.45rem;
}

.report-card h3,
.group-card h3,
.knockout-card h3,
.match-panel h3 {
  margin: 0 0 10px;
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr 78px 1fr;
  align-items: center;
  gap: 10px;
}

.scoreboard > div:not(.clock) {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #edf1eb;
  border-radius: 8px;
}

.scoreboard > div:last-child {
  text-align: right;
}

.scoreboard strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreboard span {
  font-size: 2rem;
  font-weight: 900;
}

.live-match-stats {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #edf1eb;
  border-radius: 8px;
  background: #fbfdfb;
}

.live-stats-head,
.live-stat-row {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(108px, 1.2fr) minmax(72px, 1fr);
  align-items: center;
  gap: 10px;
}

.live-stats-head {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.live-stats-head strong:last-child,
.live-stat-row b:last-child {
  text-align: right;
}

.live-stats-head span,
.live-stat-row span {
  text-align: center;
}

.live-stat-row {
  padding: 4px 0;
  border-top: 1px solid #eef2ed;
}

.live-stat-row b {
  font-size: 0.98rem;
}

.match-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.match-insights article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e4ebe1;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdfb, #ffffff);
}

.match-insights small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-insights strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.98rem;
}

.match-insights span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.clock {
  display: grid;
  place-items: center;
  min-height: 58px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.match-actions,
.sub-grid,
.penalty-box {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  margin-top: 8px;
}

.match-actions button,
.penalty-box button,
.sub-grid button {
  min-height: 38px;
}

.event-log {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.event-log div {
  padding: 8px 10px;
  border-left: 3px solid var(--blue);
  background: #f5f8f4;
  border-radius: 6px;
  font-size: 0.9rem;
}

.sub-grid label {
  display: grid;
  gap: 4px;
  min-width: min(260px, 100%);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sub-grid select,
.penalty-box select {
  min-width: min(320px, 100%);
}

.penalty-box {
  padding: 10px;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stats-main-title {
  grid-column: 1 / -1;
}

.stats-main-title h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.lineup-editor-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.lineup-editor-card h3 {
  margin: 0 0 10px;
}

.visual-editor-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.visual-editor-card summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
}

.visual-editor-card summary::-webkit-details-marker {
  display: none;
}

.board-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.board-card-head > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
  min-width: 0;
}

.board-card-head .board-icon {
  grid-row: 1 / 3;
}

.board-card-head strong {
  font-size: 1rem;
}

.board-tactic-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) repeat(3, minmax(120px, 1fr)) auto;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f9f5;
}

.board-tactic-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.board-tactic-toolbar label > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.board-tactic-toolbar select,
.board-tactic-apply {
  width: 100%;
  min-height: 38px;
  font-size: 0.8rem;
  font-weight: 800;
}

.board-tactic-apply {
  width: auto;
  min-width: 86px;
  padding-inline: 14px;
}

.board-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.board-toggle-btn {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 0.78rem;
}

.board-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.match-visual-editor.collapsed {
  padding: 10px 12px;
}

.compact-lineup {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.compact-lineup span {
  max-width: 190px;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef4ee;
  font-size: 0.74rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.drag-editor-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(220px, 0.28fr);
  gap: 12px;
  margin-top: 12px;
}

.drag-pitch {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(0deg, transparent 49.6%, rgba(255,255,255,0.65) 49.6% 50.4%, transparent 50.4%),
    repeating-linear-gradient(0deg, var(--grass), var(--grass) 86px, var(--grass-dark) 86px, var(--grass-dark) 172px);
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: inset 0 0 0 2px rgba(19, 65, 42, 0.35);
}

.drag-pitch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,0.65);
  border-radius: 50%;
}

.drag-slot {
  position: absolute;
  display: grid;
  gap: 4px;
  width: clamp(158px, 21%, 205px);
  min-height: 94px;
  transform: translate(-50%, -50%);
  padding: 7px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px;
  background: rgba(10, 30, 21, 0.62);
  color: #fff;
}

.drag-slot > span {
  color: #d9e6dc;
  font-size: 0.68rem;
  font-weight: 900;
}

.drag-role-label,
.drag-role-select {
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 3px 7px;
  border-radius: 6px;
  color: #d9e6dc;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.7rem;
  font-weight: 900;
}

.drag-role-select {
  color: var(--ink);
  background: #f7fbf8;
  cursor: pointer;
}

.drag-slot em {
  color: rgba(255,255,255,0.74);
  font-size: 0.72rem;
  font-style: normal;
}

.drag-slot.drag-over {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}

.drag-slot.improvised {
  border-color: rgba(201, 151, 45, 0.9);
}

.drag-slot.injured,
.drag-slot.sent-off {
  border-color: rgba(170, 55, 55, 0.95);
  box-shadow: 0 0 0 2px rgba(170, 55, 55, 0.24);
}

.drag-player {
  position: relative;
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 66px;
  padding: 8px 9px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 7px;
  color: #fff;
  background: rgba(18, 25, 22, 0.9);
  cursor: grab;
  text-align: left;
  touch-action: none;
}

.drag-player.pos-sector-defense {
  border-color: rgba(233, 176, 170, 0.58);
  background: linear-gradient(135deg, rgba(86, 33, 31, 0.92), rgba(18, 25, 22, 0.9) 62%);
}

.drag-player.pos-sector-mid {
  border-color: rgba(236, 213, 151, 0.58);
  background: linear-gradient(135deg, rgba(94, 75, 33, 0.92), rgba(18, 25, 22, 0.9) 62%);
}

.drag-player.pos-sector-attack {
  border-color: rgba(173, 205, 229, 0.58);
  background: linear-gradient(135deg, rgba(38, 75, 104, 0.92), rgba(18, 25, 22, 0.9) 62%);
}

.drag-player.pos-sector-gk {
  border-color: rgba(191, 207, 196, 0.44);
  background: linear-gradient(135deg, rgba(45, 68, 58, 0.92), rgba(18, 25, 22, 0.9) 62%);
}

.drag-player.booked {
  border-color: rgba(201, 151, 45, 0.9);
  box-shadow: 0 0 0 2px rgba(201, 151, 45, 0.18);
}

.drag-player.sent-off {
  border-color: rgba(170, 55, 55, 0.95);
  box-shadow: 0 0 0 2px rgba(170, 55, 55, 0.2);
}

.card-marker {
  position: absolute;
  top: -9px;
  right: -7px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 22px;
  border-radius: 3px;
  transform: rotate(8deg);
  font-size: 0.62rem;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.22);
}

.card-marker.yellow-card {
  border: 1px solid #c9972d;
  color: #5c4100;
  background: #ffd84d;
}

.card-marker.red-card {
  right: 12px;
  border: 1px solid #7f2525;
  color: #fff;
  background: #c83c3c;
}

.drag-player:active {
  cursor: grabbing;
}

.drag-player.selected {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.26);
}

.drag-player.dragging-source {
  opacity: 0.45;
}

.drag-ghost {
  position: fixed;
  z-index: 3000;
  width: 150px;
  max-width: 180px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.94;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.drag-player strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}

.drag-player span {
  color: #d9e6dc;
  font-size: 0.74rem;
}

.drag-player small {
  min-width: 0;
  overflow: hidden;
  color: #c7d9cf;
  font-size: 0.7rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drag-bench {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 680px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.drag-bench > strong {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.drag-bench > div {
  display: grid;
  gap: 6px;
}

.drag-bench .drag-player {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.drag-bench .drag-player.pos-sector-defense {
  border-color: #edcbc8;
  background: #fff5f3;
}

.drag-bench .drag-player.pos-sector-mid {
  border-color: #eadfb8;
  background: #fffbed;
}

.drag-bench .drag-player.pos-sector-attack {
  border-color: #c9deec;
  background: #f2f8fc;
}

.drag-bench .drag-player.pos-sector-gk {
  border-color: #d3ddd5;
  background: #f6faf7;
}

.drag-bench .drag-player span {
  color: var(--muted);
}

.drag-bench .drag-player small {
  color: var(--muted);
}

.drag-bench .drag-player.booked {
  border-color: rgba(201, 151, 45, 0.9);
  box-shadow: 0 0 0 2px rgba(201, 151, 45, 0.16);
}

.drag-bench .drag-player.injured,
.drag-bench .drag-player.sent-off {
  border-color: rgba(170, 55, 55, 0.95);
  background: #fff1f1;
  box-shadow: 0 0 0 2px rgba(170, 55, 55, 0.18);
}

.readonly-player {
  cursor: default;
  touch-action: auto;
}

.readonly-player:active {
  cursor: default;
}

.readonly-slot {
  pointer-events: none;
}

.readonly-bench .readonly-player {
  pointer-events: none;
}

.opponent-board-card {
  margin-top: 12px;
}

.opponent-board-grid {
  grid-template-columns: minmax(540px, 1fr) minmax(210px, 0.26fr);
}

.opponent-pitch {
  min-height: 560px;
}

.opponent-board-grid .drag-slot {
  width: clamp(138px, 20%, 190px);
  min-height: 88px;
}

.board-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 18px;
  background: rgba(9, 20, 15, 0.78);
}

.board-fullscreen-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  width: min(1500px, 100%);
  height: min(940px, calc(100vh - 36px));
  margin: 0 auto;
  padding: 16px;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 24px 90px rgba(0,0,0,0.35);
}

.board-fullscreen-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.board-fullscreen-card > header div {
  display: grid;
  gap: 2px;
}

.board-fullscreen-card > header strong {
  font-size: 1.2rem;
}

.board-fullscreen-card > header span {
  color: var(--muted);
  font-size: 0.84rem;
}

.fullscreen-grid {
  grid-template-columns: minmax(760px, 1fr) minmax(280px, 0.32fr);
  min-height: 0;
}

.fullscreen-pitch {
  min-height: 0;
  height: 100%;
}

.board-fullscreen .drag-bench {
  max-height: none;
  min-height: 0;
}

.board-fullscreen .drag-slot {
  width: clamp(190px, 19%, 260px);
  min-height: 110px;
}

.sidebar-tactic-summary {
  display: grid;
  gap: 0;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
}

.sidebar-tactic-summary p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.sidebar-tactic-summary p:last-child {
  border-bottom: 0;
}

.sidebar-tactic-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.sidebar-tactic-summary strong {
  overflow: hidden;
  font-size: 0.75rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tactics-state-controls {
  display: none;
}

.board-fullscreen .drag-player {
  min-height: 72px;
}

.board-fullscreen-btn {
  margin-left: auto;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(46, 121, 163, 0.35);
  color: var(--blue);
  background: #fff;
  font-size: 0.78rem;
}

.lineup-select-list {
  display: grid;
  gap: 7px;
}

.lineup-select-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.lineup-select-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.lineup-select-row select {
  width: 100%;
  min-height: 34px;
  font-size: 0.86rem;
  font-weight: 700;
}

.lineup-select-stack {
  display: grid;
  gap: 4px;
}

.lineup-select-stack .slot-role-select {
  max-width: 132px;
  min-height: 28px;
  color: var(--blue);
  background: #fff;
  border-color: rgba(46, 121, 163, 0.45);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.lineup-select-stack .slot-role-select:hover,
.lineup-select-stack .slot-role-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 121, 163, 0.12);
  outline: none;
}

.result-row {
  min-height: 34px;
  border-bottom: 1px solid #edf1eb;
  font-size: 0.92rem;
}

.result-row:last-child {
  border-bottom: 0;
}

.warn {
  color: var(--red);
  font-weight: 800;
}

.ok {
  color: var(--grass);
  font-weight: 800;
}

@media (max-width: 980px) {
  .game-grid,
  .lineup-wrap {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .card-grid,
  .squad-list {
    grid-template-columns: 1fr;
  }

  .lineup-pitch {
    min-height: 560px;
  }

  .drag-editor-grid {
    grid-template-columns: 1fr;
  }

  .board-tactic-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-tactic-apply {
    width: 100%;
  }

  .drag-pitch {
    min-height: 560px;
  }

  .drag-bench {
    max-height: 280px;
  }

  .board-fullscreen {
    padding: 10px;
  }

  .board-fullscreen-card {
    height: calc(100vh - 20px);
  }

  .fullscreen-grid {
    grid-template-columns: 1fr;
  }

  .fullscreen-pitch {
    min-height: 62vh;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .match-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  .app-shell {
    padding: 12px;
  }

  .topbar {
    align-items: flex-start;
  }

  .setup-actions,
  .setup-actions select,
  .setup-actions button {
    width: 100%;
  }

  .shirt {
    width: clamp(104px, 24vw, 132px);
    min-height: 54px;
    padding: 8px 9px;
  }

  .shirt strong {
    font-size: 0.76rem;
  }

  .squad-group-grid {
    grid-template-columns: 1fr;
  }

  .squad-card {
    grid-template-columns: 34px minmax(0, 1fr) 54px;
  }

  .squad-card-side {
    width: 54px;
  }

  .squad-card-traits {
    grid-column: 2 / 4;
  }

  .scoreboard {
    grid-template-columns: 1fr;
  }

  .scoreboard > div:last-child {
    text-align: left;
  }

  .clock {
    min-height: 42px;
  }

  .match-insights {
    grid-template-columns: 1fr;
  }

}

.lineup-select-row small {
  grid-column: 2 / 3;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.halftime-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(201, 151, 45, 0.45);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fffaf0;
}

.halftime-box strong,
.halftime-box span {
  min-width: 0;
}

.halftime-box button {
  grid-row: 1 / 3;
  grid-column: 2;
}

.shootout-card {
  width: min(820px, calc(100vw - 28px));
}

.shootout-card > p {
  margin: 0 0 12px;
}

.shootout-order {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.shootout-order label {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shootout-order select {
  min-width: 0;
}

.shootout-opponent {
  display: grid;
  gap: 4px;
  margin: 10px 0 14px;
  padding: 10px;
  border: 1px solid #edf1eb;
  border-radius: 8px;
  background: #fbfcfa;
}

.shootout-opponent span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.shootout-scoreboard {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 10px;
  border: 1px solid #edf1eb;
  border-radius: 8px;
  background: #f8fbf7;
}

.shootout-team-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.shootout-team-row strong {
  min-width: 0;
}

.shootout-team-row b {
  justify-self: end;
  font-size: 1.25rem;
}

.shootout-boxes {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 5px;
}

.shootout-box {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #d9e2d6;
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 1000;
}

.shootout-box.scored,
.shootout-sides li.scored strong {
  color: #0b5d37;
  background: #e6f5ec;
}

.shootout-box.missed,
.shootout-sides li.missed strong {
  color: #8a2b23;
  background: #fbeae7;
}

.shootout-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 14px;
}

.shootout-sides section {
  min-width: 0;
  padding: 10px;
  border: 1px solid #edf1eb;
  border-radius: 8px;
  background: #fff;
}

.shootout-sides h4 {
  margin: 0 0 8px;
}

.shootout-sides ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shootout-sides li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.shootout-sides li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shootout-sides li strong {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.shootout-next {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.shootout-next p {
  flex: 1 1 320px;
  margin: 0;
}

.shootout-next label {
  flex: 1 1 360px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shootout-next select {
  min-width: 0;
}

.restart-card .shootout-result-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dce5de;
  border-radius: 8px;
  background: #f7faf7;
}

.shootout-result-head > div {
  display: grid;
  gap: 3px;
}

.shootout-result-head .eyebrow {
  margin: 0;
}

.shootout-result-head h3 {
  font-size: 1.35rem;
}

.shootout-result-head p:last-child {
  color: var(--muted);
}

.shootout-result-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: var(--grass);
  font-size: 1.7rem;
  font-weight: 1000;
}

.shootout-result-card.lost .shootout-result-head {
  border-color: #eed1cd;
  background: #fff8f7;
}

.shootout-result-card.lost .shootout-result-mark {
  background: var(--red);
}

.restart-card .shootout-result-actions {
  display: flex;
  justify-content: flex-end;
}

.opponent-panel h3,
.cup-overview h3,
.saves-card h3 {
  margin-bottom: 8px;
}

.collapsible-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.collapsible-head h2,
.collapsible-head h3 {
  margin: 0 0 6px;
}

.section-toggle-btn {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.opponent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.opponent-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef4ee;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.opponent-lineup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.opponent-lineup div,
.save-item {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #edf1eb;
  border-radius: 8px;
  background: #fbfcfa;
  min-width: 0;
}

.opponent-lineup strong,
.opponent-lineup span,
.save-item strong,
.save-item span,
.result-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opponent-lineup span,
.save-item span,
.result-row small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.stats-grid-wide {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 12px;
}

.overview-grid h4 {
  margin: 0 0 6px;
}

.overview-grid summary {
  cursor: pointer;
  font-weight: 900;
  margin-bottom: 8px;
}
.cup-dashboard {
  align-items: start;
}

.cup-dashboard section,
.cup-group-detail,
.bracket-round {
  min-width: 0;
}

.cup-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 16px 0 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.cup-section-title h4,
.cup-group-detail h4,
.bracket-round h4 {
  margin: 0;
}

.cup-section-title span,
.cup-group-detail header span,
.muted-line {
  color: var(--muted);
  font-size: 0.78rem;
}

.cup-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
}

.cup-group-detail {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.cup-group-detail header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.standings-scroll {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.standings-table th,
.standings-table td {
  padding: 6px 5px;
  border-bottom: 1px solid #edf1eb;
  text-align: right;
  white-space: nowrap;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  text-align: left;
  min-width: 130px;
}

.standings-table thead th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.standings-table tr.qualified td:first-child {
  border-left: 3px solid var(--grass);
}

.standings-table tr.third-place td:first-child {
  border-left: 3px solid var(--gold);
}

.cup-group-detail details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.cup-group-detail summary {
  cursor: pointer;
  font-weight: 900;
}

.cup-overview .result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 5px 0;
}

.cup-overview .result-row span,
.bracket-match span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cup-overview .result-row small {
  grid-column: 1 / 3;
}

.live-row {
  border-left: 3px solid var(--blue);
  padding-left: 8px !important;
  background: #f5fafc;
}

.bracket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.bracket-round {
  display: grid;
  gap: 7px;
}

.bracket-match {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.bracket-match.next {
  border-color: rgba(47, 120, 161, 0.45);
  background: #f4f9fc;
}

.bracket-match.done {
  background: #f6faf4;
}

.saves-panel,
.save-list {
  display: grid;
  gap: 10px;
}

.save-item {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.secondary.danger {
  color: var(--red);
}

.disabled-save {
  opacity: 0.68;
  background: #f7f4f1;
}

@media (max-width: 980px) {
  .overview-grid,
  .stats-grid-wide,
  .save-item {
    grid-template-columns: 1fr;
  }

  .halftime-box {
    grid-template-columns: 1fr;
  }

  .halftime-box button {
    grid-row: auto;
    grid-column: auto;
  }
}


.ratings-panel,
.tactic-panel,
.pre-match-card {
  display: grid;
  gap: 10px;
}

.ratings-head,
.cup-group-detail header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ratings-head h3,
.ratings-head small {
  display: block;
}

.ratings-head small {
  color: var(--muted);
  font-size: 0.78rem;
}

.ratings-actions {
  display: flex;
  gap: 6px;
}

.ratings-actions button {
  min-width: 38px;
}

.rating-card-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
}

.rating-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  min-width: 0;
}

.rating-card strong,
.rating-card small,
.rating-card p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.rating-note {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--grass);
  font-weight: 900;
}

.tactic-grid {
  margin-top: 0;
}

.poly-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.poly-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef4ee;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.restart-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(14, 24, 19, 0.45);
}

.restart-card {
  width: min(420px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: grid;
  gap: 12px;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(23, 32, 27, 0.24);
}

.restart-card h3,
.restart-card p {
  margin: 0;
}

.restart-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shootout-card .shootout-scoreboard,
.shootout-card .shootout-order,
.shootout-card .shootout-opponent,
.shootout-card .shootout-sides,
.shootout-card .shootout-sides ol {
  display: grid;
}

.shootout-card .shootout-team-row,
.shootout-card .shootout-sides li {
  display: grid;
}

.shootout-card .shootout-boxes {
  display: grid;
}

.shootout-card .shootout-box {
  display: grid;
}

.champion-card .cup-art {
  display: grid;
}

.champion-card {
  width: min(520px, 100%);
  overflow-x: hidden;
  overflow-y: auto;
  text-align: center;
  border-color: #d5a629;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 202, 83, 0.26), transparent 42%),
    var(--panel);
}

.final-ceremony-card {
  width: min(720px, 100%);
}

.restart-card::-webkit-scrollbar {
  width: 10px;
}

.restart-card::-webkit-scrollbar-thumb {
  border: 2px solid var(--panel);
  border-radius: 8px;
  background: #9ca8a1;
}

.champion-card .eyebrow {
  justify-self: center;
  margin: -2px 0 0;
}

.champion-card h3 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.champion-card > div:last-child {
  justify-content: center;
}

.cup-art {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: -4px -4px 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 90, 58, 0.95), rgba(37, 123, 78, 0.78)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.28), transparent 56%);
}

.cup-art svg {
  width: min(280px, 82%);
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(11, 28, 20, 0.32));
}

.cup-body,
.cup-handle,
.cup-stem,
.cup-base {
  fill: #f4c542;
  stroke: #fff2a9;
  stroke-width: 5;
  stroke-linejoin: round;
}

.cup-handle {
  fill: none;
}

.cup-glow {
  fill: rgba(255, 255, 255, 0.24);
}

.cup-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.66);
  stroke-width: 5;
  stroke-linecap: round;
}

.final-awards {
  display: grid;
  gap: 10px;
  margin: 4px 0;
  padding: 12px;
  border: 1px solid #e8dbad;
  border-radius: 8px;
  background: #fffaf0;
  text-align: left;
}

.final-awards h4 {
  margin: 0;
  text-align: center;
}

.restart-card .final-podium {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.final-podium article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #ecd78f;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff7d6, #ffffff);
}

.final-podium small {
  color: #99751e;
  font-weight: 1000;
  text-transform: uppercase;
}

.final-podium strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-four-card ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-four-card li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px;
  align-items: baseline;
}

.top-four-card li span {
  color: #99751e;
  font-weight: 900;
}

.top-four-card li strong {
  white-space: normal;
}

.restart-card .final-awards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.final-awards-grid article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #eee1b7;
  border-radius: 8px;
  background: #fff;
}

.final-awards-grid small {
  color: #99751e;
  font-weight: 1000;
  text-transform: uppercase;
}

.final-awards-grid strong,
.final-awards-grid span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-awards-grid span {
  color: var(--muted);
  font-size: 0.84rem;
}

.restart-card .trophy-tie-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 5px;
  min-width: 0;
}

.restart-card .trophy-tie-list div {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #f1ead5;
}

.trophy-tie-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 980px) {
  .rating-card-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 620px) {
  .restart-card .final-podium,
  .restart-card .final-awards-grid {
    grid-template-columns: 1fr;
  }

  .restart-card {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 14px;
  }
}

.match-board-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
  padding-top: 4px;
}

.match-board-head small {
  color: var(--muted);
  font-size: 0.78rem;
}

.match-slot-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.match-slot-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 5px 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.match-slot-row > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.match-slot-row select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  font-size: 0.82rem;
  font-weight: 800;
}

.match-slot-row .slot-role-select {
  min-height: 28px;
  font-size: 0.78rem;
  color: var(--blue);
  background: #fff;
  border-color: rgba(46, 121, 163, 0.45);
  font-weight: 900;
  cursor: pointer;
}

.match-slot-row small {
  grid-column: 2;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-slot-row.improvised {
  border-color: rgba(201, 151, 45, 0.55);
  background: #fffaf0;
}

.lineup-select-row.improvised,
.match-slot-row.injured,
.match-slot-row.sent-off {
  border-color: rgba(170, 55, 55, 0.55);
  background: #fff7f7;
}

.card-flags {
  min-height: 22px;
}

.discipline-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.discipline-badge.booked {
  color: #5c4100;
  background: #ffe08a;
}

.discipline-badge.suspended {
  color: #fff;
  background: var(--red);
}

.discipline-badge.injured {
  color: #fff;
  background: #b44932;
}

.squad-card.booked,
.lineup-select-row.booked,
.shirt.booked {
  border-color: rgba(201, 151, 45, 0.55);
}

.lineup-select-row.improvised,
.shirt.improvised {
  border-color: rgba(201, 151, 45, 0.72);
  box-shadow: 0 0 0 2px rgba(201, 151, 45, 0.16);
}

.squad-card.suspended {
  opacity: 0.68;
  border-color: rgba(170, 55, 55, 0.5);
  background: #fff7f7;
}

.drag-player.injured,
.shirt.injured {
  border-color: rgba(170, 55, 55, 0.72);
  box-shadow: 0 0 0 2px rgba(170, 55, 55, 0.18);
}

.shirt.booked::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 14px;
  height: 20px;
  border: 1px solid #c9972d;
  border-radius: 3px;
  color: #5c4100;
  background: #ffd84d;
  transform: rotate(8deg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Product experience refresh */
:root {
  --ink: #17221d;
  --muted: #65726b;
  --paper: #eef2ef;
  --panel: #ffffff;
  --line: #d9e0da;
  --grass: #197047;
  --grass-dark: #0d4d32;
  --gold: #c59127;
  --red: #b8453e;
  --blue: #276f9c;
  --navy: #142a31;
  --shadow: 0 12px 30px rgba(24, 40, 32, 0.09);
}

body {
  background: #eef2ef;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 220px;
  background: #e2e9e4;
  border-bottom: 1px solid #d5ddd7;
}

.app-shell {
  width: min(1520px, 100%);
  padding: 18px 22px 34px;
}

.topbar {
  min-height: 68px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23, 34, 29, 0.12);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
  font-size: 1rem;
  font-weight: 950;
}

.topbar h1 {
  font-size: 1.55rem;
  line-height: 1.12;
}

.top-actions {
  flex: 0 0 auto;
}

.icon-button,
.primary,
.secondary,
.tab,
select {
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
}

button:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(39, 111, 156, 0.18);
  outline-offset: 2px;
}

.primary:not(:disabled):hover {
  background: #125f3b;
  border-color: #125f3b;
  box-shadow: 0 7px 18px rgba(25, 112, 71, 0.2);
}

.secondary:not(:disabled):hover,
.icon-button:not(:disabled):hover {
  border-color: #b9c5bc;
  background: #f8faf8;
}

.setup-panel {
  min-height: min(720px, calc(100vh - 118px));
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.42);
}

.pitch-hero {
  background:
    linear-gradient(rgba(8, 35, 24, 0.16), rgba(8, 35, 24, 0.42)),
    repeating-linear-gradient(90deg, #26744d 0 118px, #1c6843 118px 236px);
}

.setup-content {
  display: flex;
  min-height: min(720px, calc(100vh - 118px));
  flex-direction: column;
  justify-content: flex-end;
  width: min(920px, calc(100% - 48px));
  margin: 0;
  padding: 44px 44px 52px;
}

.setup-content h2 {
  max-width: 820px;
  font-size: 3.85rem;
  line-height: 0.98;
}

.setup-content p:not(.eyebrow) {
  margin: 16px 0 20px;
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.55;
}

.setup-console {
  width: min(820px, 100%);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(9, 35, 25, 0.76);
  box-shadow: 0 18px 44px rgba(8, 26, 19, 0.28);
  text-shadow: none;
}

.setup-route {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.setup-route span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.setup-route b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
}

.team-choice-label {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.setup-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  max-width: none;
  padding: 0;
}

.setup-actions select,
.setup-actions button {
  min-height: 48px;
}

.campaign-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(440px, 1.5fr) minmax(230px, 0.8fr);
  align-items: center;
  gap: 20px;
  min-height: 86px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--grass);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.campaign-identity,
.campaign-next {
  min-width: 0;
}

.campaign-identity strong,
.campaign-next strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-identity strong {
  font-size: 1rem;
}

.campaign-next {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.campaign-next small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.campaign-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.campaign-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  color: #849089;
  font-size: 0.7rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.campaign-steps li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e1e6e2;
}

.campaign-steps li:first-child::before {
  left: 50%;
}

.campaign-steps li:last-child::before {
  right: 50%;
}

.campaign-steps span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #e1e6e2;
  border-radius: 50%;
  background: #fff;
}

.campaign-steps li.complete,
.campaign-steps li.active {
  color: var(--ink);
}

.campaign-steps li.complete::before {
  background: #7cb597;
}

.campaign-steps li.complete span {
  color: #fff;
  border-color: var(--grass);
  background: var(--grass);
}

.campaign-steps li.active span {
  color: var(--navy);
  border-color: var(--gold);
  background: #fff8df;
  box-shadow: 0 0 0 4px rgba(197, 145, 39, 0.13);
}

.game-grid {
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 14px;
}

.side-panel {
  top: 12px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(24, 40, 32, 0.07);
}

.main-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.squad-status {
  display: grid;
  gap: 0;
  margin-top: 10px;
  border: 1px solid #e8ede9;
  border-radius: 8px;
  overflow: hidden;
}

.squad-status div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-bottom: 1px solid #edf1ee;
  font-size: 0.76rem;
}

.squad-status div:last-child {
  border-bottom: 0;
}

.squad-status span {
  color: var(--muted);
}

.squad-status strong {
  text-align: right;
}

.decision-brief {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 126px;
  margin-bottom: 14px;
  padding: 20px 22px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  border-left: 5px solid var(--gold);
  box-shadow: 0 12px 28px rgba(20, 42, 49, 0.16);
}

.decision-brief::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -74px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.decision-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.decision-copy .eyebrow {
  color: #8cc7e7;
}

.decision-copy h2 {
  margin: 2px 0 7px;
  font-size: 1.45rem;
  line-height: 1.16;
}

.decision-copy p:last-child {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
}

.decision-stat {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  min-width: 105px;
  padding: 10px 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.decision-stat small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.decision-stat strong {
  font-size: 1.05rem;
}

.decision-brief .primary {
  position: relative;
  z-index: 1;
  min-height: 44px;
  white-space: nowrap;
}

.draft-head,
.card-grid,
.tabs,
.tab-panel {
  background: #fff;
}

.draft-head {
  margin: 0;
  padding: 17px 18px 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.card-grid {
  min-height: 0;
  padding: 6px 18px 18px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.player-card {
  min-height: 236px;
  gap: 9px;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(24, 40, 32, 0.05);
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #b8c1bb;
}

.player-card.pos-sector-defense::before {
  background: #d48e87;
}

.player-card.pos-sector-mid::before {
  background: #d3b15d;
}

.player-card.pos-sector-attack::before {
  background: #72a8cc;
}

.player-card.pos-sector-gk::before {
  background: #7c9b88;
}

.player-card:hover {
  border-color: #bdc8c0;
  box-shadow: 0 10px 24px rgba(24, 40, 32, 0.1);
  transform: translateY(-2px);
}

.player-card.star {
  border-color: rgba(197, 145, 39, 0.55);
  box-shadow: inset 0 3px 0 var(--gold), 0 6px 16px rgba(24, 40, 32, 0.06);
}

.ger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-size: 1.18rem;
}

.pick-btn {
  margin-top: auto;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.tab {
  display: grid;
  justify-items: start;
  gap: 2px;
  min-height: 56px;
  padding: 8px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #f4f7f4;
}

.tab:last-child {
  border-right: 0;
}

.tab span {
  font-weight: 900;
}

.tab small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 -4px 0 var(--grass);
}

.tab.active small {
  color: var(--grass);
}

.tab-panel {
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.squad-card {
  position: relative;
  overflow: hidden;
}

.squad-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #b7c2ba;
}

.squad-card.pos-sector-defense::before {
  background: #d48e87;
}

.squad-card.pos-sector-mid::before {
  background: #d3b15d;
}

.squad-card.pos-sector-attack::before {
  background: #72a8cc;
}

.squad-card.pos-sector-gk::before {
  background: #7c9b88;
}

@media (max-width: 1120px) {
  .campaign-bar {
    grid-template-columns: minmax(210px, 0.8fr) minmax(390px, 1.4fr);
  }

  .campaign-next {
    display: none;
  }

  .game-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .decision-brief {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .decision-stat {
    display: none;
  }
}

@media (max-width: 980px) {
  .campaign-bar {
    grid-template-columns: 1fr;
  }

  .campaign-identity {
    text-align: center;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    align-items: center;
  }

  .topbar h1 {
    max-width: 220px;
    font-size: 1.08rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .top-actions {
    gap: 5px;
  }

  .icon-button {
    min-width: 44px;
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .setup-content {
    width: 100%;
    min-height: 650px;
    padding: 28px 20px 24px;
  }

  .setup-content h2 {
    font-size: 2.45rem;
  }

  .setup-actions {
    grid-template-columns: 1fr;
  }

  .setup-actions select,
  .setup-actions button {
    width: 100%;
  }

  .campaign-bar {
    gap: 12px;
    padding: 12px;
  }

  .campaign-steps li {
    font-size: 0.6rem;
  }

  .decision-brief {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .decision-copy h2 {
    font-size: 1.25rem;
  }

  .decision-brief .primary {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab:nth-child(2) {
    border-right: 0;
  }

  .tab:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .squad-group-grid {
    grid-template-columns: 1fr;
  }
}

/* Layout de toque: a prancheta conserva o campo e evita cortes laterais. */
@media (max-width: 680px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    padding: 8px;
  }

  .topbar {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }

  .brand-lockup {
    min-width: 0;
  }

  .topbar h1 {
    max-width: 205px;
    font-size: 1rem;
    line-height: 1.14;
  }

  .eyebrow {
    font-size: 0.66rem;
  }

  .top-actions {
    gap: 4px;
  }

  .icon-button {
    min-width: 0;
    min-height: 36px;
    padding: 0 8px;
    font-size: 0.7rem;
  }

  .campaign-bar,
  .side-panel,
  .draft-head,
  .card-grid,
  .tab-panel {
    border-radius: 8px;
  }

  .campaign-steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .campaign-steps li {
    flex: 0 0 auto;
  }

  .side-panel {
    padding: 12px;
  }

  .team-badge span {
    width: 46px;
    height: 46px;
  }

  .quota-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }

  .quota-item {
    font-size: 0.78rem;
  }

  .sidebar-tactic-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-tactic-summary p:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .sidebar-tactic-summary p:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .sidebar-tactic-summary p {
    display: grid;
    gap: 2px;
    padding: 8px;
  }

  .sidebar-tactic-summary strong {
    text-align: left;
  }

  .decision-brief {
    min-height: 0;
    padding: 16px;
  }

  .draft-head {
    align-items: stretch;
    padding: 14px 12px 8px;
  }

  .draft-head h2 {
    font-size: 1.2rem;
  }

  .draft-actions {
    width: 100%;
  }

  .draft-actions button {
    flex: 1 1 140px;
  }

  .card-grid {
    padding: 8px 12px 12px;
  }

  .player-card {
    min-height: 0;
    padding: 13px;
  }

  .tabs {
    grid-template-columns: repeat(4, minmax(76px, 1fr));
    overflow-x: auto;
    border-radius: 8px;
  }

  .tab {
    min-height: 50px;
    padding: 7px 9px;
    font-size: 0.76rem;
  }

  .tab small {
    font-size: 0.62rem;
  }

  .match-summary-panel,
  .match-panel,
  .report-card,
  .group-card,
  .knockout-card {
    padding: 11px;
  }

  .scoreboard {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 6px;
  }

  .scoreboard > div:not(.clock) {
    min-width: 0;
    padding: 9px;
  }

  .scoreboard strong {
    font-size: 0.78rem;
  }

  .scoreboard span {
    font-size: 1.65rem;
  }

  .clock {
    min-height: 46px;
    font-size: 0.78rem;
  }

  .live-match-stats {
    overflow-x: auto;
  }

  .live-stats-head,
  .live-stat-row {
    min-width: 310px;
    grid-template-columns: 58px minmax(150px, 1fr) 58px;
    gap: 6px;
    font-size: 0.78rem;
  }

  .match-insights,
  .tactic-grid,
  .board-tactic-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-insights > * {
    min-width: 0;
  }

  .drag-editor-grid,
  .opponent-board-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .drag-pitch,
  .opponent-pitch {
    min-height: 510px;
  }

  .drag-pitch::before {
    width: 94px;
    border-width: 1px;
  }

  .drag-slot,
  .opponent-board-grid .drag-slot {
    width: clamp(76px, 24vw, 98px);
    min-height: 66px;
    gap: 2px;
    padding: 4px;
  }

  .drag-role-label,
  .drag-role-select {
    min-height: 22px;
    padding: 2px 5px;
    font-size: 0.58rem;
  }

  .drag-player {
    min-height: 47px;
    padding: 5px 6px;
  }

  .drag-player strong {
    overflow: hidden;
    font-size: 0.67rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .drag-player span,
  .drag-player small,
  .drag-slot em {
    overflow: hidden;
    font-size: 0.56rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .drag-bench {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 260px;
    padding: 8px;
  }

  .drag-bench > strong {
    grid-column: 1 / -1;
  }

  .drag-bench .drag-player {
    min-height: 56px;
  }

  .board-card-head {
    align-items: flex-start;
  }

  .board-head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .board-fullscreen {
    padding: 0;
  }

  .board-fullscreen-card {
    width: 100%;
    height: 100dvh;
    padding: 10px;
    border-radius: 0;
  }

  .board-fullscreen-card > header strong {
    font-size: 1rem;
  }

  .board-fullscreen-card > header span {
    display: none;
  }

  .fullscreen-pitch {
    min-height: 510px;
    height: auto;
  }

  .board-fullscreen .drag-slot {
    width: clamp(76px, 24vw, 98px);
    min-height: 66px;
  }

  .board-fullscreen .drag-player {
    min-height: 47px;
  }

  .restart-card {
    width: calc(100% - 16px);
  }
}

@media (max-width: 390px) {
  .topbar h1 {
    max-width: 170px;
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .icon-button {
    padding: 0 6px;
    font-size: 0.64rem;
  }

  .quota-list,
  .sidebar-tactic-summary,
  .match-insights,
  .tactic-grid,
  .board-tactic-toolbar {
    grid-template-columns: 1fr;
  }

  .sidebar-tactic-summary p:nth-child(odd) {
    border-right: 0;
  }

  .sidebar-tactic-summary p:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .drag-slot,
  .opponent-board-grid .drag-slot,
  .board-fullscreen .drag-slot {
    width: clamp(70px, 23vw, 88px);
  }

  .drag-pitch,
  .opponent-pitch,
  .fullscreen-pitch {
    min-height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Coach identity, contextual guidance and campaign loops */
.coach-profile-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.coach-profile-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 7px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.coach-profile-option {
  position: relative;
  cursor: pointer;
}

.coach-profile-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.coach-profile-option > span {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.coach-profile-option strong {
  color: #fff;
  font-size: 0.86rem;
}

.coach-profile-option small {
  font-size: 0.7rem;
  line-height: 1.35;
}

.coach-profile-option:hover > span,
.coach-profile-option input:focus-visible + span {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

.coach-profile-option input:checked + span {
  border-color: #d3b15d;
  background: rgba(211, 177, 93, 0.18);
  box-shadow: inset 0 -3px #d3b15d;
}

.coach-desk {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.coach-desk-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #f7f9f7;
}

.coach-desk.collapsed .coach-desk-head {
  border-bottom: 0;
}

.coach-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.coach-identity > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 7px;
  color: #fff;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  font-size: 0.66rem;
  font-weight: 950;
}

.coach-identity div,
.coach-rank {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.coach-identity small,
.coach-rank small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.coach-identity strong,
.coach-rank strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.coach-desk-body {
  padding: 14px;
}

.coach-desk-nav {
  display: flex;
  gap: 4px;
  margin: -3px 0 12px;
  padding-bottom: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.coach-desk-nav button {
  min-height: 34px;
  padding: 7px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.coach-desk-nav button:hover,
.coach-desk-nav button:focus-visible {
  color: var(--ink);
  background: #f1f4f1;
}

.coach-desk-nav button.active {
  border-bottom-color: var(--green);
  color: var(--green);
}

.coach-panel-section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.coach-panel-section > header span,
.challenge-card > span,
.challenge-teaser > span {
  display: block;
  color: #276f9c;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coach-panel-section h3 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: 1rem;
}

.coach-panel-section header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.challenge-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 3px solid #276f9c;
  border-radius: 7px;
  background: #fff;
}

.challenge-card strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
}

.challenge-card p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.challenge-card > small {
  color: #745e28;
  font-size: 0.7rem;
  line-height: 1.4;
}

.challenge-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.challenge-card footer em {
  color: var(--green);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.challenge-teaser {
  display: grid;
  width: 100%;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #d8c17d;
  border-radius: 7px;
  color: var(--ink);
  text-align: left;
  background: #fbf8ee;
}

.challenge-teaser > strong {
  font-size: 0.8rem;
}

.challenge-teaser > small {
  color: var(--muted);
  font-size: 0.7rem;
}

.challenge-teaser.completed {
  border-color: #8eb8a2;
  background: #edf6f1;
}

.challenge-teaser.failed {
  border-color: #d8aaa6;
  background: #fbf0ef;
}

.active-challenge {
  padding: 14px;
  border: 1px solid #d8c17d;
  border-left: 4px solid #c9972d;
  border-radius: 7px;
  background: #fbf8ee;
}

.active-challenge.completed {
  border-color: #8eb8a2;
  background: #edf6f1;
}

.active-challenge.failed {
  border-color: #d8aaa6;
  background: #fbf0ef;
}

.challenge-reward {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 5px;
  color: #fff;
  background: var(--green);
  font-size: 0.72rem;
}

.challenge-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.73rem;
}

.challenge-progress b {
  color: var(--ink);
}

.career-progress {
  margin-bottom: 12px;
}

.career-progress small {
  color: var(--muted);
  font-size: 0.7rem;
}

.career-ranks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.career-rank {
  min-height: 105px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f8f7;
}

.career-rank > span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.career-rank strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.8rem;
}

.career-rank p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.38;
}

.career-rank.locked {
  opacity: 0.55;
}

.career-rank.active {
  border-color: #c9972d;
  box-shadow: inset 0 3px 0 #c9972d;
  background: #fbf8ee;
}

.reputation-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.reputation-columns article {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.reputation-columns h4 {
  margin: 0 0 6px;
  font-size: 0.78rem;
}

.reputation-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reputation-columns li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}

.reputation-columns li:last-child {
  border-bottom: 0;
}

.reputation-columns li strong {
  color: var(--green);
}

.story-panel .story-timeline {
  margin-top: 0;
}

.story-timeline.expanded li {
  grid-template-columns: 110px minmax(160px, 0.45fr) minmax(0, 1.55fr);
  align-items: start;
}

.story-timeline.expanded li > small {
  color: #276f9c;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.retention-loop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.retention-loop-grid article {
  min-width: 0;
  min-height: 126px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.retention-loop-grid article > span,
.context-brief span,
.campaign-story span {
  display: block;
  margin-bottom: 4px;
  color: #276f9c;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.retention-loop-grid strong,
.context-brief strong,
.campaign-story strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.25;
}

.retention-loop-grid p,
.context-brief p,
.campaign-story p {
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.42;
}

.retention-loop-grid article > small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.coach-perk-copy {
  display: block;
  margin-top: 8px;
  line-height: 1.48 !important;
}

.coach-perk-copy b {
  color: var(--ink);
  font-weight: 900;
}

.coach-scout-intel {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.loop-line {
  height: 5px;
  margin: 8px 0 6px;
  overflow: hidden;
  border-radius: 4px;
  background: #e6ebe7;
}

.loop-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #26744d;
}

.loop-line.legacy i {
  background: #d3b15d;
}

.context-brief,
.campaign-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 7px;
}

.context-brief {
  border-left: 4px solid #276f9c;
  background: #eef5f8;
}

.campaign-story {
  border-left: 4px solid #d3b15d;
  background: #fbf8ee;
}

.context-brief p,
.campaign-story p {
  margin-bottom: 0;
}

.story-positive {
  border-left-color: #26744d;
}

.story-pressure {
  border-left-color: #b45e57;
}

.story-epic {
  border-left: 4px solid #c89425;
  background: #fffaf0;
}

.story-somber {
  border-left: 4px solid #8f4b52;
  background: #fff7f6;
}

.story-tense {
  border-left: 4px solid #d08838;
  background: #fffaf4;
}

.story-muted {
  border-left: 4px solid #8b9690;
  background: #f7f9f7;
}

.story-timeline {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.story-timeline li {
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1.55fr);
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.story-timeline li:last-child {
  border-bottom: 0;
}

.story-timeline strong {
  font-size: 0.78rem;
}

.story-timeline span {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

.player-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.player-meta-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
}

.player-meta-row > span:last-child {
  text-align: right;
}

.live-ger {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  min-width: 42px;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.live-ger small {
  min-width: 0;
  overflow: visible;
  color: inherit;
  font-size: 0.47rem;
  font-weight: 850;
  line-height: 1;
  text-overflow: clip;
}

.live-ger em {
  color: inherit;
  font-size: 0.53rem;
  font-style: normal;
  font-weight: 900;
}

.live-ger.reduced {
  border-color: rgba(243, 210, 123, 0.72);
  color: #4f3600;
  background: #f3d27b;
}

.drag-bench .live-ger,
.readonly-bench .live-ger {
  border-color: #cbd5ce;
  color: var(--ink);
  background: #eef2ef;
}

.drag-bench .live-ger.reduced {
  border-color: #d3b15d;
  color: #4f3600;
  background: #f3d27b;
}

.medical-inline {
  overflow: hidden;
  color: #f0b1ad !important;
  font-size: 0.63rem !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drag-slot.improvised .drag-player {
  box-shadow: inset 0 0 0 1px rgba(243, 210, 123, 0.42);
}

.match-penalty-overlay {
  z-index: 34;
  background: rgba(10, 20, 15, 0.72);
}

.restart-card.match-penalty-card {
  width: min(620px, 100%);
  gap: 14px;
  padding: 22px;
  border-color: #bfcac2;
}

.match-penalty-card > .eyebrow {
  color: #216997;
}

.match-penalty-card h3 {
  font-size: 1.55rem;
}

.match-penalty-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.match-penalty-select {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.match-penalty-select span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-penalty-select select {
  min-width: 0;
}

.restart-card .match-penalty-duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
}

.match-penalty-duel > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.match-penalty-duel > span:last-child {
  text-align: right;
}

.match-penalty-duel small,
.match-penalty-duel em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-penalty-duel strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-penalty-duel > b {
  color: #216997;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.match-penalty-duel.compact > b {
  min-width: 62px;
  padding: 8px;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-size: 1.05rem;
  text-align: center;
}

.restart-card .match-penalty-pitch {
  position: relative;
  height: 250px;
  display: block;
  overflow: hidden;
  border: 5px solid #f6faf7;
  border-radius: 8px;
  background: #26734b;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.38);
}

.match-penalty-pitch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30px;
  width: 210px;
  height: 115px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-top: 0;
  transform: translateX(-50%);
}

.restart-card .match-penalty-goal {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 174px;
  height: 68px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 4px solid #fff;
  border-bottom-width: 3px;
  background: rgba(228, 239, 231, 0.25);
  transform: translateX(-50%);
}

.match-penalty-goal i {
  border-right: 1px solid rgba(255, 255, 255, 0.48);
}

.match-penalty-goal i:last-child {
  border-right: 0;
}

.match-penalty-keeper {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 58px;
  width: 34px;
  height: 46px;
  border: 3px solid #fff;
  border-radius: 14px 14px 7px 7px;
  background: #1d2d25;
  transform: translateX(-50%);
}

.match-penalty-ball {
  position: absolute;
  z-index: 3;
  left: calc(50% - 9px);
  bottom: 42px;
  width: 18px;
  height: 18px;
  border: 4px double #17231d;
  border-radius: 50%;
  background: #fff;
}

.match-penalty-spot {
  position: absolute;
  left: calc(50% - 3px);
  bottom: 34px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
}

.match-penalty-result {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 12px;
  min-width: 154px;
  padding: 8px 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-size: 1.15rem;
  text-align: center;
  transform: translateX(-50%);
  animation: penalty-result-pop 420ms ease-out both;
}

.penalty-result-goal .match-penalty-ball {
  animation: penalty-ball-goal 720ms ease-in both;
}

.penalty-result-goal .match-penalty-keeper {
  animation: penalty-keeper-wrong-way 720ms ease-out both;
}

.penalty-result-saved .match-penalty-ball {
  animation: penalty-ball-saved 720ms ease-in both;
}

.penalty-result-saved .match-penalty-keeper {
  animation: penalty-keeper-save 720ms ease-out both;
}

.penalty-result-missed .match-penalty-ball {
  animation: penalty-ball-missed 720ms ease-in both;
}

.penalty-result-saved .match-penalty-result,
.penalty-result-missed .match-penalty-result {
  background: #8a2b23;
}

@keyframes penalty-ball-goal {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(52px, -158px) scale(0.68); }
}

@keyframes penalty-ball-saved {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-38px, -128px) scale(0.78); }
}

@keyframes penalty-ball-missed {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(132px, -170px) scale(0.62); }
}

@keyframes penalty-keeper-wrong-way {
  from { transform: translateX(-50%) rotate(0); }
  to { transform: translate(-98px, 16px) rotate(-54deg); }
}

@keyframes penalty-keeper-save {
  from { transform: translateX(-50%) rotate(0); }
  to { transform: translate(-58px, 8px) rotate(-48deg); }
}

@keyframes penalty-result-pop {
  from { opacity: 0; transform: translate(-50%, 8px) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (max-width: 980px) {
  .coach-profile-picker,
  .retention-loop-grid,
  .challenge-grid,
  .career-ranks {
    grid-template-columns: 1fr;
  }

  .career-rank {
    min-height: 0;
  }

  .coach-profile-option > span {
    min-height: 58px;
  }
}

@media (max-width: 720px) {
  .coach-desk-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .coach-rank {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .context-brief,
  .campaign-story,
  .story-timeline li,
  .story-timeline.expanded li,
  .reputation-columns {
    grid-template-columns: 1fr;
  }

  .challenge-teaser {
    grid-template-columns: 1fr;
  }

  .context-brief .secondary,
  .campaign-story .secondary {
    width: 100%;
  }

  .restart-card.match-penalty-card {
    padding: 16px;
  }

  .match-penalty-select,
  .restart-card .match-penalty-duel {
    grid-template-columns: 1fr;
  }

  .match-penalty-duel > span:last-child {
    text-align: left;
  }

  .match-penalty-duel > b {
    justify-self: start;
  }

  .restart-card .match-penalty-pitch {
    height: 220px;
  }
}
