@import url(
  "https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap"
);

:root {
  --profile-bg: #020a14;
  --profile-deep: #031224;
  --profile-panel: rgba(8, 28, 52, 0.9);
  --profile-panel-soft: rgba(13, 43, 75, 0.78);
  --profile-border: rgba(145, 170, 202, 0.18);
  --profile-text: #f7f9fc;
  --profile-muted: #9fb0c7;
  --profile-gold: #d5a43a;
  --profile-gold-light: #ffe18a;
  --profile-cyan: #43c8ff;
  --profile-green: #54eb9c;
  --profile-red: #ff707c;
  --profile-shadow:
    0 26px 62px rgba(0, 0, 0, 0.28);
}

html {
  color-scheme: dark;
}

body.premier-profile-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--profile-text);
  background:
    radial-gradient(
      circle at 10% 4%,
      rgba(216, 170, 56, 0.09),
      transparent 29rem
    ),
    radial-gradient(
      circle at 92% 14%,
      rgba(67, 200, 255, 0.1),
      transparent 34rem
    ),
    linear-gradient(
      180deg,
      #020a14,
      #061426 48%,
      #020a14
    );
  font-family:
    "Inter",
    Arial,
    Helvetica,
    sans-serif;
}

body.premier-profile-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
  background:
    linear-gradient(
      112deg,
      transparent 18%,
      rgba(216, 170, 56, 0.11) 18.1%,
      transparent 18.35%
    ),
    linear-gradient(
      68deg,
      transparent 79%,
      rgba(67, 200, 255, 0.09) 79.1%,
      transparent 79.35%
    );
}

.premier-profile-page button,
.premier-profile-page input {
  font-family: inherit;
}

.premier-profile-page [hidden] {
  display: none !important;
}

.profile-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding:
    12px clamp(18px, 5vw, 68px);
  border-bottom:
    1px solid rgba(216, 170, 56, 0.32);
  background:
    rgba(2, 10, 20, 0.93);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.profile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.profile-brand-mark {
  width: 62px;
  height: 62px;
  display: block;
  overflow: hidden;
  border:
    1px solid rgba(216, 170, 56, 0.36);
  border-radius: 16px;
  background: #061426;
  box-shadow:
    0 0 24px rgba(216, 170, 56, 0.1);
}

.profile-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-brand strong,
.profile-brand small {
  display: block;
}

.profile-brand strong {
  color: white;
  font-size: 1.05rem;
}

.profile-brand small {
  margin-top: 0.2rem;
  color: var(--profile-muted);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.profile-header-actions a,
.profile-header-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border:
    1px solid var(--profile-border);
  border-radius: 11px;
  color: #d3ddea;
  background:
    rgba(255, 255, 255, 0.025);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

#profileSignOutButton {
  border-color:
    rgba(255, 112, 124, 0.38);
  color: #ffabb3;
  background:
    rgba(255, 112, 124, 0.055);
}

.profile-access-message {
  width:
    min(1440px, calc(100% - 32px));
  min-height: 46px;
  display: flex;
  align-items: center;
  margin: 1rem auto;
  padding: 0.75rem 1rem;
  border:
    1px solid rgba(67, 200, 255, 0.23);
  border-radius: 13px;
  color: #bfeaff;
  background:
    rgba(8, 35, 64, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-size: 0.75rem;
}

.profile-page {
  width:
    min(1440px, calc(100% - 32px));
  margin: 0 auto 4.5rem;
}

.profile-login-panel,
.profile-account-app {
  border:
    1px solid var(--profile-border);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(14, 45, 78, 0.82),
      rgba(3, 17, 34, 0.96)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--profile-shadow);
}

.profile-login-panel {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(360px, 0.75fr);
  gap: 2rem;
  padding:
    clamp(1.5rem, 4vw, 3.5rem);
}

.profile-login-introduction h1,
.profile-page-heading h1,
.profile-dashboard-heading h2 {
  margin: 0;
  color: white;
  font-family:
    "Bebas Neue",
    Impact,
    sans-serif;
  line-height: 0.98;
  letter-spacing: 0.035em;
}

.profile-login-introduction h1 {
  font-size:
    clamp(3.5rem, 7vw, 6rem);
}

.profile-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--profile-gold-light);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.profile-login-introduction > p:not(.profile-eyebrow),
.profile-page-heading p,
.profile-dashboard-heading p {
  color: var(--profile-muted);
  line-height: 1.7;
}

.profile-information-card,
.profile-login-form,
.profile-preview-card,
.profile-settings-form,
.profile-dashboard-panel,
.profile-rival-card {
  border:
    1px solid rgba(145, 170, 202, 0.16);
  border-radius: 17px;
  background:
    rgba(2, 15, 30, 0.58);
}

.profile-information-card {
  margin-top: 2rem;
  padding: 1.3rem;
  border-color:
    rgba(216, 170, 56, 0.25);
}

.profile-information-card strong {
  color: var(--profile-gold-light);
}

.profile-information-card p {
  color: var(--profile-muted);
  line-height: 1.6;
}

.profile-login-form {
  padding: 1.5rem;
}

.profile-login-form h2,
.profile-preview-card h2,
.profile-settings-form h2 {
  margin: 0;
  color: white;
}

.profile-login-form header p,
.profile-settings-form header p {
  color: var(--profile-muted);
  line-height: 1.55;
}

.profile-login-form label,
.profile-settings-form label {
  display: block;
  margin-top: 1rem;
}

.profile-login-form label > span,
.profile-settings-form label > span {
  display: block;
  margin-bottom: 0.45rem;
  color: #d6e0eb;
  font-size: 0.75rem;
  font-weight: 800;
}

.profile-login-form input,
.profile-settings-form input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border:
    1px solid rgba(145, 170, 202, 0.22);
  border-radius: 10px;
  outline: none;
  color: white;
  background:
    rgba(2, 14, 29, 0.86);
}

.profile-login-form input:focus,
.profile-settings-form input:focus {
  border-color: var(--profile-cyan);
  box-shadow:
    0 0 0 3px rgba(67, 200, 255, 0.09);
}

#profileLoginButton,
#saveProfileSettingsButton {
  min-height: 47px;
  border:
    1px solid rgba(255, 225, 138, 0.7);
  border-radius: 11px;
  color: #07101d;
  background:
    linear-gradient(
      110deg,
      #b98622,
      var(--profile-gold-light),
      #ce9d30
    );
  font-weight: 900;
  cursor: pointer;
}

#profileLoginButton {
  width: 100%;
  margin-top: 1.2rem;
}

.profile-account-app {
  position: relative;
  padding:
    clamp(1.3rem, 3vw, 2.4rem);
}

.profile-account-app::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2.3rem;
  width: 100px;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      var(--profile-gold),
      var(--profile-cyan)
    );
  box-shadow:
    0 0 18px rgba(67, 200, 255, 0.45);
}

.profile-page-heading,
.profile-dashboard-heading,
.profile-dashboard-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.profile-page-heading h1 {
  font-size:
    clamp(3.6rem, 7vw, 6.2rem);
}

#openDartsCounterProfileLink {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border:
    1px solid rgba(67, 200, 255, 0.35);
  border-radius: 11px;
  color: #d7f4ff;
  background:
    rgba(67, 200, 255, 0.06);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.profile-account-alert {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border:
    1px solid rgba(255, 225, 138, 0.26);
  border-radius: 14px;
  background:
    rgba(216, 170, 56, 0.06);
}

.profile-account-alert h2 {
  color: var(--profile-gold-light);
}

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

.profile-summary-grid,
.profile-primary-stat-grid,
.profile-bonus-stat-grid {
  display: grid;
  gap: 1rem;
}

.profile-summary-grid {
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.profile-summary-grid article,
.profile-primary-stat-grid article,
.profile-bonus-stat-grid article {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  border:
    1px solid rgba(145, 170, 202, 0.16);
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      rgba(12, 40, 70, 0.72),
      rgba(2, 15, 30, 0.83)
    );
}

.profile-summary-grid article::before,
.profile-primary-stat-grid article::before,
.profile-bonus-stat-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.1rem;
  width: 42px;
  height: 2px;
  background: var(--profile-cyan);
}

.profile-summary-grid span,
.profile-primary-stat-grid span,
.profile-bonus-stat-grid span {
  display: block;
  color: #aebed1;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.profile-summary-grid strong,
.profile-primary-stat-grid strong,
.profile-bonus-stat-grid strong {
  display: block;
  margin-top: 0.75rem;
  color: white;
  font-family:
    "Bebas Neue",
    Impact,
    sans-serif;
  font-size: 2rem;
  letter-spacing: 0.035em;
}

.profile-primary-stat-grid small,
.profile-bonus-stat-grid small {
  display: block;
  margin-top: 0.45rem;
  color: var(--profile-muted);
  font-size: 0.65rem;
}

.profile-career-dashboard {
  margin-top: 1.4rem;
  padding:
    clamp(1.2rem, 3vw, 2rem);
  border:
    1px solid rgba(216, 170, 56, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(10, 36, 65, 0.78),
      rgba(2, 14, 29, 0.86)
    );
}

.profile-dashboard-heading h2 {
  font-size:
    clamp(2.8rem, 5vw, 4.5rem);
}

.profile-stat-controls {
  display: grid;
  justify-items: end;
  gap: 0.6rem;
}

.profile-segmented-control {
  display: flex;
  gap: 0.3rem;
  padding: 0.35rem;
  overflow-x: auto;
  border:
    1px solid rgba(145, 170, 202, 0.14);
  border-radius: 12px;
  background:
    rgba(2, 14, 29, 0.65);
}

.profile-segmented-control button {
  min-width: max-content;
  min-height: 38px;
  padding: 0 0.75rem;
  border:
    1px solid transparent;
  border-radius: 8px;
  color: #91a3ba;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.profile-segmented-control button.is-active {
  color: #07101d;
  border-color:
    rgba(255, 225, 138, 0.65);
  background:
    linear-gradient(
      110deg,
      #b98622,
      var(--profile-gold-light),
      #ce9d30
    );
}

.profile-stat-status {
  margin: 1.2rem 0;
  padding: 0.85rem 1rem;
  border:
    1px solid rgba(67, 200, 255, 0.18);
  border-radius: 12px;
  color: #a9dff5;
  background:
    rgba(67, 200, 255, 0.045);
  font-size: 0.72rem;
}

.profile-primary-stat-grid {
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
}

.profile-dashboard-panel,
.profile-rival-card {
  margin-top: 1rem;
  padding: 1.25rem;
}

.profile-dashboard-panel h3,
.profile-rival-card h3 {
  margin: 0;
  color: white;
  font-size: 1.05rem;
}

.profile-dashboard-note {
  color: var(--profile-muted);
  font-size: 0.67rem;
}

.profile-bonus-stat-grid {
  grid-template-columns:
    repeat(7, minmax(0, 1fr));
  margin-top: 1rem;
}

.profile-exact-history-grid,
.profile-rivalry-grid,
.profile-history-grid {
  display: grid;
  gap: 1rem;
}

.profile-exact-history-grid {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.profile-exact-history-grid > section {
  padding: 1rem;
  border:
    1px solid rgba(145, 170, 202, 0.13);
  border-radius: 13px;
  background:
    rgba(2, 14, 29, 0.44);
}

.profile-exact-history-grid h4 {
  margin: 0;
  color: white;
  font-size: 0.78rem;
}

.profile-empty-state {
  min-height: 74px;
  display: grid;
  place-items: center;
  margin-top: 0.8rem;
  padding: 1rem;
  border:
    1px dashed rgba(145, 170, 202, 0.18);
  border-radius: 11px;
  color: var(--profile-muted);
  font-size: 0.7rem;
  text-align: center;
}

.profile-rivalry-grid {
  grid-template-columns:
    minmax(280px, 0.7fr)
    minmax(0, 1.3fr);
}

.profile-rival-card > strong {
  display: block;
  margin-top: 1.2rem;
  color: var(--profile-gold-light);
  font-family:
    "Bebas Neue",
    Impact,
    sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.035em;
}

.profile-rival-card > p {
  color: var(--profile-muted);
  line-height: 1.6;
}

.profile-rival-record {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.profile-rival-record span {
  padding: 0.8rem;
  border:
    1px solid rgba(145, 170, 202, 0.13);
  border-radius: 11px;
  color: var(--profile-muted);
  background:
    rgba(2, 14, 29, 0.5);
  font-size: 0.62rem;
}

.profile-rival-record strong {
  display: block;
  margin-top: 0.4rem;
  color: white;
  font-size: 0.9rem;
}

.profile-table-scroll {
  margin-top: 1rem;
  overflow-x: auto;
  border:
    1px solid rgba(145, 170, 202, 0.13);
  border-radius: 13px;
}

.profile-table-scroll table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.profile-table-scroll th {
  padding: 0.75rem;
  border-bottom:
    1px solid rgba(216, 170, 56, 0.18);
  color: var(--profile-gold-light);
  background:
    rgba(9, 35, 64, 0.66);
  font-size: 0.62rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.profile-table-scroll td {
  padding: 0.8rem;
  border-bottom:
    1px solid rgba(145, 170, 202, 0.09);
  color: #d4deea;
  font-size: 0.7rem;
}

.profile-table-scroll td[colspan] {
  color: var(--profile-muted);
  text-align: center;
}

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

.profile-content-grid {
  display: grid;
  grid-template-columns:
    minmax(280px, 0.68fr)
    minmax(0, 1.32fr);
  align-items: start;
  gap: 1rem;
  margin-top: 1rem;
}

.profile-preview-card,
.profile-settings-form {
  padding: 1.3rem;
}

.profile-preview-card dl {
  margin: 1.2rem 0 0;
}

.profile-preview-card dl > div {
  display: grid;
  grid-template-columns:
    minmax(100px, 0.7fr)
    minmax(0, 1.3fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom:
    1px solid rgba(145, 170, 202, 0.1);
}

.profile-preview-card dt {
  color: var(--profile-muted);
  font-size: 0.7rem;
}

.profile-preview-card dd {
  margin: 0;
  color: white;
  font-size: 0.74rem;
  font-weight: 700;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.profile-settings-form label small {
  color: var(--profile-muted);
}

.profile-readonly-details {
  margin-top: 1.2rem;
  padding: 1rem;
  border:
    1px solid rgba(216, 170, 56, 0.16);
  border-radius: 13px;
  background:
    rgba(216, 170, 56, 0.035);
}

.profile-readonly-details h3 {
  margin: 0;
  color: var(--profile-gold-light);
  font-size: 0.84rem;
}

.profile-readonly-details p {
  color: var(--profile-muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.profile-readonly-details > div {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-settings-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.profile-settings-actions button {
  min-height: 43px;
  padding: 0 1rem;
}

#resetProfileSettingsButton {
  border:
    1px solid rgba(145, 170, 202, 0.24);
  border-radius: 10px;
  color: #d7e0eb;
  background:
    rgba(255, 255, 255, 0.035);
  font-weight: 800;
}

.profile-settings-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.profile-settings-actions p {
  flex-basis: 100%;
  margin: 0;
  color: var(--profile-muted);
  font-size: 0.7rem;
}

.profile-site-footer {
  padding: 1.5rem;
  border-top:
    1px solid rgba(145, 170, 202, 0.12);
  color: #71839a;
  background:
    rgba(2, 9, 18, 0.78);
  text-align: center;
  font-size: 0.72rem;
}

@media (max-width: 1180px) {
  .profile-bonus-stat-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .profile-primary-stat-grid,
  .profile-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .profile-rivalry-grid,
  .profile-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .profile-login-panel {
    grid-template-columns: 1fr;
  }

  .profile-dashboard-heading,
  .profile-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-stat-controls {
    justify-items: stretch;
  }

  .profile-segmented-control {
    width: 100%;
  }

  .profile-history-grid,
  .profile-exact-history-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .profile-site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    padding: 10px;
  }

  .profile-brand-mark {
    width: 52px;
    height: 52px;
  }

  .profile-header-actions {
    width: 100%;
  }

  .profile-header-actions a,
  .profile-header-actions button {
    flex: 1;
  }

  .profile-access-message,
  .profile-page {
    width:
      min(100% - 20px, 1440px);
  }

  .profile-account-app {
    padding: 1rem;
    border-radius: 17px;
  }

  .profile-summary-grid,
  .profile-primary-stat-grid,
  .profile-bonus-stat-grid,
  .profile-settings-grid,
  .profile-readonly-details > div {
    grid-template-columns: 1fr;
  }

  .profile-rival-record {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* PLAYER DASHBOARD FINAL SHELL POLISH */

html {
  scroll-padding-top: 112px;
}

.profile-career-dashboard,
.profile-content-grid {
  scroll-margin-top: 112px;
}

.profile-bonus-stat-grid {
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(145px, 1fr)
    );
}

.profile-history-grid >
.profile-dashboard-panel:last-child {
  grid-column: 1 / -1;
}

.profile-content-grid {
  align-items: stretch;
}

.profile-preview-card {
  height: 100%;
}

@media (max-width: 820px) {
  .profile-history-grid >
  .profile-dashboard-panel:last-child {
    grid-column: auto;
  }
}


/* PLAYER PROFILE HISTORY RECORDS */

.profile-value-history {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.profile-value-entry {
  min-width: 116px;
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  border:
    1px solid rgba(145, 170, 202, 0.15);
  border-radius: 11px;
  background:
    rgba(2, 14, 29, 0.52);
}

.profile-value-entry > strong {
  color: var(--profile-gold-light);
  font-family:
    "Bebas Neue",
    Impact,
    sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.profile-value-entry span,
.profile-value-entry small {
  color: var(--profile-muted);
  font-size: 0.62rem;
}

.profile-history-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.profile-history-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border:
    1px solid rgba(145, 170, 202, 0.14);
  border-radius: 11px;
  background:
    rgba(2, 14, 29, 0.5);
}

.profile-history-entry > div {
  min-width: 0;
}

.profile-history-entry strong,
.profile-history-entry span,
.profile-history-entry small {
  display: block;
}

.profile-history-entry strong {
  color: white;
  font-size: 0.73rem;
}

.profile-history-entry span,
.profile-history-entry small {
  margin-top: 0.25rem;
  color: var(--profile-muted);
  font-size: 0.62rem;
}

.profile-history-entry > div:last-child,
.profile-history-entry > small {
  flex: 0 0 auto;
  text-align: right;
}

@media (max-width: 620px) {
  .profile-history-entry {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-history-entry >
  div:last-child {
    text-align: left;
  }
}


/* PLAYER STATISTICS COMPETITION AND THROW-FORMAT TABLES */

.profile-stat-filter-group {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
  max-width: 100%;
}

.profile-stat-control-label,
.profile-stat-table-kicker {
  color: var(--profile-gold-light);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-segmented-control--format {
  border-color: rgba(67, 200, 255, 0.22);
  box-shadow:
    inset 0 0 18px rgba(67, 200, 255, 0.025);
}

.profile-segmented-control--format button.is-active {
  color: #031321;
  border-color: rgba(168, 234, 255, 0.7);
  background:
    linear-gradient(
      110deg,
      #39a9d4,
      #9ae8ff,
      #4dc3ef
    );
  box-shadow:
    0 0 18px rgba(67, 200, 255, 0.16);
}

.profile-stat-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border:
    1px solid rgba(216, 170, 56, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(
      120deg,
      rgba(216, 170, 56, 0.075),
      rgba(67, 200, 255, 0.035)
    );
}

.profile-stat-table-heading h3 {
  margin: 0.25rem 0 0;
  color: white;
  font-family:
    "Bebas Neue",
    Impact,
    sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 400;
  letter-spacing: 0.035em;
}

.profile-stat-table-heading > p {
  max-width: 39rem;
  margin: 0;
  color: var(--profile-muted);
  font-size: 0.68rem;
  line-height: 1.65;
  text-align: right;
}

@media (max-width: 820px) {
  .profile-stat-filter-group {
    justify-items: stretch;
    width: 100%;
  }

  .profile-stat-control-label {
    padding-left: 0.2rem;
  }

  .profile-segmented-control {
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .profile-segmented-control button {
    scroll-snap-align: start;
  }

  .profile-stat-table-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .profile-stat-table-heading > p {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .profile-stat-controls {
    gap: 0.75rem;
  }

  .profile-segmented-control button {
    min-height: 42px;
    padding: 0 0.85rem;
  }

  .profile-stat-table-heading {
    padding: 0.9rem;
  }
}

/* PLAYER STATISTICS HEADER AND STICKY-OFFSET POLISH */

html {
  scroll-padding-top: 132px;
}

.profile-career-dashboard,
.profile-content-grid,
.profile-settings-form {
  scroll-margin-top: 132px;
}

.profile-career-dashboard
.profile-dashboard-heading {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(420px, 0.82fr);
  align-items: start;
  gap: clamp(1.75rem, 3vw, 3.5rem);
}

.profile-career-dashboard
.profile-dashboard-heading > div:first-child {
  min-width: 0;
  max-width: 44rem;
}

.profile-career-dashboard
.profile-dashboard-heading > div:first-child > p:last-child {
  max-width: 43rem;
  margin-bottom: 0;
}

.profile-career-dashboard
.profile-stat-controls {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: 0.85rem;
  border:
    1px solid rgba(145, 170, 202, 0.14);
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      rgba(3, 18, 36, 0.78),
      rgba(2, 13, 27, 0.62)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.profile-stat-controls-title {
  width: 100%;
  margin: 0 0 0.1rem;
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-align: right;
  text-transform: uppercase;
}

.profile-career-dashboard
.profile-stat-filter-group {
  width: 100%;
}

.profile-career-dashboard
.profile-segmented-control {
  max-width: 100%;
}

.profile-career-dashboard
.profile-segmented-control--format {
  width: max-content;
  justify-self: end;
}

@media (max-width: 1080px) {
  .profile-career-dashboard
  .profile-dashboard-heading {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .profile-career-dashboard
  .profile-dashboard-heading > div:first-child {
    max-width: none;
  }

  .profile-career-dashboard
  .profile-stat-controls {
    max-width: none;
    justify-self: stretch;
  }

  .profile-stat-controls-title,
  .profile-career-dashboard
  .profile-stat-control-label {
    text-align: left;
  }

  .profile-career-dashboard
  .profile-stat-filter-group {
    justify-items: stretch;
  }

  .profile-career-dashboard
  .profile-segmented-control--format {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 178px;
  }

  .profile-career-dashboard,
  .profile-content-grid,
  .profile-settings-form {
    scroll-margin-top: 178px;
  }

  .profile-career-dashboard
  .profile-stat-controls {
    padding: 0.7rem;
  }
}

/* PUBLIC PLAYER IDENTITY CARD */

.profile-player-identity-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1rem;
  overflow: hidden;
  min-width: 0;
  background:
    radial-gradient(
      circle at 90% 4%,
      rgba(67, 200, 255, 0.09),
      transparent 32%
    ),
    linear-gradient(
      150deg,
      rgba(8, 30, 55, 0.94),
      rgba(3, 15, 30, 0.96)
    );
}

.profile-player-identity-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--profile-gold),
      var(--profile-cyan),
      transparent
    );
  opacity: 0.9;
}

.profile-preview-identity-header {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 1rem;
  border-bottom:
    1px solid rgba(145, 170, 202, 0.13);
}

.profile-preview-heading-row,
.profile-preview-oom-card > header,
.profile-preview-career > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.profile-preview-heading-row .profile-eyebrow {
  margin: 0.25rem 0 0;
}

.profile-preview-badges {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile-role-badge,
.profile-membership-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(145, 170, 202, 0.18);
  border-radius: 999px;
  background: rgba(3, 18, 35, 0.78);
  color: #d6e0eb;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.profile-player-identity-card[
  data-profile-role="owner"
] .profile-role-badge {
  border-color: rgba(255, 221, 116, 0.54);
  color: #ffe38e;
  background:
    linear-gradient(
      120deg,
      rgba(130, 84, 13, 0.55),
      rgba(63, 39, 5, 0.76)
    );
  box-shadow:
    0 0 14px rgba(216, 170, 56, 0.12);
}

.profile-player-identity-card[
  data-profile-role="admin"
] .profile-role-badge {
  border-color: rgba(93, 211, 255, 0.48);
  color: #9ce9ff;
  background:
    linear-gradient(
      120deg,
      rgba(14, 91, 126, 0.55),
      rgba(4, 43, 67, 0.76)
    );
  box-shadow:
    0 0 14px rgba(67, 200, 255, 0.12);
}

.profile-player-identity-card[
  data-profile-membership="bronze"
] .profile-membership-badge {
  border-color: rgba(205, 139, 86, 0.52);
  color: #edbd92;
  background: rgba(92, 49, 23, 0.62);
}

.profile-player-identity-card[
  data-profile-membership="silver"
] .profile-membership-badge {
  border-color: rgba(205, 219, 232, 0.48);
  color: #e5eef6;
  background: rgba(79, 94, 110, 0.55);
}

.profile-player-identity-card[
  data-profile-membership="gold"
] .profile-membership-badge {
  border-color: rgba(255, 222, 118, 0.56);
  color: #ffe28b;
  background: rgba(108, 76, 12, 0.62);
}

.profile-player-identity-card[
  data-profile-membership="platinum"
] .profile-membership-badge {
  border-color: rgba(190, 233, 244, 0.56);
  color: #dff9ff;
  background:
    linear-gradient(
      120deg,
      rgba(85, 112, 124, 0.62),
      rgba(32, 67, 82, 0.68)
    );
}

.profile-player-identity-card[
  data-profile-membership="vip"
] .profile-membership-badge {
  border-color: rgba(217, 164, 255, 0.58);
  color: #efc9ff;
  background:
    linear-gradient(
      120deg,
      rgba(89, 31, 118, 0.67),
      rgba(42, 18, 68, 0.75)
    );
  box-shadow:
    0 0 15px rgba(181, 92, 235, 0.13);
}

.profile-preview-identity-header h2 {
  margin: 0.1rem 0 0;
  color: white;
  font-family:
    "Bebas Neue",
    Impact,
    sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.95;
}

.profile-preview-identity-header > p:last-child {
  margin: 0;
  color: var(--profile-cyan);
  font-size: 0.72rem;
  font-weight: 800;
}

.profile-preview-performance-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.profile-preview-performance-grid article {
  min-width: 0;
  padding: 0.9rem;
  border:
    1px solid rgba(145, 170, 202, 0.14);
  border-radius: 13px;
  background:
    linear-gradient(
      145deg,
      rgba(4, 22, 42, 0.8),
      rgba(2, 13, 26, 0.74)
    );
}

.profile-preview-performance-grid span,
.profile-preview-oom-values span,
.profile-preview-career-grid span {
  display: block;
  color: var(--profile-muted);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-preview-performance-grid strong {
  display: block;
  margin-top: 0.35rem;
  color: white;
  font-family:
    "Bebas Neue",
    Impact,
    sans-serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}

.profile-preview-performance-grid small {
  display: block;
  margin-top: 0.4rem;
  color: var(--profile-muted);
  font-size: 0.55rem;
  line-height: 1.45;
}

.profile-preview-oom-card,
.profile-preview-career {
  padding: 1rem;
  border:
    1px solid rgba(216, 170, 56, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(216, 170, 56, 0.065),
      rgba(4, 25, 46, 0.62)
    );
}

.profile-preview-section-label {
  display: block;
  color: var(--profile-gold-light);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-preview-oom-card h3,
.profile-preview-career h3 {
  margin: 0.28rem 0 0;
  color: white;
  font-size: 0.78rem;
}

.profile-preview-oom-card > header a {
  flex: 0 0 auto;
  color: var(--profile-gold-light);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-preview-oom-values {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.profile-preview-oom-values > div {
  padding: 0.75rem;
  border:
    1px solid rgba(145, 170, 202, 0.12);
  border-radius: 10px;
  background: rgba(2, 14, 28, 0.5);
}

.profile-preview-oom-values strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--profile-gold-light);
  font-family:
    "Bebas Neue",
    Impact,
    sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.profile-preview-oom-card > p {
  margin: 0.75rem 0 0;
  color: var(--profile-muted);
  font-size: 0.58rem;
  line-height: 1.5;
}

.profile-preview-details {
  margin: 0;
  padding: 0 0.9rem;
  border:
    1px solid rgba(145, 170, 202, 0.12);
  border-radius: 13px;
  background: rgba(2, 14, 28, 0.45);
}

.profile-preview-card
.profile-preview-details > div {
  grid-template-columns:
    minmax(90px, 0.75fr)
    minmax(0, 1.25fr);
  padding: 0.72rem 0;
}

.profile-preview-dartscounter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border:
    1px solid rgba(67, 200, 255, 0.34);
  border-radius: 11px;
  background:
    linear-gradient(
      120deg,
      rgba(18, 90, 124, 0.72),
      rgba(8, 49, 75, 0.82)
    );
  color: #dff8ff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.profile-preview-dartscounter-link:hover,
.profile-preview-dartscounter-link:focus-visible {
  border-color: rgba(137, 228, 255, 0.66);
  transform: translateY(-1px);
}

.profile-preview-career {
  border-color: rgba(67, 200, 255, 0.15);
  background:
    linear-gradient(
      135deg,
      rgba(67, 200, 255, 0.045),
      rgba(3, 18, 35, 0.72)
    );
}

.profile-preview-career-status {
  max-width: 11rem;
  color: var(--profile-muted);
  font-size: 0.55rem;
  line-height: 1.45;
  text-align: right;
}

.profile-preview-career-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.profile-preview-career-grid article {
  min-width: 0;
  padding: 0.7rem;
  border:
    1px solid rgba(145, 170, 202, 0.11);
  border-radius: 10px;
  background: rgba(2, 13, 26, 0.52);
}

.profile-preview-career-grid strong {
  display: block;
  margin-top: 0.3rem;
  overflow-wrap: anywhere;
  color: white;
  font-family:
    "Bebas Neue",
    Impact,
    sans-serif;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 620px) {
  .profile-preview-heading-row,
  .profile-preview-career > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-preview-badges {
    justify-content: flex-start;
  }

  .profile-preview-career-status {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 430px) {
  .profile-preview-performance-grid,
  .profile-preview-oom-values,
  .profile-preview-career-grid {
    grid-template-columns: 1fr;
  }
}


/* PERMANENT MEMBERSHIP TENURE HISTORY */

.profile-membership-history-card {
  grid-column: 1 / -1;
  border-color: rgba(216, 170, 56, 0.24);
  background:
    linear-gradient(
      145deg,
      rgba(23, 49, 75, 0.76),
      rgba(2, 14, 29, 0.88)
    );
}

.profile-membership-history-status {
  margin: 0.85rem 0 0;
  color: var(--profile-muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.profile-membership-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.profile-membership-summary-grid > div {
  min-width: 0;
  padding: 0.85rem;
  border:
    1px solid rgba(145, 170, 202, 0.14);
  border-radius: 11px;
  background: rgba(2, 14, 29, 0.5);
}

.profile-membership-summary-grid span {
  display: block;
  color: var(--profile-muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-membership-summary-grid strong {
  display: block;
  margin-top: 0.4rem;
  overflow-wrap: anywhere;
  color: white;
  font-size: 0.76rem;
}

.profile-membership-streak-list {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.profile-membership-streak,
.profile-membership-empty {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border:
    1px solid rgba(145, 170, 202, 0.13);
  border-radius: 11px;
  background: rgba(2, 14, 29, 0.42);
}

.profile-membership-streak {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.profile-membership-streak div {
  min-width: 0;
}

.profile-membership-streak strong,
.profile-membership-streak span {
  display: block;
}

.profile-membership-streak strong {
  color: white;
  font-size: 0.72rem;
}

.profile-membership-streak span,
.profile-membership-streak small,
.profile-membership-empty {
  color: var(--profile-muted);
  font-size: 0.64rem;
  line-height: 1.45;
}

.profile-membership-streak small {
  flex: 0 0 auto;
  color: var(--profile-gold-light);
  font-weight: 800;
}

.profile-membership-streak[
  data-membership-streak="active"
] {
  border-color: rgba(67, 200, 255, 0.28);
  background:
    linear-gradient(
      120deg,
      rgba(67, 200, 255, 0.08),
      rgba(2, 14, 29, 0.5)
    );
}

.profile-membership-history-card[
  data-membership-tier="bronze"
] {
  border-color: rgba(205, 139, 86, 0.52);
}

.profile-membership-history-card[
  data-membership-tier="silver"
] {
  border-color: rgba(205, 219, 232, 0.48);
}

.profile-membership-history-card[
  data-membership-tier="gold"
] {
  border-color: rgba(255, 222, 118, 0.56);
}

.profile-membership-history-card[
  data-membership-tier="platinum"
] {
  border-color: rgba(190, 233, 244, 0.56);
}

.profile-membership-history-card[
  data-membership-tier="vip"
] {
  border-color: rgba(217, 164, 255, 0.58);
  box-shadow:
    0 0 18px rgba(181, 92, 235, 0.1);
}

@media (max-width: 820px) {
  .profile-membership-history-card {
    grid-column: auto;
  }

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

@media (max-width: 430px) {
  .profile-membership-summary-grid {
    grid-template-columns: 1fr;
  }

  .profile-membership-streak {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-membership-streak small {
    white-space: normal;
  }
}
