/* ============================================================================
   CHAT ARENA — "NIGHT STADIUM" design kit
   ----------------------------------------------------------------------------
   The old site was Kick green from edge to edge. That cannot survive the move to
   three platforms: if the brand IS one platform's colour, every other platform
   looks like a guest. So the brand is now a floodlit stadium at night — neutral
   ink and warm floodlight — and each platform keeps ONLY its own badge colour.
   Colour therefore carries meaning: amber = Chat Arena, green = Kick,
   purple = Twitch, red = YouTube.

   Fonts are self-hosted on purpose. The privacy policy promises no third-party
   requests, and a Google Fonts <link> would quietly break that promise.
   ============================================================================ */

@font-face{font-family:'Anybody';font-style:normal;font-weight:400 900;font-stretch:75% 125%;
  font-display:swap;src:url('/fonts/anybody-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Anybody';font-style:normal;font-weight:400 900;font-stretch:75% 125%;
  font-display:swap;src:url('/fonts/anybody-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;
  font-display:swap;src:url('/fonts/instrument-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;
  font-display:swap;src:url('/fonts/instrument-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

:root{
  /* ---- surfaces: the dark of a stadium bowl after the lights drop ---- */
  --ink-900:#06080e;
  --ink-800:#0a0d16;
  --ink-700:#111624;
  --ink-600:#181f33;
  --line:#242e47;
  --line-soft:#1a2236;

  /* ---- ink ---- */
  --text:#eef1fa;
  --muted:#8a95b4;
  --dim:#59637f;

  /* ---- the brand: floodlight ---- */
  --flood:#ffb020;
  --flood-hi:#ffd772;
  --flood-dim:rgba(255,176,32,.14);
  --volt:#46e8ff;            /* secondary accent, used sparingly */
  --volt-dim:rgba(70,232,255,.12);

  /* ---- platforms: their colours, never ours ---- */
  --kick:#53fc18;
  --twitch:#9146ff;
  --youtube:#ff0033;

  /* ---- type ---- */
  --display:'Anybody','Arial Narrow',system-ui,sans-serif;
  --body:'Instrument Sans',system-ui,-apple-system,sans-serif;
  --mono:ui-monospace,'SF Mono',Menlo,Consolas,monospace;

  /* ---- geometry ---- */
  --r-sm:10px; --r:16px; --r-lg:24px;
  --shadow:0 24px 60px -20px rgba(0,0,0,.85);
  --glow:0 0 40px -6px var(--flood-dim);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;color:var(--text);font-family:var(--body);line-height:1.6;
  background:var(--ink-900);
  /* floodlights: two warm pools high above the bowl, plus a cold rim from behind */
  background-image:
    radial-gradient(900px 520px at 18% -12%, rgba(255,176,32,.13), transparent 62%),
    radial-gradient(760px 460px at 84% -6%, rgba(70,232,255,.09), transparent 60%),
    radial-gradient(1200px 700px at 50% 108%, rgba(255,176,32,.05), transparent 60%);
  background-attachment:fixed;
}
/* film grain keeps the large dark areas from banding on a projector or an OBS capture */
body::after{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,h2,h3,.display{
  font-family:var(--display);font-weight:800;font-stretch:118%;
  letter-spacing:-.02em;line-height:.96;margin:0;text-wrap:balance;
}
h1{font-size:clamp(38px,7.4vw,86px);text-transform:uppercase}
h2{font-size:clamp(26px,3.9vw,46px);text-transform:uppercase}
h3{font-size:clamp(17px,1.9vw,22px)}
p{margin:0 0 14px}
a{color:var(--flood)}

.wrap{max-width:1140px;margin:0 auto;padding:0 22px}
.eyebrow{
  font-family:var(--mono);font-size:11px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--flood);display:inline-flex;align-items:center;gap:9px;margin-bottom:14px;
}
.eyebrow::before{content:"";width:26px;height:1px;background:var(--flood);opacity:.7}
.lede{color:var(--muted);font-size:clamp(16px,1.55vw,19px);max-width:60ch}

/* ---- cards: a lit panel on a dark stand ---- */
.card{
  background:linear-gradient(168deg,var(--ink-700),var(--ink-800));
  border:1px solid var(--line-soft);border-radius:var(--r-lg);padding:26px;
  position:relative;overflow:hidden;
}
.card::before{ /* top edge catches the floodlight */
  content:"";position:absolute;inset:0 0 auto 0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.16),transparent);
}

/* ---- buttons ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--display);font-weight:800;font-stretch:112%;text-transform:uppercase;
  letter-spacing:.02em;font-size:15px;border:0;border-radius:999px;padding:15px 30px;
  cursor:pointer;text-decoration:none;transition:transform .16s cubic-bezier(.2,.9,.3,1.3),box-shadow .2s,background .2s;
}
.btn-primary{background:var(--flood);color:#231500;box-shadow:0 10px 30px -10px rgba(255,176,32,.75)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 40px -12px rgba(255,176,32,.9)}
.btn-ghost{background:transparent;color:var(--text);border:1px solid var(--line)}
.btn-ghost:hover{border-color:var(--flood);color:var(--flood);transform:translateY(-2px)}
.btn:disabled{opacity:.45;cursor:default;transform:none!important;box-shadow:none}

/* ---- platform chips: the only place platform colour is allowed ---- */
.pf{--c:var(--muted);display:inline-flex;align-items:center;gap:8px;
  font-family:var(--mono);font-size:12px;font-weight:700;letter-spacing:.04em;
  border:1px solid color-mix(in srgb,var(--c) 45%,transparent);
  background:color-mix(in srgb,var(--c) 11%,transparent);
  color:var(--c);border-radius:999px;padding:7px 14px;white-space:nowrap}
.pf-kick{--c:var(--kick)} .pf-twitch{--c:var(--twitch)} .pf-youtube{--c:var(--youtube)}
.pf[data-soon]{opacity:.62}
.pf[data-soon]::after{content:attr(data-soon);font-size:10px;opacity:.85;
  border-left:1px solid currentColor;padding-left:8px;margin-left:2px}

/* ---- entrance choreography: one orchestrated reveal beats scattered fidgets ---- */
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes fadein{from{opacity:0}to{opacity:1}}
.rise{animation:rise .8s cubic-bezier(.16,.84,.32,1) both}
.d1{animation-delay:.06s}.d2{animation-delay:.14s}.d3{animation-delay:.22s}
.d4{animation-delay:.3s}.d5{animation-delay:.38s}.d6{animation-delay:.46s}

/* reveal on scroll, set by a tiny IntersectionObserver */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s cubic-bezier(.16,.84,.32,1)}
.reveal.on{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  .rise,.reveal{animation:none!important;transition:none!important;opacity:1!important;transform:none!important}
  *{scroll-behavior:auto!important}
}

/* ---- focus: visible, on brand, never removed ---- */
:where(a,button,input,select,summary,[tabindex]):focus-visible{
  outline:2px solid var(--flood);outline-offset:3px;border-radius:6px}

/* ---- platform mini-icons (sprite injected by /platform-icons.js) ---- */
.pfi{width:1em;height:1em;display:inline-block;vertical-align:-0.14em;flex:0 0 auto;fill:currentColor}
.pf .pfi{width:1.05em;height:1.05em}
.pfi-kick{color:var(--kick)} .pfi-twitch{color:var(--twitch)} .pfi-youtube{color:var(--youtube)}

/* ---- Chat Arena+ call to action ----
   This is the one button on the site that has to be found, so it is deliberately louder than
   the rest: a moving sheen, a slow breathing glow and a star that ticks. All of it is paused
   under prefers-reduced-motion by the rule further up. */
@keyframes plusGlow{
  0%,100%{box-shadow:0 10px 34px -12px rgba(255,176,32,.75), 0 0 0 0 rgba(255,176,32,.35)}
  50%    {box-shadow:0 16px 46px -12px rgba(255,176,32,.95), 0 0 0 10px rgba(255,176,32,0)}
}
@keyframes plusSheen{from{transform:translateX(-120%) skewX(-18deg)}to{transform:translateX(320%) skewX(-18deg)}}
@keyframes plusStar{0%,88%,100%{transform:rotate(0) scale(1)}94%{transform:rotate(18deg) scale(1.28)}}

.btn-plus{
  position:relative;overflow:hidden;isolation:isolate;
  background:linear-gradient(112deg,#ffcf5a,#ffb020 42%,#ff8f00);
  color:#2a1a00;font-size:16px;padding:17px 34px;
  animation:plusGlow 2.6s ease-in-out infinite;
}
.btn-plus::after{                      /* the sheen sweep */
  content:"";position:absolute;inset:0 auto 0 0;width:38%;z-index:-1;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.62),transparent);
  animation:plusSheen 3.4s cubic-bezier(.5,0,.5,1) infinite;
}
.btn-plus:hover{transform:translateY(-2px) scale(1.015)}
.btn-plus .star{display:inline-block;animation:plusStar 3.4s ease-in-out infinite;transform-origin:50% 55%}

@media (prefers-reduced-motion:reduce){
  .btn-plus,.btn-plus::after,.btn-plus .star{animation:none!important}
}

/* the Chat Arena+ tab itself, so the section gets noticed before the button can sell it */
.plus-tab{position:relative;color:var(--flood)!important}
.plus-tab .star{display:inline-block;animation:plusStar 3.4s ease-in-out infinite;transform-origin:50% 55%}
.plus-tab::after{
  content:"";position:absolute;left:14px;right:14px;bottom:5px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,transparent,var(--flood),transparent);opacity:.6;
  animation:plusGlowLine 2.8s ease-in-out infinite;
}
@keyframes plusGlowLine{0%,100%{opacity:.25;transform:scaleX(.6)}50%{opacity:.85;transform:scaleX(1)}}
@media (prefers-reduced-motion:reduce){ .plus-tab .star,.plus-tab::after{animation:none!important} }

/* live-channel chips: the platform icon is the click target when an arena streams to several */
.live-chip{display:inline-flex;align-items:center;gap:8px}
.pfl{display:inline-flex;align-items:center;padding:2px;border-radius:6px;line-height:0;
  opacity:.85;transition:opacity .15s,transform .15s}
.pfl:hover{opacity:1;transform:translateY(-1px)}
