/* =========================================================
   SuckaaRewards — black & gold theme
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #060608;
  --bg-2: #0b0b0e;
  --panel: #101014;
  --panel-2: #15151b;
  --panel-3: #1c1c23;

  --hair: rgba(255, 255, 255, .08);
  --line: rgba(233, 185, 73, .16);
  --line-2: rgba(233, 185, 73, .3);
  --line-3: rgba(233, 185, 73, .6);

  --gold: #e9b949;
  --gold-hi: #ffe08a;
  --gold-lo: #a8731d;
  --gold-ink: #1a1204;
  --text: #f4efe4;
  --soft: #d6cfbf;
  --muted: #a39d90;
  --dim: #6f695e;
  --up: #46d17f;
  --down: #ff6b6b;
  --info: #8ec1ff;

  --grad-gold: linear-gradient(180deg, #fff3c4 0%, #f7d46c 36%, #e3ab3c 62%, #b27a20 100%);
  --grad-gold-btn: linear-gradient(180deg, #ffe590 0%, #f2c457 46%, #d6992c 100%);
  --grad-silver: linear-gradient(180deg, #ffffff 0%, #ededed 40%, #b6b6b6 70%, #858585 100%);
  --grad-bronze: linear-gradient(180deg, #ffd8b0 0%, #e39d5e 45%, #a35a26 100%);
  --grad-panel: linear-gradient(180deg, #141418 0%, #0b0b0e 100%);

  --font-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', sans-serif;
  --font-script: 'Permanent Marker', 'Segoe Print', cursive;

  --radius: 12px;
  --radius-sm: 7px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(233, 185, 73, .09), transparent 62%),
    radial-gradient(800px 600px at -12% 55%, rgba(233, 185, 73, .045), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { flex: 1; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(233, 185, 73, .35); color: #fff; }
#site-header, #site-footer { display: contents; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.gold { color: var(--gold-hi); }
.mt-lg { margin-top: 28px; }
.mt-xl { margin-top: 40px; }

.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }

.t-gold, .t-silver {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.t-gold { background-image: var(--grad-gold); }
.t-silver { background-image: var(--grad-silver); }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  height: var(--h);
  padding: 0 1.35em;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 15px/1 var(--font-body);
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s, background-color .2s, border-color .2s, color .2s;
}
.btn .i { font-size: 1.1em; }
.btn-gold {
  background: var(--grad-gold-btn);
  color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 10px 26px -12px rgba(233, 185, 73, .8);
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .75s var(--ease);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 14px 34px -10px rgba(233, 185, 73, .95); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(8, 8, 10, .65); border-color: rgba(255, 255, 255, .18); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-outline { background: rgba(233, 185, 73, .06); border-color: var(--line-3); color: var(--gold-hi); }
.btn-outline:hover { background: rgba(233, 185, 73, .14); }
.btn-danger { background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .45); color: #ffc2c2; }
.btn-danger:hover { background: rgba(255, 107, 107, .22); color: #fff; }
.btn-sm { --h: 36px; padding: 0 1em; font-size: 14px; }
.btn-lg { --h: 54px; padding: 0 1.8em; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.is-joined { color: var(--gold-hi); border-color: var(--line-2); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--gold-hi); border-color: var(--line-2); }
.icon-btn.danger:hover { color: var(--down); border-color: rgba(255, 107, 107, .45); }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }

.link-gold { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-hi); font-weight: 600; font-size: 15px; white-space: nowrap; }
.link-gold .i { transition: transform .25s var(--ease); }
.link-gold:hover .i { transform: translateX(4px); }
.linklike { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }

/* ---------- topbar & header ---------- */
.topbar { background: #030304; border-bottom: 1px solid var(--hair); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.topbar-socials { display: flex; gap: 16px; }
.topbar-socials a { color: var(--dim); font-size: 14px; transition: color .2s; }
.topbar-socials a:hover { color: var(--gold); }
.topbar-tag { font: 600 11.5px/1 var(--font-cond); letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.topbar-tag i { margin: 0 .55em; font-style: normal; color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 6, 8, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 185, 73, .7) 18%, var(--gold-hi) 50%, rgba(233, 185, 73, .7) 82%, transparent);
  opacity: .6;
}
.header-in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: inline-flex; font: 400 30px/1 var(--font-display); letter-spacing: .005em; white-space: nowrap; }
.logo span { color: #fff; }
.logo b { font-weight: 400; background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.site-nav { display: flex; align-items: stretch; align-self: stretch; gap: 4px; margin-left: 24px; }
.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #d9d2c4;
  font-weight: 600;
  font-size: 15px;
  transition: color .2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--grad-gold-btn);
  box-shadow: 0 0 12px rgba(233, 185, 73, .8);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { transform: scaleX(.6); }
.site-nav a.is-active { color: var(--gold-hi); }
.site-nav a.is-active::after { transform: scaleX(1); }
.show-sm { display: none !important; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; }

.user-menu { position: relative; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px 0 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color .2s;
}
.user-chip:hover { border-color: var(--line-3); }
.user-chip .i { color: var(--muted); }
.user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14.5px; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
  animation: drop .2s var(--ease);
}
.user-dropdown-head { padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--hair); color: var(--muted); font-size: 13px; }
.user-dropdown-head b { display: block; color: var(--text); font-size: 15px; }
.user-dropdown a, .user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: rgba(233, 185, 73, .1); color: var(--gold-hi); }
.user-dropdown .i { color: var(--gold); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- avatar ---------- */
.avatar {
  --s: 56px;
  width: var(--s);
  height: var(--s);
  flex: none;
  padding: max(2px, calc(var(--s) * .035));
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .55), 0 0 22px rgba(233, 185, 73, .22);
}
.avatar > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #2e2e35, #0a0a0c 72%);
  color: var(--gold-hi);
  font: 400 calc(var(--s) * .36)/1 var(--font-display);
  letter-spacing: .02em;
}
.avatar .i { font-size: calc(var(--s) * .42); color: var(--dim); }
.avatar-pic > span { overflow: hidden; background: #080909 url('../assets/avatar.jpg') center 40% / cover; }
.avatar-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 74vh, 690px);
  padding-block: 64px 108px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/hero-trophy.webp") 78% center / cover no-repeat;
  animation: heroIn 1.8s var(--ease) both;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(6, 6, 8, .9) 26%, rgba(6, 6, 8, .35) 52%, rgba(6, 6, 8, 0) 72%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 6, 8, 0) 34%),
    linear-gradient(180deg, rgba(6, 6, 8, .6) 0%, rgba(6, 6, 8, 0) 20%);
}
.hero-in { position: relative; z-index: 1; width: 100%; }
.hero-title {
  font: 400 clamp(60px, 10.2vw, 150px)/.86 var(--font-display);
  letter-spacing: -.004em;
  text-transform: uppercase;
}
.hero-title > span { display: block; width: fit-content; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .65)); animation: rise .9s var(--ease) both; }
.hero-title > span:nth-child(2) { animation-delay: .12s; }
.hero-title .t-gold { filter: drop-shadow(0 6px 34px rgba(233, 185, 73, .28)); }
.hero-sub {
  margin: 26px 0 32px;
  color: #ddd6c7;
  font: 600 clamp(13px, 1.25vw, 16px)/1.9 var(--font-cond);
  letter-spacing: .24em;
  text-transform: uppercase;
  animation: rise .9s .26s var(--ease) both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; animation: rise .9s .38s var(--ease) both; }
.hero-script {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  z-index: 1;
  color: #d9d3c6;
  font: 400 clamp(26px, 2.6vw, 38px)/1.02 var(--font-script);
  text-transform: uppercase;
  text-align: right;
  transform: translateY(-62%) rotate(-9deg);
  text-shadow: 0 4px 20px rgba(0, 0, 0, .8);
  animation: fadeIn 1.2s .7s both;
}
.hero-script::after {
  content: "";
  display: block;
  width: 70%;
  height: 7px;
  margin: 10px 0 0 auto;
  border-radius: 50% 40% 60% 30%;
  background: var(--grad-gold-btn);
  transform: rotate(-3deg) skewX(-25deg);
  box-shadow: 0 0 16px rgba(233, 185, 73, .55);
}

.sparks { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sparks i {
  position: absolute;
  left: var(--x);
  bottom: -12px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 8px 2px rgba(255, 210, 110, .65);
  opacity: 0;
  animation: floatUp var(--d) linear var(--delay) infinite;
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes floatUp {
  0% { opacity: 0; transform: translate(0, 0); }
  12% { opacity: .9; }
  70% { opacity: .5; }
  100% { opacity: 0; transform: translate(-40px, -640px); }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(56px, 8vw, 100px) clamp(44px, 6vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid var(--hair);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/hero-trophy.webp") 85% 35% / cover no-repeat;
  opacity: .7;
}
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(6, 6, 8, .92) 34%, rgba(6, 6, 8, .4) 70%, rgba(6, 6, 8, .2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 6, 8, 0) 50%);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font: 600 13px/1 var(--font-cond);
  letter-spacing: .34em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.page-title {
  margin-top: 16px;
  font: 400 clamp(54px, 8.5vw, 112px)/.88 var(--font-display);
  text-transform: uppercase;
  animation: rise .8s var(--ease) both;
}
.page-title span { background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-sub { max-width: 560px; margin-top: 18px; color: var(--soft); font-size: 17.5px; animation: rise .8s .1s var(--ease) both; }

/* ---------- bevel frame & stats bar ---------- */
.bevel {
  --b: 16px;
  padding: 1px;
  clip-path: polygon(var(--b) 0, 100% 0, 100% calc(100% - var(--b)), calc(100% - var(--b)) 100%, 0 100%, 0 var(--b));
  background: linear-gradient(90deg, rgba(233, 185, 73, .75), rgba(233, 185, 73, .18) 30%, rgba(233, 185, 73, .18) 70%, rgba(233, 185, 73, .8));
}
.bevel-in { clip-path: polygon(calc(var(--b) - .5px) 0, 100% 0, 100% calc(100% - var(--b) + .5px), calc(100% - var(--b) + .5px) 100%, 0 100%, 0 calc(var(--b) - .5px)); }

.stats-wrap { position: relative; z-index: 2; margin-top: -64px; }
.stats-in {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.15fr;
  background: linear-gradient(180deg, #131317 0%, #09090b 100%);
}
.stat { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 22px 26px; border-right: 1px solid var(--hair); }
.stat > .i { font-size: 34px; color: var(--gold); stroke-width: 1.6; filter: drop-shadow(0 0 10px rgba(233, 185, 73, .35)); }
.stat-val { color: #fff; font: 700 32px/1 var(--font-cond); letter-spacing: .01em; white-space: nowrap; }
.stat-label { margin-top: 7px; color: var(--muted); font: 600 12px/1.2 var(--font-cond); letter-spacing: .16em; text-transform: uppercase; }
.cd b { font-weight: 700; }
.cd i { margin: 0 .55em 0 .06em; color: var(--gold); font-size: .62em; font-style: normal; }
.cd i:last-child { margin-right: 0; }
.stat-slogan {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px 28px 18px 60px;
  overflow: hidden;
}
.stat-slogan::before {
  content: "";
  position: absolute;
  inset: -2px -2px -2px 22px;
  z-index: -1;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(233, 185, 73, .2), rgba(233, 185, 73, .03) 80%);
  transform: skewX(-24deg);
  transform-origin: bottom left;
  box-shadow: -8px 0 24px -10px rgba(233, 185, 73, .7);
}
.stat-slogan span { color: var(--gold); font: 600 12.5px/1 var(--font-cond); letter-spacing: .24em; text-transform: uppercase; }
.stat-slogan b { font: 400 25px/1.05 var(--font-display); text-transform: uppercase; background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- sections ---------- */
.section { padding-top: clamp(52px, 7vw, 88px); }
.section:last-of-type { padding-bottom: clamp(64px, 8vw, 104px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.h-section { font: 400 clamp(32px, 4vw, 48px)/1 var(--font-display); letter-spacing: .012em; text-transform: uppercase; }
.section-sub { margin-top: 8px; color: var(--muted); font-size: 15.5px; letter-spacing: .015em; }

.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(10, 10, 12, .75);
}
.seg button {
  height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--soft);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.seg button:hover { color: #fff; }
.seg button[aria-selected="true"] {
  background: var(--grad-gold-btn);
  color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 18px -8px rgba(233, 185, 73, .8);
}
.seg .count { margin-left: 6px; opacity: .7; font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--panel);
  color: var(--soft);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
button.chip:hover { border-color: var(--line-2); color: #fff; }
.chip.is-active { border-color: var(--gold); color: var(--gold-hi); background: rgba(233, 185, 73, .08); }
.chip em { color: var(--gold); font-style: normal; font-family: var(--font-cond); letter-spacing: .06em; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font: 700 11.5px/1 var(--font-cond);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-live, .badge-open { color: #8af0b6; border-color: rgba(70, 209, 127, .4); background: rgba(70, 209, 127, .08); }
.badge-live::before, .badge-open::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(70, 209, 127, .7);
  animation: pulse 1.8s infinite;
}
.badge-upcoming { color: var(--info); border-color: rgba(142, 193, 255, .35); background: rgba(142, 193, 255, .07); }
.badge-claimed, .badge-gold { color: var(--gold-hi); border-color: var(--line-3); background: rgba(233, 185, 73, .1); }
.badge-hidden { color: #ffb0b0; border-color: rgba(255, 107, 107, .35); background: rgba(255, 107, 107, .07); }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(70, 209, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(70, 209, 127, 0); } }

.delta { display: inline-block; font: 600 14px/1 var(--font-cond); letter-spacing: .02em; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }

/* ---------- podium ---------- */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.14fr 1fr;
  align-items: end;
  gap: clamp(10px, 1.6vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pod {
  --clip: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  padding: 1.5px;
  clip-path: var(--clip);
  background: var(--pod-frame);
  transition: transform .35s var(--ease), filter .35s;
}
.pod:hover { transform: translateY(-4px); filter: brightness(1.08); }
.pod-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  min-height: 132px;
  padding: 22px clamp(18px, 2.2vw, 34px);
  clip-path: var(--clip);
  background: var(--pod-bg);
}
.pod-in::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 5px);
  pointer-events: none;
}
.pod-1 {
  order: 2;
  --clip: polygon(4.5% 0, 95.5% 0, 100% 100%, 0 100%);
  --pod-frame: linear-gradient(135deg, #fff3c0 0%, #c38a24 30%, #ffe08a 55%, #9b6516 100%);
  --pod-bg: radial-gradient(90% 120% at 50% 0%, rgba(255, 214, 120, .34), transparent 60%), linear-gradient(180deg, #3d2c0b 0%, #1a1306 60%, #0e0a03 100%);
  padding: 2.5px;
  filter: drop-shadow(0 0 28px rgba(233, 185, 73, .35));
}
.pod-1 .pod-in { min-height: 188px; justify-content: center; }
.pod-1:hover { filter: drop-shadow(0 0 36px rgba(233, 185, 73, .5)) brightness(1.06); }
.pod-2 {
  order: 1;
  --clip: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  --pod-frame: linear-gradient(135deg, #ffffff 0%, #6b6b70 35%, #d6d6d6 60%, #4a4a4f 100%);
  --pod-bg: linear-gradient(135deg, #3c3c42 0%, #1e1e23 45%, #131316 100%);
}
.pod-3 {
  order: 3;
  --clip: polygon(0 0, 97% 0, 100% 100%, 3% 100%);
  --pod-frame: linear-gradient(135deg, #ffd2a6 0%, #7d4a22 35%, #e39d5e 60%, #5b3214 100%);
  --pod-bg: linear-gradient(135deg, #4a2c18 0%, #21150c 45%, #140d08 100%);
}
.pod-rank {
  font: 400 clamp(56px, 6vw, 86px)/.9 var(--font-display);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6));
}
.pod-1 .pod-rank { background-image: var(--grad-gold); font-size: clamp(64px, 7vw, 100px); }
.pod-2 .pod-rank { background-image: var(--grad-silver); }
.pod-3 .pod-rank { background-image: var(--grad-bronze); }
.pod-2 .avatar { background: var(--grad-silver); }
.pod-3 .avatar { background: var(--grad-bronze); }
.pod-crest { position: relative; display: flex; align-items: center; }
.laurel { width: 30px; height: 68px; color: var(--gold); filter: drop-shadow(0 0 6px rgba(233, 185, 73, .5)); overflow: visible; }
.laurel-l { margin-right: -2px; }
.laurel-r { margin-left: -2px; transform: scaleX(-1); }
.pod-info { position: relative; flex: 0 1 auto; min-width: 0; }
.pod-name { overflow: hidden; color: #fff; font: 600 clamp(19px, 1.8vw, 25px)/1.1 var(--font-cond); letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.pod-pts { margin-top: 4px; white-space: nowrap; color: var(--gold-hi); font: 700 clamp(22px, 2vw, 29px)/1 var(--font-cond); }
.pod-2 .pod-pts { color: #f2f2f2; }
.pod-3 .pod-pts { color: #ffcf9f; }
.pod-pts small { font-size: .7em; font-weight: 600; }
.pod-info .delta { display: block; margin-top: 6px; }
/* Empty rows keep every podium card the same height whether or not it has a change or a prize. */
.pod-info .is-placeholder { visibility: hidden; }
.pod-prize {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font: 600 13px/1 var(--font-cond);
  letter-spacing: .06em;
}
.pod-prize .i { color: var(--gold); }
.pod.is-empty .pod-name { color: var(--muted); }
.pod.is-empty .pod-pts { color: var(--dim); }

/* ---------- leaderboard page ---------- */
.lb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.lb-brand { display: block; width: auto; height: 34px; margin: 4px 0 14px; filter: drop-shadow(0 4px 18px rgba(70, 209, 127, .18)); }
.lb-brand-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 22px; }
.lb-brand-row .lb-brand { margin: 0; }
.lb-sync { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; color: var(--muted); font: 600 13px/1.3 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; }
.lb-brand-row .lb-sync { margin: 0; }
.lb-sync .i { color: var(--gold); }
.lb-note { margin-top: 28px; color: var(--dim); font-size: 13px; }

/* Leaderboards page: board tabs, rules, podium, countdown + previous board, standings table */
.lbx { position: relative; isolation: isolate; overflow: hidden; padding: clamp(26px, 4vw, 46px) 0 clamp(64px, 8vw, 104px); }
.lbx::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: 620px;
  background: url("../assets/hero-trophy.webp") 82% 30% / cover no-repeat;
  opacity: .32;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
}
.lbx::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(6, 6, 8, .55) 30%, rgba(6, 6, 8, .2) 60%, rgba(6, 6, 8, .55) 100%),
    radial-gradient(55% 40% at 50% 42%, rgba(233, 185, 73, .1), transparent 70%);
}

/* Extra bottom padding keeps the active tab's glow from being clipped by the scroll area. */
.lbx-tabs { display: flex; justify-content: safe center; gap: 10px; margin: 0 -8px 6px; padding: 6px 8px 28px; overflow-x: auto; scrollbar-width: none; }
.lbx-tabs::-webkit-scrollbar { display: none; }
.lbx-tab {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 156px;
  padding: 14px 22px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.lbx-tab:hover { border-color: var(--hair); background: rgba(255, 255, 255, .03); }
.lbx-tab.is-active {
  border-color: var(--gold);
  background: radial-gradient(120% 120% at 50% 0%, rgba(233, 185, 73, .3), transparent 70%), linear-gradient(180deg, #2a2110, #120e06);
  box-shadow: 0 0 0 1px rgba(233, 185, 73, .25), 0 14px 36px -12px rgba(233, 185, 73, .6);
  transform: translateY(-2px);
}
.lbx-tab-logo { display: flex; align-items: center; justify-content: center; height: 26px; }
.lbx-tab-logo b { font: 400 20px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.lbx-tab .lbx-tab-img { height: 22px; margin: 0; }
.lbx-tab-prize { color: var(--gold-hi); font: 700 17px/1 var(--font-cond); letter-spacing: .04em; text-transform: uppercase; }
.lbx-tab-period { color: var(--muted); font: 700 10.5px/1 var(--font-cond); letter-spacing: .26em; text-transform: uppercase; }

.lbx-info { display: grid; justify-items: center; gap: 6px; max-width: 660px; margin: 0 auto 34px; color: var(--soft); font-size: 14.5px; text-align: center; }
.lbx-info b { color: #fff; }
.lbx-info b.gold { color: var(--gold-hi); }
.lbx-info i { color: var(--muted); }
.lbx-info .btn { margin-top: 12px; }

.lbx-podium { max-width: 1120px; margin: 0 auto; }
.lbx-timer-wrap { display: grid; justify-items: center; gap: 16px; margin-top: 26px; }
.lbx-timer { display: grid; justify-items: center; gap: 6px; }
.lbx-timer-label, .lbx-timer-date { color: var(--muted); font: 700 11px/1 var(--font-cond); letter-spacing: .24em; text-transform: uppercase; }
.lbx-countdown { color: var(--gold-hi); font: 700 clamp(22px, 2.2vw, 28px)/1.1 var(--font-cond); letter-spacing: .06em; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(233, 185, 73, .45); }

.lbx-table { max-width: 900px; margin: clamp(36px, 5vw, 56px) auto 0; }
.lbx-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 170px 130px; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--hair); transition: background-color .2s; }
.lbx-row:not(.lbx-head):hover { background: rgba(233, 185, 73, .045); }
.lbx-head { padding-block: 0 12px; border-top: 0; color: var(--dim); font: 700 11.5px/1 var(--font-cond); letter-spacing: .24em; text-transform: uppercase; }
.lbx-head span:first-child { grid-column: 1 / 3; padding-left: 76px; }
.lbx-head span:not(:first-child) { text-align: right; }
.lbx-rank { color: var(--muted); font: 400 22px/1 var(--font-display); }
.lbx-player { display: flex; align-items: center; gap: 14px; min-width: 0; font-weight: 600; }
.lbx-player > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbx-amount { color: var(--soft); font: 500 14.5px/1 Consolas, 'SFMono-Regular', ui-monospace, monospace; font-variant-numeric: tabular-nums; text-align: right; }
.lbx-row-prize { color: var(--gold-hi); font: 700 18px/1 var(--font-cond); text-align: right; }
.lbx-empty { max-width: 640px; margin: 40px auto 0; color: var(--muted); text-align: center; }
.lbx-note { max-width: 900px; margin: 36px auto 0; text-align: center; }

@media (max-width: 700px) {
  .lbx-row { grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 10px; padding: 12px 8px; }
  .lbx-head span:first-child { padding-left: 46px; }
  .lbx-rank { font-size: 18px; }
  .lbx-player { gap: 10px; }
  .lbx-player .avatar { --s: 30px !important; }
  .lbx-amount { font-size: 13px; }
  .lbx-row-prize { font-size: 16px; }
}
@media (max-width: 420px) {
  .lbx-player .avatar { display: none; }
}

/* ---------- challenges ---------- */
.challenge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ch-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 100% 0%, rgba(233, 185, 73, .13), transparent 55%), var(--grad-panel);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.ch-card:hover { transform: translateY(-4px); border-color: var(--line-3); box-shadow: 0 22px 44px -24px rgba(233, 185, 73, .55); }
.ch-card.is-ended { opacity: .7; }
.ch-watermark { position: absolute; top: -18px; right: -22px; z-index: -1; color: rgba(233, 185, 73, .07); font-size: 140px; transition: transform .6s var(--ease); }
.ch-watermark .i { stroke-width: 1.1; }
.ch-card:hover .ch-watermark { transform: rotate(-8deg) scale(1.06); }
.ch-top { display: flex; align-items: flex-start; gap: 16px; }
.ch-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border: 1.5px solid var(--gold);
  border-radius: 11px;
  background: linear-gradient(180deg, #221a09, #0d0b06);
  color: var(--gold-hi);
  font-size: 26px;
  box-shadow: inset 0 0 18px rgba(233, 185, 73, .2), 0 0 18px -6px rgba(233, 185, 73, .6);
}
.ch-body { min-width: 0; }
.ch-title { font: 700 19px/1.1 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; }
.ch-desc { margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.ch-pts { margin-top: 10px; color: var(--gold-hi); font: 700 23px/1 var(--font-cond); }
.ch-pts small { font-size: .72em; }
.ch-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.bar { flex: 1; height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--grad-gold-btn); box-shadow: 0 0 12px rgba(233, 185, 73, .7); }
.ch-time { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); font: 600 13.5px/1 var(--font-cond); letter-spacing: .04em; white-space: nowrap; }
.ch-time .i { color: var(--muted); }
.ch-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hair); }
.ch-joined { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; }
.ch-joined .i { color: var(--gold); }

/* ---------- bounties ---------- */
.bounty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.bounty {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: radial-gradient(90% 60% at 0% 0%, rgba(233, 185, 73, .12), transparent 60%), var(--grad-panel);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.bounty::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad-gold-btn); }
.bounty:hover { transform: translateY(-4px); border-color: var(--line-3); box-shadow: 0 22px 44px -24px rgba(233, 185, 73, .55); }
.bounty-closed { opacity: .72; }
.bounty-closed::before { background: linear-gradient(90deg, #444, #222); }
.bounty-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bounty-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font: 600 12.5px/1 var(--font-cond); letter-spacing: .26em; text-transform: uppercase; }
.bounty-reward { margin: 18px 0 8px; font: 400 clamp(46px, 4.4vw, 62px)/1 var(--font-display); background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 22px rgba(233, 185, 73, .25)); }
.bounty-title { font: 700 22px/1.15 var(--font-cond); letter-spacing: .04em; text-transform: uppercase; }
.bounty-desc { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.bounty-reqs { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.bounty-reqs li { display: flex; gap: 10px; color: var(--soft); font-size: 14.5px; line-height: 1.4; }
.bounty-reqs .i { margin-top: 2px; color: var(--gold); }
.bounty-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.bounty-reqs + .bounty-foot, .bounty-desc + .bounty-foot { margin-top: 20px; border-top: 1px dashed var(--hair); }
.bounty-when, .bounty-winner { display: inline-flex; align-items: center; gap: 7px; color: var(--soft); font: 600 14px/1 var(--font-cond); letter-spacing: .04em; }
.bounty-when .i { color: var(--muted); }
.bounty-winner .i { color: var(--gold); }
.bounty-winner b { color: var(--gold-hi); }

/* ---------- videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.vid { min-width: 0; }
.vid-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #000;
  transition: border-color .3s, box-shadow .3s;
}
.vid:hover .vid-thumb { border-color: var(--line-3); box-shadow: 0 18px 40px -22px rgba(233, 185, 73, .6); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.72); transition: transform .7s var(--ease), filter .4s; }
.vid:hover .vid-thumb img { transform: scale(1.06); filter: saturate(1) brightness(.88); }
.vid-thumb iframe { width: 100%; height: 100%; border: 0; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.vid-play > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 22px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform .3s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.vid-play > span .i { margin-left: 3px; }
.vid:hover .vid-play > span, .vid-play:focus-visible > span { transform: scale(1.1); border-color: transparent; background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 30px rgba(233, 185, 73, .6); }
.vid-title { display: -webkit-box; margin-top: 11px; overflow: hidden; color: #e9e3d6; font: 600 15px/1.35 var(--font-body); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- socials ---------- */
.social-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.social {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--grad-panel);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.social::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% -30%;
  z-index: -1;
  height: 80%;
  background: radial-gradient(closest-side, rgba(233, 185, 73, .22), transparent);
  opacity: 0;
  transition: opacity .4s;
}
.social:hover { transform: translateY(-5px); border-color: var(--line-3); box-shadow: 0 24px 50px -26px rgba(233, 185, 73, .6); }
.social:hover::after { opacity: 1; }
.social-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--grad-gold-btn);
  color: var(--gold-ink);
  font-size: 27px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 26px -10px rgba(233, 185, 73, .8);
}
.social-name { font: 400 30px/1 var(--font-display); text-transform: uppercase; }
.social-handle { margin-top: -6px; color: var(--gold-hi); font: 600 15.5px/1.2 var(--font-cond); letter-spacing: .05em; word-break: break-word; }
.social-blurb { color: var(--muted); font-size: 14.5px; }
.social .btn { margin-top: auto; }

.watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.watch-side { display: grid; gap: 16px; }
.promo {
  position: relative;
  isolation: isolate;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(233, 185, 73, .16), transparent 60%), var(--grad-panel);
}
.promo-icon { position: absolute; top: -14px; right: -14px; z-index: -1; color: rgba(233, 185, 73, .1); font-size: 120px; }
.promo h3 { font: 400 28px/1.05 var(--font-display); text-transform: uppercase; }
.promo p { margin: 8px 0 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  margin-top: clamp(64px, 8vw, 104px);
  padding-block: clamp(56px, 7vw, 88px);
  overflow: hidden;
  border-block: 1px solid var(--line);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 120% at 50% 100%, rgba(233, 185, 73, .2), transparent 70%),
    url("../assets/hero-trophy.webp") center 30% / cover no-repeat;
  opacity: .5;
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg), rgba(6, 6, 8, .6) 50%, var(--bg)); }
.cta-band h2 { font: 400 clamp(44px, 6.5vw, 86px)/.92 var(--font-display); text-transform: uppercase; }
.cta-band p { max-width: 560px; margin: 16px auto 28px; color: var(--soft); font-size: 17px; }
.cta-band .hero-cta { justify-content: center; animation: none; }
.section:has(+ .cta-band) { padding-bottom: 0; }

/* ---------- empty states ---------- */
.empty {
  padding: 56px 24px;
  border: 1px dashed var(--line-2);
  border-radius: 16px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(233, 185, 73, .08), transparent 70%);
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border: 1px solid var(--line-3);
  border-radius: 16px;
  background: linear-gradient(180deg, #1f1808, #0c0a05);
  color: var(--gold);
  font-size: 28px;
  box-shadow: 0 0 30px -8px rgba(233, 185, 73, .5);
}
.empty h3 { margin-bottom: 8px; font: 400 30px/1.05 var(--font-display); text-transform: uppercase; }
.empty p { max-width: 460px; margin: 0 auto; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

.offline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 107, 107, .45);
  border-radius: 11px;
  background: rgba(255, 107, 107, .08);
  color: #ffd0d0;
  font-size: 15px;
}
.offline > .i { margin-top: 3px; color: var(--down); font-size: 18px; }
.offline b { display: block; color: #fff; }
code { padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); font: 500 .9em/1.4 Consolas, 'SFMono-Regular', monospace; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.field > label, .label { color: #cbc4b5; font: 600 12.5px/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; }
.input, .field input, .field select, .field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: #0a0a0d;
  color: var(--text);
  font-weight: 500;
  font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { height: auto; min-height: 104px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .2); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #0d0d10; box-shadow: 0 0 0 3px rgba(233, 185, 73, .18); }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23e9b949' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.field select option { background: #111; color: var(--text); }
.field input::-webkit-calendar-picker-indicator { filter: invert(.75) sepia(1) saturate(5) hue-rotate(2deg); cursor: pointer; }
.field-hint { color: var(--dim); font-size: 13px; }
.input-sm { height: 38px !important; font-size: 14.5px !important; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-wrap .icon-btn { position: absolute; top: 50%; right: 6px; border-color: transparent; background: none; transform: translateY(-50%); }
.check { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.form-error { padding: 11px 14px; border: 1px solid rgba(255, 107, 107, .35); border-radius: 9px; background: rgba(255, 107, 107, .08); color: #ffb3b3; font-size: 14.5px; }
.form-note { color: var(--muted); font-size: 14px; text-align: center; }
.form-note a, .form-note button { color: var(--gold-hi); font-weight: 600; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch > span { position: relative; width: 44px; height: 24px; flex: none; border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; background: #23232a; transition: background-color .25s, border-color .25s; }
.switch > span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #8c867a; transition: transform .25s var(--ease), background-color .25s; }
.switch input:checked + span { border-color: transparent; background: var(--grad-gold-btn); }
.switch input:checked + span::after { background: var(--gold-ink); transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch em { color: var(--muted); font: 600 12.5px/1 var(--font-cond); font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.switch input:checked ~ em { color: var(--gold-hi); }

/* ---------- auth page ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100vh - var(--header-h) - 34px); }
.auth-art {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../assets/hero-trophy.webp") 74% center / cover no-repeat; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 6%, rgba(6, 6, 8, .4) 55%, rgba(6, 6, 8, .2)), linear-gradient(90deg, rgba(6, 6, 8, .7), transparent 60%); }
.auth-art .hero-title { font-size: clamp(54px, 6.4vw, 104px); }
.auth-art .hero-sub { margin: 18px 0 0; }
/* The artwork runs edge to edge, but its headline starts on the same line as the logo and every page's content. */
.auth { container-type: inline-size; }
.auth-art { padding-inline: max(var(--gutter), (100cqw - var(--container)) / 2 + var(--gutter)) clamp(32px, 5vw, 64px); }
.auth-panel { display: grid; place-items: center; padding: clamp(36px, 5vw, 64px) var(--gutter); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .seg { display: flex; margin-bottom: 26px; }
.auth-card .seg button { flex: 1; }
.auth-card h1 { font: 400 44px/1 var(--font-display); text-transform: uppercase; }
.auth-card .lead { margin: 8px 0 26px; color: var(--muted); }
.auth-signed { padding: 28px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--grad-panel); text-align: center; }
.auth-signed .avatar { margin: 0 auto 16px; }

/* ---------- modal ---------- */
.modal {
  width: 100%;
  max-width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.modal-sm { max-width: min(440px, calc(100vw - 32px)); }
.modal-lg { max-width: min(880px, calc(100vw - 32px)); }
.modal-video { max-width: min(1100px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .3s var(--ease); }
.modal-in {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, #15151a, #0b0b0e);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .75), 0 0 60px -20px rgba(233, 185, 73, .3);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--hair); }
.modal-head h2 { overflow: hidden; font: 400 26px/1.1 var(--font-display); letter-spacing: .015em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.modal-body { padding: 22px; overflow: auto; }
.modal-video .modal-body { padding: 0; }
.modal-video .video-frame { border: 0; border-radius: 0; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.confirm-text { margin-bottom: 20px; color: var(--soft); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 400; display: grid; gap: 10px; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #16161b;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
  font-size: 14.5px;
  animation: toastIn .35s var(--ease);
  transition: opacity .3s, transform .3s;
}
.toast .i { color: var(--gold); font-size: 18px; }
.toast-error { border-color: rgba(255, 107, 107, .45); }
.toast-error .i { color: var(--down); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: linear-gradient(180deg, #08080a, #030304); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-block: 56px 40px; }
.footer-brand p { max-width: 340px; margin: 16px 0 20px; color: var(--muted); font-size: 14.5px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--gold);
  font-size: 18px;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.footer-socials a:hover { transform: translateY(-2px); border-color: transparent; background: var(--gold); color: var(--gold-ink); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h4 { margin-bottom: 6px; color: var(--gold); font: 600 13px/1 var(--font-cond); letter-spacing: .26em; text-transform: uppercase; }
.footer-col a, .footer-col button { color: var(--soft); font-size: 15px; transition: color .2s; }
.footer-col a:hover, .footer-col button:hover { color: var(--gold-hi); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid var(--hair); color: var(--dim); font-size: 13.5px; }
.footer-motto { font: 600 13px/1.4 var(--font-cond); letter-spacing: .2em; text-transform: uppercase; }
.footer-motto b { color: var(--gold); }
.footer-bottom { align-items: center; }
.footer-meta, .footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.footer-bottom i { color: var(--dim); font-style: normal; opacity: .6; }
.age-badge { display: inline-block; margin-right: 2px; padding: 3px 6px; border: 1px solid rgba(255, 107, 107, .55); border-radius: 5px; color: #ff8a8a; font: 700 11px/1 var(--font-cond); letter-spacing: .06em; }
.footer-legal a, .footer-legal button { color: var(--soft); font: 600 13px/1.4 var(--font-cond); letter-spacing: .16em; text-transform: uppercase; transition: color .2s; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--gold-hi); }
@media (max-width: 860px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* Terms / Privacy dialogs (content in js/legal.js) */
.legal { max-width: 720px; margin: 0 auto; color: var(--soft); font-size: 14.5px; line-height: 1.65; }
.legal-site { margin-bottom: 14px; color: var(--muted); font: 600 12px/1 var(--font-cond); letter-spacing: .24em; text-transform: uppercase; }
.legal h3 { margin: 22px 0 6px; color: var(--gold-hi); font: 600 18px/1.25 var(--font-cond); letter-spacing: .03em; }
.legal p + p { margin-top: 10px; }
.legal ul { display: grid; gap: 6px; margin: 6px 0 0; padding-left: 20px; list-style: disc; }
.legal li::marker { color: var(--gold); }
.legal a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero-script { display: none; }
  .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-in { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat-slogan { display: none; }
}

@media (max-width: 1040px) {
  .header-in { gap: 16px; }
  .nav-toggle { display: inline-grid; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    border-bottom: 1px solid var(--line-2);
    background: #070709;
    box-shadow: 0 30px 50px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .site-nav a { padding: 15px 4px; border-bottom: 1px solid var(--hair); font-size: 17px; }
  .site-nav a::after { left: 0; right: auto; top: 50%; bottom: auto; width: 3px; height: 22px; margin-top: -11px; transform: scaleY(0); }
  .site-nav a.is-active::after { transform: scaleY(1); }
  .site-nav a.is-active { padding-left: 16px; }
  .watch { grid-template-columns: 1fr; }
  .watch-side { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .podium { grid-template-columns: 1fr; align-items: stretch; }
  .pod, .pod-1, .pod-2, .pod-3 { --clip: polygon(0 0, 100% 0, 100% 100%, 0 100%); border-radius: 14px; clip-path: none; }
  .pod-in { border-radius: 12.5px; clip-path: none; min-height: 0; }
  .pod-1 { order: 1; }
  .pod-2 { order: 2; }
  .pod-3 { order: 3; }
  .pod-1 .pod-in { min-height: 0; justify-content: flex-start; }
  .stats-in { grid-template-columns: 1fr; }
  .stat { padding: 18px 22px; border-right: 0; border-bottom: 1px solid var(--hair); }
  .stat:nth-child(3) { border-bottom: 0; }
  .stats-wrap { margin-top: -48px; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .topbar-tag { display: none; }
  .topbar-in { justify-content: center; }
  .hide-sm { display: none !important; }
  .show-sm { display: flex !important; }
  .logo { font-size: 25px; }
  .header-in { gap: 10px; }
  .hero { min-height: 0; padding-block: 56px 96px; }
  .hero-bg { background-position: 70% center; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 6, 8, .55) 50%, rgba(6, 6, 8, .75) 100%); }
  .hero-sub { letter-spacing: .16em; }
  .hero-cta .btn { flex: 1 1 100%; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .social-grid, .watch-side { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .user-name { display: none; }
  .user-chip { padding-right: 8px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 10px; }
  .bounty-grid, .challenge-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .sparks { display: none; }
}

/* Concept artwork restoration — October 2026 */
/* Every page shares the homepage's width, so the header, content and footer don't shift when switching pages. */
:root { --container: 1440px; }
body[data-page="home"] main { position: relative; }
body[data-page="home"] main::before { content: ""; position: absolute; inset: 410px 0 0; pointer-events: none; z-index: -1; background: repeating-linear-gradient(46deg, transparent 0 260px, #c5963220 261px 264px, transparent 265px 480px); }
.hero { min-height: 470px; padding-block: 42px 100px; }
.hero-title { font-size: clamp(58px, 7.6vw, 110px); }
.hero-bg::after { background: linear-gradient(90deg, #060608d9, #06060880 35%, transparent 65%), linear-gradient(0deg, #060608, transparent 24%); }
.hero-script { color: #d4cec0; text-shadow: 0 2px 8px #000; }
.stat-slogan { background: linear-gradient(90deg, #090909 20%, #09090966), url('../assets/hero-trophy.webp') 85% center / cover; }
.pod-in::before { background: repeating-linear-gradient(125deg, #ffffff08 0 1px, transparent 1px 4px), radial-gradient(ellipse at 15% 0%, #ffffff30, transparent 65%); }
.pod-1 { --pod-bg: radial-gradient(ellipse at 50% 0%, #e7b43d99, transparent 80%), linear-gradient(135deg, #805b17, #211805 65%, #b38222); }
.pod-crest .avatar > span { position: relative; background: #080909 url('../assets/avatar.jpg') center 40% / cover; color: white; text-shadow: 0 2px 4px #000, 0 0 10px #000; align-items: end; padding-bottom: 4px; font-size: 15px; }
.pod-2 .pod-crest .avatar > span:not(:has(img)) { filter: grayscale(1); }
.ch-card { --card-art: url('../assets/hero-trophy.webp'); border-radius: 3px 12px 3px 12px; background: linear-gradient(90deg, #090b0feb 0%, #090b0f9c 55%, #090b0f33), var(--card-art) 85% center / cover; box-shadow: inset 0 1px #ffe4a638; }
.ch-card[data-art="community"] { --card-art: url('../assets/hero-trophy.webp'); }
.ch-card[data-art="chat"] { --card-art: url('../assets/hero-trophy.webp'); }
.ch-card[data-art="creator"] { --card-art: url('../assets/hero-trophy.webp'); }
.ch-watermark { display: none; }
.ch-icon { border-radius: 0; clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%); background: linear-gradient(135deg, #ffdf86 0 13%, #171407 14% 85%, #ffdf86 86%); }
.ch-desc { color: #dddde1; text-shadow: 0 1px 5px #000; }
.ch-title, .ch-pts, .ch-time { text-shadow: 0 2px 6px #000; }
.ch-actions { background: #07090b70; }
@media(min-width: 1100px) {
  #home-challenges .challenge-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #home-challenges .ch-card { padding: 16px; gap: 14px; }
  #home-challenges .ch-top { gap: 12px; }
  #home-challenges .ch-icon { width: 52px; height: 58px; }
  #home-challenges .ch-title { font-size: 17px; }
  #home-challenges .ch-desc { font-size: 12px; }
  #home-challenges .ch-time { font-size: 12px; }
  #home-podium .pod-in { min-height: 140px; padding: 18px 26px; }
  #home-podium .pod-1 .pod-in { min-height: 154px; }
  #home-podium .pod-rank { font-size: 64px; }
}
@media(max-width: 600px) { .hero { min-height: 0; padding-block: 48px 96px; } .hero-title { font-size: clamp(46px, 12vw, 72px); } }

/* Gold Rush concept: compact, cut-metal podium and trophy challenge art. */
body[data-page="home"] main::before { content: none; }
/* The homepage's section rhythm, used on every page. */
.section { padding-top: 26px; }
.section-head { margin-bottom: 16px; }
.h-section { font-size: clamp(28px, 2.6vw, 36px); }
.podium { gap: 14px; align-items: center; }
.pod { --clip: polygon(2% 0, 98% 0, 100% 8%, 97% 92%, 95% 100%, 2% 100%, 0 90%, 0 8%); padding: 1.5px; }
.pod-1 { --clip: polygon(9% 0, 91% 0, 93% 5%, 100% 94%, 99% 100%, 1% 100%, 0 94%, 7% 5%); filter: drop-shadow(0 0 12px #ffc94770); }
.pod-3 { --clip: polygon(2% 0, 98% 0, 100% 8%, 100% 90%, 98% 100%, 5% 100%, 3% 92%, 0 8%); }
.pod-in { isolation: isolate; background: #090a0b; }
.pod-in::before { z-index: -1; opacity: .72; background: linear-gradient(180deg, transparent, #050505bf 92%), url('../assets/podium-metal.jpg') center / cover; }
.pod-2 .pod-in::before { filter: grayscale(1); opacity: .65; }
.pod-3 .pod-in::before { filter: sepia(.6) saturate(.75) hue-rotate(340deg); opacity: .55; }
.pod-in::after { content: ''; position: absolute; inset: 2px; pointer-events: none; clip-path: var(--clip); box-shadow: inset 0 2px 3px #fff7d891, inset 0 -2px 3px #e5b13a70; }
.pod-2 .pod-pts, .pod-3 .pod-pts { color: var(--gold-hi); }
.ch-card { min-height: 130px; background-image: linear-gradient(90deg, #080808f5, #080808bc 42%, #08080820), var(--card-art); }
@media(min-width: 861px) {
  .pod-in, #home-podium .pod-in { min-height: 116px; padding: 13px 22px; gap: 16px; }
  .pod-1 .pod-in, #home-podium .pod-1 .pod-in { min-height: 132px; padding-inline: 34px; }
  .pod-rank, #home-podium .pod-rank { font-size: 62px; }
  .pod-1 .pod-rank, #home-podium .pod-1 .pod-rank { font-size: 78px; }
  .pod-crest .avatar { --s: 72px !important; }
  .pod-1 .pod-crest .avatar { --s: 82px !important; }
  .laurel { width: 22px; height: 70px; }
  .pod-name { font-size: 22px; }
  .pod-pts { font-size: 26px; }
  .pod-info .delta { margin-top: 3px; font-size: 12px; }
  .pod-prize { margin-top: 4px; padding: 2px 6px; font-size: 11px; }
  .pod-info .delta.is-placeholder, .pod-prize.is-placeholder { display: none; }
}
@media(min-width: 861px) and (max-width: 1100px) {
  .pod-in, #home-podium .pod-in { gap: 10px; padding-inline: 14px; }
  .pod-1 .pod-in, #home-podium .pod-1 .pod-in { padding-inline: 22px; }
  .pod-crest .avatar { --s: 54px !important; }
  .pod-1 .pod-crest .avatar { --s: 62px !important; }
  .laurel { width: 15px; }
  .pod-name { font-size: 18px; }
  .pod-pts { font-size: 21px; }
}
@media(max-width: 860px) { .pod, .pod-1, .pod-2, .pod-3 { clip-path: var(--clip); border-radius: 0; } .pod-in { clip-path: var(--clip); border-radius: 0; } }

/* Concept stats strip: single fine frame and angled end cap. */
.stats.bevel { --b: 7px; position: relative; padding: 1px; overflow: visible; background: linear-gradient(100deg, #b19047, #544422 48%, #d8b85b); }
.stats-wrap::before { content: none; }
.stats-in { grid-template-columns: 1.06fr 1fr 1.12fr .96fr; background: linear-gradient(180deg, #080909, #050505); }
.stat { padding: 10px 26px; min-height: 66px; gap: 24px; border-color: #ffffff09; }
.stat > .i { font-size: 28px; color: #f4d471; filter: none; stroke-width: 2; }
.stat-val { font-size: 28px; }
.stat-label { margin-top: 5px; color: #b6bac2; font: 500 11px/1.2 var(--font-body); letter-spacing: .045em; }
.stat-slogan { padding: 9px 58px 9px 66px; gap: 2px; background: linear-gradient(90deg, #050505 0% 55%, #05050555 84%), url('../assets/hero-trophy.webp') right 48% / auto 115% no-repeat; }
.stat-slogan::before { inset: -2px -2px -2px 29px; transform: skewX(-36deg); border-left: 1px solid #e2b848; background: none; box-shadow: -8px 0 0 -7px #e2b848; }
.stat-slogan::after { content: none; }
.stat-slogan span { white-space: nowrap; font: 500 12px/1.1 var(--font-body); letter-spacing: .03em; }
.stat-slogan b { white-space: nowrap; font-size: 19px; }
@media(min-width: 1201px) { .stat { justify-content: center; } }
@media(min-width: 861px) and (max-width: 1200px) { .stats-in { grid-template-columns: repeat(3, 1fr); } .stat-slogan { display: none; } }
@media(max-width: 860px) { .stats-in { grid-template-columns: 1fr; } .stat { min-height: 66px; padding: 12px 22px; } .stat-slogan { display: none; } .stats-wrap::before { content: none; } }
.stats.bevel { clip-path: polygon(5px 0, 100% 0, 100% 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.stats .bevel-in { clip-path: polygon(4px 0, 100% 0, 100% 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.stats .stat-val { font-family: var(--font-display); font-weight: 400; font-size: 25px; }
.stats .cd b { font-weight: 400; }
.stats .stat { gap: 27px; }
.stats .stat-slogan b { font-size: 18px; }
@media(min-width:1201px) { .stats .stat { justify-content: flex-start; padding-left: clamp(36px, 5.8vw, 84px); padding-right: 12px; } }

/* Rewards end-cap: angled gold panel flush against the third stat; its diagonal edge is the divider. */
@media(min-width: 1201px) { .stats .stat:nth-child(3) { border-right: 0; } }
.stats .stat-slogan {
  align-items: center;
  gap: 3px;
  padding: 9px 18px 9px 62px;
  text-align: center;
  background: none;
}
.stats .stat-slogan::before {
  inset: -2px -2px -2px 0;
  transform: skewX(-36deg);
  transform-origin: bottom left;
  border-left: 1px solid #e2b848;
  box-shadow: none;
  background: linear-gradient(90deg, #e9b94930, #e9b94912 45%, #e9b94906);
}
.stats .stat-slogan::after { content: none; }
.stats .stat-slogan span { font: 600 12px/1.1 var(--font-cond); letter-spacing: .2em; color: var(--gold); }
.stats .stat-slogan b { font-size: 22px; letter-spacing: .02em; }
@media(min-width: 1201px) and (max-width: 1350px) {
  .stats .stat-slogan { padding-left: 56px; padding-right: 12px; }
  .stats .stat-slogan span { font-size: 11px; letter-spacing: .14em; }
  .stats .stat-slogan b { font-size: 19px; }
}

/* Allow tab shadows to paint outside the row; wrap extra boards instead of clipping. */
.lbx-tabs { flex-wrap: wrap; overflow: visible; padding: 10px 12px 30px; margin-inline: 0; }
.lbx { overflow: visible; background: var(--bg); }
/* Trophy art: lighten (against .lbx's own background) means its near-black areas can't darken the page into
   bands, and a long eased fade on the left dissolves it before it reaches the podium's left side. */
.lbx::before {
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%), linear-gradient(90deg, transparent 18%, rgba(0, 0, 0, .12) 30%, rgba(0, 0, 0, .45) 44%, rgba(0, 0, 0, .85) 58%, #000 68%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%), linear-gradient(90deg, transparent 18%, rgba(0, 0, 0, .12) 30%, rgba(0, 0, 0, .45) 44%, rgba(0, 0, 0, .85) 58%, #000 68%);
  mask-composite: intersect;
}
/* A single subtle, non-interactive particle layer on every page. */
.hero .sparks { display: none; }
.global-particles { position: fixed; inset: 0; z-index: 61; pointer-events: none; opacity: .48; contain: strict; }
.global-particles i { animation-name: globalGoldDrift; }
@keyframes globalGoldDrift {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  15% { opacity: .7; }
  75% { opacity: .35; }
  100% { opacity: 0; transform: translate3d(-35px, -105vh, 0); }
}
@media(prefers-reduced-motion: reduce) { .global-particles { display: none; } }
.claim-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.claim-count { color: var(--soft); font: 600 12px/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.claim-count.is-full { color: var(--muted); }
.proof-ticket-note { color: var(--soft); font-size: 13px; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 12px; }

/* Keep display-font ascenders and descenders inside the gradient paint box. */
.hero-title { line-height: 1.08; }
.hero-title > span { padding-block: .06em; margin-block: -.06em; overflow: visible; }

/* Homepage portrait hero; preserve trophy artwork on other sections.
   On wide screens the 2:1 portrait lines up with the container's right edge instead of the window's.
   js/hero-fire.js reads .hero-portrait's box, so the flames follow it. */
body[data-page="home"] .hero { --portrait-inset: max(0px, (100% - var(--container)) / 2); }
body[data-page="home"] .hero-bg { background: #060608; }
body[data-page="home"] .hero-portrait {
  position: absolute;
  top: 0;
  right: var(--portrait-inset);
  height: 100%;
  aspect-ratio: 2 / 1;
  background: url('../assets/hero-suckaa.jpg') right top / auto 100% no-repeat;
  /* The photo's black is pure #000: lighten lifts it to the page colour so no rectangle shows. The eased mask
     dissolves the glow on the left and the gold shards on the right instead of ending them at the image edge. */
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .1) 14%, rgba(0, 0, 0, .4) 26%, rgba(0, 0, 0, .8) 36%, #000 46%, #000 80%, rgba(0, 0, 0, .55) 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .1) 14%, rgba(0, 0, 0, .4) 26%, rgba(0, 0, 0, .8) 36%, #000 46%, #000 80%, rgba(0, 0, 0, .55) 91%, transparent);
}
body[data-page="home"] .hero-bg::after {
  background: linear-gradient(90deg, #06060880, transparent 60%), linear-gradient(0deg, #060608, transparent 24%);
}
body[data-page="home"] .hero-script { top: auto; bottom: 90px; right: calc(var(--portrait-inset) + 3%); font-size: 25px; }
@media(max-width: 640px) {
  body[data-page="home"] .hero-bg { opacity: .6; }
  body[data-page="home"] .hero-portrait { right: auto; left: 0; width: 100%; aspect-ratio: auto; background-position: 65% top; -webkit-mask-image: none; mask-image: none; }
  body[data-page="home"] .hero-bg::after { background: linear-gradient(90deg, #060608d9, #06060855), linear-gradient(0deg, #060608, transparent 65%); }
}

#hero-fire { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; mix-blend-mode: screen; }
@media(prefers-reduced-motion: reduce) { #hero-fire { display: none; } }

/* Points: header menu balance and the My points page (which also loads admin.css for panels and tables). */
.user-dropdown .menu-pts { margin-left: auto; color: var(--gold-hi); font: 700 14px/1 var(--font-cond); letter-spacing: .04em; }
.mt-sm { margin-top: 12px; }
.pts-pos { color: var(--up); }
.pts-neg { color: var(--down); }
.account-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; }
.points-card {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 24px 26px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(233, 185, 73, .16), transparent 60%), var(--panel);
}
.points-big { display: flex; align-items: baseline; gap: 10px; font: 400 clamp(48px, 6vw, 72px)/1 var(--font-display); background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.points-big small { font: 700 18px/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.points-sub { color: var(--muted); font-size: 14px; }
.kick-panel h3 { display: flex; align-items: center; gap: 10px; }
.kick-panel h3 .i { color: #53fc18; font-size: 18px; }
.kick-panel b.gold { color: var(--gold-hi); }
.kick-note { margin-top: 12px; font-size: 13px; }
.earn-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.earn-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--soft); }
.earn-list li .i { flex: none; color: var(--gold); font-size: 20px; }
.earn-list b { color: var(--gold-hi); }
@media (max-width: 760px) { .account-top { grid-template-columns: 1fr; } }

/* Page switches (js/router.js): content fades and rises in; the header stays put. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: .16s ease-in both pageOut; }
::view-transition-new(root) { animation: .34s cubic-bezier(.2, .7, .2, 1) both pageIn; }
#main.page-leave { opacity: 0; transition: opacity .14s ease-in; }
#main.page-enter { animation: pageIn .34s cubic-bezier(.2, .7, .2, 1) both; }
#main:focus { outline: none; }
@keyframes pageOut { to { opacity: 0; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.nav-progress { position: fixed; inset: 0 0 auto; z-index: 400; height: 2px; pointer-events: none; opacity: 0; transform: scaleX(0); transform-origin: 0 50%; background: var(--grad-gold-btn); box-shadow: 0 0 10px rgba(233, 185, 73, .6); }
.nav-progress.is-loading { opacity: 1; transform: scaleX(.75); transition: transform 2.4s cubic-bezier(.1, .6, .2, 1); }
.nav-progress.is-done { opacity: 0; transform: scaleX(1); transition: transform .2s ease-out, opacity .25s .15s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Leaderboards: Current LB / Previous LB switch above the rules */
.lbx-periods { display: flex; justify-content: center; margin: 0 auto 24px; }
.lbx-periods .seg button { display: inline-flex; align-items: center; gap: 8px; }
.lbx-periods .seg .i { font-size: 16px; }

/* Floating skins beside the board card and rules (images set in Admin → Leaderboards). They sit behind the
   page content in their own layer and only show where there's room beside the centred text. */
.lbx-in { position: relative; z-index: 0; }
.lbx-skins { position: absolute; inset: 0 var(--gutter) auto; z-index: -1; pointer-events: none; }
.lbx-skin {
  --tilt: 0deg;
  position: absolute;
  width: clamp(150px, 13vw, 220px);
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .65)) drop-shadow(0 0 18px rgba(233, 185, 73, .22));
  animation: skinFloat 7.5s ease-in-out infinite;
}
.lbx-skin-1 { left: 0; top: 34px; --tilt: -12deg; }
.lbx-skin-2 { left: 6%; top: 196px; --tilt: 8deg; animation-duration: 8.6s; animation-delay: -2.6s; }
.lbx-skin-3 { right: 0; top: 44px; --tilt: 12deg; animation-duration: 8.1s; animation-delay: -4.1s; }
.lbx-skin-4 { right: 6%; top: 204px; --tilt: -8deg; animation-duration: 9.2s; animation-delay: -1.3s; }
@keyframes skinFloat {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
  50% { transform: translateY(-14px) rotate(calc(var(--tilt) + 2.5deg)); }
}
@media (max-width: 1100px) { .lbx-skins { display: none; } }
@media (prefers-reduced-motion: reduce) { .lbx-skin { animation: none; transform: rotate(var(--tilt)); } }

/* ---------- Store, Rewards (cases) and Raffle ---------- */
.rarity-blue { --rar: #4b69ff; }
.rarity-purple { --rar: #8847ff; }
.rarity-pink { --rar: #d32ce6; }
.rarity-red { --rar: #eb4b4b; }
.rarity-gold { --rar: #e4ae39; }

.shop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-bottom: 26px; }
.shop-bar.notice .btn { margin-left: auto; }
.shop-balance { display: grid; gap: 4px; }
.shop-balance b { font: 400 34px/1 var(--font-display); background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.shop-card { position: relative; display: grid; align-content: start; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(120% 90% at 50% 0%, rgba(233, 185, 73, .1), transparent 60%), var(--panel); text-align: center; transition: border-color .2s, transform .2s; }
.shop-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.shop-card.is-soldout { opacity: .6; }
.shop-card h3 { font: 400 22px/1.1 var(--font-display); text-transform: uppercase; }
.shop-img { display: grid; place-items: center; height: 120px; color: var(--gold); font-size: 44px; }
.shop-img img { max-width: 100%; max-height: 120px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.shop-desc { color: var(--muted); font-size: 14px; }
.shop-price { font: 400 30px/1 var(--font-display); color: var(--gold-hi); }
.shop-price small { font: 700 13px/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.shop-stock { min-height: 18px; color: var(--muted); font-size: 13px; }
.shop-partner { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, .45); }
.shop-partner .lb-brand { display: block; width: auto; height: 13px; margin: 0; }
.shop-confirm { display: grid; justify-items: center; gap: 10px; text-align: center; }
.shop-confirm h3 { font: 400 26px/1.1 var(--font-display); text-transform: uppercase; }
.shop-confirm .notice { text-align: left; width: 100%; }
.shop-confirm .modal-actions { width: 100%; }

.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.case-card { display: grid; justify-items: center; gap: 6px; padding: 20px 16px 18px; border: 1px solid var(--line); border-bottom: 3px solid var(--rar, var(--gold)); border-radius: 14px; background: radial-gradient(110% 90% at 50% 15%, color-mix(in srgb, var(--rar, #e9b949) 22%, transparent), transparent 65%), var(--panel); color: var(--text); text-align: center; cursor: pointer; transition: transform .2s, border-color .2s; }
.case-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.case-card h3 { font: 400 22px/1.1 var(--font-display); text-transform: uppercase; }
.case-img { display: grid; place-items: center; height: 140px; color: var(--gold); font-size: 54px; }
.case-img img { max-width: 100%; max-height: 140px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .6)); }
.case-meta { color: var(--muted); font-size: 13px; }
.case-view { display: grid; gap: 18px; }
.case-back { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--gold-hi); font-weight: 600; }
.case-back .i { transform: rotate(180deg); }
.case-head { display: flex; align-items: center; gap: 22px; }
.case-head .case-img { flex: none; width: 150px; height: 110px; }
.case-head .case-img img { max-height: 110px; }
.case-actions { display: flex; justify-content: center; }

.reel { position: relative; height: 196px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 14px; background: linear-gradient(180deg, #0c0c10, #060608); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.reel-marker { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 2; width: 3px; margin-left: -1.5px; background: var(--grad-gold-btn); box-shadow: 0 0 14px rgba(233, 185, 73, .9); }
.reel-marker::before, .reel-marker::after { content: ""; position: absolute; left: 50%; border: 9px solid transparent; transform: translateX(-50%); }
.reel-marker::before { top: 0; border-top-color: var(--gold-hi); }
.reel-marker::after { bottom: 0; border-bottom-color: var(--gold-hi); }
.reel-strip { display: flex; gap: 10px; height: 100%; padding: 18px 0; will-change: transform; }
.reel-strip.is-idle { justify-content: center; }
.reel-card { --rar: #e9b949; position: relative; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 6px; flex: 0 0 150px; padding: 12px 10px 14px; border-radius: 10px; border-bottom: 4px solid var(--rar); background: radial-gradient(100% 80% at 50% 30%, color-mix(in srgb, var(--rar) 30%, transparent), transparent 70%), #121217; transition: transform .3s, box-shadow .3s; }
.reel-card.rarity-blue { --rar: #4b69ff; }
.reel-card.rarity-purple { --rar: #8847ff; }
.reel-card.rarity-pink { --rar: #d32ce6; }
.reel-card.rarity-red { --rar: #eb4b4b; }
.reel-card.rarity-gold { --rar: #e4ae39; }
.reel-card img { align-self: center; max-width: 100%; max-height: 96px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .6)); }
.reel-noimg { align-self: center; color: var(--rar); font-size: 44px; }
.reel-name { max-width: 100%; overflow: hidden; color: var(--soft); font: 600 13px/1.2 var(--font-cond); letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.reel-card.is-won { transform: scale(1.06); box-shadow: 0 0 0 2px var(--rar), 0 0 30px color-mix(in srgb, var(--rar) 60%, transparent); }
.case-result { padding: 22px; border: 1px solid var(--rar, var(--line-2)); border-radius: 14px; background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--rar, #e9b949) 22%, transparent), transparent 70%), var(--panel); text-align: center; animation: pageIn .4s both; }
.case-result h3 { margin: 4px 0 8px; font: 400 clamp(28px, 4vw, 40px)/1 var(--font-display); text-transform: uppercase; color: #fff; }
.case-result p { color: var(--soft); }
.case-result-label { color: var(--rar, var(--gold)); font: 700 12px/1 var(--font-cond); letter-spacing: .26em; text-transform: uppercase; }
.case-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.case-item { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--hair); border-bottom: 3px solid var(--rar); border-radius: 10px; background: radial-gradient(100% 70% at 50% 25%, color-mix(in srgb, var(--rar) 20%, transparent), transparent 70%), var(--panel); text-align: center; }
.case-item-img { display: grid; place-items: center; height: 80px; color: var(--rar); font-size: 36px; }
.case-item-img img { max-width: 100%; max-height: 80px; object-fit: contain; }
.case-item-name { font-weight: 700; font-size: 14px; }
.case-item-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; }
.case-item-meta span { color: var(--rar); font-weight: 600; }
.case-item-meta b { color: var(--gold-hi); }
.case-item-chance { color: var(--muted); font: 600 13px/1 var(--font-cond); letter-spacing: .06em; }

.payout-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.payout-panel > div { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.payout-panel p { color: var(--soft); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .case-head { flex-direction: column; align-items: flex-start; }
  .reel { height: 170px; }
  .reel-card { flex-basis: 124px; }
}

/* ---------- raffle (admin, always open) ---------- */
.raffle-page { padding-block: 34px 80px; }
.raffle-notice { margin-bottom: 18px; }
.raffle-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.raffle-head .h-section { margin-top: 10px; }
.raffle-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.raffle-controls, .raffle-stage, .raffle-board { border: 1px solid var(--line); border-radius: var(--radius); background: var(--grad-panel); }

.raffle-controls { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.raffle-settings { display: grid; gap: 16px; }
.raffle-settings .field-hint { font-size: 13px; }
.raffle-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid var(--hair); border-radius: 10px; background: rgba(0, 0, 0, .3); cursor: pointer; transition: border-color .2s; }
.raffle-toggle:hover, .raffle-toggle:has(input:checked) { border-color: var(--line-2); }
.raffle-toggle > span:first-child { display: grid; gap: 4px; }
.raffle-toggle b { color: var(--text); font-size: 14.5px; }
.raffle-toggle small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.raffle-controls-foot { display: grid; justify-items: center; gap: 9px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hair); }
.raffle-controls-foot small { color: var(--muted); font: 600 12.5px/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; }

.raffle-main { display: grid; gap: 20px; min-width: 0; }
.raffle-stage { display: grid; gap: 16px; padding: 18px; }
.raffle-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.raffle-stats > div { display: grid; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 10px; background: rgba(0, 0, 0, .28); }
.raffle-stats b { overflow: hidden; font: 400 34px/1 var(--font-display); background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; text-overflow: ellipsis; white-space: nowrap; }
.raffle-stats .raffle-kw { font-size: 26px; line-height: 1.3; text-transform: lowercase; }
.raffle-stats span { color: var(--muted); font: 600 11.5px/1 var(--font-cond); letter-spacing: .18em; text-transform: uppercase; }
.raffle-reel { height: 150px; }
.raffle-reel .reel-strip { padding: 14px 0; }
.raffle-card { flex-basis: 120px; grid-template-rows: 1fr auto; align-items: center; }
.raffle-face { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; flex: none; border: 2px solid var(--gold); border-radius: 50%; background: #0b0b0e; }
.raffle-card .raffle-face { align-self: center; }
.raffle-face img { width: 100%; height: 100%; object-fit: cover; }
.raffle-initials { color: var(--gold-hi); font: 400 20px/1 var(--font-display); }
.raffle-card .reel-name { color: #fff; font-size: 14px; }
.raffle-wait { align-self: center; margin: auto; color: var(--muted); }
.raffle-reel:has(.raffle-wait) { display: grid; place-items: center; }
.raffle-announce { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line-3); border-radius: 12px; background: radial-gradient(90% 140% at 0% 50%, rgba(233, 185, 73, .2), transparent 70%), var(--panel); animation: pageIn .4s both; }
.raffle-announce .raffle-face { width: 64px; height: 64px; box-shadow: 0 0 24px rgba(233, 185, 73, .35); }
.raffle-announce > div { flex: 1; min-width: 0; }
.raffle-announce p { display: flex; align-items: center; gap: 6px; color: var(--gold); font: 700 12px/1 var(--font-cond); letter-spacing: .26em; text-transform: uppercase; }
.raffle-announce h3 { overflow: hidden; margin-top: 6px; color: #fff; font: 400 clamp(28px, 4vw, 40px)/1 var(--font-display); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }

.raffle-boards { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
.raffle-board { display: flex; flex-direction: column; height: 400px; min-width: 0; overflow: hidden; }
.raffle-board-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.raffle-board-head h2 { font: 400 22px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.raffle-board-head .search { max-width: 220px; }
.raffle-board-head .search input { height: 38px; }
.raffle-entry-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--gold-lo) transparent; }
.raffle-entry { display: grid; grid-template-columns: 34px 34px minmax(0, 1fr) auto 32px; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--hair); transition: background-color .2s; }
.raffle-entry:hover { background: rgba(233, 185, 73, .04); }
.raffle-entry.is-winner { background: rgba(233, 185, 73, .07); }
.raffle-entry.is-out { opacity: .5; }
.raffle-entry-no { color: var(--dim); font: 600 13px/1 var(--font-cond); text-align: center; }
.raffle-entry .raffle-face, .raffle-winner-list .raffle-face { width: 34px; height: 34px; border-width: 1px; }
.raffle-entry .raffle-initials, .raffle-winner-list .raffle-initials { font-size: 13px; }
.raffle-entry-name, .raffle-winner-list li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.raffle-entry-name b, .raffle-winner-list b { overflow: hidden; color: var(--text); font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.raffle-entry-name small, .raffle-winner-list small { color: var(--muted); font-size: 12px; }
.raffle-entry .icon-btn { width: 30px; height: 30px; opacity: .55; }
.raffle-entry:hover .icon-btn { opacity: 1; }
.raffle-winner-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; scrollbar-color: var(--gold-lo) transparent; }
.raffle-winner-list li { display: flex; align-items: center; gap: 11px; padding: 10px 16px; border-bottom: 1px solid var(--hair); }
.raffle-winner-list li:first-child:not(.raffle-empty) b { color: var(--gold-hi); }
.raffle-empty { display: grid !important; justify-items: center; gap: 8px; padding: 44px 20px !important; border: 0 !important; color: var(--muted); text-align: center; }
.raffle-empty .i { color: var(--gold-lo); font-size: 34px; }
.raffle-empty b { color: var(--soft); font: 600 16px/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; }
.raffle-empty p { font-size: 13.5px; }
.raffle-empty p b { color: var(--gold-hi); font: inherit; letter-spacing: 0; text-transform: none; }

@media (max-width: 1100px) {
  .raffle-boards { grid-template-columns: 1fr; }
  .raffle-board-winners { height: 320px; }
}
@media (max-width: 860px) {
  .raffle-layout { grid-template-columns: 1fr; }
  .raffle-controls-foot { margin-top: 4px; }
  .raffle-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .raffle-page { padding-top: 20px; }
  .raffle-head { align-items: flex-start; flex-direction: column; }
  .raffle-board-head { flex-wrap: wrap; }
  .raffle-board-head .search { max-width: none; flex-basis: 100%; }
  .raffle-entry { grid-template-columns: 34px minmax(0, 1fr) auto 30px; padding-inline: 12px; }
  .raffle-entry-no { display: none; }
  .raffle-announce { flex-wrap: wrap; }
}
.raffle-head-actions { display: flex; align-items: center; gap: 10px; }
.raffle-head-actions .icon-btn.is-muted { color: var(--dim); }

/* ---------- daily points ---------- */
.daily-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.daily-stats > div { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--grad-panel); }
.daily-stats b { font: 400 clamp(28px, 3.4vw, 40px)/1 var(--font-display); background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.daily-stats span { color: var(--muted); font: 600 12px/1 var(--font-cond); letter-spacing: .18em; text-transform: uppercase; }
.daily-note { margin: 14px 0 26px; color: var(--soft); }
.daily-status { margin-bottom: 26px; }
.daily-calendar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.daily-door { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 172px; padding: 30px 12px 18px; border: 1px solid var(--hair); border-radius: 14px; background: linear-gradient(180deg, #121217, #09090c); text-align: center; overflow: hidden; }
.daily-door-day { position: absolute; top: 12px; left: 0; right: 0; color: var(--muted); font: 600 11.5px/1 var(--font-cond); letter-spacing: .2em; text-transform: uppercase; }
.daily-door b { font: 400 30px/1 var(--font-display); color: var(--soft); }
.daily-door small { color: var(--muted); font: 600 12px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; }
.daily-door em { position: absolute; bottom: 8px; left: 0; right: 0; color: var(--gold-lo); font: 600 10.5px/1 var(--font-cond); font-style: normal; letter-spacing: .14em; text-transform: uppercase; }
.daily-door.is-top { border-color: var(--line); }
.daily-door.is-top.is-locked em, .daily-door.is-top.is-open em, .daily-door.is-top.is-today em { bottom: 7px; }
.daily-door-num { color: #2a2a31; font: 400 54px/1 var(--font-display); position: absolute; inset: auto 0 22px; z-index: 0; }
.daily-door.is-locked b, .daily-door.is-locked .i { position: relative; z-index: 1; }
.daily-door.is-locked .i { color: var(--dim); font-size: 16px; }
.daily-door.is-open { border-color: var(--line-2); background: radial-gradient(100% 80% at 50% 0%, rgba(233, 185, 73, .16), transparent 70%), #110f0b; }
.daily-door.is-open b { background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.daily-door-check { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad-gold-btn); color: var(--gold-ink); font-size: 16px; }
.daily-door.is-today { border-color: var(--line-3); background: radial-gradient(100% 90% at 50% 10%, rgba(233, 185, 73, .26), transparent 72%), #15120b; box-shadow: 0 0 0 1px rgba(233, 185, 73, .25), 0 0 34px -6px rgba(233, 185, 73, .55); animation: dailyGlow 2.2s ease-in-out infinite; }
.daily-door.is-today b { color: #fff; font-size: 34px; }
.daily-door.is-today .daily-door-day { color: var(--gold-hi); }
.daily-door.is-just-opened { animation: dailyOpen .7s var(--ease) both; }
@keyframes dailyGlow { 50% { box-shadow: 0 0 0 1px rgba(233, 185, 73, .45), 0 0 44px -4px rgba(233, 185, 73, .75); } }
@keyframes dailyOpen { 0% { transform: perspective(600px) rotateY(-80deg); opacity: .3; } 100% { transform: none; opacity: 1; } }
@media (max-width: 900px) { .daily-calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .daily-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .daily-door { min-height: 150px; }
}

/* ---------- cases: admin stream mode, store affiliates ---------- */
.cases-mode { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cases-mode .seg button { display: inline-flex; align-items: center; gap: 7px; }
.cases-mode .icon-btn.is-muted { color: var(--dim); }
.shop-aff { justify-self: center; gap: 5px; }
.shop-aff .i { font-size: 12px; }
.shop-aff-field { margin: 14px 0; text-align: left; }
.discord-panel { grid-column: 1 / -1; }

/* ---------- cases: opening several at once ---------- */
.case-actions { flex-direction: column; align-items: center; gap: 14px; }
.case-count { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 4px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(10, 10, 12, .75); }
.case-count button { min-width: 38px; height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--soft); font: 700 15px/1 var(--font-cond); letter-spacing: .04em; cursor: pointer; transition: background-color .2s, color .2s; }
.case-count button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.case-count button[aria-pressed="true"] { background: var(--grad-gold-btn); color: var(--gold-ink); }
.case-reels { display: grid; gap: 10px; }
.case-reels.is-multi .reel { height: 128px; }
.case-reels.is-multi .reel-strip { padding: 10px 0; gap: 8px; }
.case-reels.is-multi .reel-card { flex-basis: 104px; padding: 8px 6px 10px; }
.case-reels.is-multi .reel-card img { max-height: 60px; }
.case-reels.is-multi .reel-noimg { font-size: 30px; }
.case-reels.is-multi .reel-name { font-size: 11.5px; }
.case-reels.is-grid { grid-template-columns: 1fr 1fr; }
.case-multi-result { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line-2); border-radius: 14px; background: radial-gradient(90% 120% at 50% 0%, rgba(233, 185, 73, .14), transparent 70%), var(--panel); animation: pageIn .4s both; }
.case-multi-total { color: var(--soft); text-align: center; }
.case-multi-total b { color: var(--gold-hi); }
.case-multi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
@media (max-width: 760px) { .case-reels.is-grid { grid-template-columns: 1fr; } }
.raffle-board-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.raffle-board-tools .search { flex: 1; min-width: 0; }
.raffle-board-btn { --h: 38px; flex: none; padding: 0 12px; font-size: 13px; }
.raffle-board-btn:hover:not([disabled]) { border-color: rgba(255, 107, 107, .5); color: #ffc2c2; }

/* ---------- home: partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.partner-grid.is-single { grid-template-columns: minmax(0, 640px); justify-content: center; }
.partner-card { position: relative; display: grid; gap: 16px; padding: 28px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: radial-gradient(120% 90% at 50% 0%, rgba(233, 185, 73, .14), transparent 62%), var(--grad-panel); text-align: center; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.partner-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(135deg, rgba(255, 224, 138, .35), transparent 35%, transparent 65%, rgba(233, 185, 73, .25)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; pointer-events: none; }
.partner-card:hover { transform: translateY(-3px); border-color: var(--line-3); box-shadow: 0 24px 60px -30px rgba(233, 185, 73, .55); }
.partner-logo { display: grid; place-items: center; min-height: 86px; padding: 18px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(0, 0, 0, .35); }
.partner-logo .lb-brand { height: 46px; max-width: 100%; margin: 0; }
.partner-img { display: block; width: auto; max-width: 100%; height: 46px; object-fit: contain; }
.partner-wordmark { font: 400 34px/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.partner-desc { margin-top: -8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.partner-points { display: grid; gap: 6px; justify-items: center; margin: -4px 0 0; padding: 0; list-style: none; text-align: center; }
.partner-points li { color: var(--soft); font-size: 14.5px; line-height: 1.4; }
.partner-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.partner-pool { font: 400 30px/1 var(--font-display); background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.partner-pool small { margin-left: 4px; color: var(--muted); -webkit-text-fill-color: var(--muted); font: 600 12px/1 var(--font-cond); letter-spacing: .16em; text-transform: uppercase; }
.partner-name { color: var(--soft); font: 600 16px/1.3 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; }
.partner-code { display: inline-flex; align-items: center; justify-self: center; gap: 10px; padding: 10px 16px; border: 1px dashed var(--line-3); border-radius: 10px; background: rgba(233, 185, 73, .06); color: var(--soft); cursor: pointer; transition: background-color .2s, border-color .2s; }
.partner-code:hover { background: rgba(233, 185, 73, .14); border-color: var(--gold); }
.partner-code .i { color: var(--gold); }
.partner-code span { color: var(--muted); font: 600 12px/1 var(--font-cond); letter-spacing: .18em; text-transform: uppercase; }
.partner-code b { color: var(--gold-hi); font: 400 24px/1 var(--font-display); letter-spacing: .06em; }
.partner-code em { color: var(--muted); font: 600 11px/1 var(--font-cond); font-style: normal; letter-spacing: .14em; text-transform: uppercase; }
.partner-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 480px) { .partner-card { padding: 20px; } .partner-actions .btn { flex: 1 1 100%; } }

/* ---------- floating Kick player (while live) ---------- */
.kick-player { position: fixed; right: 20px; bottom: 20px; z-index: 250; width: 340px; overflow: hidden; border: 1px solid var(--line-3); border-radius: 14px; background: #0b0b0e; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(233, 185, 73, .08), 0 0 40px -12px rgba(83, 252, 24, .35); animation: kpIn .45s var(--ease) both; }
@keyframes kpIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.kp-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #16161b, #0e0e12); }
.kp-head b { flex: 1; min-width: 0; overflow: hidden; color: var(--text); font: 600 14px/1 var(--font-cond); letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.kp-live { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; background: #53fc18; color: #0b0b0e; font: 700 11px/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; }
.kp-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #0b0b0e; animation: kpPulse 1.4s ease-in-out infinite; }
@keyframes kpPulse { 50% { opacity: .25; } }
.kp-btn { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--hair); border-radius: 7px; background: rgba(255, 255, 255, .03); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.kp-btn:hover { color: var(--gold-hi); border-color: var(--line-2); }
.kp-btn .i { font-size: 14px; transition: transform .2s; }
.kp-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.kp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kp-open { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; color: var(--gold-hi); font: 600 14px/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s; }
.kp-open:hover { background: rgba(233, 185, 73, .08); }
.kp-open .i { font-size: 14px; }
.kick-player.is-min { width: 240px; }
.kick-player.is-min .kp-frame, .kick-player.is-min .kp-open { display: none; }
.kick-player.is-min .kp-head { border-bottom: 0; cursor: pointer; }
.kick-player.is-min [data-kp-min] .i { transform: rotate(180deg); }
@media (max-width: 640px) {
  .kick-player { right: 12px; bottom: 12px; left: 12px; width: auto; }
  .kick-player.is-min { left: auto; width: 220px; }
}
.kick-player.is-offline { box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(233, 185, 73, .08); }
.kick-player.is-offline .kp-live { background: #3a3a44; color: var(--soft); }
.kick-player.is-offline .kp-live::before { background: var(--muted); animation: none; }
.kick-player-mode { max-width: 420px; }

/* ---------- splash screen (js/splash.js, first page of a visit) ---------- */
html.is-splashing { overflow: hidden; }
.splash { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; overflow: hidden; background: radial-gradient(60% 50% at 50% 46%, #1a1306 0%, #08070a 55%, #030304 100%); transition: opacity .6s ease, visibility .6s; }
.splash.is-leaving { opacity: 0; visibility: hidden; }
.splash.is-leaving .splash-core { transform: scale(1.08); filter: blur(4px); }
.splash-rays { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, rgba(233, 185, 73, .07) 0deg 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 0%, transparent 46%); mask: radial-gradient(circle, #000 0%, transparent 46%); animation: splashSpin 26s linear infinite; }
.splash-embers { position: absolute; inset: 0; pointer-events: none; }
.splash-embers i { position: absolute; bottom: -10px; left: calc(var(--x, 50) * 1%); width: 3px; height: 3px; border-radius: 50%; background: #ffd479; box-shadow: 0 0 8px 2px rgba(255, 196, 80, .7); opacity: 0; animation: splashEmber 3.2s ease-in infinite; }
.splash-embers i:nth-child(1) { --x: 12; animation-delay: .1s; } .splash-embers i:nth-child(2) { --x: 22; animation-delay: 1.3s; }
.splash-embers i:nth-child(3) { --x: 31; animation-delay: .6s; } .splash-embers i:nth-child(4) { --x: 39; animation-delay: 2.1s; }
.splash-embers i:nth-child(5) { --x: 46; animation-delay: .3s; } .splash-embers i:nth-child(6) { --x: 53; animation-delay: 1.7s; }
.splash-embers i:nth-child(7) { --x: 59; animation-delay: .9s; } .splash-embers i:nth-child(8) { --x: 66; animation-delay: 2.4s; }
.splash-embers i:nth-child(9) { --x: 72; animation-delay: .4s; } .splash-embers i:nth-child(10) { --x: 79; animation-delay: 1.5s; }
.splash-embers i:nth-child(11) { --x: 86; animation-delay: .8s; } .splash-embers i:nth-child(12) { --x: 92; animation-delay: 2s; }
.splash-embers i:nth-child(13) { --x: 17; animation-delay: 2.7s; } .splash-embers i:nth-child(14) { --x: 63; animation-delay: 2.9s; }
.splash-core { position: relative; display: grid; justify-items: center; gap: 18px; padding: 0 16px; text-align: center; transition: transform .6s ease, filter .6s; }
.splash-ring { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; animation: splashPop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.splash-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, #ffe08a 75%, #e9b949 88%, transparent 100%); -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%); mask: radial-gradient(circle, transparent 60%, #000 62%); animation: splashSpin 1.1s linear infinite; }
.splash-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(233, 185, 73, .25); box-shadow: 0 0 40px -4px rgba(233, 185, 73, .45), inset 0 0 24px rgba(233, 185, 73, .18); }
.splash-ring svg { width: 40px; height: 40px; fill: none; stroke: #f7d46c; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(247, 212, 108, .7)); animation: splashCrown 1.6s ease-in-out infinite; }
.splash-logo { display: flex; font: 400 clamp(40px, 9vw, 72px)/1 var(--font-display); letter-spacing: .01em; }
.splash-logo span, .splash-logo b { display: flex; font-weight: 400; }
.splash-logo i { display: inline-block; font-style: normal; opacity: 0; transform: translateY(.5em) rotate(6deg); animation: splashLetter .55s cubic-bezier(.2, 1.2, .4, 1) forwards; animation-delay: calc(.25s + var(--i) * .045s); }
.splash-logo span i { color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .8); }
.splash-logo b i { background: linear-gradient(100deg, #b27a20 0%, #f7d46c 30%, #fff8dc 45%, #f7d46c 60%, #b27a20 100%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation-name: splashLetter, splashShine; animation-duration: .55s, 2.2s; animation-timing-function: cubic-bezier(.2, 1.2, .4, 1), linear; animation-iteration-count: 1, infinite; animation-fill-mode: forwards, none; animation-delay: calc(.25s + var(--i) * .045s), 1s; filter: drop-shadow(0 0 14px rgba(233, 185, 73, .35)); }
.splash-bar { position: relative; width: min(240px, 60vw); height: 3px; overflow: hidden; border-radius: 3px; background: rgba(233, 185, 73, .14); }
.splash-bar i { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, transparent, #ffe08a, #e9b949, transparent); box-shadow: 0 0 12px rgba(255, 224, 138, .8); animation: splashBar 1.05s ease-in-out infinite; }
.splash-tag { color: var(--muted); font: 600 12px/1 var(--font-cond); letter-spacing: .32em; text-transform: uppercase; animation: fadeIn .6s .7s both; }
.splash-tag em { color: var(--gold); font-style: normal; }
@keyframes splashSpin { to { transform: rotate(360deg); } }
@keyframes splashPop { from { opacity: 0; transform: scale(.4); } }
@keyframes splashCrown { 50% { transform: translateY(-3px) scale(1.06); } }
@keyframes splashLetter { to { opacity: 1; transform: none; } }
@keyframes splashShine { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@keyframes splashBar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes splashEmber { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(18px, -75vh); } }
@media (prefers-reduced-motion: reduce) {
  .splash-rays, .splash-embers, .splash-ring::before, .splash-ring svg, .splash-bar i { animation: none; }
  .splash-logo i, .splash-logo b i { animation: fadeIn .3s forwards; transform: none; }
}

/* ---------- 404 page ---------- */
.nf { position: relative; isolation: isolate; display: grid; align-items: center; min-height: calc(100vh - 160px); padding-block: 70px 90px; overflow: hidden; text-align: center; }
.nf-glow { position: absolute; inset: 0; z-index: -2; background: radial-gradient(50% 45% at 50% 42%, rgba(233, 185, 73, .16), transparent 70%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px); }
.nf-in { display: grid; justify-items: center; gap: 10px; }
.nf .eyebrow { justify-content: center; }
.nf-code { position: relative; margin: 4px 0 6px; font: 400 clamp(120px, 24vw, 260px)/.9 var(--font-display); letter-spacing: .02em; background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 40px rgba(233, 185, 73, .35)); animation: rise .8s cubic-bezier(.2, 1.2, .4, 1) both; }
/* Glitch: offset copies of the number flash through thin slices every few seconds. */
.nf-code::before, .nf-code::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.nf-code::before { color: #ffe08a; -webkit-text-fill-color: #ffe08a; animation: nfGlitchA 4.2s 1.2s steps(1) infinite; }
.nf-code::after { color: #c9821f; -webkit-text-fill-color: #c9821f; animation: nfGlitchB 4.2s 1.2s steps(1) infinite; }
.nf-title { font: 400 clamp(30px, 5vw, 48px)/1 var(--font-display); text-transform: uppercase; color: #fff; }
.nf-title b { font-weight: 400; background-image: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-sub { max-width: 440px; color: var(--soft); font-size: 16px; }
.nf-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.nf-script { margin-top: 26px; color: #d9d3c6; font: 400 clamp(20px, 2.4vw, 28px)/1 var(--font-script); transform: rotate(-5deg); opacity: .85; }
@keyframes nfGlitchA { 0%, 100% { opacity: 0; } 46% { opacity: .9; transform: translate(-6px, 2px); clip-path: inset(18% 0 58% 0); } 48% { opacity: .9; transform: translate(5px, -2px); clip-path: inset(62% 0 12% 0); } 50% { opacity: 0; } }
@keyframes nfGlitchB { 0%, 100% { opacity: 0; } 47% { opacity: .7; transform: translateX(6px); clip-path: inset(40% 0 35% 0); filter: hue-rotate(-25deg); } 49% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nf-code, .nf-code::before, .nf-code::after { animation: none; } }
@media (max-width: 480px) { .nf-cta .btn { flex: 1 1 100%; } }
