/* ==========================================================================
   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
  15. Site loader
   ========================================================================== */


/* 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%, #ffffff 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%;
  min-height: 4.35rem;
  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 {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-nav-logo-wrap {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.site-nav-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav-links {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 41;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 4.35rem;
  pointer-events: none;
  transform: none;
}

.site-nav-auth {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-nav-auth-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0.4rem 1.15rem 0.5rem;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: #5865f2;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 0 #3c45a5;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.site-nav-auth-login:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.site-nav-auth-login:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #3c45a5;
}

.site-nav-auth-login-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
}

.site-nav-auth-menu {
  position: relative;
}

.site-nav-auth-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 200px;
  min-height: 38px;
  padding: 4px 12px 4px 4px;
  color: #e8eef8;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  background: rgba(12, 20, 38, 0.9);
  border: 1px solid rgba(216, 247, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.site-nav-auth-trigger:hover,
.site-nav-auth-menu.is-open .site-nav-auth-trigger {
  border-color: rgba(85, 175, 255, 0.45);
  background: rgba(18, 28, 48, 0.98);
}

.site-nav-auth-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-pill);
  border: 1px solid rgba(85, 175, 255, 0.25);
}

.site-nav-auth-avatar-fallback {
  display: grid;
  place-items: center;
  color: #9eb4cc;
  font-size: 11px;
  font-weight: 800;
}

.site-nav-auth-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav-auth-caret {
  flex: none;
  width: 12px;
  height: 12px;
  color: #8fa3bb;
  transition: transform 0.15s ease;
}

.site-nav-auth-menu.is-open .site-nav-auth-caret {
  transform: rotate(180deg);
}

.site-nav-auth-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 160px;
  padding: 6px;
  background: #0a1222;
  border: 1px solid rgba(216, 247, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.site-nav-auth-dropdown[hidden] {
  display: none !important;
}

.site-nav-auth-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #ffb4b4;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.site-nav-auth-logout:hover {
  background: rgba(220, 60, 60, 0.12);
}

.site-nav-auth-login[hidden],
.site-nav-auth-menu[hidden],
.site-nav-auth-avatar[hidden],
.site-nav-auth-avatar-fallback[hidden],
.site-nav-auth-dropdown[hidden] {
  display: none !important;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  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;
  pointer-events: auto;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.site-nav-link-icon {
  display: none;
  width: 20px;
  height: 20px;
  flex: none;
}

.site-nav-link-label {
  display: inline;
}

.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(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1100px;
}

.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;
}

.social-card-tiktok .social-card-icon {
  color: #fff;
  background: #111;
}


/* 11. Footer ============================================================== */

.footer {
  width: 100%;
  margin-top: auto;
  color: var(--text-main);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(85, 175, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #06101f 0%, var(--bg-footer) 100%);
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px 32px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand-logo-wrap {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(85, 175, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(85, 175, 255, 0.12);
}

.footer-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  max-width: 320px;
  margin: 0 0 24px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-main);
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.footer-social-btn:hover {
  background: #101a30;
  border-color: rgba(85, 175, 255, 0.4);
  box-shadow: 0 0 14px rgba(85, 175, 255, 0.12);
}

.footer-social-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}

.footer-social-kick:hover {
  color: #53fc18;
  border-color: rgba(83, 252, 24, 0.5);
}

.footer-social-discord:hover {
  color: #5865f2;
  border-color: rgba(88, 101, 242, 0.5);
}

.footer-social-x:hover {
  color: #1da1f2;
  border-color: rgba(29, 161, 242, 0.5);
}

.footer-social-youtube:hover {
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.5);
}

.footer-social-instagram:hover {
  color: #e4405f;
  border-color: rgba(228, 64, 95, 0.5);
}

.footer-social-tiktok:hover {
  color: #69c9d0;
  border-color: rgba(105, 201, 208, 0.5);
}

.footer-column-title {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--blue);
}

.footer-age {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}

.footer-copyright {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-credit {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-credit:hover {
  color: var(--blue);
}


/* 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;
  padding-top: 0.35rem;
  overflow: visible;
  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: 2px;
  overflow: visible;
  line-height: 1;
}

.lb-prize {
  padding: 0.08em 0.12em 0.02em;
  font-family: var(--font-hero);
  font-size: clamp(46px, 6.85vw, 96px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 14px 9.6px rgba(0, 0, 0, 0.04);
}

.lb-title-text {
  margin-top: -4px;
  padding: 0 0.08em;
  font-family: var(--font-hero);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  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);
}

.lb-sub {
  max-width: 42ch;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.lb-controls {
  display: flex;
  justify-content: center;
  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-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0.5rem 0 1rem;
}

.lb-rules-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 2rem;
}

.lb-rules-btn {
  min-height: 40px;
  padding: 0.45rem 1.35rem 0.55rem;
  color: var(--btn-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--btn-face);
  border: none;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--btn-depth);
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
}

.lb-rules-btn:hover {
  filter: brightness(1.06);
}

.lb-rules-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--btn-depth);
}

.lb-rules-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.lb-rules-modal[hidden] {
  display: none;
}

.lb-rules-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(6px);
}

.lb-rules-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 36px 28px 28px;
  color: var(--text-main);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(85, 175, 255, 0.12), transparent 55%),
    #0a101c;
  border: 1px solid rgba(85, 175, 255, 0.28);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lb-rules-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.lb-rules-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.lb-rules-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.lb-rules-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.lb-rules-intro {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.lb-rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.lb-rules-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(85, 175, 255, 0.22);
  border-radius: 14px;
}

.lb-rules-rtp {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
}

.lb-rules-weight {
  color: var(--blue);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.lb-rules-notes {
  margin: 0 0 20px;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  list-style: none;
}

.lb-rules-notes li {
  margin: 0;
}

.lb-rules-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.lb-rules-footer-icon {
  flex-shrink: 0;
}

body.lb-rules-open {
  overflow: hidden;
}

.lb-timer-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lb-timer.is-paused .lb-timer-label {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.14em;
}

.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: clamp(10px, 2vw, 20px);
  margin-bottom: 1rem;
  perspective: 900px;
}

.lb-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  position: relative;
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  aspect-ratio: 1077 / 1307;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  transform:
    translateY(var(--tilt-base-y, 0px))
    translateY(var(--tilt-lift))
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition:
    transform 0.18s ease-out,
    filter 0.18s ease-out;
  will-change: transform;
  cursor: pointer;
}

.lb-card.is-tilting {
  transition: transform 0.08s ease-out, filter 0.18s ease-out;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

.lb-card-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.lb-card-first {
  --tilt-base-y: -14px;
  max-width: 310px;
  z-index: 1;
}

.lb-card-second,
.lb-card-third {
  --tilt-base-y: 0px;
}

/* Avatar sits inside the circular frame on the PNG */
.lb-card-avatar {
  position: absolute;
  top: 26.4%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28%;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  color: #d8f7ff;
  font-size: clamp(10px, 2vw, 14px);
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.lb-card-avatar img,
.lb-card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
}

.lb-card-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.85);
  font-size: inherit;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
}

.lb-card-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
}

/* Username under avatar */
.lb-card-name {
  position: absolute;
  top: 44%;
  left: 50%;
  z-index: 1;
  width: 78%;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  transform: translateX(-50%);
}

/* Prize inside the frosted rectangle bar (~55.5%–67%) */
.lb-card-prize {
  position: absolute;
  top: 55.5%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52%;
  height: 11.5%;
  margin: 0;
  padding: 0 3%;
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
}

/* Wagered below the prize bar — big amount, then label */
.lb-card-wagered {
  position: absolute;
  top: 70%;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 86%;
  margin: 0;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
}

.lb-card-wagered-value {
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lb-card-wagered-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(11px, 1.6vw, 13px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 1st — cyan */
.lb-card-first .lb-card-name,
.lb-card-first .lb-card-prize,
.lb-card-first .lb-card-wagered-value {
  color: #3ecbff;
}

.lb-card-first .lb-card-wagered-label {
  color: rgba(255, 255, 255, 0.85);
}

/* 2nd — gold */
.lb-card-second .lb-card-name,
.lb-card-second .lb-card-prize,
.lb-card-second .lb-card-wagered-value {
  color: #ffd24a;
}

.lb-card-second .lb-card-wagered-label {
  color: rgba(255, 255, 255, 0.85);
}

/* 3rd — copper */
.lb-card-third .lb-card-name,
.lb-card-third .lb-card-prize,
.lb-card-third .lb-card-wagered-value {
  color: #e08a4f;
}

.lb-card-third .lb-card-wagered-label {
  color: rgba(255, 255, 255, 0.85);
}

.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 {
  font-weight: 600;
}

.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 {
    opacity: 0.85;
  }

  .hero-character-left {
    left: -10%;
    bottom: -6%;
    height: 58%;
    opacity: 0.9;
  }

  .hero-character-right {
    right: -8%;
    bottom: 10%;
    height: 52%;
    max-height: 420px;
    opacity: 0.9;
  }

  .stream-header {
    margin-bottom: 1rem;
    font-size: 22px;
  }

  .stream-grid {
    grid-template-columns: 1fr;
  }

  .stream-chat {
    min-height: 320px;
  }

  .socials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
  }
}

@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 {
    justify-content: center;
  }

  .lb-tabs {
    width: auto;
  }

  .lb-tab {
    flex: 1;
  }

  .lb-timer {
    justify-content: center;
  }

  .lb-podium {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
  }

  .lb-card,
  .lb-card-first {
    max-width: 260px;
    --tilt-base-y: 0px;
  }

  .lb-card-first {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb-card {
    transition: none;
  }

  .lb-card.is-tilting {
    filter: none;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    padding: 40px 20px 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    margin-top: 36px;
    padding-top: 24px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 56px;
    padding: 0.65rem 1rem;
  }

  .site-nav-brand-name {
    display: none;
  }

  /* Icon tab bar pinned to the bottom */
  .site-nav-links {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0.35rem;
    width: 100%;
    height: auto;
    pointer-events: auto;
    transform: none;
    margin: 0;
    padding: 0.45rem 0.55rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    background: rgba(4, 8, 18, 0.97);
    border-top: 1px solid rgba(85, 175, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.45);
  }

  .site-nav-link {
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    padding: 0.55rem 0.35rem 0.5rem;
    color: #8fa3bb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    transition: color 0.15s ease, background 0.15s ease;
  }

  .site-nav-link:hover,
  .site-nav-link:active {
    transform: none;
    filter: none;
    box-shadow: none;
  }

  .site-nav-link-icon {
    display: block;
  }

  .site-nav-link.is-active {
    color: var(--btn-face);
    background: rgba(61, 226, 255, 0.1);
    box-shadow: none;
  }

  .site-nav-link.is-active:active {
    box-shadow: none;
  }

  .site-nav-auth {
    margin-left: auto;
  }

  .site-nav-auth-login {
    min-height: 34px;
    padding: 0.35rem 0.85rem 0.4rem;
    font-size: 12px;
  }

  .site-nav-auth-login-icon {
    width: 14px;
    height: 14px;
  }

  .site-nav-auth-trigger {
    min-height: 34px;
    max-width: 140px;
  }

  .site-nav-auth-name {
    max-width: 72px;
  }

  /* Keep page content clear of the bottom tab bar */
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  .hero-character-left {
    left: -14%;
    bottom: -4%;
    height: 46%;
    opacity: 0.82;
  }

  .hero-character-right {
    right: -12%;
    bottom: 14%;
    height: 42%;
    max-height: 320px;
    opacity: 0.82;
  }

  .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;
  }
}

/* 15. Site loader ========================================================= */

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

html.is-loading body > :not(.site-loader) {
  visibility: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(85, 175, 255, 0.14), transparent 55%),
    #02040c;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.site-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.site-loader-logo-wrap {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid rgba(85, 175, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(85, 175, 255, 0.22);
  animation: site-loader-pulse 1.4s ease-in-out infinite;
}

.site-loader-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-loader-ring {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(85, 175, 255, 0.18);
  border-top-color: #55afff;
  border-right-color: rgba(61, 226, 255, 0.85);
  border-radius: 50%;
  animation: site-loader-spin 0.8s linear infinite;
}

.site-loader-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes site-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes site-loader-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 22px rgba(85, 175, 255, 0.18);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 34px rgba(85, 175, 255, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader-ring,
  .site-loader-logo-wrap {
    animation: none;
  }
}
