:root {
  --chaos-red: #e31b23;
  --chaos-yellow: #ffd400;
  --chaos-blue: #1f4fd8;
  --chaos-green: #1faa3a;
  --chaos-orange: #ff6b35;
  --bg-night: #0a0e1c;
  --bg-deep: #060914;
  --ink: #101828;
  --cream: #fff8e8;
  --muted: rgba(255, 248, 232, 0.82);
  --stripe-pink: #e31b23;
  --stripe-white: #ffffff;
  --lime: #1faa3a;
  --headset-pink: #ff6b35;
  --btn-dark: #12182a;
  --twitch: #9146ff;
  --twitch-deep: #772ce8;
  --discord: #5865f2;
  --discord-deep: #4752c4;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  /* aliases so leftover teal refs still look ok */
  --teal: #1f4fd8;
  --teal-mid: #173ea8;
  --teal-deep: #0d1a3d;
  --teal-sky: #3d6dff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--bg-night);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Custom animated voxel world —— */
.world {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65% 50% at 52% 6%, rgba(255, 212, 0, 0.28) 0%, transparent 55%),
    radial-gradient(42% 38% at 12% 30%, rgba(227, 27, 35, 0.34), transparent 68%),
    radial-gradient(46% 40% at 90% 24%, rgba(31, 79, 216, 0.36), transparent 70%),
    radial-gradient(38% 34% at 78% 78%, rgba(31, 170, 58, 0.22), transparent 70%),
    radial-gradient(90% 50% at 50% 100%, rgba(8, 12, 28, 0.92) 0%, transparent 55%),
    linear-gradient(180deg, #121830 0%, #0c1224 42%, #0a0e1c 100%);
  animation: sky-shift 14s ease-in-out infinite alternate;
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 40% at 50% 100%, rgba(227, 27, 35, 0.14), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(6, 9, 20, 0.6) 100%);
  pointer-events: none;
}

.grid {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -10%;
  height: 58%;
  background-image:
    linear-gradient(rgba(94, 212, 207, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 27, 35, 0.14) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(640px) rotateX(68deg);
  transform-origin: center top;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, transparent, #000 26%, #000 78%, transparent);
  animation: grid-drift 20s linear infinite;
}

.voxels {
  position: absolute;
  inset: 0;
}

.voxel {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--s);
  height: var(--s);
  background: var(--c);
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, 0.28),
    inset 2px 2px 0 rgba(255, 255, 255, 0.18),
    0 0 14px color-mix(in srgb, var(--c) 55%, transparent);
  opacity: var(--o, 0.8);
  animation: voxel-float var(--dur) var(--ease) infinite alternate;
  animation-delay: var(--delay);
}

.voxel.is-stripe {
  background: repeating-linear-gradient(
    180deg,
    var(--stripe-pink) 0 25%,
    var(--stripe-white) 25% 50%,
    var(--stripe-pink) 50% 75%,
    var(--stripe-white) 75% 100%
  );
}

.hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(30vh, 280px);
  background:
    linear-gradient(180deg, transparent, rgba(6, 19, 20, 0.85)),
    linear-gradient(
      90deg,
      #0d3a38 0%,
      #123f3d 28%,
      #0a2a2c 55%,
      #112f3a 78%,
      #0a2228 100%
    );
  clip-path: polygon(
    0 62%, 5% 48%, 10% 66%, 15% 38%, 21% 58%, 27% 30%, 33% 54%,
    39% 26%, 45% 50%, 51% 24%, 57% 48%, 63% 32%, 69% 56%, 75% 36%,
    81% 60%, 87% 42%, 93% 64%, 100% 50%,
    100% 100%, 0 100%
  );
  box-shadow: 0 -24px 60px rgba(31, 79, 216, 0.12);
  animation: hills-breathe 10s ease-in-out infinite alternate;
}

.stripe-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.55rem;
  background: linear-gradient(
    90deg,
    var(--stripe-pink) 0%,
    #ff8fb0 28%,
    #1f4fd8 55%,
    #1faa3a 78%,
    var(--stripe-pink) 100%
  );
  box-shadow: 0 0 18px rgba(227, 27, 35, 0.35), 0 0 16px rgba(31, 79, 216, 0.25);
}

.page {
  position: relative;
  z-index: 1;
}

/* —— Hero (first viewport) —— */
.shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(0.85rem, 2.5vh, 1.5rem) clamp(1rem, 3vw, 2rem) clamp(1.4rem, 3.5vh, 2rem);
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.35rem, 1vh, 0.75rem);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--cream);
  filter:
    drop-shadow(0 3px 0 rgba(6, 19, 20, 0.7))
    drop-shadow(0 0 18px rgba(31, 79, 216, 0.45))
    drop-shadow(0 0 28px rgba(227, 27, 35, 0.28));
  animation: rise-in 0.8s var(--ease) both;
}

.hero-player {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
  animation: rise-in 0.9s var(--ease) both;
}

.livestream-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.livestream-text {
  flex: 1 1 14rem;
  min-width: 0;
}

.btn-open-twitch {
  flex-shrink: 0;
  min-width: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1rem;
  background: linear-gradient(180deg, var(--twitch) 0%, var(--twitch-deep) 100%);
  color: var(--cream);
  border-color: #b07aff;
  box-shadow:
    4px 4px 0 rgba(10, 8, 20, 0.85),
    0 0 18px rgba(145, 70, 255, 0.35);
}

.btn-open-twitch:hover,
.btn-open-twitch:focus-visible {
  transform: translate(-2px, -2px);
}

.btn-open-twitch:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.livestream-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow:
    0 1px 0 rgba(20, 32, 34, 0.55),
    0 0 10px rgba(20, 32, 34, 0.35);
}

.livestream-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--cream);
  text-shadow:
    0 2px 0 rgba(20, 32, 34, 0.35),
    0 0 12px rgba(20, 32, 34, 0.25);
}

.livestream-title em {
  font-style: normal;
  color: #ff8fb0;
  text-shadow:
    0 1px 0 rgba(20, 32, 34, 0.4),
    0 0 10px rgba(227, 27, 35, 0.35);
}

.mascot {
  width: min(38vmin, 260px);
  max-height: 36svh;
  aspect-ratio: 1;
  flex-shrink: 0;
  animation: logo-glow 4.5s ease-in-out infinite;
}

.mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(31, 79, 216, 0.4))
    drop-shadow(0 0 24px rgba(227, 27, 35, 0.3))
    drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

.lede {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1rem, 2.3vw, 1.22rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
  text-shadow: 0 1px 0 rgba(6, 19, 20, 0.55);
  animation: rise-in 0.85s var(--ease) 0.14s both;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.2rem;
  animation: rise-in 0.85s var(--ease) 0.22s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 9.75rem;
  padding: 0.9rem 1.3rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  border: 3px solid var(--ink);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.btn-twitch {
  background: linear-gradient(180deg, var(--twitch) 0%, var(--twitch-deep) 100%);
  color: var(--cream);
  border-color: #b07aff;
  box-shadow:
    4px 4px 0 rgba(10, 8, 20, 0.85),
    0 0 18px rgba(145, 70, 255, 0.35);
}

.btn-discord {
  background: linear-gradient(180deg, var(--discord) 0%, var(--discord-deep) 100%);
  color: var(--cream);
  border-color: #8b95f7;
  box-shadow:
    4px 4px 0 rgba(10, 8, 20, 0.85),
    0 0 18px rgba(88, 101, 242, 0.3);
}

.btn-youtube {
  background: linear-gradient(180deg, #ff2a2a 0%, #c40000 100%);
  color: #fff;
  border-color: #ff6b6b;
  box-shadow:
    4px 4px 0 rgba(10, 8, 20, 0.85),
    0 0 18px rgba(255, 0, 0, 0.35);
}

.btn-tiktok {
  background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
  color: #fff;
  border-color: #69c9d0;
  box-shadow:
    4px 4px 0 rgba(238, 29, 82, 0.55),
    0 0 18px rgba(105, 201, 208, 0.28);
}

.btn:hover,
.btn:focus-visible {
  transform: translate(-2px, -2px);
}

.btn-twitch:hover,
.btn-twitch:focus-visible {
  box-shadow:
    4px 4px 0 rgba(10, 8, 20, 0.85),
    0 0 28px rgba(145, 70, 255, 0.55);
}

.btn-discord:hover,
.btn-discord:focus-visible {
  box-shadow:
    4px 4px 0 rgba(10, 8, 20, 0.85),
    0 0 28px rgba(88, 101, 242, 0.5);
}

.btn-youtube:hover,
.btn-youtube:focus-visible {
  box-shadow:
    4px 4px 0 rgba(10, 8, 20, 0.85),
    0 0 28px rgba(255, 0, 0, 0.55);
}

.btn-tiktok:hover,
.btn-tiktok:focus-visible {
  box-shadow:
    4px 4px 0 rgba(238, 29, 82, 0.7),
    0 0 28px rgba(105, 201, 208, 0.45);
}

.btn-open-twitch:hover,
.btn-open-twitch:focus-visible {
  box-shadow:
    4px 4px 0 rgba(10, 8, 20, 0.85),
    0 0 28px rgba(145, 70, 255, 0.55);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn.is-pending {
  opacity: 0.75;
}

.btn-twitch.is-live {
  background: linear-gradient(180deg, #ff4d8d 0%, var(--stripe-pink) 100%);
  border-color: #ff8fb0;
  color: var(--cream);
  animation: live-pulse 1.8s ease-in-out infinite;
  box-shadow:
    4px 4px 0 rgba(10, 8, 20, 0.85),
    0 0 22px rgba(227, 27, 35, 0.45);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  animation: rise-in 0.85s var(--ease) 0.3s both;
}

.scroll-cue::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: cue-bob 1.4s ease-in-out infinite;
}

/* —— Story —— */
.story {
  position: relative;
  padding: clamp(3.5rem, 9vh, 6rem) 1.25rem;
  background:
    radial-gradient(55% 40% at 80% 0%, rgba(227, 27, 35, 0.14), transparent 70%),
    radial-gradient(50% 35% at 10% 20%, rgba(31, 79, 216, 0.14), transparent 70%),
    linear-gradient(180deg, #0a2426 0%, #07191a 100%);
}

.story::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0.55rem;
  background: repeating-linear-gradient(
    90deg,
    var(--stripe-pink) 0 22px,
    var(--stripe-white) 22px 44px
  );
}

.story-inner {
  width: min(42rem, 100%);
  margin: 0 auto;
}

.story-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  text-shadow: 0 0 12px rgba(141, 255, 74, 0.45);
}

.story-title {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cream);
  text-shadow:
    0 0 18px rgba(31, 79, 216, 0.28),
    0 2px 0 rgba(0, 0, 0, 0.35);
}

.story-body {
  display: grid;
  gap: 1.05rem;
}

.story-body p {
  margin: 0;
  font-size: clamp(1.02rem, 2vw, 1.14rem);
  line-height: 1.65;
  color: rgba(247, 255, 253, 0.9);
  font-weight: 500;
}

.story-motto {
  margin: 1.75rem 0 0;
  padding: 1rem 1.15rem;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(18, 40, 42, 0.92), rgba(18, 40, 42, 0.92)) padding-box,
    linear-gradient(105deg, var(--stripe-pink), var(--teal-sky)) border-box;
  box-shadow:
    4px 4px 0 rgba(6, 19, 20, 0.85),
    0 0 24px rgba(31, 79, 216, 0.18);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.story-motto::before {
  content: "Motto";
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

/* —— Twitch player —— */
.player-shell {
  border: 2px solid transparent;
  background:
    linear-gradient(#0d1517, #0d1517) padding-box,
    linear-gradient(135deg, rgba(227, 27, 35, 0.9), rgba(31, 79, 216, 0.85), rgba(145, 70, 255, 0.7)) border-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(31, 79, 216, 0.18),
    0 0 22px rgba(227, 27, 35, 0.12);
  overflow: hidden;
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: linear-gradient(90deg, rgba(227, 27, 35, 0.16), rgba(31, 79, 216, 0.12));
  color: rgba(247, 255, 253, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-channel {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.player-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  background: #6b7780;
}

.hero-player.is-live .player-dot {
  background: var(--stripe-pink);
  box-shadow: 0 0 10px var(--stripe-pink);
  animation: blink 1s steps(2, end) infinite;
}

.hero-player.is-live .player-tag {
  color: var(--stripe-pink);
  text-shadow: 0 0 10px rgba(227, 27, 35, 0.55);
}

.player-tag {
  flex-shrink: 0;
  color: rgba(247, 255, 253, 0.55);
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-player-caption {
  margin: 0;
  max-width: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cream);
  text-shadow:
    0 1px 0 rgba(20, 32, 34, 0.55),
    0 0 8px rgba(20, 32, 34, 0.35);
}

/* Desktop: speler links (breed), Brulpot center, status rechts */
@media (min-width: 980px) {
  .shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(1rem, 2.5vw, 2rem);
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: clamp(1rem, 3vw, 2.5rem);
    padding-right: clamp(1rem, 3vw, 2.5rem);
  }

  .hero-player {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero-main {
    grid-column: 2;
    justify-self: center;
    width: min(420px, 100%);
  }

  .status-stage {
    grid-column: 3;
    justify-self: center;
    align-self: center;
  }
}

/* —— Clips / highlights —— */
.clips {
  padding: clamp(3rem, 8vh, 5rem) 1.25rem;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(31, 79, 216, 0.18), transparent 70%),
    radial-gradient(45% 40% at 90% 30%, rgba(227, 27, 35, 0.12), transparent 70%),
    linear-gradient(180deg, #0b2224 0%, #061314 100%);
}

.clips-inner {
  width: min(40rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.clips-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--cream);
  text-shadow: 0 0 18px rgba(31, 79, 216, 0.25);
}

.clips-intro {
  margin: 0 auto 1.4rem;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--muted);
}

.clips-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.site-foot {
  padding: 1.25rem 1.25rem 2rem;
  text-align: center;
  background: #040d0e;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  border-top: 1px solid rgba(31, 79, 216, 0.22);
  box-shadow: inset 0 12px 28px rgba(227, 27, 35, 0.05);
}

.site-foot p {
  margin: 0;
}

/* —— Status: offline Borrelbuurt / live Twitch —— */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--cream);
  background: var(--stripe-pink);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  animation: rise-in 0.7s var(--ease) both;
}

.live-badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--cream);
  animation: blink 1s steps(2, end) infinite;
}

.live-badge[hidden] {
  display: none !important;
}

.status-stage {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  min-width: 0;
  max-width: min(24rem, 100%);
  animation: rise-in 0.9s var(--ease) 0.1s both;
}

.status-stage--no-skin {
  justify-content: center;
}

.status-stage--no-skin .status-panel,
.status-stage--no-skin .status-spotlight {
  margin-inline: auto;
  width: min(22rem, 100%);
}

.status-panel {
  min-width: min(15rem, 58vw);
  max-width: 22rem;
  padding: 0.8rem 0.95rem;
  text-align: left;
  background: linear-gradient(160deg, rgba(28, 58, 58, 0.96) 0%, rgba(18, 36, 40, 0.98) 100%);
  border: 3px solid rgba(94, 212, 207, 0.55);
  color: var(--cream);
  box-shadow:
    4px 4px 0 rgba(6, 19, 20, 0.9),
    0 0 24px rgba(31, 79, 216, 0.18),
    inset 0 1px 0 rgba(247, 255, 253, 0.08);
  backdrop-filter: blur(8px);
}

.status-spotlight {
  min-width: min(15rem, 58vw);
  max-width: 22rem;
  padding: 0;
  text-align: center;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--cream);
}

.status-lead {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-shadow:
    0 1px 0 rgba(6, 19, 20, 0.65),
    0 0 16px rgba(31, 79, 216, 0.22);
}

.status-spotlight.is-sleeping .status-lead {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(0.98rem, 2vw, 1.18rem);
  line-height: 1.3;
}

.borrel-logo-link {
  display: inline-block;
  margin: 0 auto;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
  filter:
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 16px rgba(31, 79, 216, 0.2));
}

.borrel-logo-link:hover,
.borrel-logo-link:focus-visible {
  transform: translateY(-4px) scale(1.03);
  filter:
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 22px rgba(31, 79, 216, 0.35));
}

.borrel-logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin-inline: auto;
}

.borrel-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
  color: var(--cream);
  transform: rotate(-6deg);
  animation: hint-wiggle 2.8s ease-in-out infinite;
}

.borrel-hint-arrow {
  width: 2.6rem;
  height: 2rem;
  flex-shrink: 0;
  transform: translateY(0.15rem);
}

.borrel-hint-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(6, 19, 20, 0.55);
}

.btn-borrel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--cream);
  background: #1f6fe5;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.16s var(--ease);
}

.btn-borrel:hover,
.btn-borrel:focus-visible {
  transform: translate(-2px, -2px);
}

.btn-borrel:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-borrel-compact {
  margin-top: 0.75rem;
  background: #243041;
}

.live-meta {
  margin: 0 0 0.95rem;
}

.live-kicker {
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  text-shadow: 0 0 10px rgba(141, 255, 74, 0.35);
}

.live-title {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-game {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7ad7ff;
}

.live-viewers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.live-viewers svg {
  width: 0.95rem;
  height: 0.95rem;
}

body.is-live .mascot {
  max-height: 32svh;
  width: min(34vmin, 230px);
}

.status-panel.is-live {
  border-color: var(--stripe-pink);
  box-shadow:
    4px 4px 0 rgba(6, 19, 20, 0.9),
    0 0 28px rgba(227, 27, 35, 0.28),
    inset 0 1px 0 rgba(247, 255, 253, 0.08);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-glow {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 14px rgba(31, 79, 216, 0.35)) drop-shadow(0 0 18px rgba(227, 27, 35, 0.22));
  }
  50% {
    transform: translateY(-6px) scale(1.02);
    filter: drop-shadow(0 0 24px rgba(31, 79, 216, 0.55)) drop-shadow(0 0 28px rgba(227, 27, 35, 0.4));
  }
}

@keyframes voxel-float {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-16px) rotate(6deg); }
}

@keyframes sky-shift {
  from { filter: saturate(1) brightness(1); }
  to { filter: saturate(1.18) brightness(1.08); }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 52px 52px, 52px 52px; }
}

@keyframes hills-breathe {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

@keyframes blink {
  50% { opacity: 0.25; }
}

@keyframes live-pulse {
  0%, 100% {
    box-shadow:
      4px 4px 0 rgba(10, 8, 20, 0.85),
      0 0 18px rgba(227, 27, 35, 0.35);
  }
  50% {
    box-shadow:
      4px 4px 0 rgba(10, 8, 20, 0.85),
      0 0 28px rgba(227, 27, 35, 0.65);
  }
}

@keyframes hint-wiggle {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(3px); }
}

@keyframes skin-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes cue-bob {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(3px); }
}

@media (max-height: 720px) {
  .mascot {
    width: min(30vmin, 200px);
    max-height: 30svh;
  }

  .brand {
    font-size: clamp(2.6rem, 9vw, 4.4rem);
  }
}

@media (max-width: 420px) {
  .cta {
    width: 100%;
  }

  .btn {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
  }
}

/* Mobiel/smal: content + status eerst, speler onderaan */
@media (max-width: 979px) {
  .shell {
    flex-direction: column;
    align-items: center;
  }

  .hero-main {
    order: 1;
  }

  .status-stage {
    order: 2;
    width: 100%;
    max-width: 26rem;
    justify-content: center;
    margin: 0.35rem 0 0.5rem;
  }

  .hero-player {
    order: 3;
    max-width: 720px;
    margin-top: 0.35rem;
  }
}

@media (max-width: 520px) {
  .status-stage {
    flex-direction: column;
    gap: 1rem;
  }

  .status-panel,
  .status-spotlight {
    text-align: center;
    width: 100%;
  }

  .live-viewers {
    justify-content: center;
  }
}

/* Alleen zichtbaar met ?debug — lokaal in die browser */
.debug-live {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: min(220px, calc(100vw - 24px));
  padding: 0.7rem;
  background: rgba(20, 32, 34, 0.92);
  border: 3px solid var(--ink);
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-body);
}

.debug-live-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.debug-live-toggle,
.debug-live-reset {
  appearance: none;
  border: 3px solid var(--ink);
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  background: var(--cream);
}

.debug-live-toggle.is-on {
  background: var(--stripe-pink);
  color: var(--cream);
}

.debug-live-reset {
  background: #243041;
  color: var(--cream);
}

/* —— Intro audio (zwevende speler) —— */
.intro-audio {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  width: min(300px, calc(100vw - 28px));
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.8rem 0.7rem;
  border: 2px solid rgba(176, 122, 255, 0.55);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(18, 28, 40, 0.95), rgba(12, 20, 28, 0.97));
  color: var(--cream);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(145, 70, 255, 0.28);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.intro-audio-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.intro-audio-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.intro-audio-btn:hover .intro-audio-icon,
.intro-audio-btn:focus-visible .intro-audio-icon {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(145, 70, 255, 0.6);
}

.intro-audio-btn:focus-visible {
  outline: none;
}

.intro-audio-icon {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--twitch) 0%, var(--twitch-deep) 100%);
  box-shadow: 0 0 14px rgba(145, 70, 255, 0.45);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.intro-audio-icon svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.05rem;
  height: 1.05rem;
}

.intro-audio-icon .icon-pause,
.intro-audio.is-playing .intro-audio-icon .icon-play {
  display: none;
}

.intro-audio.is-playing .intro-audio-icon .icon-pause {
  display: block;
}

.intro-audio.is-playing .intro-audio-icon {
  animation: audio-pulse 1.6s ease-in-out infinite;
}

.intro-audio-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.intro-audio-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 255, 253, 0.7);
}

.intro-audio-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intro-audio-time {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: rgba(247, 255, 253, 0.72);
}

.intro-audio-seek,
.intro-audio-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.42rem;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(145, 70, 255, 0.95) 0 var(--fill, 0%),
    rgba(247, 255, 253, 0.18) var(--fill, 0%) 100%
  );
  outline: none;
  cursor: pointer;
}

.intro-audio-seek::-webkit-slider-thumb,
.intro-audio-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #f7fffd;
  border: 2px solid #b07aff;
  box-shadow: 0 0 10px rgba(145, 70, 255, 0.45);
}

.intro-audio-seek::-moz-range-thumb,
.intro-audio-volume::-moz-range-thumb {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #f7fffd;
  border: 2px solid #b07aff;
  box-shadow: 0 0 10px rgba(145, 70, 255, 0.45);
}

.intro-audio-seek::-moz-range-track,
.intro-audio-volume::-moz-range-track {
  background: transparent;
  border: 0;
}

.intro-audio-volume-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.intro-audio-vol-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: rgba(247, 255, 253, 0.78);
}

.intro-audio-vol-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.intro-audio.is-muted .intro-audio-vol-icon {
  opacity: 0.45;
}

@keyframes audio-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(145, 70, 255, 0.35); }
  50% { box-shadow: 0 0 22px rgba(145, 70, 255, 0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .mascot,
  .lede,
  .cta,
  .status-stage,
  .voxel,
  .sky,
  .grid,
  .hills,
  .live-badge,
  .btn-twitch.is-live,
  .mc-skin,
  .live-badge::before,
  .scroll-cue,
  .scroll-cue::after,
  .borrel-hint,
  .intro-audio.is-playing .intro-audio-icon {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .brand,
  .lede,
  .cta,
  .status-stage {
    opacity: 1;
    transform: none;
  }
}


/* —— BorrelmanLive chaos accents —— */
.page[data-creator="borrelmanlive"] .hero-main {
  gap: clamp(1.1rem, 2.4vh, 1.85rem);
}

.page[data-creator="borrelmanlive"] .brand {
  position: relative;
  z-index: 2;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
  text-shadow:
    0 0 0.05em rgba(255, 212, 0, 0.95),
    0.06em 0.06em 0 #e31b23,
    -0.05em 0.04em 0 #1f4fd8,
    0 0 1.4em rgba(255, 212, 0, 0.35);
  animation: brand-wobble 3.6s var(--ease) infinite;
}

@keyframes brand-wobble {
  0%, 100% { transform: rotate(-1deg) scale(1); }
  40% { transform: rotate(1.1deg) scale(1.015); }
  70% { transform: rotate(-0.5deg) scale(1.008); }
}

.page[data-creator="borrelmanlive"] .mascot {
  position: relative;
  z-index: 1;
  margin-top: 0.65rem;
  padding-top: 0.35rem;
}

.page[data-creator="borrelmanlive"] .mascot img {
  filter: drop-shadow(0 12px 28px rgba(227, 27, 35, 0.35))
          drop-shadow(0 0 24px rgba(255, 212, 0, 0.22));
  animation: mascot-bob 3.2s ease-in-out infinite;
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-6px) rotate(1.2deg); }
}

.page[data-creator="borrelmanlive"] .status-lead--invite {
  margin-top: 0.85rem;
  max-width: 22ch;
}

.page[data-creator="borrelmanlive"] .cta {
  max-width: 28rem;
  gap: 0.65rem;
}

.page[data-creator="borrelmanlive"] .cta .btn {
  min-width: 8.5rem;
  flex: 1 1 calc(50% - 0.4rem);
}

.stripe-rail {
  background: repeating-linear-gradient(
    115deg,
    #e31b23 0 18px,
    #ffd400 18px 36px,
    #1f4fd8 36px 54px,
    #1faa3a 54px 72px,
    #fff 72px 90px
  ) !important;
  opacity: 0.9;
}

.lede,
.livestream-kicker,
.livestream-title,
.hero-player-caption {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 0 12px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .page[data-creator="borrelmanlive"] .brand,
  .page[data-creator="borrelmanlive"] .mascot img {
    animation: none !important;
  }
}
