/* point-one theme — charcoal chrome, cream brand, vivid data.
   Constructed in CSS so nothing visual is stored in the DB.
   Do not reintroduce Discord blurple (#5865f2) or Discord gray
   (#1e1f22 / #2b2d31).

   Game-oriented A/B (paste over the data tokens only; same neutrals):
     --accent: #00b8ed; --accent-hover: #33c6f1;
     --win: #00d7b0; --loss: #ff4d5c;
     --mood-bright: #3dd6ff; --winrate: #ffd424;
*/

:root {
  --bg: #11151a;
  --bg-raised: #181d24;
  --bg-hover: #222830;
  --border: #2c3640;
  --text: #f4f6f8;
  --text-muted: #a8b2bc;
  --text-faint: #7a8793;
  --graph-grid: #2a333c;
  --graph-axis: #8b97a3;
  --graph-label: #c5cdd4;
  --surface: #1a2028;
  --cta: #f4f1ea;
  --cta-text: #11151a;
  --cta-hover: #fff8ee;
  --accent: #d9d0c3;
  --accent-hover: #ece6db;
  --win: #2c7a5c;
  --loss: #a34447;
  --mood: #1e5f8a;
  --mood-bright: #5ccfff;
  --winrate: #f5c422;
  --danger-bg: #3a1c20;
  --danger-border: #a03a3a;
  --danger-text: #f4b8b8;
  --radius: 12px;
  --radius-sm: 7px;
  --shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
  --font: system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background-color: var(--bg);
  accent-color: var(--cta);
}

body {
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  margin: 0;
  isolation: isolate;
}

/* Fixed layer, not background-attachment:fixed — Safari often drops that. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
}

a {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--cta);
  color: var(--cta-text);
  text-decoration: none;
  font-weight: 600;
  font-family: inherit;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--cta-hover);
}

.btn-quiet {
  background: var(--bg-hover);
  color: var(--text);
}

.btn-quiet:hover {
  background: var(--border);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-hover);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.card {
  background: var(--bg-raised);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: block;
  width: 27px;
  height: 19px;
  color: var(--cta);
  flex-shrink: 0;
}

.brand-mark-lg {
  width: 63px;
  height: 43px;
  color: var(--cta);
  margin: 0 auto 1.25rem;
}

.site-footer {
  width: 100%;
  margin-top: auto;
  padding: 1.1rem 1.5rem 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 45%, transparent);
  color: var(--text-faint);
  font-size: 0.72rem;
  line-height: 1.45;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-footer-brand:hover {
  color: var(--text);
}

.site-footer-mark {
  display: block;
  width: 20px;
  height: 14px;
  color: var(--text-faint);
  opacity: 0.62;
  flex-shrink: 0;
}

.site-footer-brand:hover .site-footer-mark {
  opacity: 0.88;
  color: var(--text-muted);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.site-footer-links a {
  color: var(--text-faint);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--text-muted);
}

.site-footer-disclaimer {
  margin: 0;
  padding: 0 0.35rem;
  color: color-mix(in srgb, var(--border) 78%, var(--bg));
  font-size: 0.62rem;
  line-height: 1.45;
  text-align: left;
}

@media (max-width: 640px) {
  .site-footer-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand links"
      "disclaimer disclaimer";
  }

  .site-footer-brand {
    grid-area: brand;
  }

  .site-footer-disclaimer {
    grid-area: disclaimer;
    padding: 0;
  }

  .site-footer-links {
    grid-area: links;
    justify-self: end;
  }
}

.legal-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.legal-page h1 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

.legal-page h2 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}
