:root {
  --club-primary: #b4ef63;
  --club-secondary: #90c9ff;
  --on-primary: #15200e;
  --on-accent: #15200e;
}
.brand > span {
  color: #b4ef63;
}
.primary {
  background: var(--club-primary);
  border-color: var(--club-primary);
  color: var(--on-primary);
}
.rating.high,
.pitch-row span {
  color: var(--on-accent);
}
.hero {
  background: linear-gradient(115deg, #16221c, #12191f);
  border-color: var(--green);
}
.hero-crest,
.crest,
.club-badge {
  background: #182129;
  border-color: var(--green);
  color: var(--green);
}
.hero h2 span {
  color: #b7c5c0;
}
.hero-info {
  color: #b7c5c0;
}
.hero-crest {
  box-shadow: none;
}
nav a.active {
  background: #202a30;
  color: var(--green);
}
.tag,
.demo-pill {
  background: #1b252c;
  color: var(--green);
  border-color: var(--green);
}
.subtle {
  color: #b8c3cb;
  border-color: #46535e;
}
.score,
.green,
.step {
  color: var(--green);
}
.insight > span {
  background: #202a30;
}
.bar-space i {
  background: linear-gradient(to top, var(--club-secondary), var(--green));
}
.scout-card.selected {
  background: #202a30;
}
.scout-card:hover {
  border-color: var(--club-secondary);
}
.back-button {
  margin: 0 0 22px;
  min-height: 44px;
}
.player-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 8px 0;
}
.player-link:hover {
  color: var(--club-secondary);
}
.section-title {
  font-size: 18px;
  margin: 25px 0 16px;
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
}
.star {
  position: relative;
  display: inline-block;
  font-size: 17px;
  line-height: 1.3;
  color: #62717c;
}
.star-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--club-secondary);
  width: 0;
}
.stars > small {
  margin-left: 6px;
  color: #c3d0d9;
  font-size: 11px;
}
.star-range {
  color: var(--club-secondary);
  font-size: 12px;
}
.star-range small {
  display: block;
  color: var(--muted);
}
.unavailable {
  font-size: 11px;
  color: #a8b4bd;
}
.profile-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.profile-summary > div {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 18px;
}
.profile-summary small {
  display: block;
  color: #a4b2bc;
  font-size: 9px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.profile-summary strong {
  display: block;
  font-size: 17px;
}
.attribute-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.profile-attributes,
.facts {
  margin: 0;
  padding: 18px 22px;
}
.profile-attributes > div,
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.profile-attributes > div:last-child,
.facts > div:last-child {
  border: 0;
}
.profile-attributes dt,
.facts dt {
  font-size: 12px;
  color: #aab9c3;
}
.profile-attributes dd,
.facts dd {
  font-size: 12px;
  color: #e5edf2;
  margin: 0;
  text-align: right;
}
.profile-attributes dd {
  color: var(--green);
  font-weight: 600;
}
.development-history {
  margin: 0 22px 20px;
}
.theme-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 22px;
  padding: 24px;
}
.theme-form label {
  display: grid;
  gap: 10px;
  color: #c2cdd5;
  font-size: 12px;
}
.theme-form input[type="color"] {
  width: 100px;
  height: 44px;
  border: 1px solid var(--border);
  background: #12191f;
  padding: 3px;
  border-radius: 4px;
  cursor: pointer;
}
.scout-filters {
  margin-top: 24px;
}
.watch-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #c0cbd4;
  font-size: 12px;
}
.paged-scouts {
  padding: 20px;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.paged-scouts .scout-card {
  background: #151e24;
  box-shadow: none;
}
.paged-scouts h3 {
  margin-top: 12px;
}
.paged-scouts p {
  margin-top: 8px;
  line-height: 1.8;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.card-actions button {
  font-size: 11px;
  min-height: 44px;
}
.card-actions button[aria-pressed="true"] {
  border-color: var(--green);
  color: var(--green);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 20px 0 30px;
  font-size: 12px;
  color: #b6c4cd;
}
.comparison-toolbar {
  padding: 18px 22px;
  margin: 0;
}
.roster-table td:nth-child(2) {
  position: sticky;
  left: 0;
  background: var(--panel);
  z-index: 1;
}
.roster-table th:nth-child(2) {
  position: sticky;
  left: 0;
  background: #151f25;
  z-index: 2;
}
input[type="checkbox"] {
  min-height: 20px;
  min-width: 20px;
}
@media (max-width: 950px) {
  .attribute-groups {
    grid-template-columns: 1fr;
  }
  .attribute-groups > .panel {
    margin-bottom: 0;
  }
  .attribute-groups {
    margin-bottom: 22px;
  }
}
@media (max-width: 650px) {
  body {
    font-size: 15px;
  }
  input[type="search"],
  select {
    font-size: 16px;
    min-height: 44px;
  }
  .button {
    min-height: 44px;
  }
  .profile-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .profile-summary > div {
    padding: 14px;
  }
  .profile-summary strong {
    font-size: 14px;
  }
  .page-heading {
    overflow-wrap: anywhere;
  }
  .page-heading p {
    max-width: 100%;
  }
  .hero h2 {
    max-width: 210px;
  }
  .hero-crest {
    top: 85px;
    width: 48px;
    height: 60px;
    right: 12px;
  }
  .hero-info {
    max-width: 230px;
  }
  .paged-scouts {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .paged-scouts .scout-card {
    padding: 18px;
  }
  .theme-form {
    padding: 20px;
    gap: 16px;
  }
  .theme-form label {
    flex: 1;
  }
  .theme-form .button {
    width: 100%;
  }
  .toolbar .field {
    min-width: 135px;
  }
  .profile-attributes,
  .facts {
    padding: 14px 18px;
  }
  .profile-attributes dd,
  .facts dd {
    overflow-wrap: anywhere;
    max-width: 55%;
  }
  .pagination {
    gap: 12px;
  }
  .pagination .button {
    padding: 10px;
  }
  .roster-table td:nth-child(2) {
    max-width: 160px;
    white-space: normal;
    min-width: 140px;
  }
  .scout-filters {
    gap: 12px;
  }
  nav a {
    min-height: 44px;
  }
  .sidebar {
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .sidebar-bottom {
    padding-top: 25px;
  }
  footer {
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
  .topbar {
    padding-top: env(safe-area-inset-top);
  }
  .comparison article {
    min-width: 0;
  }
  .comparison article p {
    padding-left: 0;
    padding-right: 0;
  }
  .stars > small {
    letter-spacing: 0;
  }
}

.primary:hover {
  filter: none;
  outline: 1px solid var(--club-secondary);
}
