:root {
  --bg: #0f0f12;
  --bg-elevated: #17171c;
  --border: #2a2a32;
  --text: #f2f2f5;
  --text-dim: #9a9aa5;
  --accent: #6c5ce7;
  --accent-hover: #8375ea;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7fa;
    --bg-elevated: #ffffff;
    --border: #e2e2e8;
    --text: #17171c;
    --text-dim: #63636e;
    --accent: #6c5ce7;
    --accent-hover: #5a48d6;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff url("assets/website-light-bg.png") center / cover no-repeat fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  z-index: 10;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.top-nav {
  display: flex;
  gap: 8px;
}

.streak-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.streak-modal-overlay.open {
  display: flex;
}

.streak-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: min(90vw, 360px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.streak-modal-count {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.streak-modal-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0 0 24px;
}

.streak-modal-close {
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.streak-modal-close:hover {
  background: var(--accent-hover);
}

.streak-badge {
  display: block;
  width: fit-content;
  margin: 40px auto 24px;
  color: #000000;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  white-space: nowrap;
}

@keyframes nav-glow-pulse {
  0%, 100% {
    box-shadow: 0 6px 14px 2px rgba(255, 214, 0, 0.55);
  }
  50% {
    box-shadow: 0 8px 26px 6px rgba(255, 214, 0, 0.9);
  }
}

.nav-glow {
  animation: nav-glow-pulse 1.8s ease-in-out infinite;
}

.top-nav a {
  color: #000000;
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.top-nav a:hover {
  color: #000000;
  border-color: var(--border);
  background: var(--bg-elevated);
}

.top-nav a.active {
  color: #000000;
  border-color: #000000;
  background: var(--bg-elevated);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

main.main-home {
  max-width: 1200px;
}

/* ---- Home / logo + link boxes ---- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  text-align: center;
  gap: 40px;
}

.logo {
  width: min(90vw, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.link-boxes {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.tagline {
  max-width: min(92vw, 900px);
  margin: -16px 0 0;
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  text-align: center;
}

.accounts-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.account-card {
  width: 360px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 27px;
}

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

.account-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-name {
  font-weight: 700;
  font-size: 26.4px;
  line-height: 1;
  text-align: left;
}

.account-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.mini-link-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.mini-link-box:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.mini-link-box svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.account-card-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.account-bg-baseball {
  background-image: url("assets/baseball-website-bg.png");
}

.account-bg-football {
  background-image: url("assets/football-website-bg.png");
}

.account-bg-fc {
  background-image: url("assets/fc-website-bg.png");
}

.account-card-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

.account-card-photo .account-header,
.account-card-photo .account-links {
  position: relative;
  z-index: 1;
}

.account-card-photo .account-name {
  color: #ffffff;
}

.account-card-photo .account-avatar {
  border: 6px solid #ffffff;
}

.account-card-photo .mini-link-box {
  background: rgba(0, 0, 0, 0.2);
  border: 6px solid #ffffff;
  color: #ffffff;
}

.account-card-photo .mini-link-box svg {
  width: 60px;
  height: 60px;
}

.account-card-fc .mini-link-box:hover {
  border-color: #ffffff;
  opacity: 0.8;
}

.link-box {
  width: 110px;
  height: 110px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.link-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.link-box svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.link-box span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.follow-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.follow-footer p {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.follow-footer .link-boxes {
  gap: 14px;
}

.follow-footer .link-box {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.follow-footer .link-box svg {
  width: 22px;
  height: 22px;
}

.follow-footer .link-box span {
  font-size: 10px;
}

.page-centered {
  text-align: center;
}

.page-centered .card ul {
  text-align: left;
  display: inline-block;
}

/* ---- Docs / leaderboard pages ---- */

h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-dim);
  margin-bottom: 32px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.card h2 {
  margin-top: 0;
  font-size: 18px;
}

.card p, .card li {
  color: var(--text-dim);
  line-height: 1.6;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

thead {
  background: rgba(108, 92, 231, 0.1);
}

th, td {
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
}

th {
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

tbody tr {
  border-top: 1px solid var(--border);
}

tbody tr:nth-child(1) td.rank { color: #ffd54f; font-weight: 800; }
tbody tr:nth-child(2) td.rank { color: #cfd8dc; font-weight: 800; }
tbody tr:nth-child(3) td.rank { color: #d7a86e; font-weight: 800; }

td.rank {
  font-weight: 700;
  color: var(--text-dim);
}

td.xp {
  font-weight: 700;
  color: var(--accent);
}
