/* Bambada78: one dusk landscape as the hero, then the content sinks into the night below it.
   The monk is the scene's only light source; every accent is fire (ember, gold) or the logo pink. Dark only.
   Below the hero the page stays quiet: real artwork (clips, game covers) carries the color, labels stay in sentence case. */

@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/gloock-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700-latin.woff2") format("woff2"); }

:root {
  --night: #0b0717;   /* page ground, top of the sky */
  --deep: #120a24;    /* section ground */
  --dusk: #2a1850;    /* violet mid sky */
  --ember: #ff7a1a;   /* flame orange from the artwork */
  --gold: #ffc53d;    /* flame core */
  --pink: #ff0a7f;    /* logo pink, accent only */
  --cream: #fff3e8;   /* headline and main button */
  --mist: #cdbfe6;    /* secondary text */
  --live: #ff3b3b;    /* Twitch live red */
  --glass: rgb(22 13 44 / .72);
  --card: rgb(28 17 54 / .7);
  --edge: rgb(205 191 230 / .16);
  --twitch: #9146ff;
  --youtube: #ff3b3b;
  --tiktok: #25f4ee;
  --tiktok-2: #fe2c55;
  --discord: #5865f2;
  --online: #3ba55d;
  --font-display: "Gloock", Georgia, "Times New Roman", serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --wrap: 76rem;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 10px; background: var(--cream); color: var(--night); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Intro: the fire ring gathers, spins up and explodes into the page ---------- */
.intro-fx { display: none; }
html.js:not(.no-intro) .intro-fx {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, #1d0f33 0%, #0b0717 62%);
  transition: opacity .65s ease;
}
html.js:not(.no-intro) body { overflow: hidden; }
html.js.intro-done body { overflow: auto; }
.intro-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-monk {
  position: relative;
  width: min(62vmin, 30rem);
  height: auto;
  opacity: 0;
  transform: scale(.55);
  filter: drop-shadow(0 0 2.5rem rgb(255 122 26 / .55));
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.intro-fx.is-gathering .intro-monk { opacity: 1; transform: scale(1); }
.intro-fx.is-charging .intro-monk { animation: charge .12s linear infinite; }
.intro-fx.is-boom .intro-monk { opacity: 0; transform: scale(1.25); transition: opacity .45s ease, transform .45s ease; animation: none; }
.intro-fx.is-boom { opacity: 0; pointer-events: none; }
@keyframes charge {
  0% { translate: 0 0; } 25% { translate: 1.5px -1px; } 50% { translate: -1px 1.5px; } 75% { translate: 1px 1px; } 100% { translate: 0 0; }
}
.intro-skip {
  position: absolute;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  padding: .55rem 1rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgb(11 7 23 / .6);
  color: var(--mist);
  font: 500 .85rem var(--font-body);
  cursor: pointer;
}
.intro-skip:hover { color: var(--cream); border-color: var(--ember); }

/* Hero elements rise in after the explosion */
html.js:not(.no-intro) .rise { opacity: 0; transform: translateY(18px); }
html.js.intro-done .rise { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Hero: the dusk landscape ---------- */
.page {
  /* 32rem keeps the links and numbers clear of Netlify's badge on phones of every common height */
  --monk: min(88vw, 25rem, max(13rem, calc((100vh - 32rem) / .88)));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  /* the bottom keeps clear of Netlify's fixed "Powered by" badge on phones */
  padding-block: .9rem calc(3.4rem + env(safe-area-inset-bottom, 0px));
}
@supports (height: 100svh) {
  .page {
    --monk: min(88vw, 25rem, max(13rem, calc((100svh - 32rem) / .88)));
    min-height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
}
.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #0b0717 0%, #1b1038 38%, #341a58 58%, #1a0f30 72%, var(--night) 100%);
}
.scene canvas, .clouds { position: absolute; left: 0; width: 100%; display: block; pointer-events: none; }
.scene canvas { top: 0; height: 100%; }
.clouds { top: 0; height: 0; }
.clouds--back { z-index: 3; }
.clouds--front { z-index: 6; }
.grain {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: .38;
  background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .93  0 0 0 0 .86  .55 0 0 0 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Top bar with a small section nav on wide screens */
.topbar {
  position: relative;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
}
.wordmark { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .01em; text-decoration: none; }
.wordmark span { color: var(--gold); }
.topnav { display: flex; gap: 1.5rem; }
.topnav a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--mist);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}
.topnav a:hover { color: var(--gold); }
html.is-live .topnav-twitch::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); }
@media (max-width: 559px) { .topnav a:not(.topnav-discord) { display: none; } }

.layout {
  flex: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  width: 100%;
}
.intro {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: .45rem;
  margin-top: .5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  color: var(--mist);
  font-size: .98rem;
  font-weight: 600;
}
.eyebrow svg { width: 1rem; height: 1rem; fill: var(--ember); }
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: min(17.5vw, 6rem);
  line-height: .86;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--cream);
  filter: drop-shadow(0 0 1.4rem rgb(255 110 70 / .22));
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .headline span[aria-hidden] {
    background: linear-gradient(180deg, #fff7ef 28%, #ffd8b4 72%, #ffa36e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* Monk */
.stage {
  position: relative;
  width: var(--monk);
  max-width: 100%;
  aspect-ratio: 1;
  margin-top: calc(var(--monk) * -.12);
}
.monk-hit {
  position: absolute;
  inset: 12%;
  z-index: 9;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.monk-hit:focus-visible { outline-offset: -4px; }
.glow {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 55%;
  width: 190%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(255 168 96 / .3), rgb(255 128 92 / .2) 22%, rgb(255 84 110 / .11) 44%, rgb(255 40 127 / .05) 66%, rgb(255 20 127 / .015) 84%, transparent);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: breathe 6.4s ease-in-out infinite;
}
.bloom, .float { position: absolute; inset: 0; animation: float 6.5s ease-in-out infinite alternate; }
.bloom {
  z-index: 4;
  width: 100%;
  height: 100%;
  filter: blur(calc(var(--monk) * .045)) saturate(1.5);
  mix-blend-mode: screen;
  opacity: .45;
  pointer-events: none;
  animation: float 6.5s ease-in-out infinite alternate, bloom 5.2s ease-in-out infinite;
}
.float { z-index: 5; }
.monk-img, .monk-gl { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s ease; }
.monk-gl { opacity: 0; pointer-events: none; }
.float.is-gl .monk-img { opacity: 0; }
.float.is-gl .monk-gl { opacity: 1; }
.ring { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; pointer-events: none; }
.ring--back { z-index: -1; }
.ember {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(255 214 120 / .5), rgb(255 122 26 / .2) 55%, transparent);
  mix-blend-mode: screen;
  opacity: .6;
  pointer-events: none;
}
.ember--7 { left: 30%; top: 60%; }
.ember--8 { left: 73.5%; top: 61%; }
.sparks { position: absolute; left: -15%; top: -50%; width: 130%; height: 150%; pointer-events: none; }
.quote {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 1%;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--ember) 55%, var(--pink));
  color: var(--night);
  font-weight: 700;
  font-size: clamp(.8rem, 2.6vw, 1rem);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 10px 30px -10px rgb(255 122 26 / .9);
  animation: pop 1.6s cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes pop {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); }
  15% { opacity: 1; transform: translate(-50%, -6px) scale(1.06); }
  25% { transform: translate(-50%, -8px) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -46px) scale(.96); }
}
@keyframes float {
  from { transform: translateY(-1.6%) rotate(-.35deg); }
  to { transform: translateY(1.6%) rotate(.35deg); }
}
@keyframes breathe {
  0%, 100% { opacity: .82; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes bloom {
  0%, 100% { opacity: .36; }
  50% { opacity: .55; }
}

/* Links in the hero */
.actions {
  position: relative;
  z-index: 8;
  display: grid;
  gap: .8rem;
  width: min(100%, 27rem);
  margin-top: .3rem;
}
.lede {
  margin: 0 auto;
  max-width: 36ch;
  color: var(--mist);
  font-size: 1rem;
  line-height: 1.4;
  text-wrap: balance;
  text-shadow: 0 1px 14px rgb(11 7 23 / .9);
}
.lede strong { color: var(--cream); font-weight: 600; }
.channels { display: grid; gap: .6rem; }
.cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .8rem .8rem .8rem 1.05rem;
  border-radius: 14px;
  background: var(--cream);
  color: var(--night);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 14px 40px -16px rgb(255 122 26 / .75);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-label { display: inline-flex; align-items: center; gap: .45rem; }
.cta small { display: block; color: #6b5a86; font-size: .8rem; font-weight: 500; }
.cta-logo { width: 1.35rem; height: 1.35rem; fill: #772ce8; }
.cta-play {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--ember));
}
.cta-play svg { width: .9rem; height: .9rem; fill: var(--night); margin-left: .12rem; }
.live-dot { display: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--live); animation: live 1.6s ease-out infinite; }
html.is-live .live-dot { display: inline-block; }
html.is-live .cta { box-shadow: 0 0 0 2px var(--live), 0 14px 40px -16px rgb(255 59 59 / .8); }
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgb(255 59 59 / .6); }
  100% { box-shadow: 0 0 0 .55rem rgb(255 59 59 / 0); }
}
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
}
@media (max-width: 359px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile {
  --brand: var(--pink);
  position: relative;
  display: grid;
  justify-items: center;
  gap: .3rem;
  padding: .75rem .3rem .65rem;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--cream);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tile svg { width: 1.45rem; height: 1.45rem; fill: currentColor; transition: color .2s ease; }
.tile--youtube { --brand: var(--youtube); }
.tile--tiktok { --brand: var(--tiktok); }
.tile--instagram { --brand: var(--pink); }
.tile--discord { --brand: var(--discord); border-color: rgb(88 101 242 / .55); background: linear-gradient(160deg, rgb(88 101 242 / .32), var(--glass) 70%); }
.tile--discord svg { color: #aab2ff; }
.tile-badge {
  position: absolute;
  top: -.5rem;
  right: -.25rem;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: var(--discord);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
  .cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--ember), 0 18px 48px -12px rgb(255 122 26 / .9); }
  .tile:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 12px 30px -14px var(--brand); }
  .tile:hover svg { color: var(--brand); }
}
.tile:focus-visible svg { color: var(--brand); }

/* Real numbers, kept honest */
.stats {
  position: relative;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.3rem;
  margin: .4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--mist);
  font-size: .88rem;
}
.stats b { color: var(--cream); font-weight: 700; font-variant-numeric: tabular-nums; }
/* narrow phones: the three numbers stay on one line, clear of Netlify's badge */
@media (max-width: 400px) { .stats { gap: .4rem .85rem; font-size: .85rem; } }
.scroll-hint {
  position: relative;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 1rem auto 0;
  color: var(--mist);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}
.scroll-hint:hover { color: var(--gold); }
/* phones: Netlify's badge sits bottom right, so the hint moves to the left edge of the same row */
@media (max-width: 559px) { .scroll-hint { justify-self: start; margin-inline: 0; } }
.scroll-hint svg { width: 1rem; height: 1rem; fill: var(--ember); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Desktop: text left, monk right */
@media (min-width: 960px) {
  .page { --monk: min(44vw, 74vh, 40rem); padding-block: 1.6rem; }
  @supports (height: 100svh) { .page { --monk: min(44vw, 74svh, 40rem); } }
  .layout {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "intro stage" "actions stage";
    justify-items: start;
    text-align: left;
    column-gap: clamp(1rem, 3vw, 3rem);
    max-width: var(--wrap);
    margin-inline: auto;
  }
  .intro { grid-area: intro; justify-items: start; align-self: end; margin-top: 0; }
  .headline { font-size: min(7.4vw, 8.5rem); }
  .stage { grid-area: stage; margin-top: 0; align-self: center; }
  .actions { grid-area: actions; align-self: start; margin-top: 1.4rem; }
  .lede { margin-inline: 0; max-width: 40ch; }
  .stats { justify-content: flex-start; }
  .scroll-hint { margin-left: 0; }
}

/* ---------- Sections below the hero ---------- */
.content {
  position: relative;
  background:
    radial-gradient(60rem 30rem at 15% 0%, rgb(255 122 26 / .07), transparent 60%),
    radial-gradient(50rem 30rem at 90% 35%, rgb(255 10 127 / .06), transparent 60%),
    linear-gradient(180deg, var(--night), var(--deep) 30%, var(--night));
}
.section {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 3.75rem max(16px, env(safe-area-inset-left, 0px)) 1rem;
}
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .9rem 1.5rem; margin-bottom: 1.5rem; }
.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1;
}
.section-sub { margin: .65rem 0 0; max-width: 52ch; color: var(--mist); font-size: 1.05rem; }

/* Tabs for the platforms */
.tabs { display: flex; flex-wrap: wrap; gap: .45rem; }
.tab {
  --brand: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--card);
  color: var(--mist);
  font: 600 .9rem var(--font-body);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.tab svg { width: 1rem; height: 1rem; fill: currentColor; }
.tab[aria-selected="true"] { color: var(--cream); border-color: var(--brand); background: color-mix(in srgb, var(--brand) 18%, var(--card)); }
.tab:hover { color: var(--cream); }
.tab--tiktok { --brand: var(--tiktok); }
.tab--youtube { --brand: var(--youtube); }
.tab--twitch { --brand: var(--twitch); }
.tab--instagram { --brand: var(--pink); }

/* Clip rails: swipe on phones, grid on desktop */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--col, 72%);
  gap: .9rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: .3rem .2rem 1rem;
  margin-inline: -.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 122 26 / .5) transparent;
}
.rail--portrait { --col: 52%; }
@media (min-width: 640px) { .rail { --col: 44%; } .rail--portrait { --col: 30%; } }
@media (min-width: 960px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .rail--portrait { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.clip {
  --brand: var(--ember);
  position: relative;
  display: grid;
  align-content: end;
  min-width: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: #1a1030;
  color: var(--cream);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.rail--portrait .clip { aspect-ratio: 9 / 16; }
.clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 38%, rgb(11 7 23 / .6) 64%, rgb(11 7 23 / .96));
}
.clip-body { position: relative; z-index: 2; display: grid; gap: .2rem; padding: .85rem .9rem .9rem; }
.clip-tag { color: color-mix(in srgb, var(--brand) 45%, var(--cream)); font-size: .8rem; font-weight: 600; }
.clip-title { margin: 0; font-weight: 600; font-size: .98rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clip-meta { display: flex; align-items: center; gap: .4rem; margin-top: .1rem; color: var(--mist); font-size: .8rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.clip-meta svg { width: .85rem; height: .85rem; fill: currentColor; opacity: .8; }
.clip-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 44%;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: rgb(11 7 23 / .55);
  border: 1px solid rgb(255 255 255 / .25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
  transition: background .25s ease;
}
.clip-play svg { width: 1.1rem; height: 1.1rem; fill: #fff; margin-left: .15rem; }
/* vertical clips often carry their title in the middle of the frame: keep the button below it */
.rail--portrait .clip-play { top: 62%; }
.badges { position: absolute; z-index: 2; top: .6rem; left: .6rem; display: flex; gap: .35rem; }
.badge { padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgb(11 7 23 / .72); color: var(--cream); border: 1px solid rgb(255 255 255 / .15); }
.badge--hot { background: linear-gradient(135deg, var(--gold), var(--ember)); color: var(--night); border: 0; }
.badge--new { background: var(--pink); color: #fff; border: 0; }
.clip--tiktok { --brand: var(--tiktok); }
.clip--youtube { --brand: var(--youtube); }
.clip--twitch { --brand: var(--twitch); }
.clip--instagram { --brand: var(--pink); }
@media (hover: hover) {
  .clip:hover { border-color: var(--brand); box-shadow: 0 18px 44px -26px var(--brand); }
  .clip:hover .clip-play { background: var(--brand); }
  .clip--tiktok:hover .clip-play svg { fill: var(--night); }
}
.clip:focus-visible .clip-play { background: var(--brand); }
.panel-more { display: inline-block; margin-top: .4rem; color: var(--mist); font-weight: 600; font-size: .95rem; text-decoration: underline; text-decoration-color: rgb(205 191 230 / .35); text-underline-offset: .25em; }
.panel-more:hover { color: var(--gold); text-decoration-color: currentColor; }
.privacy-note { margin: 1rem 0 0; max-width: 70ch; color: rgb(205 191 230 / .7); font-size: .82rem; }
.privacy-note a { color: var(--mist); }

/* Twitch block: last stream next to the channel card (goal, schedule, buttons) */
.twitch-grid { display: grid; gap: 1rem; }
@media (min-width: 860px) { .twitch-grid { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--card);
}
.vod { display: grid; }
.vod .clip { aspect-ratio: 16 / 9; border: 0; border-radius: 0; }
.vod-info { display: grid; gap: .25rem; padding: 1rem 1.1rem 1.2rem; }
.vod-game { color: color-mix(in srgb, var(--twitch) 55%, var(--cream)); font-size: .9rem; font-weight: 600; }
.vod-title { margin: 0; font-size: 1.15rem; font-weight: 600; }
.vod-meta { color: var(--mist); font-size: .88rem; font-variant-numeric: tabular-nums; }
.channel { display: grid; gap: 1.5rem; padding: 1.3rem 1.25rem 1.4rem; background: linear-gradient(165deg, rgb(145 70 255 / .2), var(--card) 60%); }
.channel h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.1; }
.status { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 -.6rem; color: var(--mist); font-weight: 600; }
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; background: rgb(205 191 230 / .45); }
html.is-live .status { color: var(--cream); }
html.is-live .status-dot { background: var(--live); animation: live 1.6s ease-out infinite; }

/* Follower goal as a segmented XP bar: ten blocks per hundred followers */
.goal { display: grid; gap: .65rem; }
.goal p { margin: 0; color: var(--mist); }
.xp {
  position: relative;
  height: 1rem;
  border-radius: 3px;
  background: rgb(255 255 255 / .08);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(10% - 3px), transparent 0 10%);
  mask: repeating-linear-gradient(90deg, #000 0 calc(10% - 3px), transparent 0 10%);
}
.xp-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--twitch), var(--pink) 60%, var(--ember));
  transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
}
.goal.is-in .xp-fill { width: var(--xp, 0%); }
.xp-nums { display: flex; justify-content: space-between; gap: 1rem; color: var(--mist); font-size: .9rem; font-variant-numeric: tabular-nums; }
.xp-nums b { color: var(--cream); }

/* Weekly plan */
.plan { display: grid; gap: .6rem; }
.plan p { margin: 0; color: var(--mist); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; margin: .15rem 0 0; padding: 0; list-style: none; }
.week li { display: grid; place-items: center; padding: .55rem 0; border-radius: 8px; font-size: .9rem; font-weight: 700; }
.week .on { color: var(--cream); background: linear-gradient(180deg, rgb(255 122 26 / .3), rgb(255 10 127 / .16)); border: 1px solid rgb(255 122 26 / .45); }
.week .off { color: rgb(205 191 230 / .45); border: 1px dashed rgb(205 191 230 / .22); }
.week .is-today { outline: 2px solid var(--gold); outline-offset: 2px; }
.plan small { color: rgb(205 191 230 / .75); font-size: .85rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.15rem;
  border: 0;
  border-radius: 12px;
  background: var(--cream);
  color: var(--night);
  font: 700 .98rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.btn--twitch { background: var(--twitch); color: #fff; }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid var(--edge); }
.btn--discord { background: var(--discord); color: #fff; padding: .95rem 1.45rem; font-size: 1.05rem; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px currentColor; }
  .btn--ghost:hover { border-color: var(--ember); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Games: a shelf of real covers, swipeable on phones */
.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 40%;
  gap: .9rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  margin: 0 -.2rem;
  padding: .4rem .2rem 1rem;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 122 26 / .5) transparent;
}
@media (min-width: 640px) { .shelf { grid-auto-columns: 26%; } }
@media (min-width: 960px) { .shelf { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; } }
.game { display: grid; align-content: start; gap: .1rem; min-width: 0; scroll-snap-align: start; }
.game-cover {
  position: relative;
  display: block;
  margin-bottom: .55rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: #1a1030;
}
.game-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-name { font-weight: 600; line-height: 1.25; }
.game-note { color: var(--mist); font-size: .88rem; }
.game.is-current .game-cover { border-color: var(--ember); box-shadow: 0 0 0 3px rgb(255 122 26 / .25), 0 18px 40px -22px rgb(255 122 26 / .9); }
.game-flag {
  position: absolute;
  left: .45rem;
  top: .45rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  color: var(--night);
  font-size: .75rem;
  font-weight: 700;
}
html.is-live .game.is-current .game-flag { background: var(--live); color: #fff; }

/* Discord */
.discord {
  display: grid;
  gap: 1.6rem;
  padding: clamp(1.5rem, 4.5vw, 3rem);
  border: 1px solid rgb(88 101 242 / .5);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(255 10 127 / .2), transparent 60%),
    radial-gradient(40rem 24rem at 0% 100%, rgb(88 101 242 / .38), transparent 60%),
    #140c2c;
  box-shadow: 0 40px 90px -50px rgb(88 101 242 / .9);
}
@media (min-width: 860px) { .discord { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.discord h2 { font-size: clamp(2.3rem, 7vw, 4.2rem); }
.discord-copy p { margin: .8rem 0 0; max-width: 52ch; color: var(--mist); font-size: 1.05rem; }
.discord-copy .discord-lead { margin-top: 1rem; max-width: 40ch; color: var(--cream); font-size: clamp(1.15rem, 2.8vw, 1.4rem); line-height: 1.4; }
.discord-count { display: flex; align-items: center; gap: .6rem; }
.discord-count b { color: var(--cream); font-variant-numeric: tabular-nums; }
.dot { flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 4px rgb(59 165 93 / .2); }
.discord .btn { justify-self: start; }

/* About */
.about { display: grid; gap: 1.6rem; }
@media (min-width: 860px) { .about { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.about-text p { margin: 0 0 1rem; max-width: 60ch; color: var(--mist); font-size: 1.05rem; }
.about-text p:first-child { color: var(--cream); font-size: 1.2rem; line-height: 1.45; }
.about-side { display: grid; gap: .7rem; }
.rules { padding: 1.1rem 1.15rem 1.2rem; border-radius: 14px; background: var(--card); border: 1px solid var(--edge); }
.rules h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.rules p { margin: 0; color: var(--mist); }
details.setup { border-radius: 14px; background: var(--card); border: 1px solid var(--edge); }
details.setup summary { padding: 1rem 1.15rem; font-weight: 600; cursor: pointer; }
details.setup ul { margin: 0; padding: 0 1.15rem 1rem 2.3rem; color: var(--mist); }
.business { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; padding: 1.2rem 1.3rem; border-radius: var(--radius); border: 1px dashed rgb(255 197 61 / .35); background: rgb(255 197 61 / .05); }
.business p { margin: 0; color: var(--mist); }
.business b { color: var(--cream); }

/* Footer */
.foot {
  max-width: var(--wrap);
  margin: 2.5rem auto 0;
  padding: 1.6rem max(16px, env(safe-area-inset-left, 0px)) calc(5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  border-top: 1px solid var(--edge);
  color: var(--mist);
  font-size: .88rem;
}
.foot nav { display: flex; gap: 1.2rem; }
.foot-note { flex-basis: 100%; margin: .2rem 0 0; color: rgb(205 191 230 / .6); font-size: .8rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* Player lightbox */
.player {
  width: min(94vw, 64rem);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: #0e0820;
  color: var(--cream);
  overflow: hidden;
}
.player::backdrop { background: rgb(5 3 12 / .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player.is-portrait { width: min(94vw, calc(82vh * 9 / 16 + 2px)); }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .6rem .6rem 1rem; }
.player-title { margin: 0; font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-close { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / .08); color: var(--cream); cursor: pointer; }
.player-close svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player.is-portrait .player-frame { aspect-ratio: 9 / 16; max-height: 82vh; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem 1rem .8rem; color: rgb(205 191 230 / .75); font-size: .78rem; }
.player-foot a { color: var(--mist); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .glow, .bloom, .float, .scroll-hint svg, .live-dot, .status-dot { animation: none !important; }
  .cta, .tile, .tile svg, .monk-img, .monk-gl, .clip, .btn, .xp-fill { transition: none; }
}

/* Legal pages */
.legal { max-width: 48rem; margin: 0 auto; padding: 2rem max(16px, env(safe-area-inset-left, 0px)) 6rem; }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.4rem); margin: 1.5rem 0 1.5rem; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
.legal p, .legal li { color: var(--mist); }
.legal a { color: var(--gold); }
.back { display: inline-flex; gap: .4rem; color: var(--mist); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--gold); }
