:root {
  --bg: #f7f7f8;
  --panel: #ffffff;
  --panel-strong: #e9edf2;
  --ink: #17171f;
  --muted: #6f6f7d;
  --line: #e4e4ea;
  --green: #18794e;
  --green-dark: #115c3b;
  --blue: #1597d3;
  --red: #d3382f;
  --gold: #c99a19;
  --black: #05070a;
  --charcoal: #11151c;
  --shadow: 0 18px 42px rgba(9, 12, 18, 0.1);
  --radius: 16px;
  --surface: #ffffff;
  --surface-2: #f0f0f4;
  --accent: #d3382f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(211, 56, 47, 0.13);
  --pill: 999px;
  --card-r: 20px;
  --font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101014;
    --panel: #1c1c23;
    --panel-strong: #26262e;
    --ink: #f3f3f6;
    --muted: #a3a3b1;
    --line: #2c2c36;
    --surface: #1c1c23;
    --surface-2: #26262e;
    --accent: #e5554b;
    --accent-soft: rgba(229, 85, 75, 0.18);
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, #ffffff 0, #f2f3f5 320px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.icon-sprite {
  display: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, auto) minmax(250px, 1fr) minmax(280px, 460px);
  align-items: center;
  gap: 28px;
  padding: 16px 28px;
  border-bottom: 1px solid #242a33;
  background: var(--black);
  color: white;
  backdrop-filter: blur(14px);
}

@supports (padding: max(0px)) {
  .topbar {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: white;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 52px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.42));
}

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

.brand-title {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}

.brand-subtitle {
  display: block;
  color: #aab2bf;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.league-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.league-nav a {
  color: #dfe5ec;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.league-nav a:hover,
.league-nav a:focus-visible {
  color: white;
}

.search-wrap {
  position: relative;
  min-width: 0;
}

.search-wrap .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 1px solid #343b46;
  border-radius: 4px;
  background: #11151c;
  color: white;
  outline: none;
}

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #aab2bf;
  transform: translateY(-50%) rotate(45deg);
}

.search-clear:hover,
.search-clear:focus-visible {
  background: #202633;
  color: white;
}

.search-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 151, 211, 0.22);
}

.search-wrap input::placeholder {
  color: #9da6b4;
}

.top-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.league-ticker {
  position: sticky;
  top: 72px;
  z-index: 19;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.ticker-label,
.ticker-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0 16px;
  background: var(--blue);
  color: white;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-track::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 330px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.ticker-item span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker-item strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-item em {
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.ticker-link {
  min-width: 112px;
  background: var(--surface-2);
  color: var(--blue);
  text-decoration: none;
}

.ticker-empty {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.btn:hover {
  border-color: #aab4c1;
  transform: translateY(-1px);
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn:focus-visible {
  outline: 3px solid rgba(21, 151, 211, 0.28);
  outline-offset: 2px;
}

.btn.primary {
  border-color: #11151c;
  background: #11151c;
  color: white;
}

.btn.danger {
  border-color: rgba(204, 76, 55, 0.35);
  color: var(--red);
}

.btn.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.btn.icon-only {
  width: 38px;
  padding: 0;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  align-items: start;
}

.mobile-action-bar {
  display: none;
}

.league-panel,
.workspace {
  min-width: 0;
}

.hero-panel {
  min-height: 280px;
  padding: 18px;
  border: 1px solid #202833;
  border-radius: 4px;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(5, 7, 10, 0.72), rgba(5, 7, 10, 0.95)), url("assets/league-hero.png");
  background-position: center;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hero-panel h1 {
  margin: 0;
  max-width: 8ch;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-panel p {
  margin: 10px 0 0;
  max-width: 26ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.hero-stat {
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

.hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 22px;
}

.hero-stat span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.map-area-search,
.team-list,
.manager-panel,
.activity-section,
.team-profile,
.roster-section,
.social-studio,
.schedule-strip {
  margin-top: 14px;
}

.team-list {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.team-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.team-filter-row select {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

.section-title h2,
.section-head h2,
.section-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-title p,
.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.map-area-search {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.us-map-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.real-map-shell {
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 252px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}

.team-leaflet-map {
  width: 100%;
  min-height: 252px;
  height: 252px;
}

.team-leaflet-map.leaflet-container,
.team-leaflet-map .leaflet-pane,
.team-leaflet-map .leaflet-tile,
.team-leaflet-map .leaflet-marker-icon,
.team-leaflet-map .leaflet-marker-shadow,
.team-leaflet-map .leaflet-tile-container,
.team-leaflet-map .leaflet-pane > svg,
.team-leaflet-map .leaflet-pane > canvas,
.team-leaflet-map .leaflet-zoom-box,
.team-leaflet-map .leaflet-image-layer,
.team-leaflet-map .leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.team-leaflet-map.leaflet-container {
  position: relative;
  overflow: hidden;
  font-family: var(--body);
  background: #dce6ef;
}

.team-leaflet-map .leaflet-tile,
.team-leaflet-map .leaflet-marker-icon,
.team-leaflet-map .leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.team-leaflet-map .leaflet-tile {
  width: 256px;
  height: 256px;
  border: 0;
}

.team-leaflet-map .leaflet-pane {
  z-index: 400;
}

.team-leaflet-map .leaflet-tile-pane {
  z-index: 200;
}

.team-leaflet-map .leaflet-overlay-pane {
  z-index: 400;
}

.team-leaflet-map .leaflet-marker-pane {
  z-index: 600;
}

.team-leaflet-map .leaflet-popup-pane {
  z-index: 700;
}

.team-leaflet-map .leaflet-control-container {
  position: relative;
  z-index: 800;
}

.team-leaflet-map .leaflet-top,
.team-leaflet-map .leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.team-leaflet-map .leaflet-top {
  top: 10px;
}

.team-leaflet-map .leaflet-bottom {
  bottom: 0;
}

.team-leaflet-map .leaflet-left {
  left: 10px;
}

.team-leaflet-map .leaflet-right {
  right: 10px;
}

.team-leaflet-map .leaflet-control {
  position: relative;
  z-index: 1000;
  pointer-events: auto;
}

.team-leaflet-map .leaflet-control-zoom a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #11151c;
  font-weight: 900;
  text-decoration: none;
}

.team-leaflet-map .leaflet-control-zoom a + a {
  border-top: 0;
}

.team-leaflet-map .leaflet-control-attribution {
  right: 0;
  bottom: 0;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 10px;
}

.map-loading {
  display: grid;
  place-items: center;
  min-height: 252px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nrl-leaflet-marker {
  display: grid !important;
  place-items: center;
  width: 34px !important;
  height: 34px !important;
  border: 2px solid #f8fafc;
  border-radius: 50%;
  background: #11151c;
  color: white;
  box-shadow: 0 8px 18px rgba(9, 12, 18, 0.22);
}

.nrl-leaflet-marker span {
  font-size: 10px;
  font-weight: 900;
}

.nrl-leaflet-marker.active {
  background: var(--blue);
}

.map-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: grid;
  gap: 1px;
  min-width: 92px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 4px;
  background: rgba(17, 21, 28, 0.88);
  color: white;
}

.map-count span {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
}

.map-count strong {
  font-size: 10px;
  text-transform: uppercase;
}

.map-filter-stack {
  display: grid;
  gap: 10px;
}

.map-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

.map-filter-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.map-filter-head strong {
  font-family: var(--display);
  font-size: 14px;
  text-transform: uppercase;
}

.location-search {
  position: relative;
}

.location-search .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.location-search input {
  width: 100%;
  height: 38px;
  padding: 0 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.location-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 151, 211, 0.18);
}

.location-search .search-clear {
  color: var(--muted);
}

.location-search .search-clear:hover,
.location-search .search-clear:focus-visible {
  background: var(--surface-2);
  color: var(--ink);
}

.area-chip {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: #333b48;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.area-chip.active {
  border-color: #11151c;
  background: #11151c;
  color: white;
}

.team-list {
  display: grid;
  gap: 8px;
}

.account-page {
  padding: 16px;
}

.home-page {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.home-page .activity-section {
  margin-top: 0;
}

.home-game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.home-game-card {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}

.home-game-card:hover,
.home-game-card:focus-visible {
  border-color: var(--blue);
  background: rgba(21, 151, 211, 0.06);
}

.home-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-game-sport {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-game-card strong {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.25;
  text-transform: uppercase;
}

.home-game-card strong em {
  color: #075d89;
  font-style: normal;
}

.home-game-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 16px;
  padding: 18px;
  border: 1px solid #202833;
  border-radius: 4px;
  background: #11151c;
  color: white;
  box-shadow: var(--shadow);
}

.account-panel h1,
.account-panel h2 {
  margin: 0;
  font-family: var(--display);
  line-height: 1;
  text-transform: uppercase;
}

.account-panel h1 {
  margin-top: 8px;
  font-size: clamp(34px, 6vw, 64px);
}

.account-panel p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.account-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.account-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-settings,
.make-money-hero,
.money-action-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.account-settings h2,
.make-money-hero h1,
.money-action-card h2 {
  margin: 0;
  font-family: var(--display);
  line-height: 1;
  text-transform: uppercase;
}

.settings-link {
  display: grid;
  grid-template-columns: auto minmax(0, max-content) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}

.settings-link span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #11151c;
  color: white;
}

.settings-link strong {
  font-family: var(--display);
  text-transform: uppercase;
}

.settings-link em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.make-money-page {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.make-money-hero {
  margin-top: 0;
  border-color: #202833;
  background: #11151c;
  color: white;
  box-shadow: var(--shadow);
}

.make-money-hero h1 {
  margin-top: 8px;
  font-size: clamp(38px, 7vw, 72px);
}

.make-money-hero p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

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

.money-action-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  margin-top: 0;
  min-width: 0;
}

.money-action-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: #11151c;
  color: white;
}

.money-action-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.about-page {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  padding: 16px;
}

.about-hero {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  background: #05070a;
  color: white;
}

.about-panel {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  border: 1px solid #202833;
  border-radius: 4px;
  background: #11151c;
  color: white;
  box-shadow: var(--shadow);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: center;
}

.about-hero h1 {
  margin: 6px 0 0;
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.9;
  text-transform: uppercase;
}

.about-hero p,
.about-panel p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.about-logo {
  width: 150px;
  max-width: 100%;
  justify-self: end;
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.38));
}

.about-panel h2 {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
}

.about-panel a {
  color: var(--accent);
  font-weight: 900;
}

.transparency-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}

.modal-body .transparency-panel {
  margin-bottom: 16px;
  background: var(--surface-2);
}

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

.transparency-grid > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

.transparency-grid h3 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
}

.transparency-grid p,
.transparency-mission {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.transparency-mission a {
  color: #075d89;
  font-weight: 900;
}

.my-teams-page {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.my-teams-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid #202833;
  border-radius: 4px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-primary) 28%, transparent), transparent 44%),
    #11151c;
  color: white;
  box-shadow: var(--shadow);
}

.my-team-identity {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.team-logo.large {
  width: 68px;
  height: 68px;
  font-size: 22px;
}

.my-teams-hero h1 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.95;
  text-transform: uppercase;
}

.my-teams-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

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

.manager-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 14px;
}

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

.management-grid .roster-section,
.management-grid .activity-section,
.management-grid .schedule-strip,
.management-grid .social-studio,
.manager-overview .manager-panel,
.manager-overview .activity-section {
  margin-top: 0;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #343b46;
  border-radius: 4px;
  background: #11151c;
  color: #dfe5ec;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.account-chip:hover,
.account-chip:focus-visible {
  border-color: var(--blue);
  color: white;
}

.signin-card {
  grid-template-columns: 1fr;
  align-items: center;
}

.signin-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.managed-team-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

button.settings-link {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.team-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
}

.team-card.active {
  border-color: #11151c;
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--blue);
}

.team-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  font-family: var(--display);
  font-weight: 860;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.team-card h3 {
  margin: 0;
  font-size: 15px;
  text-transform: uppercase;
}

.team-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.record-pill,
.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.badge.green {
  border-color: rgba(23, 122, 88, 0.28);
  background: rgba(23, 122, 88, 0.12);
  color: var(--green);
}

.badge.blue {
  border-color: rgba(44, 115, 183, 0.22);
  background: rgba(44, 115, 183, 0.08);
  color: var(--blue);
}

.badge.red {
  border-color: rgba(204, 76, 55, 0.22);
  background: rgba(204, 76, 55, 0.08);
  color: var(--red);
}

.badge.gold {
  border-color: rgba(224, 170, 44, 0.35);
  background: rgba(224, 170, 44, 0.12);
  color: var(--gold);
}

.empty-state {
  padding: 16px;
  border: 1px dashed #bccac0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 14px;
}

.team-profile {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-cover {
  min-height: 270px;
  padding: 22px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(120deg, rgba(5, 7, 10, 0.92), rgba(5, 7, 10, 0.48)),
    var(--team-primary);
}

.profile-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-profile h2 {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.team-profile .summary {
  max-width: 66ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.profile-actions .btn {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.13);
  color: white;
  backdrop-filter: blur(10px);
}

.profile-actions .btn.primary {
  background: var(--surface);
  color: var(--ink);
}

.team-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.team-data div {
  padding: 14px;
  background: #fbfcfe;
}

.team-data span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.team-data strong {
  display: block;
  margin-top: 5px;
  font-family: var(--display);
  font-size: 15px;
  text-transform: uppercase;
}

.recruiting-needs-panel {
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #11151c;
  color: white;
}

.recruiting-needs-panel .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

.recruiting-needs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.need-chip {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid rgba(224, 170, 44, 0.36);
  border-radius: 4px;
  background: rgba(224, 170, 44, 0.12);
  color: white;
}

.need-chip strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  border-radius: 4px;
  background: var(--gold);
  color: #11151c;
  font-family: var(--display);
  line-height: 1;
}

.need-chip span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.need-chip.open {
  border-color: rgba(21, 151, 211, 0.36);
  background: rgba(21, 151, 211, 0.13);
}

.recruiting-manager-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.need-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

.need-row span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.need-row select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.team-merch {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.team-merch .section-head h2 {
  font-family: var(--display);
  text-transform: uppercase;
}

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

.merch-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.merch-card img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  object-fit: cover;
}

.merch-kind {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.merch-card h3 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
}

.merch-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.merch-card-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.merch-card-foot strong {
  font-family: var(--display);
  font-size: 18px;
}

.merch-disclosure {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.merch-disclosure strong {
  color: var(--ink);
  font-family: var(--display);
  text-transform: uppercase;
}

.merch-order-preview {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

.merch-order-preview img {
  width: 118px;
  height: 118px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.merch-order-preview strong {
  display: block;
  font-family: var(--display);
  font-size: 26px;
}

.merch-order-preview p,
.merch-order-preview span {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.roster-section,
.social-studio,
.schedule-strip,
.manager-panel,
.activity-section,
.ref-portal {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  padding: 14px;
}

.ref-portal {
  margin: 16px;
}

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

.ref-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

.ref-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.ref-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: #11151c;
  color: white;
  font-family: var(--display);
  font-size: 14px;
}

.ref-card h3,
.ref-assignments h3 {
  margin: 0;
  font-size: 15px;
}

.ref-card p,
.ref-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.ref-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ref-meta span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: #343b46;
  font-size: 12px;
  font-weight: 800;
}

.ref-assignments {
  margin-top: 16px;
}

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

.game-hub {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.game-hub-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.game-hub-label {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-hub-card strong {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

.game-hub-card p,
.game-hub-card em {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.xp-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.xp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

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

.quest-badges span {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

.recruiting-card {
  grid-template-columns: 1fr;
  background:
    linear-gradient(135deg, rgba(113, 97, 232, 0.1), rgba(21, 151, 211, 0.08)),
    var(--surface-2);
}

.player-card-main {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.recruit-rank {
  display: grid;
  place-items: center;
  width: 42px;
  height: 58px;
  border-radius: 4px;
  background: #11151c;
  color: white;
  font-family: var(--display);
  font-size: 20px;
}

.recruit-avatar {
  box-shadow: 0 8px 18px rgba(9, 12, 18, 0.12);
}

.recruit-info,
.recruit-name,
.recruit-meta {
  display: block;
  min-width: 0;
}

.recruit-name {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
}

.recruit-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.player-rating-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.player-rating-row span {
  display: grid;
  gap: 2px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-rating-row strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1;
}

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

.recruit-badges span {
  padding: 4px 7px;
  border-radius: 4px;
  background: #11151c;
  color: white;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--panel-strong);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.player-card h3 {
  margin: 2px 0 2px;
  font-size: 15px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.player-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.position-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  margin: 5px 0;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.player-links {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  min-width: 0;
}

.player-links button,
.player-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #075d89;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  min-width: 0;
}

.player-links span {
  color: var(--muted);
  font-size: 12px;
}

.schedule-list,
.challenge-list,
.application-list,
.highlight-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.challenge-card,
.application-card,
.highlight-card,
.game-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

.challenge-card.challenged,
.challenge-alert {
  border-color: rgba(211, 56, 47, 0.34);
  background:
    linear-gradient(135deg, rgba(211, 56, 47, 0.1), rgba(21, 151, 211, 0.08)),
    #fff;
}

.challenge-alert {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(211, 56, 47, 0.34);
  border-radius: 4px;
}

.game-challenge-alert {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  border-color: rgba(224, 170, 44, 0.48);
  background:
    linear-gradient(135deg, rgba(5, 7, 10, 0.94), rgba(35, 43, 54, 0.94)),
    #11151c;
  color: white;
}

.game-challenge-alert p {
  color: rgba(255, 255, 255, 0.72);
}

.challenge-power {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(224, 170, 44, 0.5);
  border-radius: 4px;
  background: rgba(224, 170, 44, 0.14);
  color: var(--gold);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}

.challenge-power span {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.challenge-alert h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.1;
  text-transform: uppercase;
}

.challenge-alert p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.alert-kicker {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notification-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.challenge-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #11151c;
  color: white;
  font-family: var(--display);
  text-align: center;
  text-transform: uppercase;
}

.challenge-versus strong {
  color: var(--gold);
  font-size: 12px;
}

.ref-pick-list {
  display: grid;
  gap: 8px;
}

.ref-pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

.ref-pick strong,
.ref-pick em {
  display: block;
}

.ref-pick em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.result-consensus {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(44, 115, 183, 0.22);
  border-radius: 4px;
  background: rgba(44, 115, 183, 0.08);
  color: var(--ink);
}

.result-consensus span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.player-profile-modal {
  max-width: min(92vw, 820px);
}

.player-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(5, 7, 10, 0.9), rgba(17, 21, 28, 0.72)),
    var(--team-primary);
  color: white;
}

.player-profile-photo {
  width: 92px;
  height: 92px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  object-fit: cover;
}

.player-profile-hero h2 {
  margin: 4px 0;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 54px);
  line-height: 0.9;
  text-transform: uppercase;
}

.player-profile-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.player-profile-rating {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(224, 170, 44, 0.52);
  border-radius: 4px;
  background: rgba(5, 7, 10, 0.55);
  color: var(--gold);
}

.player-profile-rating strong {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}

.player-profile-rating span {
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.player-profile-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

.player-profile-summary h3,
.highlight-reel h3 {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
}

.player-profile-summary p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-badges {
  align-content: start;
}

.player-stat-grid,
.clip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.player-stat-grid div,
.clip-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.player-stat-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-stat-grid strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 28px;
}

.highlight-reel {
  margin-top: 12px;
}

.clip-card {
  display: grid;
  gap: 6px;
  background:
    linear-gradient(135deg, rgba(17, 21, 28, 0.06), rgba(21, 151, 211, 0.08)),
    white;
}

.clip-card span {
  color: var(--blue);
}

.clip-card strong {
  font-family: var(--display);
  text-transform: uppercase;
}

.clip-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.challenge-top,
.highlight-top,
.game-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.challenge-card h3,
.highlight-card h3,
.game-card h3,
.application-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.challenge-card p,
.highlight-card p,
.game-card p,
.application-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.challenge-actions,
.application-actions,
.highlight-actions,
.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.status-pill.pending {
  border-color: rgba(224, 170, 44, 0.4);
  background: rgba(224, 170, 44, 0.12);
  color: #8a620b;
}

.status-pill.accepted {
  border-color: rgba(44, 115, 183, 0.24);
  background: rgba(44, 115, 183, 0.1);
  color: var(--blue);
}

.status-pill.final {
  border-color: rgba(23, 122, 88, 0.26);
  background: rgba(23, 122, 88, 0.1);
  color: var(--green-dark);
}

.status-pill.contested {
  border-color: rgba(211, 56, 47, 0.28);
  background: rgba(211, 56, 47, 0.1);
  color: var(--red);
}

.share-copy {
  width: 100%;
  min-height: 122px;
  margin-top: 12px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  line-height: 1.45;
}

.manager-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.metric {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.payment-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

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

.payment-head h3 {
  margin: 0;
  font-size: 15px;
}

.payment-head p,
.payment-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.payment-row span {
  color: var(--muted);
  font-size: 13px;
}

.payment-row strong {
  font-size: 16px;
}

.payment-disclosure {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(44, 115, 183, 0.2);
  border-radius: 4px;
  background: rgba(44, 115, 183, 0.08);
}

.payment-disclosure strong {
  font-size: 14px;
}

.payment-disclosure span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 18, 15, 0.54);
}

.modal {
  width: min(720px, 100%);
  max-height: min(86vh, 780px);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 19px;
}

.modal-body {
  overflow: auto;
  padding: 18px;
}

.approval-modal {
  width: min(560px, 100%);
}

.approval-hero {
  min-height: 150px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-primary) 68%, #11151c), rgba(17, 21, 28, 0.96)),
    #11151c;
  color: white;
}

.approval-logo {
  width: 86px;
  height: 86px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  font-size: 26px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.approval-body h2 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(30px, 6vw, 48px);
  line-height: 0.95;
  text-transform: uppercase;
}

.approval-body > p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.approval-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

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

.approval-card strong {
  font-family: var(--display);
  text-transform: uppercase;
}

.approval-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.check-field.full {
  grid-column: 1 / -1;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 151, 211, 0.18);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 60;
  transform: translate(-50%, 20px);
  max-width: min(92vw, 480px);
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #11151c;
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  }

  .management-grid,
  .manager-overview {
    grid-template-columns: 1fr;
  }

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

  .game-hub,
  .merch-grid,
  .player-profile-summary,
  .player-stat-grid,
  .clip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 880px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .league-nav {
    display: none;
  }

  .league-ticker {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .ticker-track {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .ticker-label,
  .ticker-link {
    display: none;
  }

  .ticker-item {
    min-width: 290px;
    min-height: 46px;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 12px 12px calc(92px + env(safe-area-inset-bottom));
  }

  .account-panel {
    grid-template-columns: 1fr;
  }

  .money-action-grid {
    grid-template-columns: 1fr;
  }

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

  .about-logo {
    justify-self: start;
    width: 118px;
  }

  .my-teams-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-team-actions {
    justify-content: flex-start;
  }

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

  .team-data {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(21, 32, 27, 0.13);
    background: rgba(5, 7, 10, 0.94);
    box-shadow: 0 -18px 38px rgba(21, 32, 27, 0.12);
    backdrop-filter: blur(16px);
  }

  .mobile-action {
    display: grid;
    place-items: center;
    gap: 4px;
    min-width: 0;
    min-height: 58px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #b5beca;
    font-size: 11px;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
  }

  .mobile-action .icon {
    width: 21px;
    height: 21px;
  }

  .mobile-action.primary {
    border-color: rgba(21, 151, 211, 0.28);
    background: rgba(21, 151, 211, 0.18);
    color: white;
  }

  #toast {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 10px;
    padding: 10px 12px;
  }

  .brand-mark {
    width: 42px;
    height: 48px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    display: none;
  }

  .search-wrap input {
    height: 44px;
  }

  .roster-grid,
  .manager-grid,
  .management-grid,
  .manager-overview,
  .game-hub,
  .player-profile-summary,
  .player-stat-grid,
  .clip-grid,
  .ref-grid,
  .transparency-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .player-card-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .recruit-rank {
    grid-row: span 2;
  }

  .recruit-avatar {
    display: none;
  }

  .player-profile-hero {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .player-profile-rating {
    width: 62px;
    height: 62px;
  }

  .player-profile-photo {
    width: 68px;
    height: 68px;
  }

  .my-team-identity {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .team-logo.large {
    width: 54px;
    height: 54px;
    font-size: 18px;
  }

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

  .merch-grid,
  .merch-order-preview {
    grid-template-columns: 1fr;
  }

  .merch-order-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

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

  .profile-actions,
  .form-actions {
    flex-direction: column;
  }

  .profile-actions {
    display: none;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: calc(92vh - env(safe-area-inset-top));
    border-radius: 8px 8px 0 0;
  }

  .modal-body {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .btn {
    width: 100%;
  }

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

  .settings-link em {
    grid-column: 2;
  }
}

/* ===== Showdown native theme layer ===== */

body {
  background: var(--bg);
  color: var(--ink);
}

.section-title h2,
.section-head h2,
.section-head h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

.eyebrow {
  text-transform: none;
  font-weight: 700;
}

.btn {
  border-radius: var(--pill);
  font-weight: 700;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.btn:not(.primary) {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.team-list,
.map-area-search,
.activity-section,
.manager-panel,
.roster-section,
.social-studio,
.schedule-strip,
.account-settings,
.make-money-hero,
.money-action-card,
.transparency-panel,
.about-panel,
.ref-portal,
.payment-card {
  border-radius: var(--card-r);
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.team-card,
.home-game-card,
.merch-card,
.ref-card,
.application-card,
.challenge-card,
.game-card,
.highlight-card,
.player-card,
.map-filter-head,
.settings-link,
.money-action-card,
.transparency-grid > div,
.merch-disclosure,
.payment-disclosure,
.result-consensus,
.empty-state {
  border-radius: 16px;
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.team-filter-row select,
.location-search input,
.field input,
.field select,
.field textarea {
  border-radius: 14px;
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.location-search input {
  border-radius: var(--pill);
}

.modal {
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
}

.area-chip,
.status-pill,
.badge,
.need-chip {
  border-radius: var(--pill);
}

.area-chip {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}

.area-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

/* Bottom tab bar */
.mobile-action-bar {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mobile-action {
  color: var(--muted);
  font-weight: 700;
}

.mobile-action .icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.mobile-action.active {
  color: var(--accent);
}

.mobile-action.active .icon {
  stroke-width: 2.4;
}

/* Home page */
.home-page {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 0;
}

.home-head h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.home-section-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 2px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-section-title small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.your-teams-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}

.your-team-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.your-team-row .team-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.start-team-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 18px 16px;
  border: 0;
  border-radius: var(--card-r);
  background: var(--accent-soft);
  color: var(--ink);
  text-align: left;
}

.start-team-banner .icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  color: var(--accent);
}

.start-team-banner strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.start-team-banner span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.chip.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.home-note {
  margin: 2px;
  color: var(--muted);
  font-size: 13px;
}

.home-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.home-event strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.home-event .event-when {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}

.home-event .event-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
}

.home-event .event-result {
  color: var(--accent);
  font-weight: 700;
}

.event-thumb {
  width: 96px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

/* Explore search pill */
.explore-search {
  position: relative;
  margin-top: 2px;
}

.explore-search .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.explore-search input {
  width: 100%;
  height: 48px;
  padding: 0 18px 0 46px;
  border: 0;
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 16px;
  outline: none;
}

.explore-search input::placeholder {
  color: var(--muted);
}

@media (max-width: 880px) {
  .your-teams-grid {
    grid-template-columns: 1fr;
  }

  .home-page {
    padding: 14px 16px calc(96px + env(safe-area-inset-bottom));
  }
}

/* Explore search row + filter trigger */
.explore-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
}

.filter-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
}

.filter-trigger .icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.filter-count {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
}

/* Filters bottom sheet */
.sheet-backdrop {
  align-items: end;
  place-items: end center;
  padding: 0;
}

.filter-sheet {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(560px, 100%);
  max-height: 86dvh;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.35);
}

.sheet-handle {
  justify-self: center;
  width: 44px;
  height: 4px;
  margin-top: 10px;
  border-radius: var(--pill);
  background: var(--line);
}

.sheet-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  padding: 8px 14px 4px;
}

.sheet-head h2 {
  grid-column: 2;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.sheet-close {
  grid-column: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
}

.sheet-close .icon {
  transform: rotate(45deg);
}

.sheet-body {
  overflow-y: auto;
  padding: 6px 18px 14px;
}

.sheet-body h3 {
  margin: 18px 0 10px;
  font-size: 17px;
  font-weight: 800;
}

.sheet-body h3:first-child {
  margin-top: 8px;
}

.sheet-body .chip {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.sheet-body .chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.sheet-foot .btn.primary {
  min-height: 52px;
  padding: 0 34px;
  font-size: 16px;
}

.sheet-clear {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Team page (Meetup-style group page) ===== */
.team-shell {
  display: block;
  min-height: 100dvh;
  background: var(--bg);
}

.team-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 0 120px;
}

.float-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px 0;
  pointer-events: none;
}

.float-chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 26, 0.55);
  color: #fff;
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

.float-chip .icon {
  width: 20px;
  height: 20px;
}

.team-hero-banner {
  display: grid;
  place-items: center;
  height: 220px;
  margin: -54px 0 0;
  background: linear-gradient(135deg, var(--team-primary, #7161e8), var(--team-secondary, #26262e));
  color: #fff;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.04em;
}

.tp-name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 16px 0;
}

.tp-name-row h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tp-record {
  flex: none;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.rec-w {
  color: var(--green);
}

.rec-l {
  color: var(--red);
}

.rec-sep {
  color: var(--muted);
}

.rec-c {
  margin-left: 3px;
  color: var(--gold);
  font-size: 14px;
}

.tp-categories {
  padding: 12px 16px 0;
}

.tp-categories .chip {
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
  background: var(--surface-2);
}

.info-rows {
  display: grid;
  gap: 4px;
  padding: 18px 16px 4px;
}

.info-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 8px 0;
}

.info-row .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--accent);
}

.info-row strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
}

.info-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.captain-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}

.captain-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.captain-card strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
}

.captain-card div span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
}

.tp-section {
  padding: 8px 16px 0;
  margin-top: 22px;
}

.tp-section > h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tp-about {
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.55;
}

.tp-map {
  width: 100%;
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  isolation: isolate;
}

.tp-venue {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
}

.tp-address {
  display: block;
  margin-top: 3px;
  padding-left: 10px;
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.media-empty {
  padding: 22px 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 14px;
}

.media-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}

.media-card .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.media-card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.media-card span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
}

.similar-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.similar-card {
  scroll-snap-align: start;
  display: grid;
  gap: 4px;
  padding: 0 0 10px;
  border: 0;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
  overflow: hidden;
}

.similar-banner {
  display: grid;
  place-items: center;
  height: 120px;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.similar-card strong {
  padding: 10px 12px 0;
  font-size: 16px;
  font-weight: 700;
}

.similar-card > span:not(.similar-banner) {
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.team-page .team-merch {
  margin: 22px 16px 0;
}

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

@media (max-width: 560px) {
  .team-page .roster-grid {
    grid-template-columns: 1fr;
  }
}

/* Sticky bottom action bar */
.tp-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.tp-price strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.tp-price span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.tp-actions {
  display: flex;
  gap: 8px;
}

.tp-actions .btn {
  min-height: 48px;
  padding: 0 20px;
}

/* ===== Explore page rebuild (Meetup-style) ===== */

/* Mobile: no top header or ticker — search sits at the very top */
@media (max-width: 880px) {
  .app-shell > .topbar,
  .app-shell > .league-ticker {
    display: none;
  }
}

.explore-page {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 16px calc(150px + env(safe-area-inset-bottom));
}

.explore-page .explore-search-row {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 6px 0 10px;
  background: var(--bg);
}

.team-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 2px 12px;
}

.team-list-count {
  font-size: 15px;
  font-weight: 800;
}

.team-list-clear {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.team-cards {
  display: grid;
  gap: 16px;
}

/* Meetup-style team card: banner on top, info below */
.team-cards .team-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  overflow: hidden;
}

.team-cards .team-card:active {
  transform: scale(0.99);
}

.tc-banner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 150px;
  color: #fff;
}

.tc-initials {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.tc-sport {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: rgba(20, 20, 26, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.tc-body {
  display: grid;
  gap: 7px;
  padding: 14px 16px 16px;
}

.tc-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tc-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.tc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tc-chips .chip {
  min-height: 28px;
  padding: 0 12px;
  font-size: 12.5px;
  background: var(--surface-2);
}

.tc-foot {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
}

/* Floating map button */
.map-fab {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 25;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.map-fab .icon {
  width: 20px;
  height: 20px;
}

@media (min-width: 881px) {
  .map-fab {
    bottom: 24px;
  }
}

/* Full-screen map view */
.map-view {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
}

.map-view-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.map-view-search-row .float-chip {
  flex: none;
  background: var(--surface-2);
  color: var(--ink);
}

.map-view-search {
  position: relative;
  flex: 1;
  min-width: 0;
}

.map-view-search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.map-view-search input {
  width: 100%;
  height: 46px;
  padding: 0 44px;
  border: 0;
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 16px;
  outline: none;
}

.map-view-search .search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  color: var(--muted);
  background: transparent;
  border: 0;
}

.map-view-canvas {
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.map-view-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.map-view-count {
  font-size: 15px;
  font-weight: 800;
}

.map-view-foot .btn.primary {
  min-height: 46px;
  padding: 0 24px;
}

/* ===== Mobile polish pass ===== */

/* Scrollable pages need clearance for the fixed bottom tab bar */
@media (max-width: 880px) {
  .account-page,
  .make-money-page,
  .about-page,
  .my-teams-page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* Centered sign-in / empty gates */
.signin-gate {
  min-height: calc(100dvh - 66px);
  display: grid;
  place-items: center;
  padding: 24px 24px calc(110px + env(safe-area-inset-bottom));
  text-align: center;
}

.gate-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 330px;
  width: 100%;
}

.gate-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.gate-icon .icon {
  width: 30px;
  height: 30px;
}

.gate-inner h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gate-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.gate-inner .btn.primary {
  min-height: 50px;
  padding: 0 34px;
  margin-top: 4px;
  font-size: 16px;
}

.gate-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.gate-link:hover {
  color: var(--ink);
}

/* Theme the account identity panel (was hardcoded dark) */
.account-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.account-panel h1,
.account-panel h2 {
  color: var(--ink);
}

.account-panel p {
  color: var(--muted);
}

.account-card {
  border: 1px solid var(--line);
  background: var(--surface-2);
}

/* My Teams manager hero (was hardcoded dark) */
.my-teams-hero {
  color: #fff;
}

/* Settings link: icon centered across the two-line text block */
.settings-link {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 14px;
}

.settings-link > span:first-child {
  grid-row: 1 / span 2;
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.settings-link > span:first-child .icon {
  width: 20px;
  height: 20px;
}

.settings-link strong {
  grid-column: 2;
  align-self: end;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 800;
  text-transform: none;
}

.settings-link em {
  grid-column: 2;
  align-self: start;
  font-size: 13.5px;
}

/* ===== Messages / chat ===== */
.messages-page {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 16px calc(96px + env(safe-area-inset-bottom));
}

.messages-head h1 {
  margin: 6px 2px 12px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.convo-list {
  display: grid;
}

.convo-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.convo-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.convo-avatar.small {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.convo-body {
  min-width: 0;
}

.convo-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.convo-top strong {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convo-top time {
  flex: none;
  color: var(--muted);
  font-size: 12.5px;
}

.convo-preview {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thread view */
.thread-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100dvh;
  background: var(--bg);
}

.thread-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.thread-back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
}

.thread-back .icon {
  width: 22px;
  height: 22px;
}

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

.thread-title strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.thread-title span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}

.thread-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
}

.bubble-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 82%;
}

.bubble-row.mine {
  align-self: flex-end;
  align-items: flex-end;
}

.bubble-sender {
  margin: 0 0 3px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bubble {
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
}

.bubble-row.mine .bubble {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.bubble-time {
  margin: 3px 6px 0;
  color: var(--muted);
  font-size: 11px;
}

.thread-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.thread-input input {
  width: 100%;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 16px;
  outline: none;
}

.chat-send {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

.chat-send .icon {
  width: 22px;
  height: 22px;
}

/* Form helper note */
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Abbreviated roster preview on the team page */
.roster-preview-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.roster-preview-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
}

.roster-preview-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
}

.roster-preview-name {
  width: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-preview-meta {
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Application notification-style conversation */
.convo-row.notification {
  margin: 4px -4px;
  padding: 12px 4px;
  border-radius: 14px;
  background: rgba(201, 154, 25, 0.1);
  border-bottom-color: transparent;
}

.notification-avatar {
  background: var(--gold);
  color: #2a1f00;
}

.notification-avatar .icon {
  width: 24px;
  height: 24px;
}

.notification-tag {
  flex: none;
  padding: 3px 9px;
  border-radius: var(--pill);
  background: var(--gold);
  color: #2a1f00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.thread-head.notification {
  background: rgba(201, 154, 25, 0.1);
}

/* ===== City Commissioner: cosmetics + dashboard ===== */

/* Gold ring frame around avatars */
.commish-frame {
  position: relative;
  background: linear-gradient(135deg, #e7c66b, #c99a19) !important;
  color: #3a2b00 !important;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #c99a19, 0 6px 18px rgba(201, 154, 25, 0.4);
}

/* Commissioner badge next to a name (animated) */
.commish-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e7c66b, #c99a19);
  color: #3a2b00;
  vertical-align: middle;
  box-shadow: 0 0 0 rgba(201, 154, 25, 0.6);
  animation: commish-pulse 2.4s ease-in-out infinite;
}

.commish-badge .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

@keyframes commish-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 154, 25, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(201, 154, 25, 0); }
}

/* Gold profile treatment on the account page */
.account-page.is-commissioner .account-panel {
  border: 1px solid #c99a19;
  background:
    linear-gradient(135deg, rgba(201, 154, 25, 0.16), transparent 55%),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(201, 154, 25, 0.25), var(--shadow);
}

.account-page.is-commissioner .account-panel h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Gold commissioner links */
.settings-link.commish-link {
  border: 1px solid rgba(201, 154, 25, 0.45);
  background: rgba(201, 154, 25, 0.1);
}

.settings-link.commish-link > span:first-child {
  background: linear-gradient(135deg, #e7c66b, #c99a19);
  color: #3a2b00;
}

/* Home banner entry */
.commish-home-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 2px 0 4px;
  padding: 14px 16px;
  border-radius: var(--card-r);
  background: linear-gradient(135deg, #c99a19, #a37d10);
  color: #fff;
  text-decoration: none;
}

.commish-home-banner > .icon:first-child {
  width: 26px;
  height: 26px;
}

.commish-home-banner .icon:last-child {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
  opacity: 0.85;
}

.commish-home-banner strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.commish-home-banner span {
  display: block;
  font-size: 13px;
  opacity: 0.85;
}

/* Dashboard page */
.commish-page {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
}

.commish-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: var(--card-r);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.22), transparent 40%),
    linear-gradient(135deg, #c99a19, #7d5f08);
  color: #fff;
}

.commish-banner .commish-frame {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.commish-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.95;
}

.commish-eyebrow .icon {
  width: 16px;
  height: 16px;
}

.commish-banner h1 {
  margin: 4px 0 2px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.commish-banner p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

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

.commish-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.commish-stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.commish-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.commish-stat.preview {
  border-style: dashed;
}

.commish-stat span em {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  vertical-align: middle;
}

.commish-note {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 12.5px;
}

.commish-section {
  margin-top: 22px;
}

.commish-team-list {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.commish-team-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.commish-team-row .team-logo {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.commish-team-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.commish-team-info span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.commish-tools {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.commish-tool {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.commish-tool .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.commish-tool strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.commish-tool span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

.commish-tool.soon {
  opacity: 0.65;
}

/* ===== Team badges + commissioner controls (Phase 2) ===== */

/* Badge pills on the team page */
.tp-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 0;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--pill);
  font-size: 12.5px;
  font-weight: 800;
}

.team-badge .icon {
  width: 14px;
  height: 14px;
}

.team-badge.blue { background: rgba(44, 115, 183, 0.14); color: var(--blue); }
.team-badge.gold { background: rgba(201, 154, 25, 0.16); color: var(--gold); }
.team-badge.green { background: rgba(23, 122, 88, 0.14); color: var(--green); }
.team-badge.featured { background: linear-gradient(135deg, #e7c66b, #c99a19); color: #3a2b00; }

/* Commissioner controls panel on team page */
.commish-controls {
  margin: 14px 16px 0;
  padding: 14px;
  border: 1px solid rgba(201, 154, 25, 0.4);
  border-radius: 16px;
  background: rgba(201, 154, 25, 0.08);
}

.commish-controls-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.commish-controls-head .icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

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

.commish-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.commish-toggle .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.commish-toggle.on {
  border-color: var(--gold);
  background: linear-gradient(135deg, #e7c66b, #c99a19);
  color: #3a2b00;
}

/* Badge glyphs on explore cards */
.tc-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tc-badge {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
}

.tc-badge .icon { width: 13px; height: 13px; }
.tc-badge.blue { background: rgba(44, 115, 183, 0.16); color: var(--blue); }
.tc-badge.gold { background: rgba(201, 154, 25, 0.2); color: var(--gold); }
.tc-badge.green { background: rgba(23, 122, 88, 0.16); color: var(--green); }

.tc-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: linear-gradient(135deg, #e7c66b, #c99a19);
  color: #3a2b00;
  font-size: 11px;
  font-weight: 800;
}

.tc-featured .icon { width: 13px; height: 13px; }

/* Featured section on Explore */
.featured-section {
  margin-bottom: 18px;
}

.featured-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 10px;
}

.featured-head .icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.featured-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.featured-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.featured-scroll .team-card {
  scroll-snap-align: start;
}

/* ===== City feed (Phase 3) ===== */

/* Home: Game of the Week hero + announcements */
.home-city-feed {
  display: grid;
  gap: 10px;
  margin: 4px 0 8px;
}

.gotw-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: var(--card-r);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(135deg, #7161e8, #4b3fb0);
  color: #fff;
  text-decoration: none;
}

.gotw-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

.gotw-label .icon { width: 15px; height: 15px; }

.gotw-card strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gotw-card > span:last-child {
  font-size: 13.5px;
  opacity: 0.9;
}

.home-announcements {
  display: grid;
  gap: 8px;
}

.home-announce {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.home-announce-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-announce-tag .icon { width: 13px; height: 13px; }

.home-announce p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.pin-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent);
  font-weight: 800;
}

.pin-tag .icon { width: 12px; height: 12px; }

/* Dashboard: announcement composer */
.announce-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.announce-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  resize: vertical;
}

.announce-form .btn.primary {
  justify-self: end;
}

.announce-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.announce-item {
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--surface-2);
}

.announce-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.4;
}

.announce-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* Dashboard: city games with pin / GOTW toggles */
.commish-game-list {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.commish-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.commish-game-info strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
}

.commish-game-info span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

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

.commish-mini {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}

.commish-mini .icon { width: 18px; height: 18px; }

.commish-mini.on {
  border-color: var(--gold);
  background: linear-gradient(135deg, #e7c66b, #c99a19);
  color: #3a2b00;
}

/* ===== Tournaments (Phase 4) ===== */

/* Dashboard tournament rows */
.commish-tourney-list {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.commish-tourney-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.tourney-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 154, 25, 0.16);
  color: var(--gold);
}

.tourney-icon .icon { width: 20px; height: 20px; }

/* Tournament page */
.tourney-page {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px calc(96px + env(safe-area-inset-bottom));
}

.tourney-header {
  padding-top: 12px;
}

.tourney-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tourney-eyebrow .icon { width: 16px; height: 16px; }

.tourney-header h1 {
  margin: 6px 0 2px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tourney-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tourney-champion {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--card-r);
  background: linear-gradient(135deg, #c99a19, #7d5f08);
  color: #fff;
}

.tourney-champion .icon { width: 34px; height: 34px; }
.tourney-champion span { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; opacity: 0.9; }
.tourney-champion strong { font-size: 22px; font-weight: 800; }

/* Check-in */
.checkin-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.checkin-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.checkin-row .team-logo { width: 38px; height: 38px; font-size: 13px; }

.checkin-row.on {
  border-color: var(--gold);
  background: rgba(201, 154, 25, 0.12);
}

.checkin-mark {
  display: grid;
  place-items: center;
  color: var(--gold);
}

.checkin-mark .icon { width: 18px; height: 18px; }

.tourney-generate {
  width: 100%;
  margin-top: 14px;
  min-height: 50px;
}

/* Bracket */
.tourney-bracket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bracket-round {
  margin-top: 16px;
}

.bracket-round h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.bracket-match {
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.bracket-team {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 6px;
  border-radius: 10px;
}

.bracket-team + .bracket-team {
  margin-top: 2px;
}

.bracket-team .team-logo { width: 32px; height: 32px; font-size: 12px; }

.bracket-team-name {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team strong {
  font-size: 17px;
  font-weight: 800;
}

.bracket-team.winner {
  background: rgba(23, 122, 88, 0.12);
}

.bracket-team.winner .bracket-team-name {
  color: var(--green);
}

.bracket-team.bye {
  color: var(--muted);
  font-size: 13px;
  padding-left: 12px;
}

.bracket-record {
  width: 100%;
  margin-top: 8px;
}

/* ===== Moderation + promotion (Phase 5) ===== */

.mod-block {
  margin-top: 10px;
}

.mod-label {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.mod-label:first-child { margin-top: 0; }

.mod-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.btn.danger {
  border-color: rgba(211, 56, 47, 0.4);
  background: rgba(211, 56, 47, 0.1);
  color: var(--red);
}

/* Bonus points row on team page controls */
.commish-bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 154, 25, 0.3);
  font-size: 14px;
}

.commish-bonus-row strong {
  font-size: 16px;
  color: var(--gold);
}

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

/* Sponsors on dashboard */
.sponsor-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.sponsor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.sponsor-type {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sponsor-row strong,
.home-sponsor-card strong {
  display: block;
  margin-top: 5px;
  font-size: 15.5px;
  font-weight: 800;
}

.sponsor-blurb {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

/* Sponsors on home city feed */
.home-sponsors {
  display: grid;
  gap: 8px;
}

.home-sponsors-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.home-sponsor-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70%;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.home-sponsor-card {
  scroll-snap-align: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}

.home-sponsor-card span:last-child {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

/* Scale the whole UI down a notch on phones — everything felt oversized.
   Full-viewport screens are grown by 1/zoom so they still fill the screen. */
@media (max-width: 880px) {
  body {
    zoom: 0.88;
  }

  .thread-shell {
    height: calc(100dvh / 0.88);
  }

  .map-view {
    height: calc(100dvh / 0.88);
  }

  .signin-gate {
    min-height: calc((100dvh - 66px) / 0.88);
  }
}

/* ===== Desktop layout pass (>=881px only; mobile untouched) ===== */
@media (min-width: 881px) {
  /* The shell was `grid: auto 1fr`, which handed the 1fr row to the ticker on
     any page with 3+ children — stretching it into a giant banner. Block flow
     lets every row take its natural height. (.thread-shell keeps its own grid.) */
  .app-shell:not(.thread-shell) {
    display: block;
  }

  /* Wire ticker: compact strip, scrolls away naturally */
  .league-ticker {
    position: static;
    min-height: 44px;
  }

  .ticker-label,
  .ticker-link,
  .ticker-item {
    min-height: 44px;
  }

  /* Cap and center pages that were full-bleed slabs on wide screens */
  .about-page,
  .make-money-page,
  .account-page,
  .commish-page {
    max-width: 960px;
    margin: 0 auto;
  }

  .signin-gate {
    min-height: calc(100dvh - 240px);
  }
}

/* Mid-width desktop: topbar's column minimums added up past the viewport,
   causing horizontal scroll around 881-1024px */
@media (min-width: 881px) and (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) minmax(200px, 360px);
    gap: 14px;
    padding: 12px 16px;
  }
}

/* Wide desktop: explore becomes a two-column card grid instead of one
   endless phone column */
@media (min-width: 1160px) {
  .explore-page {
    max-width: 1120px;
  }

  .explore-page .team-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
  }
}

/* ===== Native-theme pass: desktop topbar + ticker (match mobile UI) ===== */

/* Fix: theme layer gives .about-panel a light surface, but the legacy rule
   above still painted its <p> near-white -> white-on-white in light mode. */
.about-panel p {
  color: var(--muted);
}

@media (min-width: 881px) {
  .topbar {
    background: #05070a;
    border-bottom: 1px solid #1a1d26;
    color: white;
    backdrop-filter: none;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    color: white;
  }

  .brand-title {
    display: none;
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .brand-subtitle {
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 80px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    filter: none;
    box-shadow: none;
  }

  .league-nav a {
    color: #aab2bf;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .league-nav a:hover,
  .league-nav a:focus-visible {
    color: white;
  }

  .account-chip {
    border: 1px solid #343b46;
    border-radius: 4px;
    background: #11151c;
    color: #dfe5ec;
  }

  .account-chip:hover,
  .account-chip:focus-visible {
    border-color: var(--blue);
    color: white;
  }

  .search-wrap input {
    border: 1px solid #343b46;
    border-radius: 4px;
    background: #11151c;
    color: white;
  }

  .search-wrap input::placeholder {
    color: #9da6b4;
  }

  .search-wrap input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21, 151, 211, 0.22);
  }

  .search-clear {
    color: #aab2bf;
  }

  .search-clear:hover,
  .search-clear:focus-visible {
    background: #202633;
    color: white;
  }

  /* Ticker: same surface language, accent instead of legacy blue */
  .league-ticker {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .ticker-label,
  .ticker-link {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .ticker-item span {
    color: var(--accent);
  }
}

/* ===== Desktop team page: a real expanded layout — full-width hero, then a
   wide main content column beside a sticky facts sidebar. The .tp-body /
   .tp-main / .tp-side wrappers are plain blocks below 881px, so the mobile
   layout is unchanged; they only become a grid on desktop. ===== */
@media (min-width: 881px) {
  .team-page {
    position: relative;
    max-width: 1120px;
    padding: 0 8px 48px;
  }

  /* Float the back/share buttons over the hero instead of reserving a row,
     so the banner shows in full (the -54px mobile pull-up clipped its top). */
  .team-page > .float-nav {
    position: absolute;
    top: 26px;
    left: 22px;
    right: 22px;
    padding: 0;
  }

  .team-page .team-hero-banner {
    margin-top: 12px;
    border-radius: 18px;
  }

  /* Main content + sticky sidebar. DOM order is side-first (for mobile), so
     pin BOTH row and column — with only columns pinned, auto-placement drops
     .tp-main into row 2 and leaves a sidebar-sized hole. */
  .tp-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 30px;
    align-items: start;
    margin-top: 10px;
  }

  .tp-main {
    grid-row: 1;
    grid-column: 1;
    min-width: 0;
  }

  .tp-side {
    grid-row: 1;
    grid-column: 2;
    position: sticky;
    top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* Sidebar cards get a light panel so the column reads as a unit */
  .tp-side .info-rows,
  .tp-side .tp-section {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
    margin: 0;
    padding: 14px 16px;
  }

  .tp-side .captain-card {
    margin: 0;
  }

  /* Merch fits the main column: two across instead of a fixed four */
  .team-page .merch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Keep the join/challenge bar aligned with the wider content */
  .tp-bottom-bar {
    max-width: 1120px;
  }
}
