:root {
  --bg: #08111f;
  --bg-soft: #0e1a2f;
  --surface: rgba(10, 18, 34, 0.78);
  --surface-strong: rgba(15, 27, 48, 0.94);
  --surface-border: rgba(149, 182, 255, 0.14);
  --text: #f5f7fb;
  --muted: #a8b6d1;
  --accent: #5fd4ff;
  --accent-strong: #1d8fff;
  --accent-warm: #ffc86b;
  --success: #7ce7a4;
  --danger: #ff8f8f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 143, 255, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 200, 107, 0.14), transparent 24%),
    linear-gradient(180deg, #09111f 0%, #050913 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 28px;
  background: rgba(7, 13, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.logo {
  background: none;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo::before {
  content: "⚡";
  margin-right: 10px;
  color: var(--accent-warm);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.lang-switch label {
  font-size: 0.85rem;
  color: var(--muted);
}

.lang-switch select {
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 600;
}

.nav-button,
.primary-action,
.secondary-action,
.ghost-action {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-button,
.ghost-action {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-button--primary,
.primary-action {
  color: #04111d;
  background: linear-gradient(135deg, var(--accent), #9be15d);
  box-shadow: 0 14px 30px rgba(95, 212, 255, 0.28);
}

.secondary-action {
  color: var(--text);
  background: linear-gradient(135deg, rgba(29, 143, 255, 0.18), rgba(255, 200, 107, 0.12));
  border: 1px solid rgba(95, 212, 255, 0.18);
}

button:hover {
  transform: translateY(-2px);
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(95, 212, 255, 0.9);
  outline-offset: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-panel,
.panel {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy,
.hero-panel {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 44px;
}

.hero-copy::after,
.panel::after,
.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(95, 212, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.eyebrow,
.section-kicker,
.card-label,
.hero-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
h2,
.sliders-card__header h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.hero-copy p,
.section-heading p,
.hero-panel__footer,
.builder-note,
.feedback,
.results-empty,
.tank-type,
.input-group span {
  color: var(--muted);
}

.hero-copy p {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero-highlights div,
.hero-steps li,
.player-input,
.sliders div,
.team-player-card,
.results-empty,
.feedback {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-highlights div {
  padding: 16px;
  border-radius: var(--radius-md);
}

.hero-highlights strong,
.stats h4,
.tank-name,
.team-total,
#playerName {
  display: block;
  color: var(--text);
}

.hero-highlights span {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.hero-steps {
  margin: 8px 0 0;
  padding-left: 20px;
}

.hero-steps li {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

#searchSection {
  grid-column: 1;
  grid-row: 1 / span 2;
}

#teamSection {
  grid-column: 2;
  grid-row: 1;
}

#resultsSection {
  grid-column: 2;
  grid-row: 2;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 32px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.section-heading p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 16px;
  color: var(--text);
  background: rgba(5, 10, 20, 0.6);
}

.feedback {
  margin-top: 14px;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.player-card {
  margin-top: 20px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.player-card__top {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

#playerName {
  margin: 0;
  font-size: 1.5rem;
}

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

.stats div {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.stats span,
.tank-type,
.card-label {
  font-size: 0.88rem;
}

.stats h4 {
  margin: 8px 0 0;
  font-size: 1.7rem;
}

.player-form-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.player-form-summary__panel {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 22px rgba(77, 207, 255, 0.03);
}

.player-form-summary__label,
.player-form-summary__meta {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.player-form-summary__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.player-form-summary__value,
.player-form-summary__rank,
.player-form-summary__career-value {
  display: block;
  margin-top: 8px;
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.player-form-summary__rank {
  text-transform: uppercase;
}

.player-form-summary__hint,
.player-form-summary__progress-text {
  margin: 12px 0 0;
  color: var(--muted);
}

.player-form-summary__career {
  margin-top: 12px;
}

.player-rank-progress {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.player-rank-progress__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #CFCFCF;
  box-shadow: none;
  transition: width 0.45s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.player-rank-progress__fill.wr-neutral {
  background: #CFCFCF;
  box-shadow: none;
}

.player-rank-progress__fill.wr-light-green {
  background: #A8FFB0;
  box-shadow: 0 0 10px rgba(168, 255, 176, 0.16);
}

.player-rank-progress__fill.wr-green {
  background: #4DFF88;
  box-shadow: 0 0 14px rgba(77, 255, 136, 0.2);
}

.player-rank-progress__fill.wr-blue {
  background: #4DCFFF;
  box-shadow: 0 0 18px rgba(77, 207, 255, 0.24);
}

.player-rank-progress__fill.wr-purple {
  background: #B266FF;
  box-shadow: 0 0 22px rgba(178, 102, 255, 0.3);
}

.player-rank-feedback {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(16, 22, 28, 0.94), rgba(7, 11, 16, 0.96)),
    linear-gradient(135deg, rgba(77, 207, 255, 0.04), transparent 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 22px rgba(77, 207, 255, 0.03);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

.player-rank-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.player-rank-feedback__title,
.player-rank-feedback__subtitle {
  display: block;
}

.player-rank-feedback__title {
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #f6f7fb;
}

.player-rank-feedback__subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.player-rank-feedback--up {
  border-color: rgba(77, 255, 136, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 24px rgba(77, 255, 136, 0.04),
    0 0 20px rgba(77, 255, 136, 0.08);
}

.player-rank-feedback--down {
  border-color: rgba(207, 207, 207, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 20px rgba(207, 207, 207, 0.02);
}

.player-rank-feedback--near {
  border-color: rgba(77, 207, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 24px rgba(77, 207, 255, 0.04),
    0 0 20px rgba(77, 207, 255, 0.08);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.player-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.player-input__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(95, 212, 255, 0.14);
  color: var(--accent);
  font-weight: 700;
}

.player-input input {
  padding: 12px 0;
  background: transparent;
  border: 0;
}

.sliders-card {
  margin-top: 22px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sliders-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.sliders-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.select-inline {
  font-weight: 600;
}

.team-total {
  margin: 0;
  white-space: nowrap;
  font-weight: 700;
}

.sliders {
  display: grid;
  gap: 12px;
}

.sliders div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 40px;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.sliders label {
  font-weight: 600;
  min-width: 70px;
  text-align: left;
}

.sliders span {
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

.sliders input[type="range"] {
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(29, 143, 255, 0.88), rgba(95, 212, 255, 0.95));
}

.sliders input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 4px rgba(95, 212, 255, 0.16);
}

.sliders input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: white;
  box-shadow: 0 0 0 4px rgba(95, 212, 255, 0.16);
}

.panel--results {
  margin-top: 0;
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.select {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 10, 20, 0.72);
  color: var(--text);
  padding: 10px 12px;
}

.results-empty {
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.lineup-block {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.lineup-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

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

.lineup-note strong {
  color: #f5f7fb;
}

.lineup-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.lineup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.lineup-mode-btn.is-active {
  border-color: rgba(95, 212, 255, 0.4);
  color: #f5fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 22px rgba(95, 212, 255, 0.12);
}

.lineup-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.lineup-summary__card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(8, 15, 29, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lineup-summary__label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.lineup-summary__value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}

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

.lineup-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(10, 18, 34, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lineup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.lineup-img {
  width: 86px;
  height: 64px;
  object-fit: contain;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 8px;
}

.lineup-meta strong {
  display: block;
  margin-bottom: 6px;
}

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

.lineup-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(95, 212, 255, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lineup-meta .tank-name {
  font-weight: 600;
}

.lineup-meta .tank-type {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.lineup-meta .tank-battles {
  color: var(--muted);
  font-size: 0.9rem;
}

.lineup-suggestions {
  margin-top: 16px;
}

.lineup-suggestions__header {
  margin-bottom: 12px;
}

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

.lineup-suggestion-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(9, 16, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lineup-suggestion-card--empty {
  color: var(--muted);
  text-align: center;
}

.lineup-suggestion-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.lineup-suggestion-card__top strong {
  font-size: 0.98rem;
}

.lineup-suggestion-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(243, 191, 78, 0.14);
  color: var(--warning);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lineup-suggestion-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.lineup-suggestion-card__gain {
  margin-top: 12px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .lineup-header__content {
    flex-direction: column;
  }

  .lineup-actions {
    justify-content: stretch;
  }

  .lineup-actions .primary-action,
  .lineup-actions .secondary-action,
  .lineup-actions .ghost-action {
    width: 100%;
  }

  .lineup-meta__top,
  .lineup-suggestion-card__top {
    align-items: flex-start;
    flex-direction: column;
  }
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.team-player-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.tank-img {
  width: 94px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
}

.tank-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tank-wr {
  margin-top: 8px;
  font-weight: 700;
}

/* Blitz-style WR colors */
.wr-neutral {
  color: #CFCFCF;
  text-shadow: none;
}

.wr-light-green {
  color: #A8FFB0;
  text-shadow: 0 0 10px rgba(168, 255, 176, 0.16);
}

.wr-green {
  color: #4DFF88;
  text-shadow: 0 0 14px rgba(77, 255, 136, 0.2);
}

.wr-blue {
  color: #4DCFFF;
  text-shadow: 0 0 18px rgba(77, 207, 255, 0.24);
}

.wr-purple {
  color: #B266FF;
  text-shadow: 0 0 22px rgba(178, 102, 255, 0.3);
}

.hidden {
  display: none;
}

.loader {
  width: 42px;
  height: 42px;
  margin: 12px auto;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.timeframes {
  margin-top: 18px;
}

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

.timeframe-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.tf-winrate {
  font-size: 1.4rem;
  font-weight: 700;
}
.tf-winrate.wr-neutral { color: #CFCFCF; text-shadow: none; }
.tf-winrate.wr-light-green { color: #A8FFB0; text-shadow: 0 0 10px rgba(168, 255, 176, 0.16); }
.tf-winrate.wr-green { color: #4DFF88; text-shadow: 0 0 14px rgba(77, 255, 136, 0.2); }
.tf-winrate.wr-blue { color: #4DCFFF; text-shadow: 0 0 18px rgba(77, 207, 255, 0.24); }
.tf-winrate.wr-purple { color: #B266FF; text-shadow: 0 0 22px rgba(178, 102, 255, 0.3); }

.tf-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
}

.timeframe-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.global-leaderboard {
  margin-top: 18px;
  padding: 22px;
}

.global-leaderboard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.global-leaderboard__header h4 {
  margin: 0;
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.global-leaderboard__position {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(95, 212, 255, 0.1);
  border: 1px solid rgba(95, 212, 255, 0.18);
  color: var(--text);
  font-weight: 700;
}

.global-leaderboard__empty {
  margin: 0 0 16px;
  color: var(--muted);
}

.global-leaderboard__list {
  display: grid;
  gap: 10px;
}

.global-leaderboard__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.global-leaderboard__row.is-current {
  background: linear-gradient(135deg, rgba(95, 212, 255, 0.12), rgba(155, 225, 93, 0.08));
  border-color: rgba(95, 212, 255, 0.22);
  box-shadow: 0 18px 28px rgba(8, 17, 31, 0.18);
}

.global-leaderboard__row.is-separated {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.global-leaderboard__rank {
  min-width: 48px;
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--accent-warm);
}

.global-leaderboard__player {
  min-width: 0;
}

.global-leaderboard__player strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-leaderboard__wr {
  min-width: 72px;
  text-align: right;
  font-weight: 700;
}

.global-leaderboard__badge {
  min-width: 104px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coach-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(6, 14, 28, 0.84);
  border: 1px solid rgba(95, 212, 255, 0.14);
}

.coach-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.coach-card__title {
  min-width: 0;
}

#coachSummary {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(224, 232, 241, 0.86);
}

.coach-goal-control {
  display: grid;
  gap: 10px;
  min-width: 112px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 18, 26, 0.95), rgba(9, 13, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.coach-goal-control__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coach-goal-control__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.coach-goal-control__input {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.coach-goal-control__input input {
  width: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.coach-goal-control__input input:focus {
  outline: none;
}

.coach-goal-control__input input::-webkit-outer-spin-button,
.coach-goal-control__input input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.coach-goal-control__input input[type="number"] {
  -moz-appearance: textfield;
}

.coach-goal-control__input span {
  color: var(--muted);
  font-weight: 700;
}

.coach-goal-control__slider {
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, rgba(196, 88, 88, 0.92), rgba(232, 194, 107, 0.96) 48%, rgba(121, 224, 141, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 0 8px rgba(0, 0, 0, 0.34);
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.coach-goal-control__slider:hover,
.coach-goal-control__slider:focus-visible {
  filter: saturate(1.04) brightness(1.02);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 8px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(243, 191, 78, 0.12);
}

.coach-goal-control__slider::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: linear-gradient(180deg, #f8f8f4, #a8b5c3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05), 0 2px 10px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  -webkit-appearance: none;
}

.coach-goal-control__slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: linear-gradient(180deg, #f8f8f4, #a8b5c3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05), 0 2px 10px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.coach-goal-summary {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.coach-focus {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(95, 212, 255, 0.08);
  border: 1px solid rgba(95, 212, 255, 0.14);
}

.coach-focus__label,
.coach-block__label,
.coach-metric__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.coach-focus p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.coach-results {
  display: grid;
  gap: 12px;
}

.coach-section {
  display: grid;
  gap: 12px;
}

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

.coach-section__title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.coach-section__count {
  color: var(--muted);
  font-size: 0.88rem;
}

.coach-empty,
.coach-tank-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.coach-empty {
  color: var(--muted);
}

.coach-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.coach-row::-webkit-scrollbar {
  display: none;
}

.coach-row-card {
  flex: 0 0 210px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  scroll-snap-align: start;
  background:
    linear-gradient(180deg, rgba(18, 24, 31, 0.96), rgba(8, 12, 17, 0.98)),
    linear-gradient(135deg, rgba(77, 207, 255, 0.03), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 22px rgba(77, 207, 255, 0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.coach-row-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 24px rgba(77, 207, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.26),
    0 0 18px rgba(77, 207, 255, 0.08);
}

.coach-row-card--good {
  border-color: rgba(77, 207, 255, 0.18);
}

.coach-row-card--bad {
  border-color: rgba(207, 207, 207, 0.12);
}

.coach-row-card__media {
  width: 68px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(28, 35, 44, 0.9), rgba(11, 15, 20, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.coach-row-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.coach-row-card__body {
  min-width: 0;
}

.coach-row-card__name {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coach-row-card__type {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.coach-row-card__wr {
  display: block;
  margin-top: 10px;
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.coach-tank-card {
  display: grid;
  gap: 14px;
}

.coach-tank-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.coach-tank-badges {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.coach-tank-name {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.coach-tank-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.coach-tank-badge {
  flex-shrink: 0;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 700;
}

.coach-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.coach-trend--improving {
  color: var(--success);
  border-color: rgba(124, 231, 164, 0.18);
  background: rgba(124, 231, 164, 0.08);
}

.coach-trend--declining {
  color: var(--danger);
  border-color: rgba(255, 143, 143, 0.18);
  background: rgba(255, 143, 143, 0.08);
}

.coach-trend--stable {
  color: var(--muted);
}

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

.coach-metric {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.coach-metric__value {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.coach-block {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.coach-advice-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.coach-advice-list li + li {
  margin-top: 8px;
}

.coach-playstyle {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.6;
}

.coach-recent__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.coach-recent__metric {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.coach-recent__value {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.coach-recent__empty {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

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

  #searchSection,
  #teamSection,
  #resultsSection {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-copy {
    padding: 32px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 14px;
  }

  .topbar,
  .builder-toolbar,
  .sliders-card__header,
  .search-box,
  .stats {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    border-radius: 24px;
    position: static;
  }

  .nav-links,
  .actions,
  .cta-row {
    width: 100%;
  }

  .nav-button,
  .primary-action,
  .secondary-action,
  .ghost-action {
    width: 100%;
    justify-content: center;
  }

  .panel,
  .hero-copy,
  .hero-panel {
    padding: 24px;
  }

  .search-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

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

  .player-form-summary {
    grid-template-columns: 1fr;
  }

  .coach-card__header,
  .coach-tank-head {
    flex-direction: column;
  }

  .coach-tank-badges {
    width: 100%;
    justify-items: start;
  }

  .coach-goal-control {
    width: 100%;
  }

  .sliders div,
  .player-input {
    grid-template-columns: 1fr;
  }

  .player-input__index {
    width: 100%;
  }

  .tank-img {
    width: 76px;
    height: 56px;
  }
}

:root {
  --bg: #04070b;
  --bg-soft: #0a1118;
  --surface: linear-gradient(180deg, rgba(20, 27, 35, 0.96) 0%, rgba(9, 13, 18, 0.98) 100%);
  --surface-strong: linear-gradient(180deg, rgba(24, 33, 42, 0.98) 0%, rgba(10, 14, 20, 1) 100%);
  --surface-border: rgba(255, 202, 88, 0.14);
  --text: #f3f6f8;
  --muted: #91a0af;
  --accent: #6ca8ff;
  --accent-strong: #2f8cff;
  --accent-warm: #f3bf4e;
  --success: #79e08d;
  --danger: #ff7070;
  --warning: #f3bf4e;
  --info: #77b8ff;
  --shadow: 0 24px 54px rgba(0, 0, 0, 0.5);
  --radius-xl: 12px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

html {
  background:
    radial-gradient(circle at 18% 16%, rgba(114, 163, 255, 0.14), transparent 24%),
    radial-gradient(circle at 82% 8%, rgba(243, 191, 78, 0.09), transparent 20%),
    linear-gradient(180deg, #05070a 0%, #091019 42%, #05070b 100%);
}

body {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(69, 89, 120, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(243, 191, 78, 0.08), transparent 24%),
    linear-gradient(180deg, #05070a 0%, #09111a 46%, #04070b 100%);
}

body::before {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px, 64px 64px, 64px 64px;
  opacity: 0.6;
  mask-image: radial-gradient(circle at center, black 48%, transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.28));
}

button,
input,
select {
  font: inherit;
}

.logo,
.eyebrow,
.section-kicker,
.card-label,
.hero-panel__badge,
.section-heading h2,
.hero-copy h1,
.sliders-card__header h3,
#coachSummary,
#lineupTitle,
.tf-title,
.coach-focus__tag,
.coach-focus__label,
.coach-goal-control__label,
.coach-goal-meter__label,
.coach-section__title,
.coach-block__label,
.coach-metric__label,
.lineup-meta strong,
.player-input__index,
.builder-note,
.lineup-note,
.nav-button,
.primary-action,
.secondary-action,
.ghost-action {
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
}

#playerName,
.stats h4,
.tf-winrate,
.coach-goal-meter__text,
.coach-tank-badge,
.coach-trend,
.coach-metric__value,
.coach-recent__value,
.tank-wr,
#teamTotal,
.player-input input,
.select,
.lang-switch select {
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
}

.page-shell {
  width: min(1320px, calc(100% - 34px));
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.topbar {
  background: linear-gradient(180deg, rgba(22, 29, 36, 0.94), rgba(9, 13, 18, 0.96));
  border: 1px solid rgba(243, 191, 78, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(95, 126, 164, 0.12),
    0 18px 42px rgba(0, 0, 0, 0.45);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(243, 191, 78, 0.16), transparent 78%);
  pointer-events: none;
}

.logo {
  color: #f8f5e8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo::before {
  content: "[ ]";
  margin-right: 12px;
  color: var(--warning);
}

.lang-switch,
.lang-switch select,
.select,
input {
  background: linear-gradient(180deg, rgba(16, 22, 29, 0.98), rgba(8, 12, 17, 0.98));
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

input::placeholder {
  color: rgba(165, 177, 191, 0.7);
}

.nav-button,
.primary-action,
.secondary-action,
.ghost-action {
  border-radius: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, filter 0.22s ease;
}

.nav-button,
.ghost-action {
  background: linear-gradient(180deg, rgba(22, 29, 36, 0.96), rgba(10, 15, 21, 0.96));
  border: 1px solid rgba(126, 144, 166, 0.22);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.primary-action,
.nav-button--primary {
  color: #10140c;
  background: linear-gradient(180deg, #f1cf63 0%, #c7a238 58%, #7da54f 100%);
  border: 1px solid rgba(243, 191, 78, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 28px rgba(125, 165, 79, 0.22),
    0 0 18px rgba(243, 191, 78, 0.15);
}

.secondary-action {
  background: linear-gradient(180deg, rgba(34, 42, 49, 0.98), rgba(13, 18, 24, 0.98));
  border: 1px solid rgba(243, 191, 78, 0.18);
  color: #e6edf5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

button:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
}

.nav-button:hover,
.secondary-action:hover,
.ghost-action:hover {
  border-color: rgba(243, 191, 78, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 14px 30px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(114, 163, 255, 0.12);
}

.hero-copy,
.hero-panel,
.panel,
.player-card,
.stats div,
.sliders-card,
.timeframe-card,
.coach-card,
.coach-focus,
.coach-tank-card,
.coach-block,
.coach-metric,
.coach-recent__metric,
.lineup-block,
.lineup-card,
.player-input,
.sliders div,
.hero-highlights div,
.hero-steps li,
.feedback,
.results-empty,
.coach-empty {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(167, 181, 197, 0.14);
  background: linear-gradient(180deg, rgba(22, 29, 36, 0.96), rgba(8, 12, 17, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 38px rgba(52, 85, 121, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.35);
}

.hero-copy::before,
.hero-panel::before,
.panel::before,
.player-card::before,
.stats div::before,
.sliders-card::before,
.timeframe-card::before,
.coach-card::before,
.coach-focus::before,
.coach-tank-card::before,
.coach-block::before,
.coach-metric::before,
.coach-recent__metric::before,
.lineup-block::before,
.lineup-card::before,
.player-input::before,
.sliders div::before,
.hero-highlights div::before,
.hero-steps li::before,
.feedback::before,
.results-empty::before,
.coach-empty::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(243, 191, 78, 0.92), rgba(119, 184, 255, 0.28), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.hero-copy,
.hero-panel,
.panel,
.player-card,
.sliders-card,
.timeframe-card,
.coach-card,
.coach-tank-card,
.lineup-block,
.lineup-card {
  animation: hudFadeIn 0.45s ease both;
}

.stats div,
.timeframe-card,
.coach-tank-card,
.lineup-card,
.player-input,
.sliders div,
.hero-highlights div,
.hero-steps li {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.stats div:hover,
.timeframe-card:hover,
.coach-tank-card:hover,
.lineup-card:hover,
.player-input:hover,
.sliders div:hover,
.hero-highlights div:hover,
.hero-steps li:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 191, 78, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 46px rgba(114, 163, 255, 0.08),
    0 22px 40px rgba(0, 0, 0, 0.44),
    0 0 22px rgba(243, 191, 78, 0.08);
}

.panel::after,
.hero-copy::after,
.hero-panel::after {
  inset: auto -60px -80px auto;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(114, 163, 255, 0.13), transparent 72%);
}

.hero-copy {
  background:
    linear-gradient(180deg, rgba(21, 30, 39, 0.97), rgba(9, 14, 19, 0.98)),
    linear-gradient(135deg, rgba(243, 191, 78, 0.06), transparent 42%);
}

.hero-copy h1 {
  max-width: 12ch;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(2.45rem, 4.5vw, 4.1rem);
  line-height: 1.02;
  text-shadow: 0 0 22px rgba(119, 184, 255, 0.08);
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(20, 26, 32, 0.98), rgba(8, 12, 16, 0.98)),
    radial-gradient(circle at top right, rgba(119, 184, 255, 0.08), transparent 38%);
}

.hero-steps {
  padding-left: 0;
  list-style: none;
}

.hero-steps li {
  padding-left: 54px;
}

.hero-steps li::after {
  content: attr(data-step);
}

.hero-steps li:nth-child(1)::after,
.hero-steps li:nth-child(2)::after,
.hero-steps li:nth-child(3)::after {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(243, 191, 78, 0.14);
  color: var(--warning);
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  content: "01";
}

.hero-steps li:nth-child(2)::after { content: "02"; }
.hero-steps li:nth-child(3)::after { content: "03"; }

.hero-highlights strong,
.stats h4,
.tank-name,
.team-total,
#playerName {
  color: #f6f7f2;
}

.section-heading {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 18px;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 191, 78, 0.4), rgba(119, 184, 255, 0.14), transparent 72%);
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.18;
}

.section-heading p,
.hero-copy p,
.hero-panel__footer,
.builder-note,
.feedback,
.results-empty,
.tank-type,
.input-group span,
.lineup-note,
.timeframe-note,
.coach-goal-summary,
.coach-recent__empty,
.coach-empty {
  color: var(--muted);
}

.feedback,
.results-empty {
  border-left: 2px solid rgba(243, 191, 78, 0.38);
}

.player-card {
  background:
    linear-gradient(180deg, rgba(18, 25, 33, 0.98), rgba(8, 12, 18, 0.98)),
    radial-gradient(circle at top, rgba(119, 184, 255, 0.08), transparent 42%);
}

.player-card__top {
  justify-content: flex-start;
  text-align: left;
}

#playerName {
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats div:nth-child(1) h4 {
  color: #dbe5ef;
  text-shadow: 0 0 18px rgba(219, 229, 239, 0.08);
}

.stats div:nth-child(2) h4 {
  color: var(--success);
  text-shadow: 0 0 18px rgba(121, 224, 141, 0.18);
}

.stats div:nth-child(3) h4 {
  color: var(--info);
  text-shadow: 0 0 18px rgba(119, 184, 255, 0.18);
}

.stats span,
.tank-type,
.card-label,
.lineup-note,
.builder-note {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stats h4 {
  font-size: 1.9rem;
}

.player-stat-value--battles {
  color: #dbe5ef;
  text-shadow: 0 0 18px rgba(219, 229, 239, 0.08);
}

#winrate.player-stat-value--wr.wr-neutral {
  color: #CFCFCF;
  text-shadow: none;
}

#winrate.player-stat-value--wr.wr-light-green {
  color: #A8FFB0;
  text-shadow: 0 0 10px rgba(168, 255, 176, 0.16);
}

#winrate.player-stat-value--wr.wr-green {
  color: #4DFF88;
  text-shadow: 0 0 14px rgba(77, 255, 136, 0.2);
}

#winrate.player-stat-value--wr.wr-blue {
  color: #4DCFFF;
  text-shadow: 0 0 18px rgba(77, 207, 255, 0.24);
}

#winrate.player-stat-value--wr.wr-purple {
  color: #B266FF;
  text-shadow: 0 0 22px rgba(178, 102, 255, 0.3);
}

.player-stat-value--damage {
  color: var(--info);
  text-shadow: 0 0 18px rgba(119, 184, 255, 0.18);
}

.sliders-card,
.lineup-block,
.coach-card {
  background:
    linear-gradient(180deg, rgba(20, 28, 36, 0.98), rgba(9, 14, 20, 1)),
    linear-gradient(90deg, rgba(243, 191, 78, 0.05), transparent 55%);
}

.sliders input[type="range"] {
  background: linear-gradient(90deg, rgba(147, 53, 53, 0.92), rgba(243, 191, 78, 0.95) 48%, rgba(121, 224, 141, 0.96));
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.36);
}

.sliders input[type="range"]::-webkit-slider-thumb,
.sliders input[type="range"]::-moz-range-thumb {
  background: linear-gradient(180deg, #f6f7f4, #a4b3c7);
  box-shadow: 0 0 0 4px rgba(243, 191, 78, 0.16), 0 0 18px rgba(119, 184, 255, 0.12);
}

.player-input__index {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(243, 191, 78, 0.2), rgba(119, 184, 255, 0.12));
  border: 1px solid rgba(243, 191, 78, 0.18);
  color: var(--warning);
  letter-spacing: 0.08em;
}

.timeframe-card {
  min-height: 132px;
  background:
    linear-gradient(180deg, rgba(20, 27, 35, 0.96), rgba(9, 14, 18, 0.98)),
    linear-gradient(135deg, rgba(119, 184, 255, 0.05), transparent 45%);
}

.tf-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(230, 236, 242, 0.92);
}

.tf-winrate {
  font-size: 1.52rem;
  letter-spacing: 0.05em;
}

.tf-meta {
  margin-top: 10px;
  line-height: 1.45;
}

.coach-card {
  border-color: rgba(243, 191, 78, 0.16);
}

.coach-card__header {
  align-items: center;
}

.coach-goal-control {
  min-width: 148px;
}

.coach-goal-control__input {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 24, 30, 0.98), rgba(8, 11, 16, 0.98));
  border-color: rgba(255, 255, 255, 0.1);
}

.coach-goal-meter {
  margin-bottom: 18px;
  padding: 14px 16px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(12, 19, 25, 0.96), rgba(6, 10, 14, 0.98));
  border: 1px solid rgba(243, 191, 78, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.coach-goal-meter__hud {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.coach-goal-meter__label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coach-goal-meter__text {
  color: #f5f7f9;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
}

.coach-goal-meter__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 112, 112, 0.2), rgba(243, 191, 78, 0.16) 48%, rgba(121, 224, 141, 0.16));
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.coach-goal-meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--danger), var(--warning) 48%, var(--success));
  box-shadow: 0 0 16px rgba(121, 224, 141, 0.18);
  transition: width 0.45s ease;
}

.coach-goal-meter__marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-radius: 999px;
  background: #f7f8fa;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.48);
  transform: translateX(-50%);
  transition: left 0.45s ease;
}

.coach-goal-meter--complete {
  border-color: rgba(121, 224, 141, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 18px rgba(121, 224, 141, 0.08);
}

.coach-focus {
  padding-top: 44px;
  background:
    linear-gradient(180deg, rgba(20, 31, 39, 0.98), rgba(7, 13, 18, 1)),
    radial-gradient(circle at top right, rgba(121, 224, 141, 0.1), transparent 42%);
  border-color: rgba(121, 224, 141, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 52px rgba(121, 224, 141, 0.06),
    0 20px 38px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(121, 224, 141, 0.08);
}

.coach-focus__tag {
  position: absolute;
  top: 14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(121, 224, 141, 0.12);
  border: 1px solid rgba(121, 224, 141, 0.26);
  color: var(--success);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(121, 224, 141, 0.08);
}

.coach-focus__tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(121, 224, 141, 0.85);
}

.coach-focus__label {
  color: var(--warning);
}

.coach-focus p {
  font-size: 1.08rem;
  line-height: 1.6;
}

.coach-section__count {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.coach-tank-name,
.lineup-meta strong,
.lineup-meta .tank-name {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.coach-tank-badge {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.coach-trend {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.coach-trend--improving {
  box-shadow: 0 0 18px rgba(121, 224, 141, 0.1);
  text-shadow: 0 0 12px rgba(121, 224, 141, 0.16);
}

.coach-trend--declining {
  box-shadow: 0 0 18px rgba(255, 112, 112, 0.08);
  text-shadow: 0 0 12px rgba(255, 112, 112, 0.16);
}

.coach-trend--stable {
  border-color: rgba(119, 184, 255, 0.16);
  background: rgba(119, 184, 255, 0.06);
  color: var(--info);
}

.coach-metric__value,
.coach-recent__value {
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.coach-metric:nth-child(2) .coach-metric__value,
.coach-recent__metric:nth-child(2) .coach-recent__value {
  color: var(--info);
  text-shadow: 0 0 14px rgba(119, 184, 255, 0.14);
}

.coach-metric:nth-child(3) .coach-metric__value {
  color: var(--success);
  text-shadow: 0 0 14px rgba(121, 224, 141, 0.14);
}

.coach-advice-list li::marker {
  color: var(--warning);
}

.lineup-img,
.tank-img {
  background: linear-gradient(180deg, rgba(24, 32, 39, 0.96), rgba(10, 13, 17, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lineup-card {
  background:
    linear-gradient(180deg, rgba(22, 29, 36, 0.96), rgba(7, 10, 14, 0.98)),
    linear-gradient(90deg, rgba(243, 191, 78, 0.04), transparent 62%);
}

.lineup-top {
  border-color: rgba(121, 224, 141, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 44px rgba(121, 224, 141, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.42),
    0 0 20px rgba(121, 224, 141, 0.08);
}

.tank-wr.wr-light-green,
.tf-winrate.wr-light-green {
  text-shadow: 0 0 10px rgba(168, 255, 176, 0.16);
}

.tank-wr.wr-green,
.tf-winrate.wr-green,
.stats div:nth-child(2) h4 {
  text-shadow: 0 0 14px rgba(77, 255, 136, 0.2);
}

.tank-wr.wr-blue,
.tf-winrate.wr-blue {
  text-shadow: 0 0 18px rgba(77, 207, 255, 0.24);
}

.tank-wr.wr-purple,
.tf-winrate.wr-purple {
  text-shadow: 0 0 22px rgba(178, 102, 255, 0.3);
}

.tank-wr.wr-neutral,
.tf-winrate.wr-neutral {
  color: #CFCFCF;
  text-shadow: none;
}

.loader {
  border-top-color: var(--warning);
  box-shadow: 0 0 18px rgba(243, 191, 78, 0.16);
}

@keyframes hudFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 24px, 1320px);
  }
}

@media (max-width: 720px) {
  .hero-copy h1,
  .section-heading h2 {
    letter-spacing: 0.08em;
  }

  .coach-goal-meter__hud {
    flex-direction: column;
    align-items: flex-start;
  }
}

body::before {
  animation: tacticalGridPulse 16s ease-in-out infinite alternate;
}

body::after {
  animation: tacticalVignettePulse 20s ease-in-out infinite alternate;
}

.page-shell {
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.page-shell::before {
  inset: 14% auto auto 8%;
  width: min(34vw, 440px);
  height: min(34vw, 440px);
  background: radial-gradient(circle, rgba(119, 184, 255, 0.16), transparent 70%);
  filter: blur(28px);
  opacity: 0.65;
  animation: ambientGlowFloat 18s ease-in-out infinite;
}

.page-shell::after {
  inset: auto 9% 7% auto;
  width: min(26vw, 320px);
  height: min(26vw, 320px);
  background: radial-gradient(circle, rgba(243, 191, 78, 0.14), transparent 72%);
  filter: blur(26px);
  opacity: 0.5;
  animation: ambientGlowFloat 22s ease-in-out infinite reverse;
}

.nav-button,
.primary-action,
.secondary-action,
.ghost-action {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
}

.nav-button::after,
.primary-action::after,
.secondary-action::after,
.ghost-action::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.28) 18%, transparent 35%);
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
}

.primary-action::before,
.nav-button--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-120%);
  opacity: 0.65;
  pointer-events: none;
  animation: buttonSweep 4.6s linear infinite;
}

button:hover::after {
  opacity: 0.75;
  animation: buttonHoverSweep 0.9s ease forwards;
}

.nav-button:hover,
.primary-action:hover,
.secondary-action:hover,
.ghost-action:hover {
  transform: translateY(-4px) scale(1.01);
}

button:active {
  transform: translateY(1px) scale(0.985);
}

.primary-action.is-loading {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 32px rgba(125, 165, 79, 0.24),
    0 0 26px rgba(243, 191, 78, 0.2);
  animation: actionPulse 1.15s ease-in-out infinite;
}

.panel,
.player-card,
.timeframe-card,
.coach-card,
.lineup-block,
.lineup-card,
.player-input,
.sliders-card,
.stats div {
  backdrop-filter: blur(8px);
}

.timeframe-card,
.coach-tank-card,
.lineup-card,
.player-input,
.stats div,
.sliders div {
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.player-input:hover,
.timeframe-card:hover,
.coach-tank-card:hover,
.lineup-card:hover,
.stats div:hover,
.sliders div:hover {
  transform: translateY(-5px) rotateX(3deg) scale(1.01);
}

.player-input:hover {
  border-color: rgba(119, 184, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 44px rgba(119, 184, 255, 0.07),
    0 18px 36px rgba(0, 0, 0, 0.42),
    0 0 20px rgba(119, 184, 255, 0.12);
}

.lineup-card,
.coach-tank-card {
  animation: hudCardCascade 0.58s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--card-index, 0) * 80ms);
}

.lineup-card:hover .lineup-img,
.coach-tank-card:hover .tank-img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1.04);
}

.lineup-img,
.tank-img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.sliders input[type="range"] {
  transition: box-shadow 0.24s ease, filter 0.24s ease, transform 0.24s ease;
}

.sliders div:hover input[type="range"],
.sliders input[type="range"]:focus-visible {
  filter: saturate(1.08) brightness(1.03);
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(243, 191, 78, 0.18),
    0 0 18px rgba(119, 184, 255, 0.16);
}

.sliders input[type="range"]:active {
  transform: scaleY(1.08);
}

.live-coach-panel {
  position: relative;
  margin-top: 18px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(119, 184, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 28, 36, 0.98), rgba(8, 13, 18, 0.98)),
    radial-gradient(circle at top right, rgba(121, 224, 141, 0.1), transparent 40%),
    linear-gradient(135deg, rgba(119, 184, 255, 0.06), transparent 45%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 52px rgba(119, 184, 255, 0.05),
    0 18px 38px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(119, 184, 255, 0.08);
  animation: hudFadeIn 0.45s ease both, livePanelBreath 10s ease-in-out infinite;
}

.live-coach-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(243, 191, 78, 0.95), rgba(119, 184, 255, 0.28), transparent);
  pointer-events: none;
}

.live-coach-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 16%, transparent 34%),
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px);
  background-size: auto, 22px 22px;
  opacity: 0.3;
  transform: translateX(-30%);
  animation: livePanelSweep 11s linear infinite;
  pointer-events: none;
}

.live-coach-panel.is-live {
  border-color: rgba(121, 224, 141, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 56px rgba(121, 224, 141, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(121, 224, 141, 0.08);
}

.live-coach-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.live-coach-panel__header h3 {
  margin: 6px 0 0;
  color: #f5f7fa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(119, 184, 255, 0.1);
}

.live-coach-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.live-coach-panel__metric,
.live-coach-panel__block {
  position: relative;
  min-height: 92px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(14, 21, 28, 0.94), rgba(7, 10, 15, 0.96)),
    linear-gradient(135deg, rgba(243, 191, 78, 0.04), transparent 60%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 32px rgba(119, 184, 255, 0.03);
}

.live-coach-panel__label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-coach-panel__value {
  display: block;
  color: #f6f7f8;
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.live-coach-panel__value.wr-neutral {
  color: #CFCFCF;
  text-shadow: none;
}

.live-coach-panel__value.wr-light-green {
  color: #A8FFB0;
  text-shadow: 0 0 10px rgba(168, 255, 176, 0.16);
}

.live-coach-panel__value.wr-green {
  color: #4DFF88;
  text-shadow: 0 0 14px rgba(77, 255, 136, 0.2);
}

.live-coach-panel__value.wr-blue {
  color: #4DCFFF;
  text-shadow: 0 0 18px rgba(77, 207, 255, 0.24);
}

.live-coach-panel__value.wr-purple {
  color: #B266FF;
  text-shadow: 0 0 22px rgba(178, 102, 255, 0.3);
}

.live-coach-panel__trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(119, 184, 255, 0.18);
  background: rgba(119, 184, 255, 0.08);
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--info);
}

.live-coach-panel__trend.is-improving {
  border-color: rgba(121, 224, 141, 0.28);
  background: rgba(121, 224, 141, 0.1);
  color: var(--success);
  box-shadow: 0 0 18px rgba(121, 224, 141, 0.08);
}

.live-coach-panel__trend.is-declining {
  border-color: rgba(255, 112, 112, 0.24);
  background: rgba(255, 112, 112, 0.1);
  color: var(--danger);
  box-shadow: 0 0 18px rgba(255, 112, 112, 0.08);
}

.live-coach-panel__trend.is-stable {
  border-color: rgba(243, 191, 78, 0.2);
  background: rgba(243, 191, 78, 0.08);
  color: var(--warning);
}

.live-coach-panel__block p {
  margin: 0;
  color: #dce3ea;
  line-height: 1.55;
}

#resultsSection {
  position: relative;
}

#resultsSection.is-analyzing #lineupBlock,
#resultsSection.is-analyzing #resultsEmpty {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 44px rgba(119, 184, 255, 0.06),
    0 20px 42px rgba(0, 0, 0, 0.42);
}

#resultsSection.is-analyzing #lineupBlock::after,
#resultsSection.is-analyzing #resultsEmpty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 0%, rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.14) 50%, transparent 58%);
  transform: translateX(-100%);
  animation: panelShimmer 1.15s linear infinite;
  pointer-events: none;
}

.lineup-block {
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.lineup-block--warning {
  border-color: rgba(255, 112, 112, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 42px rgba(255, 112, 112, 0.05),
    0 18px 38px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(255, 112, 112, 0.08);
}

.lineup-block--balanced {
  border-color: rgba(243, 191, 78, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 42px rgba(243, 191, 78, 0.04),
    0 18px 38px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(243, 191, 78, 0.06);
}

.lineup-block--strong {
  border-color: rgba(121, 224, 141, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 52px rgba(121, 224, 141, 0.06),
    0 22px 42px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(121, 224, 141, 0.1);
}

.lineup-block--warning #lineupNote {
  color: var(--danger);
}

.lineup-block--balanced #lineupNote {
  color: var(--warning);
}

.lineup-block--strong #lineupNote {
  color: var(--success);
}

.player-stat-value--wr,
.tf-winrate,
.coach-tank-badge,
.live-coach-panel__value,
#coachGoalMeterText,
.tank-wr,
.player-form-summary__value,
.player-form-summary__rank,
.player-form-summary__career-value {
  transition: text-shadow 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.section-heading,
.player-card,
.coach-card,
.sliders-card,
.lineup-block {
  position: relative;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 191, 78, 0.62), transparent);
  opacity: 0.6;
}

@keyframes tacticalGridPulse {
  0% {
    opacity: 0.48;
    transform: scale(1);
  }
  100% {
    opacity: 0.66;
    transform: scale(1.02);
  }
}

@keyframes tacticalVignettePulse {
  0% {
    opacity: 0.9;
  }
  100% {
    opacity: 1;
  }
}

@keyframes ambientGlowFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -14px, 0) scale(1.04);
  }
}

@keyframes livePanelBreath {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 0 52px rgba(119, 184, 255, 0.05),
      0 18px 38px rgba(0, 0, 0, 0.38),
      0 0 26px rgba(119, 184, 255, 0.08);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 0 60px rgba(121, 224, 141, 0.05),
      0 20px 42px rgba(0, 0, 0, 0.4),
      0 0 30px rgba(119, 184, 255, 0.1);
  }
}

@keyframes livePanelSweep {
  0% {
    transform: translateX(-34%);
    opacity: 0.18;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translateX(30%);
    opacity: 0.18;
  }
}

@keyframes buttonSweep {
  0% {
    transform: translateX(-130%);
  }
  55%, 100% {
    transform: translateX(140%);
  }
}

@keyframes buttonHoverSweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes actionPulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.06);
  }
}

@keyframes panelShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes hudCardCascade {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .live-coach-panel__header,
  .live-coach-panel__grid {
    grid-template-columns: 1fr;
  }

  .live-coach-panel__header {
    display: grid;
  }

  .live-coach-panel__trend {
    min-width: 0;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .page-shell::before,
  .page-shell::after,
  .live-coach-panel,
  .live-coach-panel::after,
  .primary-action::before,
  .lineup-card,
  .coach-tank-card,
  .primary-action.is-loading,
  #resultsSection.is-analyzing #lineupBlock::after,
  #resultsSection.is-analyzing #resultsEmpty::after {
    animation: none !important;
  }

  .nav-button,
  .primary-action,
  .secondary-action,
  .ghost-action,
  .player-input,
  .timeframe-card,
  .coach-tank-card,
  .lineup-card,
  .stats div,
  .sliders div,
  .lineup-img,
  .tank-img,
  .sliders input[type="range"] {
    transition: none !important;
  }
}

main {
  width: 100%;
}

.page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 20px 40px;
}

.topbar {
  margin-bottom: 18px;
}

.app-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  width: 100%;
  padding: 0;
  align-items: start;
}

.app-layout > * {
  min-width: 0;
}

.app-hero {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.block:not(.hidden) {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.main-large {
  grid-column: span 2;
}

#searchSection,
#teamSection,
#resultsSection,
#playerHeader,
#coachCard,
#timeframeWrapper {
  width: 100%;
}

#searchSection,
#teamSection,
#resultsSection {
  grid-column: auto;
  grid-row: auto;
}

.panel,
.hero-copy,
.hero-panel {
  padding: 26px;
}

.hero {
  padding: 0;
}

.hero-copy {
  padding: 32px;
}

.hero-panel {
  padding: 24px;
}

.hero {
  gap: 20px;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2rem, 3vw, 3.25rem);
}

.hero-copy p {
  margin-top: 14px;
}

.hero-highlights {
  margin-top: 26px;
}

.section-heading {
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.95rem);
}

.section-heading p {
  margin-top: 8px;
}

.builder-toolbar,
.search-box,
.stats,
.timeframe-grid,
.coach-results,
.lineup-grid,
.players-list,
.sliders,
.cta-row {
  gap: 12px;
}

.player-card,
.coach-card,
.timeframes,
.lineup-block,
.sliders-card {
  margin-top: 0;
}

#playerHeader {
  padding: 22px;
}

#playerHeader .player-card__top {
  margin-bottom: 16px;
}

#playerHeader .stats {
  margin-top: 0;
}

#coachCard,
#timeframeWrapper {
  align-self: stretch;
}

#coachCard,
#timeframeWrapper,
#playerHeader {
  margin-top: 0;
}

#timeframeWrapper {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(167, 181, 197, 0.14);
  background: linear-gradient(180deg, rgba(22, 29, 36, 0.96), rgba(8, 12, 17, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 38px rgba(52, 85, 121, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.35);
}

#timeframeWrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(243, 191, 78, 0.92), rgba(119, 184, 255, 0.28), transparent);
  opacity: 0.9;
  pointer-events: none;
}

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

.timeframe-card {
  min-height: 0;
}

.results-empty {
  padding: 20px;
}

.lineup-block {
  margin-bottom: 0;
}

.coach-card__header {
  margin-bottom: 14px;
}

.coach-focus,
.coach-goal-meter,
.coach-goal-summary {
  margin-bottom: 14px;
}

@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .main-large {
    grid-column: span 1;
  }

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

.page-shell {
  width: min(100% - 24px, 1120px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 0 36px;
}

.topbar {
  margin-bottom: 16px;
}

.flow-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.flow-section {
  width: 100%;
}

.app-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 0;
}

.hero--compact .hero-copy {
  padding: 24px 26px;
}

.hero--compact .hero-panel {
  padding: 18px 22px;
}

.hero--compact .hero-copy h1 {
  max-width: none;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.02;
}

.hero--compact .hero-copy p {
  margin-top: 10px;
  max-width: 64ch;
  font-size: 0.98rem;
}

.hero--compact .hero-actions {
  margin-top: 20px;
}

.hero--compact .hero-highlights {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.hero--compact .hero-highlights div {
  padding: 12px 14px;
}

.hero--compact .hero-panel__badge {
  margin-bottom: 10px;
}

.hero--compact .hero-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 0;
}

.hero--compact .hero-steps li {
  margin: 0;
  padding: 12px 14px 12px 50px;
}

.hero--compact .hero-panel__footer {
  margin-top: 10px;
}

#searchSection,
#playerHeader,
#timeframeWrapper,
#coachCard,
#teamSection,
#resultsSection {
  width: 100%;
  grid-column: auto;
  grid-row: auto;
}

#playerHeader {
  padding: 22px;
}

#timeframeWrapper {
  padding: 20px;
}

#coachCard {
  margin-top: 0;
}

#resultsSection {
  margin-top: 0;
}

.section-heading {
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
}

.section-heading p {
  margin-top: 8px;
}

.builder-toolbar,
.search-box,
.stats,
.timeframe-grid,
.coach-results,
.lineup-grid,
.players-list,
.sliders,
.cta-row {
  gap: 12px;
}

.search-box {
  margin-bottom: 0;
}

.player-card,
.coach-card,
.timeframes,
.lineup-block,
.sliders-card {
  margin-top: 0;
}

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

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

  .flow-layout {
    gap: 16px;
  }

  .hero--compact .hero-copy,
  .hero--compact .hero-panel,
  .panel,
  #playerHeader,
  #coachCard,
  #timeframeWrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.page-shell {
  width: min(100% - 20px, 1040px);
  max-width: 1040px;
  padding: 12px 0 28px;
}

.topbar {
  margin-bottom: 12px;
}

.flow-layout {
  gap: 10px;
  max-width: none;
}

.flow-layout > .flow-section {
  position: relative;
}

.flow-layout > .flow-section + .flow-section::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 6px 10px;
  background: linear-gradient(90deg, transparent, rgba(243, 191, 78, 0.32), rgba(119, 184, 255, 0.2), transparent);
  opacity: 0.9;
}

.app-hero {
  gap: 0;
}

.hero--compact .hero-panel,
.hero--compact .hero-highlights {
  display: none;
}

.hero--compact .hero-copy {
  padding: 16px 20px;
  min-height: 0;
}

.hero--compact .hero-copy h1 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.04;
  max-width: 18ch;
}

.hero--compact .hero-copy p {
  margin-top: 8px;
  max-width: 56ch;
  font-size: 0.93rem;
  line-height: 1.55;
}

.hero--compact .hero-actions {
  margin-top: 14px;
}

#searchSection,
#teamSection,
#resultsSection,
.analysis-flow,
.builder-flow {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

#searchSection::before,
#searchSection::after,
#teamSection::before,
#teamSection::after,
#resultsSection::before,
#resultsSection::after,
.analysis-flow::before,
.analysis-flow::after,
.builder-flow::before,
.builder-flow::after {
  display: none;
}

.analysis-flow,
.builder-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analysis-flow {
  padding: 2px 0 0;
}

.analysis-flow #playerHeader,
.analysis-flow #timeframeWrapper,
.analysis-flow #coachCard {
  margin-top: 0;
}

.analysis-flow #playerHeader {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.analysis-flow #timeframeWrapper {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.analysis-flow #coachCard {
  position: relative;
  padding-top: 16px;
}

.analysis-flow #coachCard::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 20px;
  right: 20px;
  height: 18px;
  background: linear-gradient(180deg, rgba(119, 184, 255, 0.12), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

#searchSection .section-heading,
#teamSection .section-heading,
#resultsSection .section-heading {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

#searchSection .section-heading p,
#teamSection .section-heading p,
#resultsSection .section-heading p {
  margin-top: 6px;
}

#searchSection .search-box {
  gap: 10px;
}

#searchSection .feedback {
  margin-top: 10px;
}

#teamSection .builder-toolbar {
  margin-bottom: 12px;
}

#teamSection .sliders-card {
  margin-top: 12px;
}

#resultsSection .lineup-block {
  margin-top: 0;
}

#playerHeader {
  padding: 18px 20px;
}

#playerHeader .player-card__top {
  margin-bottom: 12px;
}

#playerHeader .stats {
  gap: 10px;
}

#timeframeWrapper {
  padding: 18px 20px;
}

#coachCard {
  padding: 18px 20px 20px;
}

#coachCard .coach-card__header {
  margin-bottom: 12px;
}

#coachCard .coach-goal-summary,
#coachCard .coach-goal-meter,
#coachCard .coach-focus {
  margin-bottom: 12px;
}

.timeframe-grid,
.coach-results,
.lineup-grid,
.players-list,
.sliders,
.cta-row {
  gap: 10px;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 16px, 1040px);
    padding-top: 10px;
  }

  .flow-layout {
    gap: 8px;
  }

  .flow-layout > .flow-section + .flow-section::before {
    margin-bottom: 8px;
  }

  .hero--compact .hero-copy,
  #playerHeader,
  #timeframeWrapper,
  #coachCard {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.topbar {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17, 23, 30, 0.92), rgba(8, 12, 17, 0.94));
  border: 1px solid rgba(243, 191, 78, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(95, 126, 164, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.topbar::before {
  opacity: 0.55;
  background: linear-gradient(90deg, transparent, rgba(243, 191, 78, 0.12), transparent 82%);
}

.logo {
  font-size: 1rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.logo::before {
  margin-right: 10px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav-button {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav-button--primary {
  min-width: 0;
}

.lang-switch {
  justify-self: end;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 16px;
}

.lang-switch label {
  font-size: 0.8rem;
}

.lang-switch select {
  min-width: 56px;
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 22px;
  }

  .logo {
    justify-self: start;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .nav-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .lang-switch {
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 9px 10px;
    border-radius: 18px;
  }

  .logo {
    font-size: 0.92rem;
    letter-spacing: 0.1em;
  }

  .nav-links {
    grid-template-columns: 1fr;
  }

  .nav-button {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.8rem;
  }

  .lang-switch {
    width: fit-content;
  }

  .player-form-summary__rows {
    grid-template-columns: 1fr;
  }
}

.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.55s ease;
  filter: saturate(0.9);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: saturate(1);
}

.flow-layout {
  gap: 12px;
}

.analysis-flow,
.builder-flow {
  gap: 10px;
}

.coach-brain {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.coach-message-block,
.coach-next-action,
.coach-support-card,
.coach-brain__panel,
.team-insight,
.results-loop {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 26, 33, 0.98), rgba(8, 12, 17, 0.98)),
    linear-gradient(120deg, rgba(119, 184, 255, 0.06), transparent 48%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 42px rgba(119, 184, 255, 0.04),
    0 16px 30px rgba(0, 0, 0, 0.34);
}

.coach-message-block::before,
.coach-next-action::before,
.coach-support-card::before,
.coach-brain__panel::before,
.team-insight::before,
.results-loop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(243, 191, 78, 0.95), rgba(119, 184, 255, 0.28), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.coach-message-block {
  padding: 16px 16px 15px;
}

.coach-next-action {
  padding: 17px 16px 15px;
}

.coach-message-block__label,
.coach-next-action__label,
.coach-support-card__label,
.coach-brain__label,
.team-insight__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--accent-warm);
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coach-message-block__label::before {
  content: "AI";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(121, 224, 141, 0.12);
  border: 1px solid rgba(121, 224, 141, 0.24);
  color: var(--success);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.coach-next-action__label::before {
  content: "NEXT";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(77, 207, 255, 0.12);
  border: 1px solid rgba(77, 207, 255, 0.24);
  color: #4DCFFF;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.coach-support-card__label::before {
  content: "DATA";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(243, 191, 78, 0.12);
  border: 1px solid rgba(243, 191, 78, 0.2);
  color: var(--warning);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.coach-support-card--reasoning .coach-support-card__label::before {
  content: "WHY";
}

.coach-support-card--followup .coach-support-card__label::before {
  content: "LIVE";
}

.coach-message-block p,
.coach-next-action p,
.coach-support-card p,
.coach-brain__panel p,
.team-insight p {
  margin: 0;
  color: #f0f4f8;
  line-height: 1.6;
}

.coach-message-block p {
  font-size: 1.02rem;
  line-height: 1.7;
}

.coach-next-action h5 {
  margin: 0 0 8px;
  color: #f7f8fb;
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 1.04rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.coach-next-action p {
  color: var(--muted);
}

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

.coach-support-card {
  padding: 16px 16px 14px;
  border-radius: 16px;
}

.coach-support-card p {
  font-size: 0.96rem;
  line-height: 1.65;
}

.coach-support-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.coach-support-metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.coach-support-metric__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coach-support-metric__value {
  color: var(--text);
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.coach-support-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

#coachCard .coach-goal-summary,
#coachCard .coach-goal-meter,
#coachCard .coach-focus,
#coachCard #coachLiveReaction,
#coachCard .coach-brain__grid,
#coachCard #coachSessionPlan {
  display: none !important;
}

#coachCard .coach-card__header {
  margin-bottom: 18px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
}

#coachCard .coach-message-block,
#coachCard .coach-next-action,
#coachCard .coach-support-card {
  border-radius: 16px;
}

#coachCard .coach-goal-control {
  min-width: min(100%, 320px);
}

#coachCard .coach-message-block {
  padding: 18px 18px 16px;
}

#coachCard .coach-next-action {
  padding: 18px 18px 16px;
}

#coachCard .coach-support-card {
  padding: 17px 18px 15px;
}

#coachCard .coach-results {
  gap: 16px;
}

#coachCard .coach-section {
  gap: 10px;
}

#coachCard .coach-section__header {
  margin-bottom: 0;
}

#coachCard .coach-section__header h5 {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}

.coach-brain__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.coach-brain__panel {
  padding: 14px 15px;
}

.coach-brain__panel--plan {
  padding-bottom: 16px;
}

.coach-brain__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.coach-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.coach-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.coach-chip--empty {
  color: var(--muted);
}

.coach-session-goal {
  margin-top: 2px;
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #f7f8fb;
}

.coach-session-plan-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.coach-session-plan-list li + li {
  margin-top: 8px;
}

.coach-session-plan-list li::marker {
  color: var(--warning);
}

.team-insight {
  margin-bottom: 10px;
  padding: 14px 16px;
}

.team-insight__label::before {
  content: "BRAIN";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(119, 184, 255, 0.12);
  border: 1px solid rgba(119, 184, 255, 0.22);
  color: var(--info);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.results-loop {
  margin-top: 12px;
  padding: 14px 16px;
  text-align: center;
  color: var(--muted);
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tone-success {
  border-color: rgba(121, 224, 141, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 46px rgba(121, 224, 141, 0.05),
    0 16px 30px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(121, 224, 141, 0.08);
}

.tone-warning {
  border-color: rgba(243, 191, 78, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 46px rgba(243, 191, 78, 0.05),
    0 16px 30px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(243, 191, 78, 0.08);
}

.tone-danger {
  border-color: rgba(255, 112, 112, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 46px rgba(255, 112, 112, 0.05),
    0 16px 30px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(255, 112, 112, 0.08);
}

.tone-info {
  border-color: rgba(119, 184, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 46px rgba(119, 184, 255, 0.05),
    0 16px 30px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(119, 184, 255, 0.08);
}

.tone-success p,
.tone-success .coach-session-goal {
  color: var(--success);
  text-shadow: 0 0 16px rgba(121, 224, 141, 0.14);
}

.tone-warning p,
.tone-warning .coach-session-goal {
  color: var(--warning);
  text-shadow: 0 0 16px rgba(243, 191, 78, 0.12);
}

.tone-danger p,
.tone-danger .coach-session-goal {
  color: var(--danger);
  text-shadow: 0 0 16px rgba(255, 112, 112, 0.12);
}

.tone-info p,
.tone-info .coach-session-goal {
  color: var(--info);
  text-shadow: 0 0 16px rgba(119, 184, 255, 0.12);
}

@media (max-width: 720px) {
  .coach-card__header {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .coach-goal-control {
    min-width: 0;
    width: 100%;
  }

  .coach-brain__split {
    grid-template-columns: 1fr;
  }

  .coach-brain__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .live-session-panel__dot {
    animation: none !important;
  }
}

.live-session-panel {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(121, 224, 141, 0.2);
  background:
    linear-gradient(180deg, rgba(18, 27, 34, 0.98), rgba(8, 12, 17, 0.98)),
    radial-gradient(circle at top right, rgba(121, 224, 141, 0.08), transparent 40%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 42px rgba(121, 224, 141, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.34);
}

#liveSessionPanel {
  display: none !important;
}

.live-session-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(121, 224, 141, 0.95), rgba(119, 184, 255, 0.28), transparent);
  opacity: 0.85;
}

.live-session-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.live-session-panel__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--success);
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-session-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(121, 224, 141, 0.75);
  animation: liveDotPulse 1.6s ease-in-out infinite;
}

.live-session-panel__header h4 {
  margin: 0;
  color: #f4f7fa;
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.live-session-panel__controls {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.live-session-panel__meta {
  display: grid;
  gap: 4px;
  text-align: right;
  color: var(--muted);
  font-size: 0.86rem;
}

.live-session-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.live-session-panel__metric,
.live-session-panel__battle,
.coach-live-reaction {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(16, 23, 29, 0.98), rgba(7, 10, 14, 0.98)),
    linear-gradient(120deg, rgba(119, 184, 255, 0.05), transparent 52%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 32px rgba(119, 184, 255, 0.03);
}

.live-session-panel__metric strong {
  display: block;
  margin-top: 8px;
  color: #f7f8fa;
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

#liveSessionWinrate.wr-light-green,
#liveSessionWinrate.wr-green,
#liveSessionWinrate.wr-blue,
#liveSessionWinrate.wr-purple,
#liveSessionWinrate.wr-neutral {
  font-size: 1.4rem;
}

.live-session-panel__label,
.coach-live-reaction__label {
  display: block;
  color: var(--accent-warm);
  font-family: "Orbitron", "Roboto", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-session-panel__battle p,
.coach-live-reaction p {
  margin: 10px 0 0;
  color: #f0f4f8;
  line-height: 1.55;
}

.live-session-panel__reset {
  min-height: 38px;
  padding: 9px 14px;
}

.coach-live-reaction {
  margin-bottom: 14px;
}

@keyframes liveDotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 12px rgba(121, 224, 141, 0.75);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
    box-shadow: 0 0 18px rgba(121, 224, 141, 0.95);
  }
}

@media (max-width: 860px) {
  .live-session-panel__header {
    flex-direction: column;
    align-items: stretch;
  }

  .live-session-panel__controls {
    justify-items: start;
  }

  .live-session-panel__meta {
    text-align: left;
  }

  .live-session-panel__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .global-leaderboard__header {
    flex-direction: column;
  }

  .global-leaderboard__position {
    width: 100%;
    text-align: center;
  }

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

  .global-leaderboard__wr,
  .global-leaderboard__badge {
    justify-self: start;
  }
}
