:root {
  --ink: #10151d;
  --muted: #7f8798;
  --line: #dce3e8;
  --panel: #ffffff;
  --paper: #f4f6f2;
  --brand-blue: #8eeaff;
  --brand-blue-deep: #2b9fd0;
  --brand-gold: #ffd45a;
  --brand-gold-deep: #c78920;
  --purple: #8eeaff;
  --purple-2: #2b9fd0;
  --green: #66ee78;
  --blue: #59a7ff;
  --orange: #ff8737;
  --gold: #ffd337;
  --danger: #ff6969;
}

.coach-test-grid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.coach-test-grid.active { display: grid; }
.test-panel[hidden] { display: none !important; }
.voon-entry-panel.active { display: grid; }
.coach-field-hint { grid-column: 1 / -1; margin: 0; color: #aeb8c8; }

.top-speed-card {
  width: min(1050px, calc(100% - 32px));
  margin: 28px auto;
  padding: 24px 30px;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px) 120px;
  align-items: center;
  gap: 28px;
  color: #fff;
  border: 1px solid rgba(78, 215, 255, 0.32);
  border-radius: 24px;
  background: linear-gradient(135deg, #071a2e, #0c3150 58%, #075e75);
  box-shadow: 0 20px 45px rgba(0, 12, 30, 0.28);
}

.speed-copy span { color: #5ce1ff; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.speed-copy h2 { margin: 4px 0; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.speed-copy p { margin: 0; color: #bfd0df; }
.speedometer { position: relative; min-height: 120px; display: grid; place-items: end center; }
.speedometer-track { position: absolute; inset: 0 0 auto; height: 110px; overflow: hidden; }
.speedometer-track::before,
.speedometer-track span {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -90px;
  width: 210px;
  height: 210px;
  transform: translateX(-50%);
  border: 18px solid rgba(255,255,255,.14);
  border-radius: 50%;
}
.speedometer-track span { border-color: #54e1ff transparent transparent #54e1ff; transform: translateX(-50%) rotate(var(--speed-angle)); }
.speed-reading { z-index: 1; display: flex; align-items: baseline; gap: 6px; }
.speed-reading strong { font-size: 3.4rem; line-height: 1; }
.speed-reading small { color: #8eeaff; font-weight: 800; }
.speed-kmh { text-align: center; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.1); }
.speed-kmh strong { display: block; font-size: 1.8rem; }
.speed-kmh span { color: #aeefff; font-weight: 700; }

.movement-insights {
  width: min(1050px, calc(100% - 32px));
  margin: -10px auto 28px;
  padding: 24px 30px 30px;
  color: #fff;
  border: 1px solid rgba(78, 215, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(5, 23, 39, .98), rgba(8, 48, 70, .98));
  box-shadow: 0 20px 45px rgba(0, 12, 30, 0.22);
}

.movement-insights-heading { margin-bottom: 18px; }
.movement-insights-heading > span,
.movement-insight-title > span {
  color: #5ce1ff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.movement-insights-heading h2 { margin: 4px 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.movement-insights-heading p { margin: 0; color: #bfd0df; }
.movement-insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.movement-insight {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.movement-insight-title h3 { margin: 3px 0 14px; font-size: 1.35rem; }
.movement-insight p { margin: 14px 0 6px; color: #c8d8e5; line-height: 1.45; }
.movement-insight small { color: #8aa7ba; }
.braking-result { display: flex; align-items: baseline; gap: 8px; }
.braking-result strong { color: #fff; font-size: clamp(2.25rem, 5vw, 3.4rem); line-height: 1; }
.braking-result span { color: #8eeaff; font-size: 1.05rem; font-weight: 800; }
.braking-runout {
  min-height: 54px;
  margin-top: 14px;
  padding-right: 30px;
  display: flex;
  align-items: end;
  gap: 7px;
  border-bottom: 2px solid rgba(92, 225, 255, .25);
}
.braking-runout span { display: block; flex: 1; border-radius: 5px 5px 1px 1px; background: linear-gradient(180deg, #8eeaff, #29afd2); }
.braking-runout span:nth-child(1) { height: 46px; }
.braking-runout span:nth-child(2) { height: 37px; }
.braking-runout span:nth-child(3) { height: 29px; }
.braking-runout span:nth-child(4) { height: 20px; }
.braking-runout span:nth-child(5) { height: 11px; }
.braking-runout i { width: 4px; height: 52px; margin-left: 2px; background: #f8ba3c; box-shadow: 8px 0 0 rgba(248, 186, 60, .25); }
.turning-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.turning-times div { padding: 13px 15px; border-radius: 14px; background: rgba(255,255,255,.08); }
.turning-times span { display: block; color: #9fbed1; font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.turning-times strong { display: block; margin-top: 2px; font-size: 1.65rem; }
.turning-comparison { margin-top: 12px; padding: 12px 15px; border-left: 4px solid #f8ba3c; border-radius: 4px 14px 14px 4px; background: rgba(248, 186, 60, .09); }
.turning-comparison strong { margin-right: 7px; font-size: 1.45rem; }
.turning-comparison span { color: #d8e7f0; font-weight: 700; }

@media (max-width: 720px) {
  .coach-test-grid { grid-template-columns: 1fr; }
  .top-speed-card { grid-template-columns: 1fr; text-align: center; }
  .speed-kmh { width: 120px; margin: auto; }
  .movement-insights { padding: 22px 18px; }
  .movement-insights-heading { text-align: center; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #050812;
  color: #eef3ff;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  min-height: 64px;
  padding: 0 28px;
}

.brand {
  font-size: 18px;
  font-weight: 900;
}

main {
  margin: 0 auto;
  max-width: 1500px;
  padding: 0;
}

.login-panel {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.78), rgba(5, 6, 8, 0.46) 46%, rgba(5, 6, 8, 0.82)),
    url("skill-locker-logo.jpeg"),
    radial-gradient(circle at 20% 35%, rgba(142, 234, 255, 0.22), transparent 26%),
    radial-gradient(circle at 84% 70%, rgba(255, 212, 90, 0.16), transparent 30%),
    #050608;
  background-position: center, center 38%, center, center, center;
  background-repeat: no-repeat;
  background-size: cover, min(1180px, 94vw) auto, auto, auto, auto;
  color: #fff;
  display: grid;
  gap: 56px;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
  overflow: hidden;
  padding: 56px clamp(22px, 6vw, 86px);
  position: relative;
}

.login-panel::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(0, 0, 0, 0.28) 8px 10px);
  background-size: 44px 44px, 44px 44px, auto;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.login-panel > * {
  position: relative;
  z-index: 1;
}

.login-copy {
  max-width: 560px;
  padding-top: 160px;
}

.login-kicker {
  color: var(--brand-gold);
  display: block;
  font-size: 14px;
  font-weight: 950;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.login-copy h1 {
  color: #fff;
  font-size: clamp(44px, 6vw, 78px);
  letter-spacing: -1px;
  line-height: 0.95;
  margin-bottom: 20px;
  max-width: 620px;
  text-transform: uppercase;
}

.login-copy .lede {
  color: rgba(238, 243, 255, 0.82);
  font-size: 20px;
  line-height: 1.45;
}

.eyebrow {
  color: #7c45ff;
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 44px;
  line-height: 1.06;
  margin-bottom: 16px;
}

.lede {
  color: #66737c;
  font-size: 18px;
}

.login-form {
  align-self: center;
  backdrop-filter: blur(18px);
  background: linear-gradient(145deg, rgba(8, 13, 28, 0.78), rgba(8, 13, 28, 0.44));
  border: 1px solid rgba(142, 234, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 0 34px rgba(142, 234, 255, 0.14), 0 26px 70px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 16px;
  justify-self: end;
  max-width: 430px;
  padding: 30px;
  width: 100%;
}

.form-badge {
  color: var(--brand-gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

label {
  color: rgba(238, 243, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

input {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(142, 234, 255, 0.26);
  border-radius: 6px;
  font-size: 16px;
  padding: 13px 14px;
  width: 100%;
}

button {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-gold));
  border: 0;
  border-radius: 6px;
  color: #080b10;
  cursor: pointer;
  font-size: 16px;
  font-weight: 950;
  padding: 13px 16px;
  text-transform: uppercase;
}

.error {
  color: #9a3324;
  font-weight: 700;
}

.success {
  color: var(--green);
  font-weight: 800;
  line-height: 1.45;
}

.dev-magic-link {
  border: 1px solid rgba(142, 234, 255, 0.42);
  border-radius: 6px;
  color: var(--brand-blue);
  font-weight: 900;
  padding: 12px 14px;
  text-align: center;
  text-transform: uppercase;
}

.fifa-dashboard {
  background:
    linear-gradient(rgba(5, 8, 18, 0.48), rgba(5, 8, 18, 0.74)),
    url("skill-locker-logo.jpeg"),
    radial-gradient(circle at 42% 18%, rgba(142, 234, 255, 0.2), transparent 24%),
    radial-gradient(circle at 64% 22%, rgba(255, 212, 90, 0.13), transparent 20%),
    radial-gradient(circle at 6% 48%, rgba(43, 159, 208, 0.16), transparent 28%),
    radial-gradient(circle at 95% 46%, rgba(199, 137, 32, 0.12), transparent 28%),
    linear-gradient(180deg, #050608 0%, #0b0d10 54%, #050608 100%);
  background-position:
    center,
    center 112px,
    center,
    center,
    center,
    center,
    center;
  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat;
  background-size:
    cover,
    min(1180px, 96vw) auto,
    auto,
    auto,
    auto,
    auto,
    auto;
  min-height: 100vh;
  overflow: hidden;
  padding: 18px 38px 38px;
  position: relative;
}

.fifa-dashboard::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(0, 0, 0, 0.28) 8px 10px);
  background-size: 44px 44px, 44px 44px, auto;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.fifa-dashboard::after {
  background: linear-gradient(90deg, transparent, rgba(142, 234, 255, 0.5), rgba(255, 212, 90, 0.42), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 78px;
}

.fifa-dashboard > * {
  position: relative;
  z-index: 1;
}

.portal-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  min-height: 122px;
}

.portal-brand {
  align-items: center;
  display: flex;
  gap: 14px;
}

.portal-brand.text-only strong {
  color: rgba(238, 243, 255, 0.82);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-brand img {
  display: block;
  filter: drop-shadow(0 0 12px rgba(142, 234, 255, 0.28));
  height: 112px;
  object-fit: contain;
  object-position: left center;
  width: 560px;
}

.portal-brand small {
  border-left: 1px solid rgba(255, 212, 90, 0.34);
  color: rgba(238, 243, 255, 0.72);
  display: block;
  font-size: 12px;
  padding-left: 14px;
  text-transform: uppercase;
}

.portal-nav-links {
  display: flex;
  gap: 12px;
}

.portal-nav-links a {
  align-items: center;
  background: rgba(5, 8, 18, 0.72);
  border: 1px solid rgba(139, 154, 190, 0.28);
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  min-height: 44px;
  padding: 0 22px;
  text-transform: uppercase;
}

.portal-nav-links .active {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 1px rgba(142, 234, 255, 0.42), 0 0 22px rgba(142, 234, 255, 0.35);
}

.portal-nav-links .sign-out {
  font-weight: 700;
  text-transform: none;
}

.top-scores-page { min-height: 100vh; }
.top-scores-hero {
  align-items: end;
  background: linear-gradient(135deg, rgba(7, 26, 46, .96), rgba(7, 94, 117, .88));
  border: 1px solid rgba(78, 215, 255, .32);
  border-radius: 26px;
  box-shadow: 0 22px 50px rgba(0, 12, 30, .3);
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr minmax(270px, 390px);
  margin: 10px auto 30px;
  max-width: 1240px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  position: relative;
}
.top-scores-hero::after {
  background: radial-gradient(circle, rgba(142, 234, 255, .16), transparent 67%);
  content: "";
  height: 420px;
  position: absolute;
  right: -110px;
  top: -190px;
  width: 420px;
}
.top-scores-hero > * { position: relative; z-index: 1; }
.top-scores-kicker { color: #8eeaff; font-size: 13px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.top-scores-hero h1 { font-size: clamp(42px, 7vw, 82px); line-height: .94; margin: 8px 0 12px; text-transform: uppercase; }
.top-scores-hero p { color: #c5d8e6; font-size: 18px; margin: 0; }
.privacy-lockup { background: rgba(2, 12, 25, .48); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 22px; }
.privacy-lockup > span { display: block; font-size: 28px; margin-bottom: 9px; }
.privacy-lockup strong { display: block; font-size: 17px; }
.privacy-lockup small { color: #afc8d8; display: block; line-height: 1.45; margin-top: 6px; }
.leaderboard-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 1240px; }
.leaderboard-card { background: linear-gradient(145deg, rgba(10, 26, 46, .98), rgba(7, 16, 31, .98)); border: 1px solid rgba(139, 154, 190, .23); border-radius: 22px; overflow: hidden; }
.leaderboard-heading { border-bottom: 1px solid rgba(255,255,255,.09); padding: 24px 26px 20px; }
.leaderboard-heading > span { color: #f7c950; font-size: 11px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.leaderboard-heading h2 { font-size: 24px; margin: 5px 0 3px; }
.leaderboard-heading p { color: #8faabc; font-size: 14px; margin: 0; }
.age-leaderboard + .age-leaderboard { border-top: 5px solid rgba(2, 9, 20, .72); }
.age-leaderboard h3 { background: rgba(142, 234, 255, .08); color: #8eeaff; font-size: 18px; letter-spacing: .08em; margin: 0; padding: 13px 22px; text-transform: uppercase; }
.block-winner {
  align-items: center;
  background: linear-gradient(110deg, rgba(251, 185, 58, .18), rgba(142, 234, 255, .09));
  border-bottom: 1px solid rgba(251, 185, 58, .28);
  border-top: 1px solid rgba(251, 185, 58, .28);
  display: grid;
  gap: 3px 16px;
  grid-template-columns: 1fr auto;
  padding: 15px 22px;
}
.block-winner > span { color: #fbb93a; font-size: 12px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.block-winner > strong { font-size: 25px; grid-column: 2; grid-row: 1 / span 2; }
.block-winner > strong small { color: #8faabc; font-size: 12px; }
.block-winner > small { color: #c5d8e6; }
.leaderboard-table-wrap { overflow-x: auto; }
.leaderboard-table { border-collapse: collapse; width: 100%; }
.leaderboard-table caption { color: #8eeaff; font-size: 12px; font-weight: 950; letter-spacing: .1em; padding: 14px 22px 5px; text-align: left; text-transform: uppercase; }
.leaderboard-table th { color: #7995a8; font-size: 11px; letter-spacing: .09em; padding: 14px 20px; text-align: left; text-transform: uppercase; }
.leaderboard-table td { border-top: 1px solid rgba(255,255,255,.07); padding: 14px 20px; }
.leaderboard-table td:nth-child(2) strong { color: #fff; font-size: 20px; }
.leaderboard-table td:nth-child(2) small { color: #8eeaff; font-weight: 900; }
.rank-medal { align-items: center; background: rgba(255,255,255,.08); border-radius: 50%; display: inline-flex; font-weight: 950; height: 32px; justify-content: center; width: 32px; }
.rank-1 .rank-medal { background: #f7c950; color: #17120a; }
.rank-2 .rank-medal { background: #b8c7d3; color: #10161c; }
.rank-3 .rank-medal { background: #bd7d4b; color: #170b04; }
.leaderboard-empty { color: #8faabc; margin: 0; padding: 28px 26px; }
.top-scores-error { background: rgba(255, 98, 98, .1); border: 1px solid rgba(255, 98, 98, .35); border-radius: 12px; margin: 0 auto 22px; max-width: 1240px; padding: 15px 18px; }
.top-scores-footer { color: #86a2b5; margin: 26px auto 0; max-width: 1240px; padding: 20px 0 36px; text-align: center; }

.player-showcase {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(350px, 430px) minmax(300px, 1fr);
  grid-template-rows: 1fr 1fr;
  margin: 8px auto 4px;
  max-width: 1240px;
  min-height: 430px;
  position: relative;
}

.stat-cluster {
  align-items: center;
  display: flex;
  gap: 28px;
  position: relative;
}

.cluster-left {
  justify-content: flex-end;
}

.cluster-right {
  justify-content: flex-start;
}

.cluster-top {
  align-self: end;
}

.cluster-bottom {
  align-self: start;
}

.cluster-left::after,
.cluster-right::before {
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
  content: "";
  height: 1px;
  opacity: 0.7;
  position: absolute;
  top: 52%;
  width: 120px;
}

.cluster-left::after {
  right: -104px;
}

.cluster-right::before {
  left: -104px;
}

.movement-copy,
.movement-orb,
.cluster-left.cluster-top {
  color: var(--brand-blue);
}

.passing-copy,
.passing-orb,
.cluster-left.cluster-bottom {
  color: var(--brand-gold);
}

.dribbling-copy,
.dribbling-orb,
.cluster-right.cluster-top {
  color: var(--brand-blue-deep);
}

.mastery-copy,
.mastery-orb,
.cluster-right.cluster-bottom {
  color: var(--brand-gold);
}

.stat-copy {
  max-width: 145px;
}

.cluster-left .stat-copy {
  order: -1;
}

.stat-copy strong {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}

.stat-copy p {
  color: rgba(238, 243, 255, 0.82);
  font-size: 14px;
  line-height: 1.42;
  margin: 0;
}

.skill-orb {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.13), transparent 58%),
    rgba(3, 9, 20, 0.82);
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 22px currentColor, inset 0 0 28px rgba(255, 255, 255, 0.06);
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  position: relative;
  text-align: center;
  width: 178px;
}

.skill-orb::before {
  border: 8px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  content: "";
  inset: -10px;
  opacity: 0.85;
  position: absolute;
}

.orb-icon {
  color: currentColor;
  font-size: 11px;
  font-weight: 950;
  margin-bottom: 12px;
}

.skill-orb span:not(.orb-icon) {
  color: rgba(238, 243, 255, 0.82);
  display: block;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.skill-orb strong {
  color: #fff;
  display: block;
  font-size: 54px;
  line-height: 1;
  margin: 6px 0;
}

.score-change {
  display: block;
  font-size: 20px;
  font-style: normal;
  font-weight: 950;
}

.score-change.positive {
  color: var(--green);
  text-shadow: 0 0 14px rgba(102, 238, 120, 0.55);
}

.score-change.negative {
  color: var(--danger);
}

.score-change.neutral {
  color: rgba(238, 243, 255, 0.55);
}

.score-change.baseline {
  color: rgba(238, 243, 255, 0.72);
  font-size: 12px;
  line-height: 1.1;
  margin-top: 9px;
  max-width: 112px;
  text-transform: uppercase;
}

.player-ultimate-card {
  align-self: center;
  background:
    radial-gradient(circle at 36% 18%, rgba(142, 234, 255, 0.24), transparent 28%),
    radial-gradient(circle at 74% 18%, rgba(255, 212, 90, 0.22), transparent 24%),
    linear-gradient(150deg, #113f52 0%, #101215 46%, #4b330d 100%);
  border: 2px solid rgba(142, 234, 255, 0.7);
  border-radius: 18px 18px 30px 30px;
  box-shadow: 0 0 28px rgba(142, 234, 255, 0.42), 0 0 42px rgba(255, 212, 90, 0.22), 0 26px 60px rgba(0, 0, 0, 0.56);
  color: #fff;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: center;
  min-height: 420px;
  overflow: hidden;
  padding: 22px 28px 24px;
  position: relative;
  text-align: center;
  width: 360px;
}

.player-ultimate-card::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at 48% 45%, rgba(142, 234, 255, 0.34), transparent 48%),
    radial-gradient(circle at 66% 50%, rgba(255, 212, 90, 0.22), transparent 52%);
  content: "";
  inset: 0;
  position: absolute;
}

.player-ultimate-card::after {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px 14px 26px 26px;
  content: "";
  inset: 12px;
  position: absolute;
}

.card-rating,
.card-photo-wrap,
.card-details,
.card-meta {
  position: relative;
  z-index: 1;
}

.card-rating span,
.card-rating small {
  color: rgba(255, 255, 255, 0.84);
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-rating strong {
  display: block;
  font-size: 76px;
  line-height: 0.9;
}

.card-photo-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 180px;
}

.card-photo-wrap img,
.card-photo-placeholder {
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  width: 240px;
}

.card-photo-wrap img {
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55));
}

.card-photo-placeholder {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 86px;
  font-weight: 950;
  justify-content: center;
}

.card-details h1 {
  color: #fff;
  font-size: 30px;
  line-height: 1;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.level-badge {
  color: var(--brand-gold);
  display: block;
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
}

.card-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  padding-top: 12px;
}

.card-meta span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-meta strong {
  color: #fff;
  display: block;
  font-size: 13px;
  margin-top: 4px;
  text-transform: uppercase;
}

.band-pill {
  align-items: center;
  background: rgba(6, 10, 22, 0.9);
  border: 1px solid rgba(142, 234, 255, 0.34);
  border-radius: 999px;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: -6px auto 14px;
  max-width: 320px;
  padding: 8px 18px;
}

.status-dot,
.band-pill i {
  aspect-ratio: 1;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green);
  display: inline-block;
  width: 12px;
}

.band-pill strong {
  color: var(--brand-blue);
  font-size: 13px;
}

.band-pill span:not(.status-dot) {
  color: rgba(238, 243, 255, 0.6);
  font-size: 11px;
  text-transform: uppercase;
}

.band-pill i {
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.profile-foot-balances {
  display: grid;
  gap: 14px;
  margin: 0 auto 14px;
  max-width: 1320px;
}

.profile-reaction-balance {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(142, 234, 255, 0.12), transparent 30%),
    linear-gradient(225deg, rgba(255, 198, 64, 0.14), transparent 34%),
    rgba(6, 10, 22, 0.88);
  border: 1px solid rgba(142, 234, 255, 0.28);
  border-radius: 12px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 18px;
  grid-template-columns: 230px minmax(280px, 1fr);
  margin: 0 auto 14px;
  max-width: 1320px;
  padding: 16px 18px;
}

.profile-foot-balances .profile-reaction-balance {
  margin: 0;
  max-width: none;
}

.profile-balance-copy span,
.profile-balance-times span {
  color: var(--brand-blue);
  display: block;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-balance-copy h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  margin: 4px 0 6px;
  text-transform: uppercase;
}

.profile-balance-copy p {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  margin: 0;
}

.profile-balance-visual {
  display: grid;
  gap: 8px;
}

.profile-balance-bar {
  background: linear-gradient(90deg, var(--brand-blue) 0 var(--right-balance), var(--gold) var(--right-balance) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow:
    0 0 24px rgba(142, 234, 255, 0.18),
    0 0 26px rgba(255, 198, 64, 0.14),
    inset 0 0 18px rgba(0, 0, 0, 0.28);
  height: 24px;
  overflow: visible;
  position: relative;
}

.profile-balance-bar::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.02));
  border-radius: inherit;
  content: "";
  inset: 3px 3px auto;
  height: 7px;
  position: absolute;
}

.profile-balance-bar .bar-midline {
  background: rgba(255, 255, 255, 0.92);
  bottom: -7px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.52);
  left: 50%;
  position: absolute;
  top: -7px;
  transform: translateX(-50%);
  width: 2px;
}

.profile-balance-bar .bar-marker {
  background: #fff;
  border: 2px solid rgba(6, 10, 22, 0.9);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.72);
  height: 32px;
  left: var(--right-balance);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
}

.profile-balance-scale {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
}

.profile-balance-scale strong,
.profile-balance-scale span {
  color: rgba(238, 243, 255, 0.74);
  font-size: 12px;
  font-weight: 950;
}

.profile-balance-scale strong:first-child {
  color: var(--brand-blue);
}

.profile-balance-scale strong:last-child {
  color: var(--gold);
  text-align: right;
}

.profile-balance-times {
  display: grid;
  gap: 8px;
  justify-content: end;
}

.profile-balance-times strong {
  color: #fff;
  display: inline-block;
  font-size: 18px;
  margin-left: 8px;
  text-transform: none;
}

.profile-balance-note {
  color: rgba(238, 243, 255, 0.66);
  font-size: 12px;
  grid-column: 2;
  line-height: 1.4;
  margin: -2px 0 0;
}

.portal-grid {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 1.15fr 1.15fr 1fr;
  margin: 0 auto;
  max-width: 1320px;
}

.portal-panel {
  background: rgba(8, 13, 28, 0.82);
  border: 1px solid rgba(119, 138, 184, 0.36);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 42px rgba(0, 0, 0, 0.26);
  padding: 18px 22px;
}

.assessment-panel,
.coach-panel {
  min-height: 230px;
}

.portal-grid > .portal-panel {
  align-self: start;
}

.progress-panel {
  height: auto;
  min-height: 0;
}

.progress-panel .section-title.light {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.progress-panel .section-title.light h2 {
  margin: 0;
}

.section-title.light span,
.summary-panel span {
  color: var(--brand-blue);
  display: block;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.section-title.light h2 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.score-timeline {
  align-items: stretch;
  display: grid;
  grid-auto-columns: minmax(86px, 1fr);
  grid-auto-flow: column;
  list-style: none;
  margin: 10px 0 0;
  overflow-x: auto;
  padding: 0 0 4px;
}

.score-timeline li {
  min-width: 74px;
  padding: 26px 5px 0;
  position: relative;
  text-align: center;
}

.score-timeline li::before {
  background: linear-gradient(90deg, rgba(142, 234, 255, 0.35), rgba(255, 212, 90, 0.85));
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 11px;
}

.timeline-dot {
  background: #fff;
  border: 4px solid var(--brand-blue);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--brand-blue);
  height: 18px;
  left: 50%;
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  width: 18px;
}

.score-timeline strong {
  color: #fff;
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.score-timeline small {
  color: rgba(238, 243, 255, 0.66);
  display: block;
  font-size: 11px;
}

.panel-note {
  color: rgba(238, 243, 255, 0.85);
  font-size: 12px;
  margin: 8px 0 0;
  text-align: center;
}

.panel-note strong {
  color: var(--brand-blue);
}

.baseline-card {
  align-items: center;
  background: rgba(5, 8, 18, 0.58);
  border: 1px solid rgba(142, 234, 255, 0.24);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 16px;
  padding: 18px;
}

.baseline-card strong {
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
}

.baseline-card span {
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.assessment-table {
  border-collapse: collapse;
  color: #fff;
  width: 100%;
}

.assessment-table-wrap {
  max-height: 360px;
  overflow: auto;
  scrollbar-color: rgba(142, 234, 255, 0.55) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
}

.assessment-table th,
.assessment-table td {
  border-bottom: 1px solid rgba(238, 243, 255, 0.12);
  padding: 10px 12px;
  text-align: left;
}

.assessment-detail-link {
  align-items: center;
  background: linear-gradient(135deg, rgba(142, 234, 255, 0.16), rgba(255, 212, 90, 0.12));
  border: 1px solid rgba(142, 234, 255, 0.34);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 950;
  justify-content: center;
  margin-bottom: 14px;
  min-height: 40px;
  padding: 0 16px;
  text-transform: uppercase;
}

.assessment-detail-link:hover {
  box-shadow: 0 0 18px rgba(142, 234, 255, 0.22);
}

.assessment-detail-link.compact {
  margin: 0;
}

.details-dashboard {
  min-height: 100vh;
}

.details-hero {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 8px auto 18px;
  max-width: 1180px;
}

.details-hero span {
  color: var(--brand-blue);
  display: block;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.details-hero h1 {
  color: #fff;
  font-size: 42px;
  margin: 8px 0;
  text-transform: uppercase;
}

.details-hero p {
  color: rgba(238, 243, 255, 0.7);
  margin: 0;
}

.details-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.detail-section {
  background: rgba(8, 13, 28, 0.82);
  border: 1px solid rgba(119, 138, 184, 0.36);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 42px rgba(0, 0, 0, 0.26);
  padding: 18px;
}

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

.test-card {
  background: rgba(5, 8, 18, 0.52);
  border: 1px solid rgba(142, 234, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.test-card.not-recorded {
  border-color: rgba(238, 243, 255, 0.12);
  opacity: 0.78;
}

.test-card-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.test-card h3 {
  color: #fff;
  font-size: 18px;
  margin: 0;
}

.colour-band {
  border: 1px solid rgba(255, 212, 90, 0.34);
  border-radius: 999px;
  color: var(--brand-gold);
  font-size: 11px;
  font-weight: 950;
  padding: 6px 10px;
  text-transform: uppercase;
}

.colour-band.muted {
  border-color: rgba(238, 243, 255, 0.18);
  color: rgba(238, 243, 255, 0.58);
}

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

.test-metrics div {
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  padding: 10px;
}

.test-metrics dt {
  color: rgba(238, 243, 255, 0.58);
  font-size: 11px;
  font-weight: 950;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.test-metrics dd {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  margin: 0;
}

.test-metrics dd small {
  color: rgba(238, 243, 255, 0.56);
  font-size: 11px;
  font-weight: 800;
}

.test-metrics .metric-missing dd {
  color: rgba(238, 243, 255, 0.48);
  font-size: 15px;
}

.benchmark-summary {
  background: linear-gradient(120deg, rgba(48, 206, 240, 0.09), rgba(255, 202, 48, 0.08));
  border: 1px solid rgba(142, 234, 255, 0.24);
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px;
}

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

.benchmark-heading div {
  display: grid;
  gap: 2px;
}

.benchmark-heading span {
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.benchmark-heading strong {
  color: #fff;
  font-size: 15px;
}

.benchmark-heading > small {
  color: var(--brand-gold);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

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

.benchmark-values div {
  background: rgba(4, 8, 18, 0.48);
  border-radius: 7px;
  padding: 9px;
}

.benchmark-values dt {
  color: rgba(238, 243, 255, 0.58);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.benchmark-values dd {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  margin: 4px 0 0;
}

.benchmark-values dd small {
  color: rgba(238, 243, 255, 0.58);
  font-size: 11px;
}

.benchmark-footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 9px;
}

.benchmark-footer span {
  border: 1px solid rgba(142, 234, 255, 0.28);
  border-radius: 999px;
  color: var(--brand-blue);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 950;
  padding: 5px 8px;
  text-transform: uppercase;
}

.benchmark-footer small {
  color: rgba(238, 243, 255, 0.58);
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}

.test-note,
.test-empty {
  color: rgba(238, 243, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
  margin: 12px 0 0;
}

.history-toggle {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.history-trigger {
  border: 1px solid rgba(142, 234, 255, 0.34);
  border-radius: 999px;
  color: var(--brand-blue);
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  margin-top: 12px;
  padding: 7px 12px;
  text-transform: uppercase;
}

.test-history {
  border-top: 1px solid rgba(142, 234, 255, 0.18);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease, margin 0.2s ease;
}

.history-toggle:checked ~ .test-history,
.test-card:focus-within .test-history {
  margin-top: 12px;
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .test-card:hover .test-history {
    margin-top: 12px;
    max-height: 360px;
    opacity: 1;
    transform: translateY(0);
  }
}

.history-heading {
  align-items: end;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 0 8px;
}

.history-heading span {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.history-heading small {
  color: rgba(238, 243, 255, 0.48);
  font-size: 11px;
  font-weight: 800;
}

.history-line-graph {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 100% 33.33%, 25% 100%, auto;
  border: 1px solid rgba(142, 234, 255, 0.14);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  height: 190px;
  padding: 10px;
}

.history-line-graph svg {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.history-line-graph line {
  stroke: rgba(238, 243, 255, 0.22);
  stroke-width: 0.7;
}

.history-line-graph .guide {
  stroke: rgba(142, 234, 255, 0.16);
  stroke-dasharray: 2 2;
}

.history-line-graph polyline {
  fill: none;
  filter: drop-shadow(0 0 3px rgba(142, 234, 255, 0.74));
  stroke: var(--brand-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.history-line-graph circle {
  fill: var(--brand-gold);
  filter: drop-shadow(0 0 4px rgba(255, 212, 90, 0.85));
  stroke: #fff5bf;
  stroke-width: 0.8;
}

.history-line-graph text {
  fill: #fff;
  font-size: 7px;
  font-weight: 950;
  paint-order: stroke;
  stroke: rgba(5, 8, 18, 0.9);
  stroke-width: 2px;
  text-anchor: middle;
}

.history-points {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.history-points li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(142, 234, 255, 0.11);
  border-radius: 8px;
  padding: 8px;
}

.history-points span,
.history-points small {
  color: rgba(238, 243, 255, 0.52);
  display: block;
  font-size: 10px;
  font-weight: 850;
}

.history-points strong {
  color: #fff;
  display: block;
  font-size: 13px;
  line-height: 1.15;
  margin: 2px 0;
}

.assessment-table th {
  color: rgba(238, 243, 255, 0.66);
  font-size: 11px;
  text-transform: uppercase;
}

.assessment-table td {
  color: rgba(238, 243, 255, 0.86);
  font-size: 13px;
}

.positive-change {
  color: var(--green) !important;
  font-weight: 900;
}

.coach-content {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 70px 1fr;
}

.coach-content p {
  color: rgba(238, 243, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.coach-content strong {
  color: var(--brand-gold);
  text-transform: uppercase;
}

.shield-icon,
.summary-icon {
  align-items: center;
  color: var(--brand-blue);
  display: flex;
  font-size: 11px;
  font-weight: 950;
  justify-content: center;
  text-shadow: 0 0 16px var(--brand-blue);
}

.summary-panel {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 70px 1fr;
  min-height: 88px;
}

.summary-panel strong {
  color: #fff;
  display: block;
  font-size: 28px;
  line-height: 1;
  margin: 8px 0;
}

.summary-panel small {
  color: rgba(238, 243, 255, 0.78);
  font-size: 13px;
}

.strength-panel .summary-icon,
.strength-panel span {
  color: var(--brand-gold);
}

.focus-panel .summary-icon,
.focus-panel span {
  color: var(--brand-gold-deep);
}

.achievement-panel .summary-icon,
.achievement-panel span {
  color: var(--brand-blue);
}

.empty.dark {
  color: rgba(238, 243, 255, 0.62);
}

.coach-entry-page {
  background:
    linear-gradient(rgba(5, 8, 18, 0.6), rgba(5, 8, 18, 0.82)),
    url("skill-locker-logo.jpeg"),
    radial-gradient(circle at 18% 18%, rgba(142, 234, 255, 0.2), transparent 26%),
    radial-gradient(circle at 88% 42%, rgba(255, 212, 90, 0.14), transparent 30%),
    linear-gradient(180deg, #050608 0%, #0b0d10 100%);
  background-position: center, center 120px, center, center, center;
  background-repeat: no-repeat;
  background-size: cover, min(920px, 84vw) auto, auto, auto, auto;
  min-height: 100vh;
  padding: 18px clamp(14px, 4vw, 46px) 40px;
}

.coach-entry-nav {
  margin-bottom: 22px;
}

.coach-entry-hero {
  margin: 0 auto 18px;
  max-width: 980px;
}

.coach-entry-hero span {
  color: var(--brand-gold);
  display: block;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.coach-entry-hero h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 64px);
  margin: 8px 0;
  text-transform: uppercase;
}

.coach-entry-hero p {
  color: rgba(238, 243, 255, 0.72);
  font-size: 17px;
  margin: 0;
}

.coach-entry-panel {
  backdrop-filter: blur(16px);
  background: linear-gradient(145deg, rgba(8, 13, 28, 0.86), rgba(8, 13, 28, 0.62));
  border: 1px solid rgba(142, 234, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  margin: 0 auto;
  max-width: 980px;
  padding: clamp(18px, 4vw, 34px);
}

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

.coach-pin-form,
.coach-empty-state {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 440px;
}

.coach-field {
  display: grid;
  gap: 8px;
}

.coach-field label,
.coach-pin-form label {
  color: rgba(238, 243, 255, 0.72);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.coach-entry-form input,
.coach-entry-form select,
.coach-entry-form textarea,
.coach-pin-form input {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(142, 234, 255, 0.24);
  border-radius: 8px;
  color: #081018;
  font: inherit;
  font-size: 17px;
  min-height: 52px;
  padding: 13px 14px;
  width: 100%;
}

.coach-entry-form textarea {
  min-height: 92px;
  resize: vertical;
}

.result-field input {
  font-size: 30px;
  font-weight: 950;
}

.date-field,
.result-field {
  max-width: 280px;
}

.coach-notes-field,
.coach-toggle,
.coach-save-button {
  grid-column: 1 / -1;
}

.voon-entry-panel {
  border: 1px solid rgba(142, 234, 255, 0.16);
  border-radius: 8px;
  display: none;
  gap: 16px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.voon-entry-panel.active {
  display: grid;
}

.voon-entry-panel.active ~ .standard-result-field,
.coach-entry-form:has(.voon-entry-panel.active) .standard-result-field {
  display: none;
}

.voon-entry-note,
.voon-best-hint,
.voon-valid-toggle {
  grid-column: 1 / -1;
}

.voon-entry-note {
  background: rgba(255, 212, 90, 0.08);
  border: 1px solid rgba(255, 212, 90, 0.2);
  border-radius: 8px;
  color: rgba(238, 243, 255, 0.82);
  display: grid;
  gap: 4px;
  padding: 12px;
}

.voon-entry-note strong {
  color: #fff;
}

.voon-best-hint {
  color: rgba(238, 243, 255, 0.68);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.coach-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(142, 234, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 10px;
  font-weight: 850;
  padding: 13px 14px;
}

.coach-toggle input {
  min-height: auto;
  width: auto;
}

.coach-save-button {
  font-size: 18px;
  min-height: 58px;
}

.coach-alert {
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 12px 14px;
}

.coach-alert.success {
  background: rgba(102, 238, 120, 0.1);
}

.coach-alert.error {
  background: rgba(255, 105, 105, 0.12);
  color: #ff9b9b;
}

.coach-empty-state {
  color: rgba(238, 243, 255, 0.74);
  text-align: center;
}

.coach-empty-state strong {
  color: #fff;
  font-size: 22px;
}

.coach-empty-state code {
  color: var(--brand-gold);
  font-weight: 950;
}

@media (max-width: 1100px) {
  .player-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
  }

  .player-ultimate-card {
    grid-column: auto;
    grid-row: 1;
    order: -1;
  }

  .stat-cluster {
    justify-content: center;
  }

  .stat-cluster::before,
  .stat-cluster::after {
    display: none;
  }

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

  .profile-reaction-balance {
    grid-template-columns: 1fr;
  }

  .profile-balance-note {
    grid-column: 1;
  }

  .profile-balance-times {
    justify-content: stretch;
  }

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

@media (max-width: 760px) {
  .fifa-dashboard {
    padding: 14px;
  }

  .portal-nav,
  .portal-nav-links,
  .stat-cluster {
    align-items: stretch;
    display: grid;
  }

  .portal-brand img {
    height: 82px;
    width: 390px;
  }

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

  .top-scores-hero,
  .leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .top-scores-hero {
    align-items: start;
    gap: 22px;
    padding: 26px 20px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding-left: 14px;
    padding-right: 14px;
  }

  .stat-copy {
    max-width: none;
    text-align: center;
  }

  .skill-orb {
    justify-self: center;
  }

  .player-ultimate-card {
    min-height: 390px;
    width: min(100%, 340px);
  }

  .card-rating strong {
    font-size: 64px;
  }

  .card-photo-wrap img,
  .card-photo-placeholder {
    width: 190px;
  }

  .profile-reaction-balance {
    padding: 14px;
  }

  .profile-balance-copy h2 {
    font-size: 19px;
  }

  .profile-balance-scale {
    grid-template-columns: 1fr 1fr;
  }

  .profile-balance-scale span {
    display: none;
  }

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

  .details-hero {
    align-items: flex-start;
    display: grid;
    gap: 14px;
  }

  .test-metrics {
    grid-template-columns: 1fr;
  }

  .history-line-graph {
    height: 160px;
  }

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

  .date-field,
  .result-field {
    max-width: none;
  }
}
