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

/* Space theme: black background, dark blue panels, white text, blue + pink accents.
   Change these few lines to re-colour the whole site. */
:root {
  --bg: #000000;      /* page background: black space */
  --card: #0d1733;    /* boxes / panels: dark blue */
  --soft: #15224a;    /* inner boxes, hover */
  --line: #22315e;    /* borders */
  --text: #eef3fb;    /* main text (soft white) */
  --muted: #94a3c8;   /* secondary text */
  --blue: #3aa6ef;
  --pink: #ff5fa2;
  --lav: #a98bf5;
  --grad: linear-gradient(135deg, #4cb4ff, #2563eb);   /* main blue gradient */
  --grad-pink: linear-gradient(135deg, var(--pink), var(--blue)); /* pink accent: avatar ring only */
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text); font-family: Inter, system-ui, sans-serif; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }   /* hidden things stay hidden even if a class gives them a display */

/* Background picture (set in config.js), darkened so text stays readable; stars still drift over it */
body.has-bg-image {
  background:
    linear-gradient(rgba(0,0,0,var(--bg-dark)), rgba(0,0,0,calc(var(--bg-dark) + .15))),
    var(--bg-image) center / cover no-repeat fixed,
    var(--bg);
}

/* Animated star background (stars.js) */
canvas.sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* ---------- Shell ---------- */
.app { min-height: 100vh; }

.brand { display: flex; align-items: center; gap: 14px; margin-right: 28px; flex-shrink: 0; }
.brand .name { font-family: var(--display); font-weight: 700; font-size: 28px; }

/* Twitch-style avatar ring */
.ring {
  border-radius: 50%; padding: 3px; background: var(--grad-pink); flex-shrink: 0;
  display: inline-block; line-height: 0;
}
.ring-in {
  display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--bg); background: var(--bg);
}
/* Zoomed in on the face, like the Twitch profile picture */
.ring-in img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.65); transform-origin: 50% 56%;
}
.ring.sm { width: 58px; height: 58px; }
.ring.live { background: conic-gradient(var(--pink), var(--blue), var(--pink)); animation: spin 4s linear infinite; }
.ring.live .ring-in { animation: spin 4s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Top menu bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 36px; border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.78); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5;
}
.topbar .spacer { flex: 1; }
.nav { display: flex; gap: 8px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px;
  color: var(--muted); font-weight: 700; font-size: 17px; transition: .15s; white-space: nowrap;
}
.nav .ico { font-size: 19px; }
.topbar .btn { font-size: 16px; padding: 13px 22px; border-radius: 12px; }
.topbar .live-pill { font-size: 14px; padding: 11px 16px; border-radius: 12px; }
@media (max-width: 1150px) {   /* medium screens: a bit smaller so everything fits on one line */
  .topbar { padding: 14px 20px; }
  .brand { margin-right: 12px; }
  .brand .name { font-size: 22px; }
  .nav a { padding: 10px 14px; font-size: 15px; }
  .topbar .live-pill { display: none; }
}
.nav a:hover { background: var(--soft); color: var(--text); }
.nav a.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(37,99,235,.35); }
.nav .ico { text-align: center; }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 12px; }
.socials a { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; background: var(--card); }
.socials a:hover { color: var(--blue); border-color: var(--blue); }
.live-pill {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 10px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4a5778; }
.live-pill.on { color: var(--text); }
.live-pill.on .dot { background: #ff3b6b; box-shadow: 0 0 8px #ff3b6b; }

.btn {
  display: inline-block; background: var(--grad); color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 10px; border: none; cursor: pointer; text-align: center;
  box-shadow: 0 6px 18px rgba(37,99,235,.3); font-family: inherit;
}
.btn:hover { filter: brightness(1.1); }
/* Yellow button with black writing (Flush sign-up) */
/* Chunky 3D look: gold gradient, uppercase, darker "edge" underneath that presses in on click */
.btn.yellow {
  background: linear-gradient(180deg, #ffd24d, #f0b232); color: #1c1407;
  font-family: Inter, system-ui, sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: 1.4px;
  border-radius: 12px; box-shadow: 0 5px 0 #a8761c, 0 10px 24px rgba(240,178,50,.25);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn.yellow:hover { filter: brightness(1.06); }
.btn.yellow:active { transform: translateY(4px); box-shadow: 0 1px 0 #a8761c, 0 4px 12px rgba(240,178,50,.2); }
.btn.yellow .ext { display: inline-block; margin-left: 8px; font-size: .95em; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--blue); }

.content { max-width: 980px; margin: 0 auto; padding: 36px 24px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
footer.site { text-align: center; color: var(--muted); font-size: 13px; margin-top: 36px; }

/* Bottom tab bar for phones */
.tabbar { display: none; }

@media (max-width: 860px) {
  .topbar { padding: 12px 16px; }
  .topbar .nav { display: none; }
  .brand .name { font-size: 22px; }
  .ring.sm { width: 48px; height: 48px; }
  .content { padding: 26px 14px 100px; }
  .topbar .btn { padding: 10px 14px; font-size: 14px; }
  .live-pill { display: none; }

  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: rgba(0,0,0,.92); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 4px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--muted);
  }
  .tabbar .ico { font-size: 20px; line-height: 1; }
  .tabbar a.active { color: var(--blue); background: rgba(58,166,239,.14); }
}

input, select, textarea { background: var(--bg); color: var(--text); }
input::placeholder { color: #6f7c9a; }
