@font-face {
  font-family: "New Rocker";
  src: url("/assets/fonts/NewRocker-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --panel: rgba(22, 22, 25, 0.82);
  --line: rgba(255, 255, 255, 0.12);
  --text: #e9e9ec;
  --muted: #a3a3ab;
  --live: #e5262b;
  --twitch: #9146ff;
  --discord: #5865f2;
  --youtube: #ff0033;
  --tiktok: #25f4ee;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.05) 45%, transparent 65%),
    radial-gradient(ellipse at 50% 0%, #26262b 0%, transparent 60%),
    radial-gradient(ellipse at 50% 120%, #1a1a1e 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* chrome lettering, like the twitch panels */
.chrome {
  font-family: "New Rocker", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #d9d9de 38%, #7c7c85 52%, #f2f2f5 64%, #a7a7ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 14px rgba(255, 255, 255, 0.12));
}

/* faint chains down each side */
.chain {
  position: fixed;
  top: -40px;
  bottom: -40px;
  width: 26px;
  opacity: 0.22;
  pointer-events: none;
  background: url("/assets/chain.svg") 0 0 / 26px 44px repeat-y;
  z-index: 0;
}
.chain-l { left: 4vw; transform: rotate(-4deg); }
.chain-r { right: 4vw; transform: rotate(4deg); }
@media (max-width: 760px) { .chain { display: none; } }

.hero, main, footer { position: relative; z-index: 1; }

.hero {
  text-align: center;
  padding: 48px 20px 18px;
}

.pfp {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #d7d7dd;
  box-shadow: 0 0 0 6px #111, 0 0 0 7px var(--line), 0 10px 40px rgba(0, 0, 0, 0.7);
  background: #111;
}

.hero h1 {
  margin: 14px 0 4px;
  font-size: clamp(2.8rem, 9vw, 5rem);
  line-height: 1.05;
}

.tag {
  margin: 0;
  color: var(--muted);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--live);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(229, 38, 43, 0.45);
}
.live[hidden], .live-title[hidden] { display: none; }
.live .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

.live-title {
  margin: 10px auto 0;
  max-width: 640px;
  color: var(--text);
  font-weight: 600;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.player { margin: 22px 0 26px; }
.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 820px) { .links { grid-template-columns: repeat(2, 1fr); } }

.btn {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 30%, transparent);
  outline: none;
}
.btn img { grid-row: 1 / 3; width: 48px; height: 48px; object-fit: contain; }
.btn span { font-weight: 700; font-size: 1.05rem; }
.btn small { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.twitch { --accent: var(--twitch); }
.btn.discord { --accent: var(--discord); }
.btn.youtube { --accent: var(--youtube); }
.btn.tiktok { --accent: var(--tiktok); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 10px;
}
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

.card {
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.card h2 { margin: 0 0 10px; font-size: 2rem; }
.card p { margin: 0 0 10px; }
.card ul, .card ol { margin: 0 0 12px; padding-left: 1.3em; }
.card li { margin: 3px 0; }

code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.cta {
  display: inline-block;
  margin-top: 4px;
  padding: 9px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f4f4f6, #a9a9b1);
  color: #111;
  font-weight: 700;
  text-decoration: none;
}
.cta:hover { filter: brightness(1.08); }

.emotes { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.emotes img { width: 48px; height: 48px; object-fit: contain; }

footer {
  text-align: center;
  padding: 26px 20px 40px;
  color: var(--muted);
}
footer p { margin: 6px 0; }
footer .small { font-size: 0.8rem; opacity: 0.7; }
