:root {
  --bg: #07111f;
  --surface: rgba(9, 24, 45, 0.82);
  --surface-strong: rgba(4, 16, 31, 0.95);
  --surface-soft: rgba(12, 35, 62, 0.88);
  --line: rgba(162, 218, 255, 0.18);
  --text: #eef7ff;
  --muted: #c8d8e7;
  --accent: #7dc8ff;
  --accent-strong: #3c8eff;
  --accent-soft: #dff4ff;
  --success: #8ef0b0;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #04111e;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(67, 141, 255, 0.35), transparent 36%),
    linear-gradient(180deg, #091426 0%, #050b14 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  margin-bottom: 18px;
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
}

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

.topnav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.hero,
.section,
.info-strip {
  opacity: 0;
  transform: translateY(26px);
  animation: rise-in 0.7s ease forwards;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 32px 0 24px;
}

.hero-home {
  position: relative;
  grid-template-columns: 1fr;
  overflow: hidden;
  min-height: 520px;
  padding: 56px 48px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(4, 16, 31, 0.92) 0%, rgba(4, 16, 31, 0.76) 42%, rgba(4, 16, 31, 0.48) 100%),
    radial-gradient(circle at center, rgba(125, 200, 255, 0.28), transparent 48%),
    url("./logo.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-home .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.hero-copy h1 {
  font-size: clamp(4rem, 10vw, 7rem);
  text-wrap: balance;
}

.hero-text,
.section-heading p,
.hero-card-note span,
.session-card p,
.price-card p,
.portal-message,
.player-detail-card p,
.table-header p,
.profile-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #04111e;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.button-ghost {
  color: var(--accent-soft);
  border: 1px solid var(--line);
  background: transparent;
}

.hero-highlights {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-highlights li,
.payment-note span,
.tag {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-soft);
}

.hero-card,
.session-card,
.price-card,
.portal-card,
.stats-panel,
.goalie-panel,
.player-detail-card,
.profile-card,
.info-strip article,
.leader-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-strong));
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  border-radius: 28px;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-card-note {
  padding: 18px 20px 22px;
}

.hero-card-note p,
.price-label,
.session-day,
.cta-label {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 0.8rem;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
  animation-delay: 0.15s;
}

.info-strip article {
  padding: 20px;
  border-radius: 22px;
}

.info-strip strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.section {
  margin-top: 76px;
  animation-delay: 0.2s;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.session-grid,
.pricing-grid,
.leaderboard,
.portal-grid {
  display: grid;
  gap: 18px;
}

.session-grid,
.pricing-grid,
.leaderboard {
  grid-template-columns: repeat(3, 1fr);
}

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

.quick-links,
.player-page-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.player-side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.session-card,
.price-card,
.portal-card,
.leader-card,
.player-detail-card,
.profile-card {
  padding: 24px;
  border-radius: 24px;
}

.session-card.featured,
.price-card.featured,
.leader-card.active {
  background:
    linear-gradient(145deg, rgba(76, 151, 255, 0.3), rgba(4, 16, 31, 0.95)),
    linear-gradient(180deg, var(--surface), var(--surface-strong));
}

.session-card h3,
.price-card h3,
.portal-card h3,
.leader-card h3,
.player-detail-card h3,
.profile-card h3,
.table-header h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.session-time {
  color: var(--accent-soft);
  font-weight: 700;
}

.price-card h3 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

.payment-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  color: var(--accent-soft);
  font-weight: 600;
}

.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(162, 218, 255, 0.24);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus {
  outline: 2px solid rgba(125, 200, 255, 0.35);
  border-color: var(--accent);
}

.stack-form textarea {
  min-height: 120px;
  resize: vertical;
}

.portal-message {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.search-panel {
  padding: 20px 22px;
  border-radius: 24px;
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-soft);
  font-weight: 700;
}

.search-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(162, 218, 255, 0.24);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.search-input:focus {
  outline: 2px solid rgba(125, 200, 255, 0.35);
  border-color: var(--accent);
}

.empty-state {
  padding: 24px;
  border: 1px dashed rgba(162, 218, 255, 0.24);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.forgot-password {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-soft);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.forgot-password:hover,
.forgot-password:focus-visible {
  color: var(--accent);
}

.community-card a[href^="tel:"] {
  color: var(--accent-soft);
  text-decoration: underline;
}

.portal-message.success {
  color: var(--success);
}

.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.stats-main {
  display: grid;
  gap: 20px;
}

.leaderboard {
  margin-bottom: 0;
}

.leader-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.leader-card {
  display: block;
}

.leader-card:hover,
.leader-card:focus-visible,
tbody tr:hover {
  transform: translateY(-3px);
}

.leader-card:hover,
.leader-card:focus-visible {
  border-color: rgba(125, 200, 255, 0.45);
}

.leader-rank {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  color: rgba(125, 200, 255, 0.18);
}

.stats-panel,
.goalie-panel {
  padding: 22px;
  border-radius: 28px;
}

.table-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.stats-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

thead th {
  color: var(--accent-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

tbody tr {
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

tbody tr:hover {
  background: rgba(125, 200, 255, 0.06);
}

.player-detail-card {
  position: sticky;
  top: 92px;
}

.xp-card {
  position: static;
}

.xp-bar {
  width: 100%;
  height: 14px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(162, 218, 255, 0.18);
}

.xp-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.xp-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-stats {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.detail-row,
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.detail-row span:first-child,
.profile-row span:first-child {
  color: var(--muted);
}

.detail-row span:last-child,
.profile-row span:last-child {
  font-weight: 700;
}

.detail-link,
.table-link {
  color: var(--text);
  text-decoration: none;
}

.table-player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(162, 218, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.detail-link:hover,
.table-link:hover {
  color: var(--accent-soft);
}

.profile-meta,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-header {
  display: flex;
  gap: 18px;
  align-items: center;
}

.avatar,
.leader-avatar,
.profile-avatar {
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(162, 218, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.leader-avatar {
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
}

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

.profile-body {
  display: grid;
  gap: 16px;
}

.inline-form {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.community-card {
  align-self: stretch;
  display: grid;
  gap: 16px;
  align-content: start;
}

.profile-empty {
  margin: 0;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .stats-layout {
    grid-template-columns: 1fr;
  }

  .player-detail-card {
    position: static;
  }
}

@media (max-width: 960px) {
  .hero,
  .session-grid,
  .pricing-grid,
  .leaderboard,
  .portal-grid,
  .info-strip,
  .quick-links,
  .player-page-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 18vw, 5.8rem);
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 12px;
  }

  .session-card,
  .price-card,
  .portal-card,
  .leader-card,
  .stats-panel,
  .goalie-panel,
  .player-detail-card,
  .profile-card {
    padding: 20px;
  }

  .table-header,
  .detail-row,
  .profile-row,
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  th,
  td {
    padding: 12px 10px;
    font-size: 0.95rem;
  }
}
