:root {
  --page-scale: 0.75;
  --bg: #ffffff;
  --bg-soft: #f6f9fe;
  --ink: #0f2747;
  --ink-muted: #546a86;
  --line: #d6e2f2;
  --accent: #d01f3c;
  --accent-dark: #ad1430;
  --accent-soft: #fce7eb;
  --blue-soft: #e9f1ff;
  --shadow: 0 12px 40px rgba(20, 63, 116, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  zoom: var(--page-scale);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 20%, #eef4ff 0, transparent 36%),
    radial-gradient(circle at 85% 18%, #fff0f3 0, transparent 34%),
    var(--bg);
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.45;
  z-index: -1;
}

.bg-orb-left {
  left: -100px;
  bottom: -120px;
  background: #dcecff;
}

.bg-orb-right {
  right: -90px;
  top: -110px;
  background: #ffe4ea;
}

.page {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 48px 0 56px;
}

.header-nav {
  margin: 0 auto 16px;
  width: fit-content;
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #c7dbf6;
  border-radius: 18px;
  background: #edf4ff;
  padding: 6px;
  animation: fade-up 500ms ease-out both;
}

.header-nav-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  min-width: 92px;
  min-height: 62px;
  padding: 8px 10px;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #2f4e75;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.header-nav-btn:hover {
  background: #e3eeff;
}

.header-nav-btn.is-active {
  background: #ffffff;
  border-color: #b7d0ef;
  box-shadow: 0 6px 14px rgba(26, 68, 119, 0.17);
}

.header-nav-settings {
  position: relative;
  display: flex;
  z-index: 70;
}

.settings-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 140;
  min-width: 280px;
  max-width: min(340px, 92vw);
  border: 1px solid #bfd1ea;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(26, 68, 119, 0.2);
  padding: 6px;
}

.settings-dropdown-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #1e456f;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  cursor: pointer;
}

.settings-dropdown-item:hover {
  background: #f2f7ff;
}

.settings-contact-card {
  margin: 6px 4px;
  padding: 9px 10px;
  border: 1px solid #c8dbf2;
  border-radius: 10px;
  background: linear-gradient(165deg, #ffffff 0%, #f3f8ff 100%);
  display: grid;
  gap: 8px;
}

.settings-contact-copy {
  margin: 0;
  color: #2a527c;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.settings-contact-link {
  color: #1e456f;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  word-break: break-word;
}

.settings-contact-link:hover {
  text-decoration: underline;
}

.settings-contact-close {
  border: 1px solid #bdd0e8;
  border-radius: 8px;
  background: #ffffff;
  color: #1e456f;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  justify-self: end;
}

.settings-contact-close:hover {
  background: #f2f7ff;
}

.settings-dropdown-divider {
  height: 1px;
  background: #d8e5f7;
  margin: 6px 4px;
}

.settings-profile-panel {
  display: grid;
  gap: 8px;
  padding: 6px;
}

.settings-profile-status {
  margin: 0;
  color: #395d86;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.settings-profile-stats {
  border: 1px solid #c8dbf2;
  border-radius: 10px;
  background: linear-gradient(165deg, #ffffff 0%, #f2f8ff 100%);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.settings-profile-title {
  margin: 0;
  color: #224c78;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-profile-grid {
  display: grid;
  gap: 6px;
}

.settings-profile-row {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #214b78;
  font-size: 0.76rem;
  font-weight: 700;
}

.settings-profile-row strong {
  color: #173f68;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
  line-height: 0.9;
}

.settings-profile-actions {
  display: flex;
  justify-content: flex-end;
}

.settings-profile-actions .secondary-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.92rem;
}

.settings-profile-auth-card {
  border: 1px solid #c8dbf2;
  border-radius: 10px;
  background: linear-gradient(165deg, #ffffff 0%, #f2f8ff 100%);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.settings-profile-auth-text {
  margin: 0;
  color: #395d86;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.settings-profile-auth-card .stats-user-auth-actions {
  justify-content: center;
}

.settings-profile-auth-card .secondary-btn {
  min-width: 110px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.92rem;
}

.header-nav-icon,
.header-nav-icon-png {
  width: 28px;
  height: 28px;
}

.header-nav-icon-png {
  object-fit: contain;
}

#navHome .header-nav-icon-png {
  width: 44px;
  height: 44px;
}

#navStats .header-nav-icon-png {
  width: 34px;
  height: 34px;
}

.header-nav-text {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-auth-strip {
  width: min(760px, 100%);
  margin: 0 auto 18px;
  animation: fade-up 540ms ease-out both;
}

.home-auth-card {
  padding: 10px 12px;
  gap: 8px;
}

.home-auth-status {
  margin: 0;
  color: #4d6990;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.home-auth-actions {
  justify-content: center;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
  animation: fade-up 560ms ease-out both;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero h1 {
  margin: 8px 0 10px;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: 0.03em;
  line-height: 0.92;
}

.subtitle {
  margin: 0 auto;
  max-width: 560px;
  color: var(--ink-muted);
  font-size: 1rem;
}

.sport-switch {
  margin: 0 auto 18px;
  text-align: center;
  animation: fade-up 620ms ease-out both;
}

.sport-switch-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #355a8b;
}

.sport-picker {
  display: inline-grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  background: #edf4ff;
  border: 1px solid #c7dbf6;
  border-radius: 16px;
  padding: 6px;
}

.sport-picker-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 11px;
  min-width: 72px;
  min-height: 60px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.sport-picker-icon {
  width: 46px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
}

.sport-picker-btn:hover {
  background: #e3eeff;
}

.sport-picker-btn.is-active {
  background: #ffffff;
  border-color: #b7d0ef;
  box-shadow: 0 6px 14px rgba(26, 68, 119, 0.17);
}

.quick-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  animation: fade-up 660ms ease-out both;
  position: relative;
  z-index: 2;
}

.sim-controls {
  margin: 12px auto 0;
  width: min(760px, 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  animation: fade-up 700ms ease-out both;
}

.home-advantage {
  width: min(190px, 100%);
  border: 1px solid #c8dbf2;
  border-radius: 14px;
  background: linear-gradient(160deg, #ffffff 0%, #f2f8ff 100%);
  padding: 8px 9px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  align-content: start;
}

.home-advantage-label {
  margin: 0;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.08rem;
  color: #244c80;
  text-align: center;
}

.home-advantage-toggle {
  width: 100%;
  min-height: 36px;
  border-radius: 11px;
  border: 1px solid #bfd2ea;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.home-advantage-toggle.is-on {
  background: #e8f8ee;
  border-color: #96d4aa;
  color: #0d6a2f;
}

.home-advantage-toggle.is-off {
  background: #fff1f4;
  border-color: #e9b5c1;
  color: #af1336;
}

.match-tuning {
  margin: 0;
  width: min(400px, 100%);
  border: 1px solid #c8dbf2;
  border-radius: 14px;
  background: linear-gradient(160deg, #ffffff 0%, #f2f8ff 100%);
  padding: 8px 9px;
  box-shadow: var(--shadow);
  flex: 1 1 390px;
}

.match-tuning-head {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.match-tuning-label {
  margin: 0;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.08rem;
  color: #244c80;
  text-align: center;
}

.match-tuning-summary {
  margin: 0;
  color: #2c4f7f;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  display: none;
}

.match-tuning-slider {
  width: 88%;
  margin: 5px auto 0;
  display: block;
  accent-color: #c6203f;
}

.match-tuning-slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: #d6e6fa;
}

.match-tuning-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #c6203f;
  box-shadow: 0 4px 12px rgba(198, 32, 63, 0.32);
  margin-top: -4px;
}

.match-tuning-slider::-moz-range-track {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: #d6e6fa;
}

.match-tuning-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #c6203f;
  box-shadow: 0 4px 12px rgba(198, 32, 63, 0.32);
}

.match-tuning-modes {
  margin-top: 5px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: #5d7699;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.match-tuning-modes span:nth-child(2),
.match-tuning-modes span:nth-child(3) {
  text-align: center;
}

.match-tuning-modes span:last-child {
  text-align: right;
}

.team-card {
  background: linear-gradient(165deg, var(--bg) 0%, #f9fcff 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.team-label {
  margin: 0 0 10px;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
  color: #274d7d;
}

.team-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.team-picker {
  position: relative;
}

.team-picker-trigger {
  width: 100%;
  border: 1px solid #bfd2ea;
  border-radius: 12px;
  padding: 9px 12px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.team-picker-trigger:focus {
  outline: 2px solid #7aa6de;
  border-color: #7aa6de;
}

.team-picker-trigger:disabled {
  color: #7588a3;
  background: #f4f8ff;
  cursor: not-allowed;
}

.team-picker-trigger-content {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
}

.team-picker-trigger-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.team-picker-trigger-label {
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-picker-caret {
  color: #2f4e75;
  font-size: 0.9rem;
  font-weight: 800;
}

.team-picker.open .team-picker-caret {
  transform: rotate(180deg);
}

.team-picker-menu {
  position: absolute;
  z-index: 15;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #bed1e8;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(25, 69, 121, 0.2);
  padding: 6px;
}

.team-picker-empty {
  margin: 0;
  padding: 10px 12px;
  color: #5a7395;
  font-size: 0.9rem;
  font-weight: 700;
}

.team-picker-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.team-picker-option:hover {
  background: #f1f7ff;
}

.team-picker-option.selected {
  background: #e8f1ff;
}

.team-picker-option-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
}

.team-picker-option-details {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.team-picker-option-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.team-picker-option-name {
  font-size: 0.93rem;
  font-weight: 700;
  color: #123764;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-picker-option-meta {
  font-size: 0.74rem;
  font-weight: 700;
  color: #5f7491;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-picker-option-strength {
  font-size: 0.82rem;
  font-weight: 800;
  color: #2a4f81;
  background: #edf4ff;
  border-radius: 999px;
  padding: 3px 8px;
}

body.soccer-picker-open {
  overflow: hidden;
}

.soccer-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
}

.soccer-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(90, 104, 124, 0.46);
  backdrop-filter: blur(2px);
}

.soccer-picker-card {
  position: relative;
  width: min(760px, 94vw);
  max-height: min(92vh, 1080px);
  border-radius: 30px;
  border: 1px solid #d6ddea;
  background: #f8f9fb;
  box-shadow: 0 36px 76px rgba(21, 49, 86, 0.28);
  padding: 16px 20px 12px;
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.soccer-picker-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.soccer-picker-back,
.soccer-picker-close {
  border: 1px solid #d3dce9;
  background: #fefefe;
  color: #1b2a3f;
  border-radius: 16px;
  min-width: 92px;
  min-height: 52px;
  padding: 7px 16px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.soccer-picker-back {
  margin-right: auto;
}

.soccer-picker-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #d2dae7;
  border-radius: 20px;
  overflow: hidden;
  width: min(680px, 100%);
}

.soccer-picker-tab {
  border: 0;
  background: #fefefe;
  min-height: 56px;
  font-size: clamp(1.14rem, 1.7vw, 1.46rem);
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.03em;
  color: #5c6779;
  cursor: pointer;
}

.soccer-picker-tab.is-active {
  color: #12243a;
  background: linear-gradient(120deg, #20dbc9 0%, #1ea4de 88%);
}

.soccer-picker-continent-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soccer-picker-continent-chip {
  border: 1px solid #d2dbe8;
  border-radius: 18px;
  min-height: 44px;
  padding: 8px 18px;
  background: #f5f8fc;
  color: #15293f;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(1.03rem, 1.5vw, 1.24rem);
  letter-spacing: 0.025em;
  cursor: pointer;
}

.soccer-picker-continent-chip.is-active {
  border-color: #15a994;
  background: linear-gradient(180deg, #24e2cc 0%, #1fddbe 100%);
}

.soccer-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soccer-picker-selection-chip {
  border-radius: 14px;
  border: 1px solid #dde3ee;
  min-height: 34px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #707c90;
  background: #ebeff5;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  letter-spacing: 0.03em;
}

.soccer-picker-search {
  width: min(680px, 100%);
  border: 1px solid #ccd6e7;
  border-radius: 18px;
  min-height: 54px;
  background: #eceef4;
  color: #132840;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  padding: 0 18px;
}

.soccer-picker-search::placeholder {
  color: #9ba3b0;
}

.soccer-picker-list {
  overflow-y: auto;
  display: grid;
  gap: 9px;
  padding-right: 2px;
}

.soccer-picker-card-item {
  width: 100%;
  border: 1px solid #d5deec;
  border-radius: 20px;
  background: #f4f6fa;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.soccer-picker-card-item.is-selected {
  border-color: #14a68f;
  box-shadow: inset 0 0 0 1px #14a68f;
}

.soccer-picker-card-icons {
  display: flex;
  align-items: center;
}

.soccer-picker-card-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.soccer-picker-card-details {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.soccer-picker-card-name {
  color: #111111;
  font-size: clamp(1.02rem, 1.45vw, 1.3rem);
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.028em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soccer-picker-card-meta {
  color: #5f687a;
  font-size: clamp(0.82rem, 1.05vw, 0.92rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.soccer-picker-empty {
  margin: 0;
  color: #6b7485;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  padding: 14px 0;
}

.strength-pill {
  margin: 10px 0 0;
  display: inline-block;
  background: var(--blue-soft);
  border: 1px solid #c8dcfa;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #2a4f81;
}

.swap-btn {
  border: 1px solid #bfd2ea;
  background: #ffffff;
  color: #224a7f;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.45rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(42, 79, 129, 0.18);
  transition: transform 140ms ease, background 140ms ease;
}

.swap-btn:hover {
  transform: translateY(-1px) rotate(-7deg);
  background: #f4f8ff;
}

.actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  animation: fade-up 760ms ease-out both;
  position: relative;
  z-index: 1;
}

.team-page {
  margin-top: 8px;
  display: grid;
  gap: 12px;
  animation: fade-up 620ms ease-out both;
}

.team-page-head {
  text-align: center;
}

.team-page-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #355a8b;
}

.team-page h2 {
  margin: 7px 0 0;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.94;
  letter-spacing: 0.04em;
}

.team-page-subtitle {
  margin: 8px auto 0;
  max-width: 660px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.stats-page {
  margin-top: 8px;
  display: grid;
  gap: 12px;
  animation: fade-up 620ms ease-out both;
}

.stats-panel {
  display: grid;
  gap: 12px;
}

.stats-source-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #c7dbf6;
  border-radius: 16px;
  background: #edf4ff;
  padding: 6px;
}

.stats-main-source-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-source-btn {
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 44px;
  background: transparent;
  color: #2f4e75;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.stats-source-btn:hover {
  background: #e3eeff;
}

.stats-source-btn.is-active {
  background: #ffffff;
  border-color: #b7d0ef;
  box-shadow: 0 6px 14px rgba(26, 68, 119, 0.17);
}

.stats-toolbar {
  display: grid;
  gap: 12px;
}

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

.stats-summary-grid-global {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stats-user-window-switch {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-user-champion-window-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-user-leaderboard-view-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-user-subpanel {
  display: grid;
  gap: 10px;
}

.stats-user-auth-card {
  border: 1px solid #cadcf3;
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.stats-user-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stats-user-auth-actions .secondary-btn {
  min-width: 120px;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 1rem;
}

.stats-user-period-label {
  margin: 0;
  color: #355d8a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-summary-card {
  border: 1px solid #cadcf3;
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.stats-summary-label {
  margin: 0;
  color: #44658d;
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-summary-value {
  margin: 0;
  color: #173f68;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 0.96;
  letter-spacing: 0.04em;
}

.stats-summary-sort {
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
}

.stats-sort-wrap {
  border: 1px solid #c8dbf2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  display: grid;
  gap: 7px;
}

.stats-sort-label {
  color: #2a527f;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-sort-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #bdd2ed;
  border-radius: 10px;
  background: #f8fbff;
  color: #163b62;
  padding: 0 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.stats-table-wrap {
  border: 1px solid #c8dbf2;
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: var(--shadow);
  padding: 10px;
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.stats-table thead th {
  border-bottom: 1px solid #cadbf0;
  color: #2b547f;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px;
  text-align: center;
  white-space: nowrap;
}

.stats-table thead th:nth-child(2) {
  text-align: left;
}

.stats-table tbody td {
  border-bottom: 1px solid #d8e5f5;
  padding: 8px;
  text-align: center;
  color: #163b62;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.stats-table tbody tr:last-child td {
  border-bottom: 0;
}

.stats-table tbody td:nth-child(2) {
  text-align: left;
}

.stats-rank-cell {
  text-align: center;
}

.rank-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
}

.rank-badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.rank-number {
  color: #173f68;
  font-size: 0.82rem;
  font-weight: 800;
}

.stats-team {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-team-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.stats-team-name {
  color: #123764;
  font-size: 0.84rem;
  font-weight: 800;
}

.stats-empty {
  margin: 0;
  padding: 18px 8px 10px;
  color: #4d6990;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

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

.stats-leaderboard-card {
  border: 1px solid #c8dbf2;
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.stats-leaderboard-title {
  margin: 0;
  color: #1a426e;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.stats-leaderboard-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.stats-leaderboard-item {
  border: 1px solid #d3e2f5;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.stats-leaderboard-item-label {
  color: #1c456f;
  font-size: 0.79rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.stats-leaderboard-rank-badge {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.stats-leaderboard-rank-number {
  color: #173f68;
  font-size: 0.76rem;
  font-weight: 800;
  flex-shrink: 0;
}

.stats-leaderboard-team-crest {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.stats-leaderboard-label-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-leaderboard-item-value {
  color: #173f68;
  font-size: 0.82rem;
  font-weight: 800;
}

.stats-leaderboard-empty {
  color: #5a7598;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 2px;
}

.team-sport-picker {
  margin: 0 auto;
}

.team-directory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 12px;
  align-items: start;
}

.team-directory.is-soccer-focus {
  grid-template-columns: minmax(300px, 420px);
  justify-content: center;
}

.team-list {
  min-height: 420px;
  max-height: 580px;
  overflow-y: auto;
  border: 1px solid #c8dbf2;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.team-list-item {
  width: 100%;
  border: 1px solid #c8dcf5;
  border-radius: 12px;
  background: #ffffff;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.team-list-item:hover {
  background: #f4f8ff;
  transform: translateY(-1px);
}

.team-list-item.is-selected {
  border-color: #97bce7;
  box-shadow: inset 0 0 0 1px #97bce7;
  background: #eff5ff;
}

.team-list-item-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.team-list-item-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #123764;
  font-size: 0.95rem;
  font-weight: 800;
}

.team-list-item-strength {
  border-radius: 999px;
  background: #eaf2ff;
  color: #2a4f81;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.team-profile {
  border: 1px solid #c8dbf2;
  border-radius: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: var(--shadow);
  padding: 16px 14px;
}

.team-profile-crest {
  width: 106px;
  height: 106px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.team-profile-name {
  margin: 12px 0 0;
  text-align: center;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(1.6rem, 3.1vw, 2.2rem);
  letter-spacing: 0.04em;
  line-height: 0.96;
}

.team-profile-strength {
  margin: 8px 0 0;
  text-align: center;
  color: #315986;
  font-size: 0.86rem;
  font-weight: 800;
}

.team-switch-btn {
  margin: 0 auto 12px;
  display: block;
  border: 1px solid #bfcfe7;
  border-radius: 10px;
  min-height: 34px;
  padding: 6px 12px;
  background: #ffffff;
  color: #1e456f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.team-switch-btn:hover {
  background: #f4f8ff;
}

.team-strength-editor {
  margin-top: 10px;
}

.team-strength-edit-btn {
  width: 100%;
  border: 1px solid #bfd1eb;
  border-radius: 10px;
  min-height: 34px;
  background: #ffffff;
  color: #214a78;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.team-strength-edit-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.team-strength-controls {
  margin-top: 8px;
  border: 1px solid #cbdbf1;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 9px;
}

.team-strength-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  color: #2b527f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-strength-input {
  width: 100%;
  border: 1px solid #bfd0e9;
  border-radius: 8px;
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #143865;
}

.team-strength-slider {
  width: 100%;
  margin-top: 8px;
  accent-color: #21588f;
}

.team-playstyle {
  margin-top: 14px;
  border: 1px solid #c8dcf5;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 8px;
}

.team-playstyle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-playstyle-label {
  margin: 0;
  color: #244c80;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.team-playstyle-value {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  color: #194173;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-playstyle-slider {
  width: 100%;
  margin-top: 8px;
  accent-color: #c6203f;
}

.team-playstyle-scale {
  margin-top: 7px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  font-size: 0.57rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #647a99;
}

.team-playstyle-scale span {
  text-align: center;
}

.team-profile-stats {
  margin-top: 14px;
  border: 1px solid #c8dcf5;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
}

.team-profile-stats-title {
  margin: 0;
  color: #244c80;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.02rem;
}

.team-profile-stats-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.team-profile-stat-card {
  border: 1px solid #d4e2f3;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.team-profile-stat-value {
  margin: 0;
  color: #1e466f;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1;
}

.team-profile-stat-card-split .team-profile-stat-value {
  font-size: 1.06rem;
}

.team-profile-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.team-profile-split-item {
  border: 1px solid #cfe0f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
  text-align: center;
}

.team-profile-split-label {
  margin: 0;
  color: #557094;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-profile-stats-line {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #20466f;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-profile-stats-row {
  margin-top: 0;
  display: grid;
  gap: 4px;
}

.team-profile-stats-label {
  margin: 0;
  color: #2a537f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-match-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-history-toggle {
  border: 1px solid #bcd4ee;
  background: #ffffff;
  color: #24527f;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.team-history-toggle:hover {
  background: #edf5ff;
  border-color: #95bcdf;
}

.team-profile-stats-row-form {
  gap: 5px;
}

.team-profile-form-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #2d567f;
  font-size: 0.77rem;
  font-weight: 700;
}

.team-profile-stat-card-history {
  grid-column: 1 / -1;
}

.team-profile-stat-card-form .team-profile-form-line {
  min-height: 24px;
}

.team-result-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.team-result-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.team-result-chip.is-w {
  background: #e6f7ec;
  border-color: #96d4ac;
  color: #1b7a43;
}

.team-result-chip.is-d {
  background: #f1f3f6;
  border-color: #ced4dd;
  color: #5f6c7a;
}

.team-result-chip.is-l {
  background: #fdebed;
  border-color: #f2b4be;
  color: #b1263d;
}

.team-match-history {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.team-match-history-item {
  border: 1px solid #d4e2f3;
  border-radius: 10px;
  background: #f8fbff;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-match-history-score {
  color: #1e466f;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (max-width: 600px) {
  .team-profile-stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-profile-split-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-profile-stat-card-history {
    grid-column: auto;
  }
}

.team-detail-stats {
  margin-top: 14px;
  border: 1px solid #c8dbf2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 6px;
}

.team-detail-stats h2 {
  margin: 0;
  color: #173f68;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.45rem;
}

.seo-copy {
  margin-top: 22px;
}

.seo-copy ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
}

.seo-copy a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1f487e;
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.32;
  text-decoration: none;
}

.seo-copy a:hover {
  text-decoration: underline;
}

.team-links-block {
  margin: 10px 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  overflow: visible;
}

.team-links-block li {
  margin: 0;
}

.team-links-block a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #c9dbf2;
  border-radius: 10px;
  background: #ffffff;
  color: #1f487e;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.team-links-more {
  margin: 8px 0 18px;
  border: 1px solid #d2e1f4;
  border-radius: 12px;
  background: #f7fbff;
  padding: 10px 12px;
}

.team-links-more summary {
  cursor: pointer;
  color: #1f487e;
  font-weight: 800;
}

.team-links-block-more {
  margin: 10px 0 0;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.seo-link-icon {
  width: 38px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-page-main {
  width: min(780px, 92vw);
}

.team-breadcrumb {
  margin: 2px 0 0;
  color: #355a8b;
  font-size: 0.92rem;
  font-weight: 700;
}

.team-breadcrumb a {
  color: inherit;
}

.team-landing {
  margin-top: 22px;
  border: 1px solid #c8dbf2;
  border-radius: 20px;
  background: linear-gradient(160deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: var(--shadow);
  padding: 26px 20px;
  text-align: center;
}

.team-landing-crest {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.team-landing-name {
  margin: 14px 0 0;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.05em;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 0.94;
}

.team-landing-subtitle {
  margin: 10px auto 0;
  max-width: 560px;
  color: var(--ink-muted);
  font-size: 1rem;
}

.team-start-btn {
  margin-top: 16px;
  display: inline-block;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 13px 18px;
  background: linear-gradient(180deg, #db2343 0%, #c31437 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(189, 22, 55, 0.34);
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.18rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.team-start-btn:hover {
  transform: translateY(-1px);
}

.team-secondary-links {
  margin-top: 16px;
}

.team-secondary-links a {
  color: #1f487e;
  font-weight: 700;
}

.primary-btn,
.secondary-btn {
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 13px 14px;
  cursor: pointer;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.18rem;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.primary-btn {
  background: linear-gradient(180deg, #db2343 0%, #c31437 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(189, 22, 55, 0.34);
}

.secondary-btn {
  background: #ffffff;
  border-color: #c0d4ec;
  color: #1f487e;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.swap-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.result-card {
  margin-top: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.result-tag {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.score-line {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr);
  gap: 10px;
  align-items: center;
}

.score-team {
  text-align: center;
}

.score-team-right {
  text-align: center;
}

.result-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.result-name {
  margin: 6px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.result-score {
  margin: 0;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: 0.05em;
}

.winner-text {
  margin: 14px 0 0;
  color: #1b3f70;
  font-weight: 800;
  text-align: center;
}

.hidden {
  display: none;
}

.pop {
  animation: pop-in 220ms ease-out;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop-in {
  from {
    transform: scale(0.98);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .page {
    padding-top: 34px;
  }

  .header-nav {
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .header-nav-btn {
    min-width: 0;
    flex: 1 1 0;
    min-height: 58px;
    padding: 7px 5px;
  }

  .header-nav-settings {
    flex: 1 1 0;
  }

  .header-nav-settings .header-nav-btn {
    width: 100%;
  }

  .settings-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: min(300px, 94vw);
    max-width: 94vw;
  }

  .header-nav-text {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  #navHome .header-nav-icon-png {
    width: 40px;
    height: 40px;
  }

  #navStats .header-nav-icon-png {
    width: 30px;
    height: 30px;
  }

  .sport-picker {
    width: min(440px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sport-picker-btn {
    min-width: 0;
  }

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

  .sim-controls {
    width: min(440px, 100%);
    gap: 10px;
  }

  .home-advantage,
  .match-tuning {
    width: 100%;
    flex: 1 1 100%;
  }

  .match-tuning-head {
    display: grid;
    gap: 4px;
  }

  .match-tuning-summary {
    text-align: center;
  }

  .swap-btn {
    margin: 0 auto;
    transform: rotate(90deg);
  }

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

  .team-page {
    gap: 10px;
  }

  .team-page-subtitle {
    font-size: 0.9rem;
  }

  .stats-page {
    gap: 10px;
  }

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

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

  .stats-user-window-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-user-champion-window-switch {
    grid-template-columns: 1fr;
  }

  .stats-user-leaderboard-view-switch {
    grid-template-columns: 1fr;
  }

  .stats-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-summary-card {
    padding: 10px 11px;
  }

  .stats-summary-value {
    font-size: clamp(1.45rem, 8vw, 1.9rem);
  }

  .stats-table-wrap {
    padding: 8px;
  }

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

  .stats-table thead th,
  .stats-table tbody td {
    padding: 7px 6px;
    font-size: 0.75rem;
  }

  .team-directory {
    grid-template-columns: 1fr;
  }

  .team-list {
    min-height: 260px;
    max-height: 360px;
  }

  .team-profile {
    padding: 14px 12px;
  }

  .team-profile-crest {
    width: 88px;
    height: 88px;
  }

  .team-playstyle-scale {
    font-size: 0.53rem;
  }

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

  .team-links-block a {
    min-height: 40px;
  }

  .score-line {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .result-score {
    margin: 4px 0;
  }

  .soccer-picker-modal {
    padding: 10px;
  }

  .soccer-picker-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 24px;
    padding: 12px 10px 8px;
    gap: 8px;
  }

  .soccer-picker-back,
  .soccer-picker-close {
    min-width: 76px;
    min-height: 44px;
    border-radius: 13px;
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .soccer-picker-tab {
    min-height: 44px;
    font-size: 1.3rem;
  }

  .soccer-picker-continent-chip {
    min-height: 38px;
    border-radius: 14px;
    padding: 6px 12px;
    font-size: 1.06rem;
  }

  .soccer-picker-selection-chip {
    min-height: 34px;
    font-size: 0.96rem;
    padding: 6px 10px;
  }

  .soccer-picker-search {
    min-height: 44px;
    border-radius: 14px;
    font-size: 1.05rem;
    padding: 0 12px;
  }

  .soccer-picker-card-item {
    border-radius: 16px;
    padding: 7px 9px;
    gap: 8px;
  }

  .soccer-picker-card-logo {
    width: 40px;
    height: 40px;
  }

  .soccer-picker-card-name {
    font-size: 1.2rem;
  }

  .soccer-picker-card-meta {
    font-size: 0.8rem;
  }
}

.live-page {
  padding-top: 40px;
}

.live-hero {
  margin-bottom: 20px;
}

.live-scoreboard {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--shadow);
  padding: 20px;
  animation: fade-up 420ms ease-out both;
}

.live-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.live-badge {
  margin: 0;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.08rem;
  color: #21497e;
}

.live-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #b8d1ef;
  background: #eaf3ff;
  color: #164075;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.live-status-below {
  display: flex;
  margin: 10px auto 0;
  width: fit-content;
}

.live-status.is-final {
  border-color: #e8bfc9;
  background: #fff0f4;
  color: #a01331;
}

.live-phase-text {
  margin: 8px auto 0;
  display: none;
  width: fit-content;
  color: #1d436f;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
}

.live-phase-text.is-visible {
  display: block;
}

.live-timer-emoji {
  margin: 8px auto 0;
  display: none;
  width: fit-content;
  font-size: 1.3rem;
  line-height: 1;
  text-align: center;
}

.live-timer-emoji.is-visible {
  display: block;
}

.live-score-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  gap: 10px;
  align-items: center;
}

.live-team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.live-score-grid .live-team-block:first-child {
  justify-self: end;
  margin-right: 10px;
}

.live-score-grid .live-team-block:last-child {
  justify-self: start;
  margin-left: 10px;
}

.live-team-logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.live-team-name {
  margin: 8px 0 0;
  font-weight: 800;
  color: #1d436f;
}

.live-team-role {
  margin: 2px 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #6a7f9d;
}

.live-main-score {
  margin: 0;
  text-align: center;
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  letter-spacing: 0.06em;
  color: #0f2f57;
}

.live-fields {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.live-field {
  border: 1px solid #c5d9f2;
  border-radius: 12px;
  background: #f5f9ff;
  width: fit-content;
  padding: 4px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.live-field-label {
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5d7393;
  font-weight: 800;
  text-align: center;
  line-height: 1;
}

.live-field-value {
  margin: 2px 0 0;
  color: #123866;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.05;
}

.live-panels {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  animation: fade-up 520ms ease-out both;
}

.live-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 14px;
}

.live-panel h2 {
  margin: 0 0 10px;
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.08em;
  color: #244d83;
}

.live-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.live-list li {
  color: #173f71;
  font-size: 0.92rem;
  font-weight: 700;
}

.live-feed {
  min-height: 170px;
}

.live-actions {
  margin-top: 14px;
}

.link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .live-score-grid {
    grid-template-columns: 1fr;
  }

  .live-score-grid .live-team-block:first-child,
  .live-score-grid .live-team-block:last-child {
    justify-self: center;
    margin: 0;
  }

  .live-fields {
    gap: 6px;
  }

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