:root {
  --ink: #2d2140;
  --muted: #766b86;
  --purple: #6f3fa5;
  --purple-dark: #3d225e;
  --lavender: #d9c7f1;
  --cream: #f3eadb;
  --white: #fffaf1;
  --line: rgba(61, 34, 94, 0.12);
  --shadow: 0 18px 45px rgba(61, 34, 94, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, var(--cream) 0%, #f5edff 52%, var(--lavender) 100%);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--purple); }
a:hover { color: var(--purple-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 1.25rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 234, 219, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand img { width: 42px; height: 42px; object-fit: contain; }
.logo { margin: 0; font-size: 1.1rem; }
nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
nav a { color: var(--ink); font-size: 0.95rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--purple); }

main.container { padding-top: 3rem; padding-bottom: 3rem; }
h1, h2, h3, h4 { line-height: 1.2; }
h1, h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 0 0 1rem; }
h3 { color: var(--purple-dark); margin-top: 2.5rem; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 8vw, 6rem);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(61, 34, 94, 0.95), rgba(111, 63, 165, 0.86)),
    url("../assets/zodiac-banner.png") center / cover no-repeat;
  box-shadow: var(--shadow);
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -90px;
  border: 34px solid rgba(255, 250, 241, 0.16);
  border-radius: 50%;
}
.hero h1, .hero p { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 3.5rem); letter-spacing: -0.03em; }
.hero p { color: #f8f1ff; font-size: 1.1rem; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.section-heading p { color: var(--muted); }
.updates .update, .team-card, .staff-card, .roster-card, .coming-soon {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(61, 34, 94, 0.07);
}
.updates .update { padding: 1rem 1.2rem; margin-bottom: 0.8rem; }
.updates h4 { margin: 0; color: var(--purple-dark); }
.updates p { margin-bottom: 0; }
.announcement-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) 1.2fr;
  gap: 1.4rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(61, 34, 94, 0.07);
}
.announcement-card img { width: 100%; max-height: 220px; border-radius: 14px; object-fit: cover; }
.announcement-card h4 { margin: 0; color: var(--purple-dark); font-size: 1.4rem; }
.announcement-card > div > p:last-child { margin-bottom: 0; color: var(--muted); }

.team-grid, .staff-grid, .roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin-top: 2rem; }
.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(61, 34, 94, 0.07);
  color: var(--ink);
  text-decoration: none;
}
.social-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.social-card strong, .social-card small { display: block; }
.social-card strong { color: var(--purple-dark); font-size: 1.15rem; }
.social-card small { color: var(--muted); margin-top: 0.2rem; }
.social-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--purple); color: var(--white); font-size: 1.55rem; font-weight: 800; }
.social-icon img { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); }
.team-card { display: flex; flex-direction: column; padding: 1.3rem; text-decoration: none; color: var(--ink); }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  object-fit: contain;
}
.team-card h4 { margin: 0; color: var(--purple-dark); font-size: 1.2rem; }
.team-card p { margin: 0.35rem 0 0; color: var(--muted); }

.team-header { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
.team-header img { width: 112px; height: 112px; object-fit: contain; }
.eyebrow { margin: 0 0 0.4rem; color: var(--purple); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }
.roster-card { padding: 1rem; display: grid; grid-template-columns: 88px 1fr; gap: 1rem; align-items: center; }
.hero-image { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; background: var(--lavender); }
.roster-card h4 { margin: 0; }
.roster-card p { margin: 0.2rem 0 0; color: var(--muted); }
.role { color: var(--purple); font-weight: 700; }
.role-symbol { font-size: 1.25rem; margin-right: 0.25rem; }

.event-timeline { display: grid; gap: 0.9rem; margin-top: 1rem; }
.event-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(61, 34, 94, 0.07);
}
.event-date {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 76px;
  border-radius: 14px;
  background: var(--purple);
  color: var(--white);
  text-align: center;
}
.event-date span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; }
.event-date strong { font-size: 1.8rem; line-height: 1.1; }
.event-details h4 { margin: 0; color: var(--purple-dark); font-size: 1.15rem; }
.event-details p { margin: 0.25rem 0 0; color: var(--muted); }
.event-details .event-readable-date { margin: 0 0 0.3rem; color: var(--purple); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.event-status { padding: 1rem; color: var(--muted); }
.staff-card { display: block; padding: 1.2rem; text-align: center; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.staff-card:hover { box-shadow: var(--shadow); border-color: var(--purple); }
.staff-card h2 { font-size: 1rem; }
.staff-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem; }
.coming-soon { padding: 1.5rem; }
.site-footer { padding: 1.5rem 1.25rem; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.site-footer .disclaimer { max-width: 760px; margin: 0.5rem auto 0; font-size: 0.78rem; }
form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
input[type=email] { flex: 1 1 220px; padding: 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); }
button { padding: 0.75rem 1.1rem; border: 0; border-radius: 10px; background: var(--purple); color: var(--white); cursor: pointer; font-weight: 700; }
button:hover { background: var(--purple-dark); }

@media (max-width: 640px) {
  .site-header .container { align-items: flex-start; flex-direction: column; }
  nav { gap: 0.8rem; }
  .team-header { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 64px 1fr; gap: 0.75rem; }
  .event-date { min-height: 64px; }
  .announcement-card { grid-template-columns: 1fr; }
  .hero { padding: 2rem 1.25rem; }
}

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
html { scroll-padding-top: 10rem; }
main { scroll-margin-top: 1rem; }
img { max-width: 100%; }
nav a[aria-current="page"] { color: var(--purple); text-decoration: underline; text-underline-offset: 0.4em; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 100; padding: 0.75rem 1rem; background: var(--white); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.roster-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.roster-card { color: var(--ink); text-decoration: none; }
.roster-card > div { min-width: 0; overflow-wrap: anywhere; }
.roster-card:hover { box-shadow: var(--shadow); border-color: var(--purple); transform: translateY(-3px); }
.profile-link { display: inline-block; margin-top: 0.65rem; font-size: 0.85rem; font-weight: 700; color: var(--purple); }
.roster-card, .team-card, .social-card { transition: transform 150ms ease, box-shadow 150ms ease; }
.roster-tools { margin-bottom: 1.25rem; }
.roster-tools label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
input[type="search"] { width: 100%; max-width: 480px; padding: 0.85rem; border: 1px solid var(--muted); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; }
#roster-status { margin: 0.5rem 0 0; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 1.5rem; }
.player-header { padding: 1.5rem; background: var(--cream); border: 1px solid var(--line); border-radius: 20px; }
.player-header h1 { overflow-wrap: anywhere; }
.profile-sections { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.profile-section { padding: clamp(1rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.profile-section h2 { font-size: 1.35rem; color: var(--purple-dark); }
.profile-section p { max-width: 75ch; margin-bottom: 0; }
.pool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.pool-card { display: flex; gap: 1rem; align-items: center; }
.pool-card img { border-radius: 14px; background: var(--lavender); object-fit: cover; }
.pool-card small { display: block; color: var(--muted); }
.player-socials { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.empty-state { color: var(--muted); }
.stars-total { font-size: clamp(2rem, 6vw, 3.5rem); color: var(--purple-dark); }
.account-page .profile-section { margin-top: 1.5rem; }
#reward-codes { overflow-wrap: anywhere; }
button:disabled { opacity: 0.6; cursor: wait; }
@media (prefers-reduced-motion: reduce) {
  .roster-card, .team-card, .social-card { transition: none; transform: none; }
}
