:root {
  --bg: #07111f;
  --bg-deep: #030813;
  --panel: rgba(12, 24, 43, 0.76);
  --panel-strong: rgba(9, 18, 34, 0.88);
  --glass: rgba(18, 34, 59, 0.58);
  --ink: #eff5ff;
  --muted: #9cb0d1;
  --line: rgba(145, 177, 232, 0.16);
  --line-strong: rgba(120, 176, 255, 0.28);
  --accent: #59a6ff;
  --accent-strong: #2f63ff;
  --accent-soft: rgba(89, 166, 255, 0.16);
  --gold: #f4b860;
  --green: #42d39a;
  --shadow: 0 24px 70px rgba(2, 7, 17, 0.42);
  --radius: 32px;
  --radius-sm: 22px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(48, 98, 255, 0.18), transparent 24rem),
    radial-gradient(circle at top right, rgba(89, 166, 255, 0.14), transparent 26rem),
    radial-gradient(circle at bottom center, rgba(31, 92, 173, 0.18), transparent 28rem),
    linear-gradient(180deg, #091325 0%, #050c17 55%, #030813 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -18vmax;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 20% 24%, rgba(89, 166, 255, 0.12), transparent 18rem),
    radial-gradient(circle at 78% 14%, rgba(47, 99, 255, 0.12), transparent 22rem),
    radial-gradient(circle at 52% 82%, rgba(80, 144, 255, 0.08), transparent 24rem);
  filter: blur(12px);
  animation: backgroundDrift 12s ease-in-out infinite;
}

body::after {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  position: relative;
  overflow: hidden;
}

.page-shell {
  position: relative;
  width: min(1320px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 24px 0 52px;
  z-index: 1;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0.6px, transparent 0.7px);
  background-size: 10px 10px;
  mix-blend-mode: soft-light;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, rgba(7, 18, 34, 0.9), rgba(11, 29, 56, 0.78)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.08), rgba(244, 184, 96, 0.04));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10rem -10rem auto;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(47, 99, 255, 0.38) 0%, rgba(47, 99, 255, 0.08) 42%, transparent 70%),
    radial-gradient(circle at 35% 35%, rgba(89, 166, 255, 0.28), transparent 50%);
  filter: blur(8px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.hero-glow {
  display: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero h1,
.screen h2 {
  margin: 0;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(2.9rem, 6vw, 4.9rem);
}

.hero-text,
.supporting-text,
.empty-state,
.dashboard-meta,
.feed-item,
.field span,
.summary-strip span,
.choice-card span,
.choice-card small,
.league-card span,
.league-card small,
.club-card span,
.club-card small,
.stat-card span,
.review-card span,
.review-card small,
.snapshot-card span,
.panel-card p,
.nationality-spotlight span,
.nationality-spotlight small {
  color: var(--muted);
}

.app-shell {
  margin-top: 18px;
}

.loading-copy {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--line);
}

.progress-shell {
  display: grid;
  gap: 10px;
}

.progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #8fc7ff);
  box-shadow: 0 0 18px rgba(89, 166, 255, 0.36);
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.step-rail,
.stats-bar,
.screen,
.dashboard-grid,
.choice-grid,
.mode-grid,
.league-grid,
.club-grid,
.review-grid,
.dashboard-snapshot,
.mini-club-grid,
.feed-list,
.tag-row,
.button-row,
.form-grid,
.profile-topline {
  display: grid;
  gap: 14px;
}

.step-rail {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 16px;
}

.step-pill,
.supporting-chip,
.tag,
.mini-club {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.step-pill {
  border: 1px solid var(--line);
  background: rgba(16, 29, 52, 0.68);
  color: var(--muted);
  backdrop-filter: blur(14px);
}

.step-pill--done {
  background: rgba(66, 211, 154, 0.12);
  color: #aaf2d6;
}

.step-pill--active {
  background: linear-gradient(135deg, rgba(89, 166, 255, 0.28), rgba(47, 99, 255, 0.5));
  border-color: rgba(89, 166, 255, 0.4);
  color: #f4f8ff;
}

.stats-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.glass-panel,
.glass-card,
.panel,
.stat-card,
.snapshot-card,
.review-card,
.feed-item,
.panel-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15, 28, 49, 0.76), rgba(8, 17, 31, 0.9)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.04), transparent 50%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
  overflow: visible;
}

.stat-card,
.panel-card,
.snapshot-card,
.review-card {
  padding: 16px;
  border-radius: var(--radius-sm);
}

.stat-card strong {
  font-size: 1.74rem;
}

.screen,
.dashboard-grid {
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.screen--welcome {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.screen-copy,
.welcome-panel {
  display: grid;
  gap: 14px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.glow-title {
  text-shadow: 0 0 24px rgba(89, 166, 255, 0.16);
  animation: pulseGlow 4.5s ease-in-out infinite;
}

.ambient-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient-particles span {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 166, 255, 0.18), transparent 70%);
  filter: blur(6px);
  animation: drift 10s ease-in-out infinite;
}

.ambient-particles span:nth-child(1) { top: 8%; left: 14%; }
.ambient-particles span:nth-child(2) { top: 18%; right: 12%; animation-delay: 1.1s; }
.ambient-particles span:nth-child(3) { bottom: 14%; left: 24%; animation-delay: 2.2s; }
.ambient-particles span:nth-child(4) { bottom: 10%; right: 18%; animation-delay: 3.3s; }

.panel {
  padding: 22px;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}

.panel--stage {
  background:
    linear-gradient(180deg, rgba(16, 32, 55, 0.86), rgba(8, 18, 34, 0.94)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.08), transparent);
}

.panel--elevated {
  z-index: 220;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  position: relative;
  z-index: 8;
}

.section-head--compact {
  margin-bottom: 12px;
}

.supporting-chip,
.tag {
  background: var(--accent-soft);
  color: #d7e7ff;
  border: 1px solid rgba(89, 166, 255, 0.16);
}

.profile-topline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.nationality-spotlight {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(17, 34, 61, 0.88), rgba(11, 24, 43, 0.72)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.08), transparent);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.nationality-spotlight strong {
  font-size: 1.25rem;
}

.player-header-shell {
  display: grid;
  gap: 12px;
}

.player-identity-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
}

.player-avatar,
.player-club-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.player-avatar {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(89, 166, 255, 0.18), rgba(17, 34, 61, 0.9));
  border: 1px solid rgba(89, 166, 255, 0.2);
  position: relative;
}

.player-avatar::before {
  content: "";
  position: absolute;
  inset: 12px 18px 14px 18px;
  border-radius: 999px 999px 14px 14px;
  background: rgba(255, 255, 255, 0.18);
}

.player-club-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(89, 166, 255, 0.26), rgba(10, 24, 48, 0.96));
  border: 1px solid rgba(89, 166, 255, 0.34);
  color: #e9f3ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(89, 166, 255, 0.18);
}

.form-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(89, 166, 255, 0.12);
  border: 1px solid rgba(89, 166, 255, 0.16);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.supporting-chip--ovr {
  animation: pulseGlow 3.8s ease-in-out infinite;
}

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

.field {
  display: grid;
  gap: 8px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  overflow: visible;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(8, 18, 34, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(89, 166, 255, 0.12);
}

.custom-select {
  position: relative;
  z-index: 20;
  overflow: visible;
}

.custom-select--wide {
  min-width: min(28rem, 100%);
}

.custom-select--open {
  z-index: 120;
}

.custom-select__trigger {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(12, 24, 44, 0.9), rgba(7, 16, 31, 0.98)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.06), transparent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.custom-select__trigger:hover,
.custom-select__option:hover {
  transform: translateY(-2px);
}

.custom-select--open .custom-select__trigger,
.custom-select__trigger:hover {
  border-color: var(--line-strong);
  box-shadow:
    0 14px 28px rgba(5, 11, 21, 0.3),
    0 0 0 4px rgba(89, 166, 255, 0.08);
}

.custom-select__copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.custom-select__copy strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.custom-select__copy small {
  color: var(--muted);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.custom-select__chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(89, 166, 255, 0.12);
  color: #d7e7ff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.custom-select__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 140;
  display: grid;
  gap: 8px;
  max-height: 20rem;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(89, 166, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(9, 20, 39, 0.96), rgba(6, 14, 27, 0.98)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.06), transparent);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 48px rgba(2, 7, 17, 0.42);
  animation: dropdownIn 180ms ease-out both;
}

.glass-panel:has(.custom-select),
.panel:has(.custom-select),
.screen:has(.custom-select) {
  overflow: visible;
}

.custom-select__menu::-webkit-scrollbar {
  width: 8px;
}

.custom-select__menu::-webkit-scrollbar-thumb {
  background: rgba(89, 166, 255, 0.24);
  border-radius: 999px;
}

.custom-select__option {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  text-align: left;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background 220ms ease;
}

.custom-select__option:hover,
.custom-select__option--active {
  border-color: rgba(89, 166, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(39, 82, 176, 0.42), rgba(12, 25, 48, 0.9)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.08), transparent);
}

.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.feature-tile {
  width: 100%;
  padding: 18px 18px 17px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(14, 27, 48, 0.86), rgba(8, 18, 32, 0.96)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.05), transparent);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition:
    transform 190ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 190ms ease,
    box-shadow 190ms ease,
    opacity 190ms ease,
    background 190ms ease;
}

.feature-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(89, 166, 255, 0), rgba(89, 166, 255, 0.85), rgba(89, 166, 255, 0));
  opacity: 0;
  transition: opacity 190ms ease;
}

.feature-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(89, 166, 255, 0.3);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.feature-tile--selected {
  border-color: rgba(89, 166, 255, 0.44);
  box-shadow: 0 0 0 1px rgba(89, 166, 255, 0.18), 0 18px 32px rgba(0, 0, 0, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 37, 68, 0.9), rgba(9, 19, 34, 0.98)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.08), transparent);
}

.feature-tile--selected::before {
  opacity: 1;
}

.feature-tile:active {
  transform: translateY(-1px);
}

.feature-icon,
.feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(89, 166, 255, 0.12);
  color: #dbe8ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.timeline-panel {
  grid-column: 1 / -1;
}

.preseason-panel {
  position: relative;
  overflow: hidden;
}

.screen--animate .preseason-panel--left {
  animation: panelSlideLeft 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.screen--animate .preseason-panel--right {
  animation: panelSlideRight 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.preseason-panel::before,
.preseason-panel::after,
.dashboard-hero::before,
.dashboard-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.preseason-panel::before,
.dashboard-hero::before {
  inset: auto -8rem -9rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 166, 255, 0.16), transparent 68%);
  filter: blur(4px);
}

.preseason-panel::after,
.dashboard-hero::after {
  inset: auto 1.5rem 1.25rem auto;
  width: min(18rem, 42%);
  height: 5rem;
  border-radius: 999px 999px 20px 20px;
  opacity: 0.14;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 50%),
    radial-gradient(circle at center, rgba(89, 166, 255, 0.24), transparent 65%);
  filter: blur(14px);
  transform: perspective(220px) rotateX(72deg);
}

.preseason-subgrid,
.condition-grid,
.objectives-list {
  display: grid;
  gap: 14px;
}

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

.preseason-module {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.preseason-panel--aux {
  grid-column: 2;
  display: grid;
  gap: 14px;
  align-self: start;
}

.preseason-rail {
  grid-column: 2;
  display: grid;
  gap: 16px;
  align-self: start;
}

.preseason-panel--lower,
.preseason-panel--right {
  grid-column: 2;
}

.preseason-panel--lower {
  display: grid;
  gap: 14px;
  align-self: start;
}

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

.pathway-grid,
.status-grid {
  display: grid;
  gap: 12px;
}

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

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

.pathway-card,
.status-tile {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 20, 38, 0.62);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.pathway-card:hover,
.status-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(89, 166, 255, 0.32);
  box-shadow: 0 20px 36px rgba(2, 7, 17, 0.22);
  background: rgba(14, 28, 50, 0.72);
}

.pathway-card strong,
.status-tile strong {
  font-size: 1rem;
}

.pathway-card small,
.status-tile small {
  color: #bed3f5;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.pathway-card--complete {
  border-color: rgba(107, 225, 174, 0.22);
}

.pathway-card--current {
  border-color: rgba(89, 166, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(18, 38, 72, 0.88), rgba(9, 19, 34, 0.96)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.08), transparent);
}

.pathway-card--next {
  border-color: rgba(244, 184, 96, 0.28);
}

.contract-box {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  border-color: rgba(89, 166, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(14, 29, 52, 0.8), rgba(8, 17, 32, 0.92)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.05), transparent);
}

.condition-card,
.objective-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 20, 38, 0.62);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.condition-card strong,
.objective-card strong {
  font-size: 1.04rem;
}

.condition-card:hover,
.objective-card:hover {
  transform: translateY(-4px);
  border-color: rgba(89, 166, 255, 0.3);
  box-shadow: 0 20px 36px rgba(2, 7, 17, 0.22);
  background: rgba(14, 28, 50, 0.72);
}

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

.objective-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.objective-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(89, 166, 255, 0.92), #8ecbff);
  box-shadow: 0 0 16px rgba(89, 166, 255, 0.26);
}

.objective-bar--large {
  height: 12px;
}

.objective-bar--danger span {
  background: linear-gradient(90deg, rgba(255, 136, 136, 0.92), rgba(255, 190, 110, 0.92));
  box-shadow: 0 0 16px rgba(255, 136, 136, 0.2);
}

.summary-strip--module {
  align-items: flex-start;
}

.feed-item--headline {
  border-color: rgba(89, 166, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(17, 33, 56, 0.84), rgba(8, 18, 34, 0.94)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.08), transparent);
}

.career-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 22px;
}

.career-timeline__line {
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(89, 166, 255, 0.18), rgba(89, 166, 255, 0.5), rgba(89, 166, 255, 0.12));
  transform-origin: top;
}

.career-timeline__node {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  opacity: 1;
}

.screen--animate .career-timeline__line {
  animation: drawLine 0.7s ease-out both;
}

.screen--animate .career-timeline__node {
  opacity: 0;
  animation: fadeSlide 0.45s ease-out forwards;
}

.career-timeline__node:nth-child(2) { animation-delay: 0.08s; }
.career-timeline__node:nth-child(3) { animation-delay: 0.16s; }
.career-timeline__node:nth-child(4) { animation-delay: 0.24s; }
.career-timeline__node:nth-child(5) { animation-delay: 0.32s; }

.career-timeline__dot {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 50%;
  border: 2px solid rgba(89, 166, 255, 0.34);
  background: rgba(7, 17, 31, 0.98);
  box-shadow: 0 0 0 5px rgba(89, 166, 255, 0.06);
}

.career-timeline__content {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 20, 38, 0.62);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.career-timeline__content small {
  color: #bed3f5;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.career-timeline__node:hover .career-timeline__content {
  transform: translateY(-3px);
  border-color: rgba(89, 166, 255, 0.3);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
}

.career-timeline__node--active .career-timeline__dot {
  background: rgba(89, 166, 255, 0.9);
  box-shadow: 0 0 18px rgba(89, 166, 255, 0.34);
}

.career-timeline__node--current .career-timeline__content {
  border-color: rgba(89, 166, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(18, 38, 72, 0.88), rgba(9, 19, 34, 0.96)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.08), transparent);
}

.timeline-list,
.history-list,
.offer-grid {
  display: grid;
  gap: 12px;
}

.timeline-node,
.history-row {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 20, 38, 0.62);
}

.history-row {
  grid-template-columns: 1.2fr 1.2fr 0.8fr 0.8fr;
  align-items: center;
  gap: 12px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.history-row--stacked {
  grid-template-columns: 1fr;
}

.history-row--gold {
  border-color: rgba(244, 184, 96, 0.28);
  background:
    linear-gradient(180deg, rgba(40, 33, 18, 0.68), rgba(13, 19, 31, 0.92)),
    linear-gradient(135deg, rgba(244, 184, 96, 0.08), transparent);
}

.offer-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.offer-card {
  display: grid;
  gap: 8px;
}

.offer-card--positive {
  border-color: rgba(66, 211, 154, 0.28);
  background:
    linear-gradient(180deg, rgba(15, 34, 44, 0.78), rgba(8, 18, 31, 0.94)),
    linear-gradient(135deg, rgba(66, 211, 154, 0.08), transparent);
}

.choice-card,
.league-card,
.club-card,
.mode-card {
  width: 100%;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(14, 28, 48, 0.82), rgba(9, 19, 34, 0.96)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.05), transparent);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.choice-card:hover,
.league-card:hover,
.club-card:hover,
.mode-card:hover,
.country-card:hover {
  transform: translateY(-4px);
  border-color: rgba(89, 166, 255, 0.34);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.league-card--empty:hover,
.league-card:disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.choice-card strong,
.league-card strong,
.club-card strong,
.mode-card strong,
.review-card strong,
.snapshot-card strong,
.panel-card strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 1.08rem;
}

.choice-card--active,
.league-card--active,
.club-card--active,
.mode-card--active {
  border-color: rgba(89, 166, 255, 0.48);
  background:
    linear-gradient(135deg, rgba(34, 71, 153, 0.7), rgba(10, 24, 48, 0.96)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.12), transparent);
}

.league-card--available {
  border-color: rgba(89, 166, 255, 0.24);
}

.league-card--loading {
  cursor: wait;
  border-style: dashed;
  opacity: 0.82;
}

.league-card--empty,
.league-card:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 20, 38, 0.72);
  backdrop-filter: blur(12px);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.summary-strip--surprise span {
  color: #dbe8ff;
  font-weight: 700;
}

.summary-strip--warning {
  border-color: rgba(244, 184, 96, 0.28);
  background:
    linear-gradient(180deg, rgba(36, 28, 16, 0.78), rgba(17, 13, 8, 0.94)),
    linear-gradient(135deg, rgba(244, 184, 96, 0.1), transparent);
}

.league-browser {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.country-list {
  display: grid;
  gap: 12px;
  max-height: 34rem;
  overflow: auto;
  padding-right: 4px;
}

.country-list::-webkit-scrollbar {
  width: 8px;
}

.country-list::-webkit-scrollbar-thumb {
  background: rgba(89, 166, 255, 0.18);
  border-radius: 999px;
}

.country-card {
  width: 100%;
  padding: 14px 15px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(14, 28, 48, 0.82), rgba(9, 19, 34, 0.96)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.05), transparent);
  color: var(--ink);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.country-card:hover {
  transform: translateY(-3px);
  border-color: rgba(89, 166, 255, 0.34);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.country-card--active {
  border-color: rgba(89, 166, 255, 0.48);
  background:
    linear-gradient(135deg, rgba(34, 71, 153, 0.7), rgba(10, 24, 48, 0.96)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.12), transparent);
}

.country-card strong,
.country-card span,
.country-card small {
  display: block;
}

.country-card strong {
  margin: 5px 0;
  font-size: 1rem;
}

.league-browser__main {
  display: grid;
  gap: 14px;
}

.league-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  max-height: 34rem;
  overflow: auto;
  padding-right: 6px;
}

.league-grid--grouped {
  max-height: none;
  overflow: visible;
}

.league-grid::-webkit-scrollbar {
  width: 10px;
}

.league-grid::-webkit-scrollbar-thumb {
  background: rgba(89, 166, 255, 0.18);
  border-radius: 999px;
}

.club-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.dashboard-snapshot--wide {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.button-row {
  grid-template-columns: repeat(2, max-content);
  justify-content: flex-end;
  gap: 10px;
}

.button-row--spread {
  grid-template-columns: repeat(auto-fit, minmax(132px, max-content));
  justify-content: flex-start;
}

.button-row--start {
  justify-content: flex-start;
}

.button-row--compact {
  grid-template-columns: max-content;
  justify-content: flex-end;
}

.action-button,
.ghost-button {
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 170ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    filter 170ms ease;
}

.action-button {
  border: 1px solid rgba(153, 198, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(83, 143, 255, 0.96), rgba(46, 94, 216, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  color: #f7fbff;
  box-shadow:
    0 10px 22px rgba(29, 67, 161, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.action-button:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.04);
  box-shadow:
    0 14px 28px rgba(29, 67, 161, 0.34),
    0 0 0 1px rgba(112, 174, 255, 0.16);
}

.action-button:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.98);
}

.action-button--pulse {
  animation: breathe 2.8s ease-in-out infinite;
}

.button-row--start .action-button:first-child,
.screen-copy .action-button {
  min-height: 46px;
  padding-inline: 22px;
}

.ghost-button {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18, 31, 54, 0.88), rgba(10, 20, 37, 0.96)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.03), transparent);
  color: var(--ink);
  isolation: isolate;
}

.ghost-button--alert {
  border-color: rgba(244, 184, 96, 0.42);
  box-shadow: 0 0 0 1px rgba(244, 184, 96, 0.16);
}

.ghost-button--small {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 0.78rem;
}

.ghost-button::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 1px;
  transform: scaleX(0.2);
  transform-origin: left;
  opacity: 0;
  background: linear-gradient(90deg, rgba(89, 166, 255, 0.88), rgba(143, 199, 255, 0.32));
  transition: transform 220ms ease, opacity 220ms ease;
}

.ghost-button--inline {
  justify-self: start;
}

.ghost-button:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(89, 166, 255, 0.28);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  filter: brightness(1.03);
}

.ghost-button:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.ghost-button:active {
  transform: translateY(0) scale(0.985);
}

.action-button:disabled,
.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  overflow: visible;
}

.sidecar-panel {
  align-self: start;
  position: static;
  z-index: auto;
  overflow: hidden;
  grid-column: 2;
}

.career-toolbar {
  margin-top: 16px;
  padding-block: 18px;
}

.dashboard-hero {
  grid-column: 1 / -1;
  overflow: hidden;
}

.screen--animate .dashboard-hero {
  animation: panelSlideDown 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dashboard-meta {
  margin-top: -6px;
}

.dashboard-hero .snapshot-card {
  opacity: 1;
}

.screen--animate .dashboard-hero .snapshot-card {
  opacity: 0;
  animation: fadeSlide 0.45s ease-out forwards;
}

.screen--animate .dashboard-hero .snapshot-card:nth-child(1) { animation-delay: 0.12s; }
.screen--animate .dashboard-hero .snapshot-card:nth-child(2) { animation-delay: 0.18s; }
.screen--animate .dashboard-hero .snapshot-card:nth-child(3) { animation-delay: 0.24s; }
.screen--animate .dashboard-hero .snapshot-card:nth-child(4) { animation-delay: 0.3s; }
.screen--animate .dashboard-hero .snapshot-card:nth-child(5) { animation-delay: 0.36s; }
.screen--animate .dashboard-hero .snapshot-card:nth-child(6) { animation-delay: 0.42s; }

.snapshot-card {
  background:
    linear-gradient(180deg, rgba(14, 29, 52, 0.72), rgba(8, 17, 32, 0.88)),
    linear-gradient(135deg, rgba(89, 166, 255, 0.04), transparent);
}

.snapshot-card--best {
  border-color: rgba(244, 184, 96, 0.34);
  box-shadow: 0 0 0 1px rgba(244, 184, 96, 0.16), var(--shadow);
}

.tag-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(244, 184, 96, 0.22), rgba(89, 166, 255, 0.2));
  border: 1px solid rgba(244, 184, 96, 0.24);
  color: #fff3cf;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
}

.scout-panel,
.surprise-panel {
  display: grid;
  gap: 14px;
}

.standings-panel {
  grid-column: 1 / -1;
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(7, 16, 30, 0.66);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

.standings-table th,
.standings-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(145, 177, 232, 0.1);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.standings-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(10, 23, 43, 0.96);
  color: #dbe8ff;
  letter-spacing: 0.04em;
}

.standings-team {
  min-width: 15rem;
  font-weight: 700;
  color: var(--ink);
}

.position-cell {
  display: grid;
  gap: 4px;
}

.position-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.position-indicator--up {
  color: #77efb8;
}

.position-indicator--down {
  color: #ff9f9f;
}

.position-indicator--flat {
  color: var(--muted);
}

.standings-row {
  transition: background 220ms ease, transform 220ms ease;
}

.standings-row:hover {
  background: rgba(89, 166, 255, 0.07);
}

.standings-row--highlight {
  background: linear-gradient(135deg, rgba(47, 99, 255, 0.24), rgba(9, 18, 34, 0.92));
}

.standings-row--swap {
  background: linear-gradient(135deg, rgba(89, 166, 255, 0.18), rgba(16, 28, 49, 0.92));
  box-shadow: inset 0 0 0 1px rgba(143, 199, 255, 0.12);
}

.standings-row--moving {
  animation: standingsShift 760ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.standings-row--up {
  filter: drop-shadow(0 0 10px rgba(119, 239, 184, 0.12));
}

.standings-row--down {
  filter: drop-shadow(0 0 10px rgba(255, 159, 159, 0.1));
}

.standings-points {
  font-weight: 700;
}

.standings-points--pop {
  animation: pointsPop 360ms ease-out;
}

.form-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.form-badge {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(9, 20, 38, 0.84);
}

.form-badge--win {
  color: #bff3dd;
  border-color: rgba(66, 211, 154, 0.28);
  background: rgba(66, 211, 154, 0.14);
}

.form-badge--draw {
  color: #f9e3b0;
  border-color: rgba(244, 184, 96, 0.24);
  background: rgba(244, 184, 96, 0.12);
}

.form-badge--loss {
  color: #ffc0c0;
  border-color: rgba(255, 120, 120, 0.24);
  background: rgba(255, 120, 120, 0.12);
}

.results-list {
  display: grid;
  gap: 10px;
}

.result-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 20, 38, 0.7);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.result-card span:last-child {
  text-align: right;
}

.result-card strong {
  color: #f4f8ff;
  font-size: 1rem;
}

.result-card:hover {
  transform: translateY(-3px);
  border-color: rgba(89, 166, 255, 0.26);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.mini-club-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.mini-club {
  justify-content: flex-start;
  padding-inline: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(11, 24, 42, 0.82);
}

.feed-list {
  grid-template-columns: 1fr;
}

.feed-item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.draw-layout,
.draw-pots,
.draw-groups,
.bracket-grid,
.bracket-matches {
  display: grid;
  gap: 14px;
}

.draw-layout {
  grid-template-columns: 0.95fr 1.05fr;
  margin-bottom: 14px;
}

.draw-pot,
.draw-group,
.bracket-round {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
}

.draw-group__slots,
.bracket-matches {
  display: grid;
  gap: 10px;
}

.draw-group__slots--results .draw-slot {
  min-height: 40px;
}

.draw-spotlight {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.draw-ball {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(89, 166, 255, 0.22);
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(180deg, rgba(24, 45, 80, 0.94), rgba(8, 17, 32, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.draw-ball--active {
  animation: pulseGlow 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(89, 166, 255, 0.18), 0 0 28px rgba(89, 166, 255, 0.22);
}

.draw-slot,
.bracket-match {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 20, 38, 0.64);
  display: grid;
  align-items: center;
}

.draw-slot--filled {
  border-color: rgba(89, 166, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(36, 83, 176, 0.28), rgba(9, 19, 35, 0.94)),
    rgba(10, 20, 38, 0.72);
}

.draw-slot--reveal {
  animation: fadeSlide 280ms ease-out both;
}

.draw-group--selected {
  border-color: rgba(89, 166, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(89, 166, 255, 0.14), 0 18px 34px rgba(0, 0, 0, 0.14);
}

.draw-slot--qualified {
  border-color: rgba(66, 211, 154, 0.24);
  background:
    linear-gradient(135deg, rgba(22, 84, 64, 0.42), rgba(9, 19, 35, 0.94)),
    rgba(10, 20, 38, 0.72);
}

.draw-slot--eliminated {
  opacity: 0.72;
  border-color: rgba(255, 120, 120, 0.22);
  background:
    linear-gradient(135deg, rgba(96, 35, 35, 0.34), rgba(9, 19, 35, 0.94)),
    rgba(10, 20, 38, 0.72);
}

.group-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.group-tag--qualified {
  color: #b8f7dc;
  background: rgba(66, 211, 154, 0.14);
}

.group-tag--eliminated {
  color: #ffd0d0;
  background: rgba(255, 120, 120, 0.12);
}

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

.bracket-round {
  position: relative;
  overflow: hidden;
  opacity: 0.68;
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.bracket-round::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 52px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(89, 166, 255, 0.14), rgba(89, 166, 255, 0.44), rgba(89, 166, 255, 0.14));
  animation: drawLine 0.7s ease-out both;
}

.bracket-round--active {
  opacity: 1;
  border-color: rgba(89, 166, 255, 0.26);
}

.bracket-match {
  position: relative;
  padding-left: 22px;
  gap: 6px;
  width: 100%;
  text-align: left;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.bracket-match::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 10px;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(89, 166, 255, 0.32);
}

.bracket-match--selected,
.bracket-match:hover,
.result-card--interactive:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(89, 166, 255, 0.28);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.bracket-team--winner {
  color: #f1f8ff;
  text-shadow: 0 0 18px rgba(89, 166, 255, 0.14);
}

.bracket-team--loser {
  opacity: 0.64;
}

.result-card--interactive {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.tournament-final-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(244, 184, 96, 0.3);
  box-shadow: 0 0 0 1px rgba(244, 184, 96, 0.14), var(--shadow);
}

.confetti-strip {
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background:
    radial-gradient(circle at 10% 40%, rgba(244, 184, 96, 0.34), transparent 18%),
    radial-gradient(circle at 28% 60%, rgba(89, 166, 255, 0.26), transparent 16%),
    radial-gradient(circle at 52% 28%, rgba(66, 211, 154, 0.28), transparent 14%),
    radial-gradient(circle at 76% 56%, rgba(244, 184, 96, 0.3), transparent 18%),
    radial-gradient(circle at 88% 32%, rgba(89, 166, 255, 0.26), transparent 16%);
  opacity: 0.85;
  pointer-events: none;
}

.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: rgba(4, 10, 20, 0.62);
  backdrop-filter: blur(12px);
  animation: fadeSlide 220ms ease-out both;
}

.transition-panel {
  width: min(34rem, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.transition-panel--save {
  width: min(72rem, calc(100vw - 32px));
  text-align: left;
  justify-items: stretch;
}

.transition-overlay--sheet {
  align-items: start;
  padding-top: 6vh;
}

.save-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.save-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-sm);
}

.save-card--empty {
  opacity: 0.78;
}



.transition-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.transition-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #8fc7ff);
  transition: width 220ms ease;
}

.spinner-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.cursor-glow {
  position: fixed;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 998;
  background: radial-gradient(circle, rgba(89, 166, 255, 0.14), transparent 70%);
  filter: blur(10px);
  mix-blend-mode: screen;
}

.ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.35);
  animation: rippleOut 0.5s ease-out forwards;
  pointer-events: none;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 20, 38, 0.62);
}

.glass-panel:hover,
.glass-card:hover,
.panel:hover,
.stat-card:hover,
.snapshot-card:hover,
.review-card:hover,
.feed-item:hover,
.panel-card:hover,
.nationality-spotlight:hover,
.summary-strip:hover {
  transform: translateY(-4px);
  border-color: rgba(89, 166, 255, 0.28);
  box-shadow: 0 28px 52px rgba(2, 7, 17, 0.5);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 18px rgba(89, 166, 255, 0.12); }
  50% { text-shadow: 0 0 28px rgba(89, 166, 255, 0.22); }
}

@keyframes panelSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panelSlideLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes panelSlideRight {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 30px rgba(47, 99, 255, 0.28); }
  50% { transform: scale(1.02); box-shadow: 0 18px 38px rgba(47, 99, 255, 0.34); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-14px) translateX(8px) scale(1.08); }
}

@keyframes backgroundDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(1.5%, -1.5%, 0) scale(1.03); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes drawLine {
  from { transform: scaleY(0); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes standingsShift {
  0% {
    transform: translateY(var(--row-shift)) scale(1.02);
    filter: blur(1px);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pointsPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.16); color: #e8f2ff; }
  100% { transform: scale(1); }
}


@keyframes rippleOut {
  to {
    opacity: 0;
    width: 220px;
    height: 220px;
  }
}

.hero {
  animation: fadeSlide 320ms ease-out both;
}

@media (max-width: 1100px) {
  .step-rail,
  .stats-bar,
  .screen--welcome,
  .dashboard-grid,
  .form-grid,
  .review-grid,
  .dashboard-snapshot,
  .profile-topline,
  .mode-grid,
  .league-browser,
  .preseason-subgrid,
  .condition-grid,
  .history-row,
  .draw-layout {
    grid-template-columns: 1fr;
  }

  .section-head,
  .summary-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-strip span {
    text-align: left;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  .sidecar-panel {
    grid-column: auto;
  }

  .preseason-rail,
  .preseason-panel--aux {
    grid-column: auto;
  }

  .preseason-panel--right,
  .preseason-panel--lower {
    grid-column: auto;
  }

  .pathway-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 12px;
  }

  .hero,
  .panel {
    padding: 18px;
  }

  .choice-grid,
  .league-grid,
  .club-grid,
  .mini-club-grid {
    grid-template-columns: 1fr;
  }

  .step-pill,
  .supporting-chip,
  .tag,
  .mini-club {
    min-height: 38px;
  }
}
