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

:root {
  --bg: #0b0911;
  --panel: #12101a;
  --panel-2: #171421;
  --text: #f5f2fb;
  --muted: #aaa3b8;
  --line: #282334;
  --purple: #9b6cff;
  --purple-2: #c09cff;
  --green: #79e6ae;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 10%, rgba(155,108,255,.15), transparent 30rem),
    radial-gradient(circle at 10% 30%, rgba(120,80,220,.08), transparent 25rem),
    var(--bg);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: auto;
  padding: 22px 28px;
  backdrop-filter: blur(16px);
  background: rgba(11,9,17,.78);
  border-bottom: 1px solid rgba(40,35,52,.7);
}
.brand {
  font: 700 1.25rem "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
}
.brand span, h1 span { color: var(--purple-2); }
.domain { color: var(--muted); font-size: .8rem; font-family: monospace; }

.hero, .section { max-width: 1120px; margin: auto; padding: 100px 28px; }
.hero { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow, .tag { color: var(--purple-2); font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.05; letter-spacing: -.045em; }
h1 { max-width: 900px; margin: 16px 0 24px; font-size: clamp(4rem, 11vw, 8.5rem); }
.hero-text { max-width: 680px; margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); }
.buttons { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); background: var(--panel); font-weight: 600; transition: .2s ease;
}
.button:hover { border-color: var(--purple); transform: translateY(-1px); }
.button.primary { background: var(--purple); border-color: var(--purple); color: #100b19; }

.login-panel {
  margin-top: 34px; width: min(100%, 650px); padding: 20px; border: 1px solid var(--line);
  border-radius: 16px; background: rgba(18,16,26,.78); box-shadow: 0 18px 60px rgba(0,0,0,.18);
}
.login-title { font: 600 1rem "Space Grotesk", sans-serif; margin-bottom: 12px; }
.login-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.login-button, .guest-button {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text);
  background: var(--panel-2); cursor: pointer; transition: .2s ease;
}
.login-button:hover, .guest-button:hover { border-color: var(--purple); transform: translateY(-1px); }
.guest-button { width: 100%; margin-top: 8px; }
.login-note { margin: 10px 0 0; color: var(--muted); font-size: .75rem; }

.section { border-top: 1px solid var(--line); }
.section-heading h2 { max-width: 780px; margin: 12px 0 45px; font-size: clamp(2.3rem, 5vw, 4.5rem); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; color: var(--muted); font-size: 1.1rem; }
.facts { display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.facts span { color: var(--muted); }
.facts strong { text-align: right; color: var(--text); font-size: .95rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { min-height: 280px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, var(--panel-2), var(--panel)); transition: .2s ease; }
.card:hover { transform: translateY(-4px); border-color: #49376b; }
.card-icon { font-size: 2rem; margin-bottom: 25px; }
.card h3 { margin: 6px 0 12px; font-size: 1.7rem; }
.card p:not(.tag) { color: var(--muted); }
.status { color: var(--green); font-size: .8rem; font-weight: 600; }
.liveplayer-copy { max-width: 700px; color: var(--muted); font-size: 1.1rem; }
footer { max-width: 1120px; margin: auto; padding: 30px 28px 50px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }

@media (max-width: 800px) {
  .domain { display: none; }
  .hero, .section { padding-top: 80px; padding-bottom: 80px; }
  .about-grid, .cards { grid-template-columns: 1fr; }
  .hero { min-height: 75vh; }
  h1 { font-size: clamp(3.5rem, 18vw, 6rem); }
  .login-buttons { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; }
}

.domain {
  font-family: cursive;
  font-style: italic;
}
.domain a { color: var(--text); }
.domain a:hover { color: var(--purple-2); }

/* =========================
   ACCOUNT
========================= */

#accountArea {
  margin: 28px 0;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 14px;

  width: fit-content;
  max-width: 100%;

  padding: 10px 12px;

  border: 1px solid var(--line);
  border-radius: 18px;

  background: rgba(21, 18, 30, 0.85);

  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.2);
}

.account-avatar {
  width: 52px;
  height: 52px;

  flex: 0 0 52px;

  border-radius: 50%;

  object-fit: cover;

  background: #241d32;
}

.account-avatar-fallback {
  display: grid;
  place-items: center;

  color: var(--purple2);

  font-size: 1.2rem;
  font-weight: 800;
}

.account-info {
  display: flex;
  flex-direction: column;

  min-width: 100px;
}

.account-name {
  font-size: 0.98rem;
}

.account-username {
  color: var(--muted);

  font-size: 0.8rem;
}

.account-provider {
  margin-top: 3px;

  color: var(--purple2);

  font-size: 0.7rem;
  font-weight: 700;
}

.account-logout {
  margin-left: 8px;
  width: auto;
}

@media (max-width: 600px) {

  .account-card {
    width: 100%;
  }

  .account-logout {
    margin-left: auto;
  }

}
