/* ==========================================================================
   TRYSTONS.VIP
   1. Fonts
   2. Design tokens
   3. Base / reset
   4. Shared helpers
   5. Site nav
   6. Hero
   7. Content wrapper
   8. Bonus cards
   9. Kick stream
  10. Socials
  11. Footer
  12. Leaderboard page
  13. Animations
  14. Responsive
   ========================================================================== */


/* 1. Fonts ================================================================ */

@font-face {
  font-family: "PP Neue Corp";
  src: url("../assets/fonts/ppneuecorp-ultrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Corp Wide";
  src: url("../assets/fonts/ppneuecorp-wide-ultrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Variable font: one file covers the whole 300–900 range. */
@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Blinker";
  src: url("../assets/fonts/blinker-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gasoek One";
  src: url("../assets/fonts/gasoek-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* 2. Design tokens ======================================================== */

:root {
  /* Backgrounds */
  --bg-page: #050a18;
  --bg-page-rgb: 5, 10, 24; /* same colour, for building rgba() gradients */
  --bg-hero: #050a18;
  --bg-bottom: #02040c;
  --bg-bottom-rgb: 2, 4, 12;
  --bg-panel: #0c1426;
  --bg-pill: #131c32;
  --bg-footer: #010208;
  --border-soft: #1a243a;

  /* Text */
  --text-main: #e0e0e0;
  --text-muted: #647181;
  --text-dim: #6b7d96;

  /* Accents */
  --blue: #55afff;
  --gold: #ffca39;
  --green: #53fc18;

  /* 3D pill buttons (cyan face + deeper rim) */
  --btn-face: #3de2ff;
  --btn-depth: #1494b0;
  --btn-text: #0c1a2e;
  --btn-face-alt: #1e3a4f;
  --btn-depth-alt: #0a1c28;
  --btn-text-alt: #d8f7ff;
  --btn-face-green: #53fc18;
  --btn-depth-green: #2c8b2f;
  --btn-face-gold: #ffc857;
  --btn-depth-gold: #b07a12;

  /* Gradients reused across headings and buttons */
  --grad-blue: linear-gradient(#bac6d2 28.3%, #4dccff 76.63%);
  --grad-silver: linear-gradient(#e9e9e9 28.3%, #c5c5c5 76.63%);
  --grad-gold: linear-gradient(#ffdc7b, #ffc012);
  --grad-green: linear-gradient(#73ff42, #53fc18);

  /* Type */
  --font-body: "Rubik", sans-serif;
  --font-display: "PP Neue Corp", sans-serif;
  --font-hero: "Gasoek One", sans-serif;
  --font-accent: "Blinker", sans-serif;
}


/* 3. Base / reset ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background: var(--bg-page);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;

  /* `clip` contains the full-bleed stream section without creating a
     nested scroll container the way `hidden` would. */
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: clip;
  background: var(--bg-bottom);
}


/* 4. Shared helpers ======================================================= */

/* Gradient-filled text. `background-clip` must be declared in the same rule
   as `background`, since the shorthand resets it. */
.brand {
  display: flex;
  gap: 5px;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.5px;
}

.brand-large {
  gap: 8px;
  font-size: 34px;
}

.brand-name {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  background: var(--grad-silver);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* 5. Site nav ============================================================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(5, 10, 24, 0.92);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav-brand {
  text-decoration: none;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.4rem 1.15rem 0.5rem;
  color: var(--btn-text-alt);
  background: var(--btn-face-alt);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--btn-depth-alt);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.site-nav-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.site-nav-link:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--btn-depth-alt);
}

.site-nav-link.is-active {
  color: var(--btn-text);
  background: var(--btn-face);
  box-shadow: 0 4px 0 var(--btn-depth);
}

.site-nav-link.is-active:active {
  box-shadow: 0 1px 0 var(--btn-depth);
}


/* 6. Hero ================================================================= */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 760px;
  padding: 5rem 2rem 4rem;
  background: var(--bg-hero);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-symbols {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-symbol {
  position: absolute;
  height: auto;
  object-fit: contain;
  will-change: transform;
}

/* Far back — small, soft, faint */
.hero-symbol-doll {
  top: 10%;
  right: 8%;
  z-index: 1;
  width: clamp(36px, 4.2vw, 58px);
  opacity: 0.28;
  filter: blur(2.4px) drop-shadow(0 0 10px rgba(85, 175, 255, 0.08));
  animation: float-depth-far 9s ease-in-out infinite;
}

.hero-symbol-gameboy {
  bottom: 14%;
  right: 22%;
  z-index: 1;
  width: clamp(34px, 4vw, 54px);
  opacity: 0.24;
  filter: blur(2.8px) drop-shadow(0 0 8px rgba(85, 175, 255, 0.06));
  animation: float-depth-far 10.5s ease-in-out -2s infinite;
}

/* Mid layer */
.hero-symbol-wolf {
  top: 8%;
  left: 6%;
  z-index: 2;
  width: clamp(58px, 7vw, 96px);
  opacity: 0.55;
  filter: blur(0.6px) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  animation: float-depth-mid 7s ease-in-out infinite;
}

.hero-symbol-crown {
  top: 42%;
  right: 4%;
  z-index: 2;
  width: clamp(52px, 6.2vw, 88px);
  opacity: 0.5;
  filter: blur(0.4px) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  animation: float-depth-mid 8s ease-in-out -1.5s infinite;
}

/* Near / foreground — larger, sharper, stronger */
.hero-symbol-vs {
  top: 6%;
  left: 48%;
  z-index: 3;
  width: clamp(72px, 8.5vw, 120px);
  opacity: 0.88;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55));
  animation: float-depth-near 5.5s ease-in-out -0.8s infinite;
}

.hero-symbol-chaos {
  bottom: 12%;
  left: 38%;
  z-index: 3;
  width: clamp(84px, 10vw, 138px);
  opacity: 0.92;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.6));
  animation: float-depth-near 6.2s ease-in-out -2.2s infinite;
}

/* Sits above .hero-dim so the characters stay bright while the background
   artwork behind them is darkened. */
.hero-characters {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-character {
  position: absolute;
  width: auto;
  object-fit: contain;
  filter: brightness(1.25) contrast(1.06) saturate(1.1)
    drop-shadow(0 0 26px rgba(120, 200, 255, 0.35));
}

.hero-character-left {
  bottom: -8%;

  height: 74%;
  max-height: 640px;
  object-position: bottom left;
  animation: float-slow 5s ease-in-out infinite;
}

.hero-character-right {
  right: -3%;
  bottom: -65%;
  height: 130%;
  max-height: 1080px;
  object-position: bottom right;
  animation: float-slow 6.5s ease-in-out 0.6s infinite;
}

/* Knocks the artwork back so the page reads as near-black. */
.hero-dim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(var(--bg-page-rgb), 0.66);
}

/* Bright halo sitting behind the "$50 000 LEADERBOARD" headline. */
.hero-glow {
  position: absolute;
  top: 36%;
  left: 50%;
  z-index: 3;
  width: min(1150px, 130vw);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgb(64 104 129 / 50%) 0%, rgba(90, 180, 255, 0.34) 18%, rgba(50, 130, 220, 0.18) 34%, rgba(20, 70, 140, 0.07) 52%, rgba(10, 35, 80, 0) 68%);
}

/* Blends the hero artwork into the page background. */
.hero-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  height: 55%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(var(--bg-page-rgb), 0) 0%,
    rgba(var(--bg-page-rgb), 0.4) 30%,
    rgba(var(--bg-bottom-rgb), 0.85) 65%,
    rgba(var(--bg-bottom-rgb), 0.97) 85%,
    var(--bg-bottom) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin-top: 2.5rem;
  text-align: center;
}

.hero-stake-logo {
  height: clamp(24px, 3vw, 34px);
  width: auto;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.hero-amount {
  padding: 0 0.12em;
  font-family: var(--font-hero);
  font-size: clamp(46px, 6.85vw, 131px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 14px 9.6px rgba(0, 0, 0, 0.04);
}

.hero-title {
  margin-top: -6px;
  font-family: var(--font-hero);
  font-size: clamp(32px, 4.85vw, 93px);
  font-weight: 400;
  background: var(--grad-silver);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 14px 9.6px rgba(0, 0, 0, 0.04);
}

.hero-text {
  max-width: 420px;
  margin: 1.25rem auto 0;
  color: #dadada;
  font-size: 15px;
  line-height: 1.6;
}

.hero-text .accent-blue {
  color: var(--blue);
  font-family: var(--font-accent);
  font-weight: 600;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.inline-logo {
  display: inline-block;
  height: 18px;
  width: auto;
  vertical-align: middle;
  object-fit: contain;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.55rem 1.7rem 0.65rem;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.button:active {
  transform: translateY(3px);
}

.button-primary {
  color: var(--btn-text);
  background: var(--btn-face);
  box-shadow: 0 5px 0 var(--btn-depth);
}

.button-primary:active {
  box-shadow: 0 2px 0 var(--btn-depth);
}

.button-secondary {
  color: var(--btn-text-alt);
  background: var(--btn-face-alt);
  box-shadow: 0 5px 0 var(--btn-depth-alt);
}

.button-secondary:active {
  box-shadow: 0 2px 0 var(--btn-depth-alt);
}

.button-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}


/* 7. Content wrapper ====================================================== */

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  background: var(--bg-bottom);
}


/* 8. Why join / bonuses =================================================== */

.bonuses {
  width: 100%;
}

.join-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: stretch;
  width: 100%;
  padding: 34px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
}

.join-head {
  margin-bottom: 26px;
}

.join-heading {
  color: var(--text-main);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.join-sub {
  margin-top: 8px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.join-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.join-item {
  padding: 18px;
  background: var(--bg-pill);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}

.join-item-title {
  margin-bottom: 5px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
}

.join-item-text {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.join-center {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
}

.join-banner {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 22px;
  background: var(--bg-pill);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}

.join-banner img {
  width: min(180px, 70%);
  height: auto;
}

/* Click-to-copy code plate */
.code-box {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  background: var(--bg-pill);
  border: 1px dashed var(--border-soft);
  border-radius: 16px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease;
}

.code-box:hover {
  border-color: var(--blue);
}

.code-box:active {
  transform: scale(0.985);
}

.code-box:focus-visible {
  outline: 2px solid var(--btn-face);
  outline-offset: 3px;
}

.code-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-value {
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition:
    color 0.2s ease,
    transform 0.25s ease;
}

.code-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.code-hint svg {
  width: 15px;
  height: 15px;
}

.code-hint-check {
  display: none;
}

.code-toast {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 4px 10px;
  color: var(--btn-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--btn-face-green);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  pointer-events: none;
}

.code-ripple {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(83, 252, 24, 0.22), transparent 60%);
  opacity: 0;
  pointer-events: none;
}

.code-box.is-copied {
  border-style: solid;
  border-color: var(--btn-face-green);
  box-shadow: 0 0 0 4px rgba(83, 252, 24, 0.12);
}

.code-box.is-copied .code-value {
  color: var(--green);
  animation: code-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.code-box.is-copied .code-hint {
  color: var(--green);
}

.code-box.is-copied .code-hint-copy {
  display: none;
}

.code-box.is-copied .code-hint-check {
  display: block;
  animation: code-check 0.35s ease-out;
}

.code-box.is-copied .code-toast {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.code-box.is-copied .code-hint-text {
  display: none;
}

.code-box.is-copied .code-ripple {
  animation: code-ripple 0.65s ease-out;
}

.code-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.join-cta {
  width: 100%;
}

@keyframes code-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.09);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes code-check {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes code-ripple {
  0% {
    opacity: 1;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

/* 9. Kick stream ========================================================= */

.stream {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 2rem 0 1rem;
  color: #fff;
  font-size: 20px;
}

.stream-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 25.61px;
  font-weight: 600;
}

.stream-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
}

.stream-player {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border: 1px solid rgba(64, 71, 108, 0.4);
  border-radius: 16px;
  overflow: hidden;
}

.stream-preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0a0a0a;
}

.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #4b5563;
  border-radius: 999px;
}

.live-badge[data-live="true"] {
  background: #ef4444;
}

.player-viewers {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  color: #e8eef8;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
}

.player-viewers[data-live="true"] {
  display: inline-flex;
}

.player-viewers svg {
  width: 14px;
  height: 14px;
}

.stream-chat {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 340px;
  background: var(--bg-panel);
  border: 1px solid rgba(64, 71, 108, 0.4);
  border-radius: 16px;
  overflow: hidden;
}

.stream-chat-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stream-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(64, 71, 108, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.stream-chat-title {
  font-size: 14px;
  font-weight: 700;
}

.stream-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stream-chat-status::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background: #6b7390;
  border-radius: 50%;
}

.stream-chat-status[data-state="connected"] {
  color: #d8e4ff;
}

.stream-chat-status[data-state="connected"]::before {
  background: #53fc18;
}

.stream-chat-status[data-state="connecting"]::before {
  background: #fbbf24;
}

.stream-chat-status[data-state="error"]::before {
  background: #ef4444;
}

.stream-chat-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 12px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.5;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.stream-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.stream-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
}

.stream-chat-empty {
  margin: auto;
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.chat-msg {
  word-break: break-word;
  animation: chat-fade-in 0.25s ease-out;
}

.chat-msg-user {
  margin-right: 6px;
  font-weight: 700;
}

.chat-msg-user::after {
  content: ":";
}

.chat-msg-text {
  color: #d2ddfb;
}

.chat-msg-text a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-emote {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin: 0 1px;
  vertical-align: -5px;
  object-fit: contain;
}

.stream-chat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(64, 71, 108, 0.4);
  background: rgba(0, 0, 0, 0.22);
}

.stream-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stream-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: cover;
  background: #1a243a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.stream-avatar:not([src]),
.stream-avatar[src=""] {
  visibility: hidden;
}

.stream-profile-meta {
  min-width: 0;
}

.stream-profile-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.stream-profile-followers {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.stream-profile-followers strong {
  color: #e8eef8;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stream-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 40px;
  padding: 0 16px 2px;
  color: var(--btn-text);
  background: var(--btn-face-green);
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--btn-depth-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.stream-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.stream-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--btn-depth-green);
}

.stream-header .accent-white {
  background: linear-gradient(#eaeaea, #c8c8c8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stream-header .accent-green {
  background: var(--grad-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes chat-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* 10. Socials ============================================================= */

.socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1rem 0 2rem;
}

.socials-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.socials-title {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 600;
}

.socials-title .accent-white {
  background: linear-gradient(#efefef, #bababa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.socials-title .accent-blue {
  background: linear-gradient(#8dc9ff, #55afff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.socials-subtitle {
  margin-top: 0.5rem;
  color: #8a9cb2;
  font-size: 15px;
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 900px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  color: inherit;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 175, 255, 0.45);
  background: #101a30;
}

.social-card-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.social-card-icon svg {
  width: 22px;
  height: 22px;
}

.social-card-copy {
  min-width: 0;
}

.social-card-copy strong {
  display: block;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.social-card-copy small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
}

.social-card-instagram .social-card-icon {
  color: #fff;
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 35%, #d62976 65%, #962fbf 100%);
}

.social-card-discord .social-card-icon {
  color: #fff;
  background: #5865f2;
}

.social-card-twitter .social-card-icon {
  color: #0c1426;
  background: #e8eef8;
}


/* 11. Footer ============================================================== */

.footer {
  width: 100%;
  padding: 48px 32px 44px;
  color: #d0d0d0;
  background: var(--bg-footer);
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  flex: 1 1 280px;
  min-width: 240px;
}

.footer-column {
  flex: 0 auto;
  min-width: 140px;
}

.footer-copyright {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: 0.4px;
}

.footer-heading {
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.footer-disclaimer {
  max-width: 340px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.footer-column-title {
  margin-bottom: 18px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link,
.footer-social {
  color: #d0d0d0;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link:hover,
.footer-social:hover {
  color: var(--blue);
}

/* Icons are masked so they inherit a single brand colour. */
.social-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: #54aefe;
  -webkit-mask-position: 50%;
  mask-position: 50%;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.social-icon-kick {
  -webkit-mask-image: url("../assets/images/social-kick.png");
  mask-image: url("../assets/images/social-kick.png");
}

.social-icon-discord {
  -webkit-mask-image: url("../assets/images/social-discord.png");
  mask-image: url("../assets/images/social-discord.png");
}

.social-icon-x {
  -webkit-mask-image: url("../assets/images/social-x.png");
  mask-image: url("../assets/images/social-x.png");
}

.social-icon-youtube {
  -webkit-mask-image: url("../assets/images/social-youtube.png");
  mask-image: url("../assets/images/social-youtube.png");
}


/* 12. Leaderboard page ==================================================== */

.lb-page {
  position: relative;
  min-height: calc(100vh - 72px);
  background: var(--bg-bottom);
  overflow: clip;
}

.lb-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 760px;
  max-height: 100%;
  background: var(--bg-hero);
  pointer-events: none;
  overflow: hidden;
}

.lb {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 3vw, 2rem) 4rem;
}

.lb-header {
  margin-bottom: 2rem;
  text-align: center;
}

.lb-kicker {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lb-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1.05;
}

.lb-prize {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lb-title-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-silver);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lb-sub {
  max-width: 42ch;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.lb-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2rem;
}

.lb-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}

.lb-tab {
  min-height: 38px;
  padding: 0.4rem 1.2rem 0.5rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.lb-tab:hover {
  color: var(--text-main);
}

.lb-tab.is-active {
  color: var(--btn-text);
  background: var(--btn-face);
  box-shadow: 0 3px 0 var(--btn-depth);
}

.lb-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.lb-timer-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lb-timer-digits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lb-timer-block {
  display: grid;
  place-items: center;
  min-width: 52px;
  padding: 8px 10px;
  background: var(--bg-pill);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}

.lb-timer-block strong {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.lb-timer-block small {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lb-timer-sep {
  color: var(--text-dim);
  font-size: 18px;
  font-weight: 700;
}

.lb-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
  margin-bottom: 2rem;
}

.lb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 22px;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
}

.lb-card-first {
  padding-top: 36px;
  padding-bottom: 28px;
  border-color: rgba(255, 202, 57, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 202, 57, 0.12),
    0 0 28px rgba(255, 202, 57, 0.12);
  transform: translateY(-18px);
}

.lb-card-second {
  border-color: rgba(186, 198, 210, 0.4);
}

.lb-card-third {
  border-color: rgba(205, 127, 50, 0.4);
}

.lb-card-place {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  color: var(--btn-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--btn-face);
  border-radius: 999px;
}

.lb-card-first .lb-card-place {
  background: var(--btn-face-gold);
}

.lb-card-third .lb-card-place {
  color: #fff;
  background: #cd7f32;
}

.lb-card-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  color: #d8f7ff;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(180deg, #1e3a4f, #0f1c2e);
  border: 2px solid rgba(85, 175, 255, 0.35);
  border-radius: 50%;
  overflow: hidden;
}

.lb-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.lb-card-first .lb-card-avatar {
  width: 88px;
  height: 88px;
  font-size: 26px;
  border-color: rgba(255, 202, 57, 0.55);
  box-shadow: 0 0 20px rgba(255, 202, 57, 0.2);
}

.lb-card-name {
  margin-bottom: 14px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
}

.lb-card-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lb-card-wagered {
  margin: 4px 0 12px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lb-card-prize {
  padding: 8px 14px;
  color: var(--btn-text);
  font-size: 15px;
  font-weight: 800;
  background: var(--btn-face-gold);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--btn-depth-gold);
}

.lb-card-second .lb-card-prize {
  color: #101820;
  background: #d7dee8;
  box-shadow: 0 4px 0 #8e99a8;
}

.lb-card-third .lb-card-prize {
  color: #fff;
  background: #cd7f32;
  box-shadow: 0 4px 0 #8a4f14;
}

.lb-table-wrap {
  overflow-x: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lb-table th,
.lb-table td {
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
}

.lb-table th {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-soft);
}

.lb-table td {
  color: var(--text-main);
  border-top: 1px solid rgba(26, 36, 58, 0.85);
}

.lb-table tbody tr:first-child td {
  border-top: none;
}

.lb-table tbody tr:hover td {
  background: rgba(85, 175, 255, 0.05);
}

.lb-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 8px;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-pill);
  border-radius: 999px;
}

.lb-player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.lb-player-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #d8f7ff;
  font-size: 11px;
  font-weight: 800;
  background: #1a243a;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}

.lb-prize-cell {
  color: var(--gold);
  font-weight: 700;
}


/* 13. Animations ========================================================== */

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* Far icons drift less and feel slower. */
@keyframes float-depth-far {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.92);
  }
  50% {
    transform: translate3d(0, -6px, 0) scale(0.92);
  }
}

@keyframes float-depth-mid {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -12px, 0) scale(1);
  }
}

/* Near icons move more and feel closer. */
@keyframes float-depth-near {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.06);
  }
  50% {
    transform: translate3d(0, -20px, 0) scale(1.06);
  }
}


/* 14. Responsive ========================================================== */

@media (max-width: 1200px) {
  .stream-grid {
    gap: 16px;
  }
}

@media (max-width: 1023px) {
  .join-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .join-center {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-symbols {
    display: none;
  }

  .hero-character {
    height: 64%;
  }

  .hero-character-left {
    left: -6%;
  }

  .hero-character-right {
    right: -6%;
  }

  .stream-header {
    margin-bottom: 1rem;
    font-size: 22px;
  }

  .stream-grid {
    grid-template-columns: 1fr;
  }

  .stream-chat {
    min-height: 320px;
  }
}

@media (max-width: 800px) {
  .stream {
    padding: 1.5rem 0 1rem;
  }

  .stream-chat-footer {
    flex-wrap: wrap;
  }

  .stream-button {
    width: 100%;
  }

  .socials-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .lb-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .lb-tabs {
    width: 100%;
  }

  .lb-tab {
    flex: 1;
  }

  .lb-timer {
    justify-content: center;
  }

  .lb-podium {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lb-card-first {
    order: -1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 32px 20px;
  }

  .footer-inner {
    gap: 28px 40px;
  }

  .footer-brand {
    flex: 1 1 100%;
    min-width: 0;
  }

  .brand-large {
    font-size: 28px;
  }

  .footer-column {
    flex: 0 1 40%;
    min-width: 120px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    padding: 0.75rem 1rem;
  }

  .site-nav-link {
    min-height: 34px;
    padding: 0.35rem 0.9rem 0.4rem;
    font-size: 12px;
  }

  .hero-character {
    display: none;
  }

  .hero-content {
    margin-top: 0;
  }

  .content {
    gap: 2rem;
    padding: 1rem 1rem 0;
  }

  .join-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .join-list {
    grid-template-columns: 1fr;
  }

  .stream-chat {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
