:root {
  /* Palette sampled from CaptainBonk overlay */
  --bg: #000000;
  --bg-elevated: #0c0c0c;
  --bg-card: #141414;
  --bg-card-rich: linear-gradient(160deg, rgba(20, 20, 20, 0.98), rgba(0, 0, 0, 0.96));
  --border: rgba(240, 176, 0, 0.2);
  --border-strong: rgba(255, 220, 40, 0.55);
  --text: #fff8e8;
  --text-muted: #b8a888;
  --accent: #f0b000;
  --accent-bright: #ffe228;
  --accent-deep: #c07000;
  --accent-dim: rgba(240, 176, 0, 0.16);
  --teal: #141414;
  --teal-deep: #000000;
  --red: #e63946;
  --heading-gradient: linear-gradient(180deg, #fff6c8 0%, #ffe228 28%, #f0b000 62%, #c07000 100%);
  --surface-glow: radial-gradient(circle, rgba(240, 176, 0, 0.12), transparent 72%);
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.4);
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
  --container: 1120px;
  --header-height: 76px;
  --kick: #53fc18;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 8% -10%, rgba(240, 176, 0, 0.18), transparent 58%),
    radial-gradient(ellipse 55% 45% at 92% 12%, rgba(255, 226, 40, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 100%, rgba(192, 112, 0, 0.2), transparent 70%),
    linear-gradient(180deg, #000000 0%, #070707 50%, #000000 100%);
}

.accent {
  color: var(--accent);
}

.kick-green {
  color: var(--accent);
}

.kick-brand {
  color: #53fc18;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.1);
  background: rgba(5, 5, 5, 0.9);
  border-bottom: 1px solid rgba(240, 176, 0, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-image {
  display: block;
  width: auto;
  height: 48px;
  max-width: min(220px, 46vw);
  border-radius: 0;
  object-fit: contain;
  border: none;
  background: transparent;
}

/* Full lockup already includes CaptainBonk wordmark in the header */
.logo .logo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-brand .logo-text,
.footer .logo-text {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  gap: 0.45rem 0.75rem;
}

.nav-links > li {
  flex-shrink: 0;
}

.nav-links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.22);
  background: rgba(18, 21, 26, 0.72);
  color: rgba(226, 236, 245, 0.92);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  color: var(--accent-bright);
  border-color: rgba(255, 226, 40, 0.55);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-drawer-toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.45rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 176, 0, 0.28);
  background: rgba(18, 21, 26, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
}

.site-drawer-toggle:hover,
.site-drawer-toggle:focus-visible {
  color: var(--accent-bright);
  border-color: rgba(255, 226, 40, 0.55);
  outline: none;
}

.site-drawer-toggle-icon {
  display: grid;
  gap: 3px;
  width: 0.85rem;
}

.site-drawer-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  border: 0;
  padding: 0;
  background: rgba(8, 9, 11, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.site-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-drawer-panel {
  position: fixed;
  z-index: 230;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(18.5rem, 86vw);
  height: 100%;
  padding: 1.15rem 0.9rem 1.4rem;
  background:
    radial-gradient(ellipse 90% 36% at 0% 0%, rgba(240, 176, 0, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(21, 24, 28, 0.98), rgba(12, 14, 16, 0.98));
  border-right: 1px solid rgba(240, 176, 0, 0.22);
  box-shadow: 18px 0 48px rgba(0, 0, 0, 0.38);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
}

.site-drawer-panel.is-open {
  transform: translateX(0);
}

.site-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(240, 176, 0, 0.16);
}

.site-drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.site-drawer-close {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 176, 0, 0.28);
  background: rgba(18, 21, 26, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.site-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
  overflow: auto;
}

.site-drawer-links a {
  display: flex;
  align-items: center;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(240, 176, 0, 0.16);
  background: rgba(18, 21, 26, 0.55);
  color: rgba(226, 236, 245, 0.92);
  font-weight: 600;
  text-decoration: none;
}

.site-drawer-links a:hover,
.site-drawer-links a:focus-visible {
  color: var(--accent-bright);
  border-color: rgba(255, 226, 40, 0.55);
  outline: none;
}

.site-drawer-links a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(255, 226, 40, 0.7);
  background: rgba(240, 176, 0, 0.18);
  box-shadow: inset 3px 0 0 #ffe44d;
}

body.site-drawer-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .site-drawer-panel,
  .site-drawer-backdrop {
    transition: none;
  }
}

@keyframes live-strip-pulse {
  70% {
    box-shadow: 0 0 0 0.4rem rgba(61, 222, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 222, 122, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-pill-dot.is-live,
  .site-chat-live {
    animation: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.22);
  background: rgba(18, 21, 26, 0.72);
  color: rgba(226, 236, 245, 0.92);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  color: var(--accent-bright);
  border-color: rgba(255, 226, 40, 0.55);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: var(--teal-deep);
  box-shadow: none;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--teal-deep);
  border-color: transparent;
  filter: brightness(1.06);
  box-shadow: none;
}

.btn-outline {
  border-color: rgba(240, 176, 0, 0.22);
  background: rgba(18, 21, 26, 0.72);
  color: rgba(226, 236, 245, 0.92);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--accent-bright);
  border-color: rgba(255, 226, 40, 0.55);
  background: rgba(18, 21, 26, 0.72);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.86rem;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 176, 0, 0.22);
  background: rgba(18, 21, 26, 0.72);
  color: rgba(226, 236, 245, 0.92);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}

.btn-pill:hover,
.btn-pill:focus-visible {
  color: var(--accent-bright);
  border-color: rgba(255, 226, 40, 0.55);
}

.btn-pill-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(148, 180, 198, 0.7);
  flex-shrink: 0;
}

.btn-pill-dot.is-live {
  background: #3dde7a;
  box-shadow: 0 0 0 0 rgba(61, 222, 122, 0.65);
  animation: live-strip-pulse 1.8s ease-out infinite;
}

.btn-block {
  width: 100%;
}

.btn-kick {
  border-color: transparent;
  background: #53fc18;
  color: #041100;
  box-shadow: 0 8px 24px rgba(255, 226, 40, 0.22);
}

.btn-kick:hover,
.btn-kick:focus-visible {
  color: #041100;
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(255, 226, 40, 0.32);
}

.is-hidden {
  display: none !important;
}

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

.auth-panel {
  display: flex;
  align-items: center;
}

.auth-member {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.65rem;
}

.auth-user {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}

.auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.auth-username {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.auth-admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #041018;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1;
  flex-shrink: 0;
}

.auth-toast {
  position: fixed;
  top: 5.5rem;
  right: 1rem;
  z-index: 120;
  max-width: 22rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(26, 30, 36, 0.96);
  border: 1px solid rgba(240, 176, 0, 0.35);
  color: var(--text);
  box-shadow: var(--shadow);
}

.auth-toast.is-error {
  border-color: rgba(230, 57, 70, 0.35);
  background: rgba(40, 12, 16, 0.96);
}

.auth-stake-badge {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 201, 142, 0.24);
  background: rgba(240, 201, 142, 0.1);
  color: #f0c98e;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-stake-badge.is-linked {
  border-color: rgba(255, 226, 40, 0.22);
  background: rgba(255, 226, 40, 0.1);
  color: #9dff73;
  cursor: pointer;
}

.auth-stake-badge.is-linked:not(.is-verified) {
  border-color: rgba(240, 201, 142, 0.24);
  background: rgba(240, 201, 142, 0.1);
  color: #f0c98e;
}

.auth-stake-badge.is-verified {
  border-color: rgba(255, 226, 40, 0.22);
  background: rgba(255, 226, 40, 0.1);
  color: #9dff73;
}

.stake-link-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.stake-link-modal.is-hidden {
  display: none;
}

.stake-link-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(6px);
}

.stake-link-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  display: grid;
  gap: 0.85rem;
  padding: 1.45rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(240, 176, 0, 0.2);
  background:
    linear-gradient(165deg, rgba(26, 30, 36, 0.98), rgba(14, 16, 18, 0.96));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  animation: giveaways-fade-up 0.45s ease-out;
  pointer-events: auto;
}

.stake-link-dialog .guess-input-row,
.stake-link-dialog .guess-input {
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
}

.stake-link-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stake-link-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 0.95;
}

.stake-link-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.stake-link-form {
  display: grid;
  gap: 0.65rem;
}

.stake-link-error {
  margin: 0;
  color: #f0a0a0;
  font-size: 0.86rem;
}

.stake-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.stake-link-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
}

.home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  align-items: start;
  min-height: 100vh;
}

.home-main {
  min-width: 0;
}

.home-page .home-main .header {
  position: sticky;
  top: 0;
}

.hero-player {
  display: grid;
  gap: 1rem;
  width: min(100%, 72rem);
  margin-inline: auto;
}

.watch-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.watch-heading {
  min-width: 0;
}

.watch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0;
}

.watch-header h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-transform: none;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.watch-header #watch-subtitle {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}

.watch-header #watch-age:empty {
  display: none;
}

.watch-header #watch-age {
  color: var(--accent-bright);
  font-size: 0.92rem;
  font-weight: 600;
}

.watch-header #watch-kick {
  flex-shrink: 0;
}

/* Sections */
.section {
  position: relative;
  padding: 4.5rem 0;
  overflow: hidden;
}

.section > .container,
.section > .menu-inner {
  position: relative;
  z-index: 1;
}

.section-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 55% at 10% 12%, rgba(240, 176, 0, 0.09), transparent 62%),
    radial-gradient(ellipse 42% 48% at 90% 80%, rgba(255, 226, 40, 0.05), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 42%, rgba(0, 0, 0, 0.22));
}

.section-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header.left {
  text-align: left;
}

.section-eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.section-header h2,
.theme-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-transform: none;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-header p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-muted);
}

.section-header.left p {
  margin: 0;
}

.theme-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.16);
  background: var(--bg-card-rich);
  box-shadow: var(--shadow-card);
}

.theme-surface::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe44d, rgba(240, 176, 0, 0.15));
  opacity: 0.75;
  pointer-events: none;
}

/* BJ21 Menu theme ? reusable panel surface */
.bj21-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.16);
  background:
    linear-gradient(155deg, rgba(26, 30, 36, 0.92), rgba(12, 14, 16, 0.88));
  box-shadow: var(--shadow-card);
}

.bj21-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe44d, rgba(240, 176, 0, 0.15));
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
}

.bj21-panel-glow {
  position: absolute;
  right: -18%;
  top: -35%;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 176, 0, 0.18), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.bj21-panel > *:not(.bj21-panel-glow) {
  position: relative;
  z-index: 1;
}

.bj21-panel-inset {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1rem 1.05rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.14);
  background:
    linear-gradient(155deg, rgba(14, 24, 34, 0.88), rgba(12, 14, 16, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.bj21-panel-inset::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe44d, rgba(240, 176, 0, 0.15));
  opacity: 0.65;
  pointer-events: none;
}

.page-section {
  padding-top: 3rem;
  min-height: calc(100vh - var(--header-height) - 12rem);
}

.page-content {
  max-width: 42rem;
}

.one-v-one-page.page-section {
  padding-top: 1.15rem;
}

.one-v-one-shell {
  display: grid;
  gap: 0.7rem;
}

.one-v-one-shell .section-header p {
  max-width: 48rem;
  font-size: 0.86rem;
  line-height: 1.4;
}

.one-v-one-shell .back-link,
.one-v-one-shell .section-header {
  margin-bottom: 0;
}

.one-v-one-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.one-v-one-toolbar-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.one-v-one-admin {
  display: grid;
  flex: 1 1 100%;
  gap: 0.65rem;
}

.one-v-one-access {
  display: grid;
  gap: 0.45rem;
}

.one-v-one-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
}

.one-v-one-access-label,
.one-v-one-access-status {
  display: inline;
}

.one-v-one-access-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.one-v-one-access-status {
  color: var(--text);
  font-size: 0.88rem;
}

.one-v-one-access-status::before {
  content: " · ";
  color: var(--text-muted);
}

.one-v-one-toolbar > .one-v-one-note {
  flex-basis: 100%;
}

.one-v-one-picks {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.65rem 0.85rem;
  align-items: center;
}

.one-v-one-admin-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.one-v-one-admin-group {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.55rem 0.65rem 0.65rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.16);
  background: rgba(5, 12, 20, 0.4);
}

.one-v-one-admin-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.one-v-one-admin-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.one-v-one-admin-actions .btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.one-v-one-bet-seconds {
  height: 2.45rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 176, 0, 0.35);
  background: rgba(18, 21, 26, 0.55);
  color: var(--text);
  font: inherit;
}

.one-v-one-pool {
  margin: 0;
  cursor: default;
}

.one-v-one-note {
  margin: 0;
  flex-basis: 100%;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.one-v-one-note.is-error {
  color: #ff8f8f;
}

.one-v-one-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.2rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: stretch;
  padding: 0.7rem;
}

.one-v-one-vs {
  display: grid;
  place-items: center;
  margin: 0;
}

.one-v-one-vs span {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 226, 40, 0.5);
  background: radial-gradient(circle at 40% 32%, rgba(255, 226, 40, 0.28), rgba(18, 21, 26, 0.92));
  box-shadow: 0 0 28px rgba(240, 176, 0, 0.2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
}

.one-v-one-side {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 0;
  padding: 0.7rem 0.75rem 0.75rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.14);
  background: rgba(5, 12, 20, 0.55);
}

.one-v-one-side.is-winner {
  border-color: rgba(255, 226, 40, 0.55);
}

.one-v-one-bet {
  display: grid;
  gap: 0.45rem;
}

.one-v-one-pot,
.one-v-one-mine,
.one-v-one-won {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.one-v-one-pot {
  color: var(--accent-bright);
}

.one-v-one-bet-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.one-v-one-bet-amount {
  width: 100%;
  min-width: 0;
}

.one-v-one-seat {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.one-v-one-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

button.one-v-one-name {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(240, 176, 0, 0.4);
  text-underline-offset: 0.12em;
}

button.one-v-one-name:hover,
button.one-v-one-name:focus-visible {
  color: var(--accent-bright);
  outline: none;
}

.one-v-one-calls {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.one-v-one-pick {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  grid-template-areas:
    "logo slot"
    "logo meta";
  gap: 0.1rem 0.65rem;
  align-items: center;
}

.one-v-one-logo {
  grid-area: logo;
  display: grid;
  place-items: center;
  justify-self: start;
  width: 4.4rem;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(240, 176, 0, 0.16), rgba(0, 0, 0, 0.28));
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
}

.one-v-one-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.one-v-one-slot,
.one-v-one-meta,
.one-v-one-empty {
  margin: 0;
}

.one-v-one-slot {
  grid-area: slot;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

.one-v-one-pick .one-v-one-meta {
  grid-area: meta;
  text-align: left;
}

.one-v-one-empty {
  grid-column: 1 / -1;
}

.one-v-one-meta,
.one-v-one-empty {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.one-v-one-chat {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem 0.8rem;
}

.one-v-one-bets {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 1rem 0.75rem 1.15rem;
}

.one-v-one-bets-timer {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text-muted);
}

.one-v-one-bets-timer.is-live {
  color: var(--accent-bright);
}

.one-v-one-bets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.one-v-one-bets-row.has-you {
  grid-template-columns: 1fr 1fr 1fr;
}

.one-v-one-bets-side {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
}

.one-v-one-bets-side + .one-v-one-bets-side {
  border-left: 1px solid rgba(240, 176, 0, 0.16);
}

.one-v-one-bets-label,
.one-v-one-bets-total,
.one-v-one-bets-unit {
  margin: 0;
}

.one-v-one-bets-label,
.one-v-one-bets-total {
  font-family: var(--font-display);
  line-height: 0.9;
  letter-spacing: 0.03em;
}

.one-v-one-bets-label {
  color: var(--text-muted);
  font-size: 1.35rem;
}

.one-v-one-bets-total {
  color: var(--accent-bright);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 600;
}

.one-v-one-bets-unit {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.one-v-one-betters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(240, 176, 0, 0.12);
}

.one-v-one-betters-label {
  margin: 0 0 0.3rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.one-v-one-betters-list {
  display: grid;
  gap: 0.1rem;
  max-height: 8.5rem;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.one-v-one-better {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.22rem 0.1rem;
  border-top: 1px solid rgba(240, 176, 0, 0.08);
  font-size: 0.88rem;
}

.one-v-one-better.is-mine .one-v-one-better-name {
  color: var(--accent-bright);
}

.one-v-one-better-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.one-v-one-better-amount {
  flex-shrink: 0;
  color: #e8c56b;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.one-v-one-betters-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.one-v-one-chat-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.one-v-one-chat-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.one-v-one-chat-well {
  position: relative;
}

.one-v-one-chat-log {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  max-height: 13rem;
  min-height: 7.5rem;
  padding: 0.5rem 0.65rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.12);
  background: rgba(5, 10, 16, 0.62);
}

.one-v-one-chat-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem;
  color: var(--text-muted);
  text-align: center;
  pointer-events: none;
}

.one-v-one-chat-empty.is-hidden {
  display: none;
}

.one-v-one-chat-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.32rem 0.35rem;
  border-radius: 8px;
}

.one-v-one-chat-row.is-drawn,
.one-v-one-chat-row.is-bet {
  background: rgba(240, 176, 0, 0.1);
}

.one-v-one-chat-name {
  flex-shrink: 0;
  color: var(--accent-bright);
  font-size: 1.02rem;
  font-weight: 600;
}

.one-v-one-chat-text {
  margin: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .one-v-one-admin-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .one-v-one-picks,
  .one-v-one-board,
  .one-v-one-bets-row,
  .one-v-one-bets-row.has-you,
  .one-v-one-admin-actions {
    grid-template-columns: 1fr;
  }

  .one-v-one-bets-side + .one-v-one-bets-side {
    border-left: 0;
    border-top: 1px solid rgba(240, 176, 0, 0.16);
    padding-top: 0.65rem;
  }

  .one-v-one-vs {
    padding: 0.15rem 0;
  }
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

.round-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1.15rem 0.95rem 1.25rem;
}

.round-timer.bj21-panel-inset {
  border-color: rgba(240, 176, 0, 0.28);
  background:
    linear-gradient(155deg, rgba(20, 36, 48, 0.94), rgba(8, 16, 24, 0.9));
}

.round-timer-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.round-timer-value {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
}

.game-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.35rem 1.4rem 1.35rem 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(155deg, rgba(26, 30, 36, 0.92), rgba(12, 14, 16, 0.88));
  border: 1px solid rgba(240, 176, 0, 0.16);
  box-shadow: var(--shadow-card);
}

.game-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe44d, rgba(240, 176, 0, 0.15));
  opacity: 0.75;
  pointer-events: none;
}

.game-panel + .game-panel,
.admin-panel + .game-panel,
.round-timer + .game-panel,
.round-timer + .admin-panel {
  margin-top: 1rem;
}

.game-panel-text {
  margin: 0.55rem 0 1.15rem;
  color: var(--text-muted);
}

.game-panel-note {
  margin: -0.5rem 0 1rem;
  color: var(--accent-bright);
  font-size: 0.92rem;
}

.guess-form {
  display: grid;
  gap: 0.9rem;
}

.guess-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.guess-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 15, 20, 0.55);
}

.guess-prefix {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.guess-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  outline: none;
}

.guess-input::placeholder {
  color: rgba(139, 164, 182, 0.55);
}

.guess-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.guess-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.guess-status.is-success {
  color: var(--accent-bright);
}

.guess-status.is-error {
  color: var(--red);
}

.admin-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.22);
  background: var(--bg-card-rich);
  box-shadow: var(--shadow-card);
}

.admin-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe44d, rgba(240, 176, 0, 0.15));
  opacity: 0.65;
  pointer-events: none;
}

.admin-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-panel-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.admin-panel-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.admin-panel-section {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(240, 176, 0, 0.18);
  display: grid;
  gap: 0.75rem;
}

.admin-duration-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.digital-clock-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.digital-clock-screen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 9.5rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.28);
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.95), rgba(4, 8, 12, 0.98));
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(240, 176, 0, 0.08);
}

.digital-clock-minutes {
  width: 2.8ch;
  min-width: 2.8ch;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  text-align: right;
  text-shadow: 0 0 10px rgba(240, 176, 0, 0.35);
  outline: none;
  font-variant-numeric: tabular-nums;
}

.digital-clock-minutes:focus {
  text-shadow: 0 0 14px rgba(240, 176, 0, 0.55);
}

.digital-clock-minutes:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.digital-clock-colon,
.digital-clock-seconds {
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.digital-clock-colon {
  color: var(--accent-bright);
  animation: digital-clock-blink 1s step-end infinite;
}

.digital-clock-seconds {
  color: rgba(240, 176, 0, 0.32);
}

.digital-clock-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 15, 20, 0.65);
  color: var(--accent-bright);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.digital-clock-step:hover:not(:disabled),
.digital-clock-step:focus-visible:not(:disabled) {
  border-color: rgba(240, 176, 0, 0.45);
  background: rgba(240, 176, 0, 0.12);
}

.digital-clock-step:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.digital-clock-picker.is-disabled .digital-clock-screen {
  opacity: 0.65;
}

@keyframes digital-clock-blink {
  50% {
    opacity: 0.25;
  }
}

.admin-balance-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.admin-balance-input {
  flex: 1;
  min-width: 0;
}

.admin-balance-input .guess-input {
  font-size: 1.1rem;
}

.guesses-panel {
  margin-top: 1rem;
}

.guesses-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.guess-panel-title,
.guesses-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.guesses-count {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.guesses-empty {
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px dashed rgba(240, 176, 0, 0.16);
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
}

.guesses-list {
  margin: 0;
  padding: 0 0.15rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  max-height: calc(10 * 3.4rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.guesses-list::-webkit-scrollbar {
  width: 8px;
}

.guesses-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.guesses-list::-webkit-scrollbar-thumb {
  background: rgba(240, 176, 0, 0.35);
  border-radius: 999px;
}

.guesses-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 226, 40, 0.5);
}

.guess-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.14);
  background:
    linear-gradient(155deg, rgba(14, 24, 34, 0.88), rgba(12, 14, 16, 0.84));
}

.guess-entry-user {
  font-weight: 600;
  color: var(--text);
}

.guess-entry-amount {
  font-weight: 700;
  color: var(--accent-bright);
  white-space: nowrap;
}

.guess-balance-page > .container {
  position: relative;
  z-index: 1;
}

.guess-balance-page .guess-balance-hero {
  margin-bottom: 1.5rem;
}

.guess-balance-page .admin-panel.bj21-panel,
.guess-balance-page .game-panel.bj21-panel {
  background:
    linear-gradient(155deg, rgba(26, 30, 36, 0.92), rgba(12, 14, 16, 0.88));
  border-color: rgba(240, 176, 0, 0.16);
  box-shadow: var(--shadow-card);
}

.guess-balance-page .admin-panel.bj21-panel::before,
.guess-balance-page .game-panel.bj21-panel::before {
  opacity: 0.75;
}

.guess-balance-page .admin-panel-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.guess-balance-page .admin-panel-section .section-eyebrow {
  margin-bottom: 0.25rem;
}

.guess-balance-page .admin-panel-section .guess-panel-title {
  margin-bottom: 0.85rem;
}

.guess-balance-page .game-panel .section-eyebrow {
  margin-bottom: 0.25rem;
}

.guess-balance-page .podium-header {
  align-items: flex-start;
}

.guess-balance-page.page-section {
  padding-top: 1.15rem;
}

.guess-balance-page .back-link {
  margin-bottom: 0.4rem;
}

.guess-balance-page .guess-balance-hero {
  margin-bottom: 0.65rem;
}

.guess-balance-page .section-eyebrow {
  margin-bottom: 0.15rem;
  font-size: 0.78rem;
}

.guess-balance-page .section-header h2 {
  margin-bottom: 0.2rem;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.guess-balance-page .section-header p,
.guess-balance-page .game-panel-text,
.guess-balance-page .admin-panel-text {
  font-size: 0.82rem;
  line-height: 1.35;
}

.guess-balance-page .admin-duration-section > .admin-panel-text,
.guess-balance-page #ending-balance-status + .admin-panel-text,
.guess-balance-page .admin-panel-section > .admin-panel-text,
.guess-balance-page #game-panel-member > .game-panel-text {
  display: none;
}

.guess-balance-page .admin-panel.bj21-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "clock balance"
    "toggles toggles";
  gap: 0.55rem 1rem;
  margin-bottom: 0.55rem;
  padding: 0.7rem 0.85rem;
}

.guess-balance-page .admin-duration-section {
  grid-area: clock;
}

.guess-balance-page .admin-panel > .admin-panel-section:not(.admin-duration-section) {
  grid-area: balance;
}

.guess-balance-page .guess-admin-toggles {
  grid-area: toggles;
}

.guess-balance-page .admin-panel-section,
.guess-balance-page .admin-duration-section,
.guess-balance-page .admin-panel-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  gap: 0.35rem;
  align-content: start;
}

.guess-balance-page .admin-panel-section .guess-panel-title,
.guess-balance-page .guess-panel-title,
.guess-balance-page .guesses-heading {
  margin-bottom: 0.2rem;
  font-size: 1.2rem;
}

.guess-balance-page .guess-admin-toggles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.guess-balance-page .guess-admin-toggles .admin-panel-row {
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(240, 176, 0, 0.12);
  border-radius: 10px;
}

.guess-balance-page .guess-admin-toggles .admin-panel-text {
  font-size: 0.72rem;
}

.guess-balance-page .digital-clock-screen {
  min-width: 6.6rem;
  padding: 0.28rem 0.5rem;
}

.guess-balance-page .digital-clock-minutes,
.guess-balance-page .digital-clock-colon,
.guess-balance-page .digital-clock-seconds {
  font-size: 1.45rem;
}

.guess-balance-page .digital-clock-step {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 1rem;
}

.guess-balance-page .game-panel.bj21-panel {
  padding: 0.7rem 0.85rem;
}

.guess-balance-page .game-panel + .game-panel,
.guess-balance-page .admin-panel + .game-panel,
.guess-balance-page .round-timer + .game-panel,
.guess-balance-page .round-timer + .admin-panel,
.guess-balance-page .guesses-panel,
.guess-balance-page .podium-panel {
  margin-top: 0.55rem;
}

.guess-balance-page .game-panel-text {
  margin: 0.15rem 0 0.45rem;
}

.guess-balance-page .game-panel-note {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
}

.guess-balance-page .guess-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.guess-balance-page .guess-form .guess-label,
.guess-balance-page .guess-form .guess-status {
  grid-column: 1 / -1;
}

.guess-balance-page .guess-input-row {
  padding: 0.4rem 0.65rem;
}

.guess-balance-page .guess-input,
.guess-balance-page .guess-prefix,
.guess-balance-page .admin-balance-input .guess-input {
  font-size: 1rem;
}

.guess-balance-page .round-timer {
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.75rem;
}

.guess-balance-page .round-timer-value {
  font-size: 1.45rem;
}

.guess-balance-page .guesses-panel-header,
.guess-balance-page .podium-header {
  margin-bottom: 0.35rem;
}

.guess-balance-page .guesses-count {
  margin-top: 0;
  font-size: 0.75rem;
}

.guess-balance-page .guesses-empty {
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
}

.guess-balance-page .guesses-list {
  gap: 0.2rem;
  max-height: 14rem;
}

.guess-balance-page .guess-entry {
  padding: 0.32rem 0.55rem;
  font-size: 0.88rem;
}

.guess-balance-page .podium-stage {
  min-height: 0;
  gap: 0.45rem;
}

.guess-balance-page .podium-slot {
  gap: 0.2rem;
}

.guess-balance-page .podium-block {
  gap: 0.15rem;
  padding: 0.45rem 0.4rem 0.4rem;
}

.guess-balance-page .podium-slot.place-1 .podium-block {
  min-height: 5.4rem;
}

.guess-balance-page .podium-slot.place-2 .podium-block {
  min-height: 4.4rem;
}

.guess-balance-page .podium-slot.place-3 .podium-block {
  min-height: 3.6rem;
}

.guess-balance-page .podium-medal {
  font-size: 1.05rem;
}

@media (max-width: 720px) {
  .guess-balance-page .admin-panel.bj21-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "clock"
      "balance"
      "toggles";
  }

  .guess-balance-page .guess-admin-toggles,
  .guess-balance-page .guess-form {
    grid-template-columns: 1fr;
  }
}

.leaderboard-page {
  position: relative;
  padding-top: 2.5rem;
  overflow: hidden;
}

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

.leaderboard-shell {
  width: min(100% - 2rem, 68rem);
  max-width: none;
}

.leaderboard-hero {
  margin-bottom: 1.75rem;
  animation: giveaways-fade-up 0.55s ease-out;
}

.leaderboard-kicker,
.leaderboard-page .section-eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.leaderboard-hero-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.leaderboard-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.leaderboard-lede {
  margin: 0.85rem 0 0;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.leaderboard-lede strong {
  color: var(--text);
  font-weight: 600;
}

.leaderboard-period {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.leaderboard-prizes-wrap {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem 1rem 1.25rem;
  border-top: 0;
  animation: giveaways-fade-up 0.7s ease-out;
}

.leaderboard-prizes-wrap.bj21-panel-inset {
  text-align: center;
}

.leaderboard-banner {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.leaderboard-panel-header {
  margin-bottom: 1rem;
}

.leaderboard-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.leaderboard-page .podium-slot.is-vacant .podium-user,
.leaderboard-page .podium-slot.is-vacant .podium-guess {
  opacity: 0.4;
}

.leaderboard-page #leaderboard-status {
  margin-bottom: 1.25rem;
}

.leaderboard-page .podium-panel {
  margin: 0 0 1.15rem;
  padding: 1.25rem 1.3rem 1.25rem 1.45rem;
}

.leaderboard-page .podium-stage {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  align-items: end;
  gap: 1rem;
  min-height: 0;
}

.leaderboard-page .podium-slot {
  max-width: none;
  gap: 0;
}

.leaderboard-page .podium-block {
  min-height: 0;
  padding: 0 0.4rem 1.1rem;
  border: 0;
  border-radius: 0;
  background: none;
  gap: 0.28rem;
}

.leaderboard-page .podium-slot.place-1 .podium-block,
.leaderboard-page .podium-slot.place-2 .podium-block,
.leaderboard-page .podium-slot.place-3 .podium-block {
  min-height: 0;
  border: 0;
  background: none;
}

.leaderboard-page .podium-slot::after {
  content: "";
  display: block;
  width: 100%;
  border-radius: 10px 10px 0 0;
}

.leaderboard-page .podium-slot.place-1::after {
  height: 4.6rem;
  background: linear-gradient(180deg, rgba(255, 214, 102, 0.42), rgba(255, 214, 102, 0.08));
}

.leaderboard-page .podium-slot.place-2::after {
  height: 3.1rem;
  background: linear-gradient(180deg, rgba(192, 202, 214, 0.32), rgba(192, 202, 214, 0.06));
}

.leaderboard-page .podium-slot.place-3::after {
  height: 2.1rem;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.32), rgba(205, 127, 50, 0.06));
}

.leaderboard-page .podium-trophy {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.7rem;
  height: 4.55rem;
  margin: 0 auto 0.2rem;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.38));
}

.leaderboard-page .podium-slot.place-1 .podium-trophy {
  width: 4.55rem;
  height: 5.55rem;
  filter:
    drop-shadow(0 4px 10px rgba(255, 210, 74, 0.35))
    drop-shadow(0 14px 22px rgba(0, 0, 0, 0.4));
}

.leaderboard-page .podium-slot.place-2 .podium-trophy {
  width: 4rem;
  height: 4.9rem;
  filter:
    drop-shadow(0 4px 10px rgba(200, 210, 220, 0.22))
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.36));
}

.leaderboard-page .podium-slot.place-3 .podium-trophy {
  filter:
    drop-shadow(0 4px 10px rgba(205, 127, 50, 0.22))
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.36));
}

.leaderboard-page .podium-trophy-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.leaderboard-page .podium-trophy-place {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(10, 15, 20, 0.82);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.leaderboard-page .podium-slot.place-1 .podium-trophy-place {
  top: 25%;
  font-size: 1.65rem;
}

.leaderboard-page .podium-slot.place-2 .podium-trophy-place {
  top: 24.5%;
  font-size: 1.5rem;
}

.leaderboard-page .podium-user {
  font-size: 1.02rem;
  font-weight: 600;
}

.leaderboard-page .podium-guess {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2em;
}

.leaderboard-page .podium-prize {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: #f0c98e;
}

.leaderboard-page .podium-slot.place-1 .podium-prize {
  color: #ffd666;
}

.leaderboard-page .podium-slot.is-entering {
  animation: leaderboard-rise 0.7s ease both;
}

.leaderboard-page .podium-slot.place-2.is-entering {
  animation-delay: 0.05s;
}

.leaderboard-page .podium-slot.place-1.is-entering {
  animation-delay: 0.14s;
}

.leaderboard-page .podium-slot.place-3.is-entering {
  animation-delay: 0.22s;
}

.leaderboard-board {
  padding: 1.25rem 1.3rem 1.25rem 1.45rem;
}

.leaderboard-board.is-empty {
  border-top: 0;
}

.leaderboard-table-head,
.leaderboard-entry {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) 8.5rem 6.5rem;
  gap: 0.85rem;
  align-items: center;
}

.leaderboard-table-head {
  padding: 0 0.35rem 0.7rem;
  border-bottom: 1px solid rgba(240, 176, 0, 0.12);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.leaderboard-table-head span:nth-child(3),
.leaderboard-table-head span:last-child,
.leaderboard-score,
.leaderboard-prize {
  text-align: right;
}

.leaderboard-empty {
  margin: 0;
  padding: 0.9rem 0.95rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px dashed rgba(240, 176, 0, 0.16);
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.leaderboard-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.leaderboard-entry {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(240, 176, 0, 0.14);
  border-radius: calc(var(--radius-sm) + 2px);
  border-bottom: 1px solid rgba(240, 176, 0, 0.14);
  background:
    linear-gradient(155deg, rgba(14, 24, 34, 0.88), rgba(12, 14, 16, 0.84));
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.leaderboard-entry:hover {
  border-color: rgba(255, 226, 40, 0.32);
  background:
    linear-gradient(155deg, rgba(18, 30, 42, 0.94), rgba(8, 14, 20, 0.9));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.leaderboard-entry.is-entering {
  animation: leaderboard-rise 0.55s ease both;
  animation-delay: var(--enter-delay, 0ms);
}

.leaderboard-rank {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  min-width: 0;
}

.leaderboard-user {
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.leaderboard-score {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.leaderboard-prize {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: #f0c98e;
  white-space: nowrap;
}

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

@media (max-width: 720px) {
  .leaderboard-hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .leaderboard-page .podium-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .leaderboard-page .podium-trophy {
    width: 3rem;
    height: 3.7rem;
  }

  .leaderboard-page .podium-slot.place-1 .podium-trophy {
    width: 3.6rem;
    height: 4.4rem;
  }

  .leaderboard-page .podium-slot.place-2 .podium-trophy {
    width: 3.2rem;
    height: 3.95rem;
  }

  .leaderboard-page .podium-trophy-place {
    font-size: 1.15rem;
  }

  .leaderboard-page .podium-slot.place-1 .podium-trophy-place {
    font-size: 1.35rem;
  }

  .leaderboard-page .podium-slot.place-2 .podium-trophy-place {
    font-size: 1.2rem;
  }

  .leaderboard-page .podium-prize {
    font-size: 1.15rem;
  }

  .leaderboard-table-head,
  .leaderboard-entry {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto auto;
    gap: 0.55rem;
  }

  .leaderboard-rank {
    font-size: 1.15rem;
  }

  .leaderboard-prize,
  .leaderboard-score {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leaderboard-hero,
  .leaderboard-prizes-wrap,
  .leaderboard-page .podium-slot.is-entering,
  .leaderboard-entry.is-entering,
  .lb-item.is-entering {
    animation: none;
  }

  .lb-bar > span {
    transition: none;
  }
}

.lb-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.lb-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lb-lede {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.lb-lede strong {
  color: var(--text);
  font-weight: 650;
}

.lb-rules-toggle {
  margin-top: 0.85rem;
}

.lb-rules {
  display: grid;
  gap: 0.7rem;
  margin: -0.35rem 0 1.35rem;
}

.lb-rules.is-hidden {
  display: none;
}

.lb-rule {
  padding: 0.95rem 1.05rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 22, 32, 0.72);
}

.lb-rule-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.lb-rule-icon {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: #e8c56b;
}

.lb-rule-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.lb-rule-icon.is-ok {
  color: #7dff9a;
}

.lb-rule-icon.is-warn {
  color: #f0c14a;
}

.lb-rule h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.lb-rule p,
.lb-rule li {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.lb-rule a {
  color: var(--accent-bright);
}

.lb-rule strong {
  color: var(--text);
  font-weight: 700;
}

.lb-rule ul {
  margin: 0.15rem 0 0.55rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.28rem;
}

.lb-rule .is-full {
  color: #7dff9a;
}

.lb-rule .is-half {
  color: #f0c14a;
}

.lb-rule .is-low {
  color: #ff8d8d;
}

.lb-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.lb-stat {
  min-width: 7.4rem;
  padding: 0.65rem 0.8rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(240, 176, 0, 0.14);
  background: rgba(8, 16, 24, 0.55);
}

.lb-stat span {
  display: block;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lb-stat strong {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
}

.lb-podium {
  margin-bottom: 1rem;
}

.lb-podium-stage {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 0.7rem;
}

.lb-podium-card {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  width: 100%;
  margin: 0;
  padding: 1rem 0.85rem 0.85rem;
  border: 1px solid rgba(240, 176, 0, 0.14);
  border-radius: 16px 16px 8px 8px;
  background:
    linear-gradient(180deg, rgba(16, 28, 40, 0.95), rgba(7, 13, 20, 0.92));
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  appearance: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.lb-podium-card:hover:not(:disabled),
.lb-podium-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 226, 40, 0.4);
}

.lb-podium-card:disabled {
  cursor: default;
  opacity: 0.55;
}

.lb-podium-card.place-1 {
  padding-top: 1.25rem;
  border-color: rgba(232, 197, 107, 0.45);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232, 197, 107, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(28, 24, 14, 0.96), rgba(8, 12, 18, 0.94));
}

.lb-podium-card.place-2 {
  border-color: rgba(197, 208, 220, 0.28);
}

.lb-podium-card.place-3 {
  border-color: rgba(208, 138, 76, 0.32);
}

.lb-podium-card.is-you {
  box-shadow: inset 0 0 0 1px rgba(255, 226, 40, 0.45);
}

.lb-place {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.25rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  color: #101820;
  background: #c5d0dc;
}

.lb-podium-card.place-1 .lb-place {
  width: 2.85rem;
  height: 2.85rem;
  font-size: 1.7rem;
  background: linear-gradient(160deg, #fff1c2, #e8c56b 55%, #b8892d);
}

.lb-podium-card.place-3 .lb-place {
  background: linear-gradient(160deg, #f0c49a, #d08a4c 55%, #8d5524);
}

.lb-podium-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  font-size: 0.95rem;
}

.lb-podium-wager {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.02rem;
}

.lb-podium-card.place-1 .lb-podium-wager {
  font-size: 1.2rem;
}

.lb-podium-prize {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #c5d0dc;
}

.lb-podium-card.place-1 .lb-podium-prize {
  color: #e8c56b;
  font-size: 1.6rem;
}

.lb-podium-card.place-3 .lb-podium-prize {
  color: #d08a4c;
}

.lb-podium-card .lb-bar {
  width: min(100%, 9rem);
  margin-top: 0.45rem;
}

.lb-board {
  padding: 1rem 1rem 0.85rem 1.15rem;
}

.lb-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.lb-board-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.lb-search input {
  width: 12.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 176, 0, 0.18);
  background: rgba(4, 10, 16, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
}

.lb-search input:focus {
  outline: none;
  border-color: rgba(255, 226, 40, 0.55);
}

.lb-cols,
.lb-row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 8.2rem 4.6rem;
  gap: 0.75rem;
  align-items: center;
}

.lb-cols {
  padding: 0 0.85rem 0.45rem;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lb-cols span:nth-child(3),
.lb-cols span:nth-child(4),
.lb-wager,
.lb-prize {
  text-align: right;
}

.lb-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-item.is-filtered-out {
  display: none;
}

.lb-item.is-entering {
  animation: leaderboard-rise 0.45s ease both;
  animation-delay: var(--enter-delay, 0ms);
}

.lb-row {
  width: 100%;
  margin: 0;
  padding: 0.62rem 0.85rem;
  border: 0;
  border-top: 1px solid rgba(240, 176, 0, 0.08);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.lb-item:first-child .lb-row {
  border-top-color: transparent;
}

.lb-row:hover,
.lb-row:focus-visible,
.lb-row[aria-expanded="true"] {
  background: rgba(255, 226, 40, 0.06);
  outline: none;
}

.lb-item.place-1 .lb-rank { color: #e8c56b; }
.lb-item.place-2 .lb-rank { color: #d5dee8; }
.lb-item.place-3 .lb-rank { color: #d08a4c; }

.lb-item.is-you .lb-row {
  box-shadow: inset 2px 0 0 #ffe44d;
}

.lb-rank {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
}

.lb-player {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
}

.lb-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-you {
  flex: none;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 226, 40, 0.16);
  color: #ffe44d;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lb-bar {
  display: block;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.lb-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(240, 176, 0, 0.45), #ffe44d);
  transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lb-item.place-1 .lb-bar > span,
.lb-podium-card.place-1 .lb-bar > span {
  background: linear-gradient(90deg, #b8892d, #e8c56b);
}

.lb-item.place-2 .lb-bar > span,
.lb-podium-card.place-2 .lb-bar > span {
  background: linear-gradient(90deg, #8e9aab, #e8eef4);
}

.lb-item.place-3 .lb-bar > span,
.lb-podium-card.place-3 .lb-bar > span {
  background: linear-gradient(90deg, #8d5524, #d08a4c);
}

.lb-gap {
  display: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.lb-row:hover .lb-gap,
.lb-row:focus-visible .lb-gap,
.lb-row[aria-expanded="true"] .lb-gap {
  display: block;
}

.lb-wager,
.lb-prize {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}

.lb-prize {
  color: #f0c98e;
}

.lb-empty {
  margin: 0;
  padding: 0.9rem 0.4rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 760px) {
  .lb-top {
    flex-direction: column;
    align-items: stretch;
  }

  .lb-meta {
    justify-content: flex-start;
  }

  .lb-stat {
    flex: 1;
  }

  .lb-podium-stage {
    gap: 0.4rem;
  }

  .lb-podium-card {
    padding: 0.7rem 0.4rem 0.6rem;
  }

  .lb-podium-name,
  .lb-podium-wager {
    font-size: 0.75rem;
  }

  .lb-podium-prize,
  .lb-podium-card.place-1 .lb-podium-prize {
    font-size: 1.05rem;
  }

  .lb-board-head {
    align-items: stretch;
    flex-direction: column;
  }

  .lb-search input {
    width: 100%;
  }

  .lb-cols,
  .lb-row {
    grid-template-columns: 2.1rem minmax(0, 1fr) auto auto;
    gap: 0.45rem;
  }

  .lb-wager,
  .lb-prize {
    font-size: 0.78rem;
  }
}

.accounts-page .page-content {
  width: min(100% - 2rem, 72rem);
  max-width: none;
}

.accounts-shell {
  display: grid;
  gap: 1.35rem;
}

.accounts-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 1.7rem 1.6rem 1.85rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(240, 176, 0, 0.18);
  background:
    radial-gradient(ellipse 55% 80% at 0% 0%, rgba(240, 176, 0, 0.16), transparent 55%),
    var(--bg-card-rich);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: giveaways-fade-up 0.55s ease-out;
}

.accounts-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe44d, rgba(240, 176, 0, 0.15));
  opacity: 0.8;
  pointer-events: none;
}

.accounts-hero-brand {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.accounts-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accounts-hero-subtitle {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.accounts-hero-stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 10.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(240, 176, 0, 0.2);
  background: rgba(10, 15, 20, 0.55);
}

.accounts-hero-stat-value {
  display: grid;
  place-items: center;
  min-width: 3.2rem;
  min-height: 3.2rem;
  padding: 0.35rem 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(240, 176, 0, 0.28);
  background:
    linear-gradient(160deg, rgba(240, 176, 0, 0.2), rgba(240, 176, 0, 0.06));
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.accounts-hero-stat-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.accounts-hero-stat-copy {
  margin: 0.05rem 0 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.accounts-denied-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 1.45rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(240, 120, 120, 0.18);
  background:
    linear-gradient(165deg, rgba(40, 18, 22, 0.92), rgba(12, 10, 14, 0.9));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  animation: giveaways-fade-up 0.6s ease-out;
}

.accounts-denied-label {
  margin: 0;
  color: #f0a0a0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.accounts-denied-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 0.95;
}

.accounts-denied-copy {
  margin: 0;
  color: var(--text-muted);
  max-width: 34rem;
}

.accounts-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: 1.55rem 1.6rem 1.55rem 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(240, 176, 0, 0.16);
  background: var(--bg-card-rich);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  animation: giveaways-fade-up 0.65s ease-out;
}

.accounts-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe44d, rgba(240, 176, 0, 0.15));
  opacity: 0.75;
  pointer-events: none;
}

.accounts-card::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -12%;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 176, 0, 0.14), transparent 68%);
  pointer-events: none;
}

.accounts-card-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem 1rem;
  align-items: start;
}

.accounts-total-badge {
  display: grid;
  place-items: center;
  min-width: 3.4rem;
  min-height: 3.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(240, 176, 0, 0.28);
  background:
    linear-gradient(160deg, rgba(240, 176, 0, 0.2), rgba(240, 176, 0, 0.06));
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.accounts-card-heading {
  padding-top: 0.15rem;
}

.accounts-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.accounts-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.accounts-subtitle {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.accounts-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 176, 0, 0.16);
  background: rgba(240, 176, 0, 0.08);
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.accounts-search-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.12);
  background: rgba(10, 15, 20, 0.42);
}

.accounts-search-copy {
  display: grid;
  gap: 0.2rem;
}

.accounts-search-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.accounts-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.accounts-search-input-row {
  flex: 1 1 14rem;
  min-height: 3rem;
}

.accounts-search-input-row .guess-input {
  min-height: 3rem;
  font-size: 1rem;
}

.accounts-search-results {
  margin: 0;
  color: var(--accent-bright);
  font-size: 0.84rem;
  font-weight: 600;
}

.accounts-filter-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.accounts-filter-toggle {
  min-height: 1.7rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.accounts-filter-toggle:hover,
.accounts-filter-toggle:focus-visible {
  border-color: rgba(255, 226, 40, 0.4);
  color: var(--text);
  outline: none;
}

.accounts-filter-toggle.is-active {
  border-color: rgba(255, 226, 40, 0.35);
  background: rgba(255, 226, 40, 0.14);
  color: #9dff73;
}

#accounts-filter-sub.is-active {
  border-color: rgba(83, 45, 255, 0.4);
  background: rgba(83, 45, 255, 0.18);
  color: #c4b5ff;
}

.accounts-viewport {
  position: relative;
  z-index: 1;
  max-height: 34rem;
  overflow: auto;
  padding: 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(240, 176, 0, 0.12);
  background: rgba(8, 12, 18, 0.55);
}

.accounts-empty {
  margin: 0;
  padding: 2rem 1rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}

.accounts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.accounts-entry {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 176, 0, 0.1);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.accounts-entry:hover {
  border-color: rgba(240, 176, 0, 0.28);
  background: rgba(240, 176, 0, 0.06);
  transform: translateY(-1px);
}

.accounts-entry-rank {
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}

.accounts-entry-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  min-width: 0;
}

.accounts-login-details {
  grid-column: 1 / -1;
}

.accounts-player {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.accounts-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 176, 0, 0.18);
  background: rgba(240, 176, 0, 0.12);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.accounts-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accounts-entry-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.accounts-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}

.accounts-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  max-width: 100%;
}

.accounts-aff-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 226, 40, 0.24);
  background: rgba(255, 226, 40, 0.12);
  color: #9dff73;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  flex-shrink: 0;
}

.accounts-aff-toggle {
  min-height: 1.55rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accounts-ban-toggle,
.accounts-remove-btn {
  min-height: 1.55rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accounts-banned-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 93, 106, 0.35);
  background: rgba(255, 93, 106, 0.14);
  color: #ff8f98;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  flex-shrink: 0;
}

.accounts-entry.is-banned {
  border-color: rgba(255, 93, 106, 0.22);
  opacity: 0.88;
}

.accounts-sub-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(83, 45, 255, 0.28);
  background: rgba(83, 45, 255, 0.16);
  color: #c4b5ff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  flex-shrink: 0;
}

.accounts-alt-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 71, 0.35);
  background: rgba(255, 179, 71, 0.14);
  color: #ffd27d;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  flex-shrink: 0;
}

.accounts-alt-badge.is-primary {
  border-color: rgba(255, 226, 40, 0.28);
  background: rgba(255, 226, 40, 0.12);
  color: #9dff73;
}

.accounts-alt-badge.is-soft-blocked {
  border-color: rgba(255, 120, 120, 0.35);
  background: rgba(255, 120, 120, 0.14);
  color: #ffb0b0;
}

.accounts-alts-name.is-primary {
  color: #9dff73;
}

.accounts-alts-name.is-blocked {
  color: #ffb0b0;
}

.accounts-alts-panel {
  margin: 0 0 1rem;
  padding: 1rem 1.05rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(255, 179, 71, 0.22);
  background: rgba(255, 179, 71, 0.06);
}

.accounts-alts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.accounts-alts-title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
}

.accounts-alts-copy {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
  max-width: 36rem;
}

.accounts-alts-list {
  margin: 0;
  padding: 0 0.15rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  max-height: min(16rem, 38vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.accounts-alts-list::-webkit-scrollbar {
  width: 8px;
}

.accounts-alts-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.accounts-alts-entry {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(4, 8, 12, 0.35);
}

.accounts-alts-names {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.accounts-alts-ips,
.accounts-alt-note,
.accounts-ip-note,
.accounts-location-note {
  margin: 0.28rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.accounts-location-note {
  color: var(--accent-bright);
}

.accounts-alt-note {
  color: #ffd27d;
}

.accounts-login-details {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.12);
  background: rgba(4, 8, 12, 0.28);
  overflow: hidden;
}

.accounts-login-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 0.75rem;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  user-select: none;
}

.accounts-login-summary::-webkit-details-marker {
  display: none;
}

.accounts-login-summary::before {
  content: "?";
  display: inline-block;
  margin-right: 0.4rem;
  transition: transform 0.15s ease;
}

.accounts-login-details[open] .accounts-login-summary::before {
  transform: rotate(90deg);
}

.accounts-login-body {
  display: grid;
  gap: 0.55rem;
  padding: 0 0.75rem 0.75rem;
  border-top: 1px solid rgba(240, 176, 0, 0.08);
  padding-top: 0.65rem;
}

.accounts-login-row {
  display: grid;
  gap: 0.15rem;
}

.accounts-login-label {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accounts-login-value {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.accounts-login-history-label {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accounts-login-history {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.accounts-login-history li {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.accounts-username {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.accounts-kick-id {
  color: var(--text-muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.accounts-stake-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}

.accounts-stake-edit,
.accounts-stake-save,
.accounts-stake-cancel {
  min-height: 1.4rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accounts-stake-input {
  width: min(11rem, 100%);
  min-height: 1.55rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  font-size: 0.82rem;
}

.accounts-stake-input:focus {
  outline: none;
  border-color: rgba(255, 226, 40, 0.45);
}

.accounts-points-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}

.accounts-points-input {
  width: min(6.5rem, 100%);
  min-height: 1.55rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  font-size: 0.82rem;
}

.accounts-points-input:focus {
  outline: none;
  border-color: rgba(255, 226, 40, 0.45);
}

.accounts-points-award {
  min-height: 1.4rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accounts-entry-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.accounts-meta-item {
  display: grid;
  gap: 0.1rem;
  text-align: right;
}

.accounts-meta-label {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accounts-date {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .accounts-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .accounts-card-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .accounts-count-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .accounts-entry-main {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .accounts-entry-meta {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }

  .accounts-meta-item {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .accounts-hero,
  .accounts-card {
    padding: 1.25rem 1.15rem;
  }

  .accounts-entry {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .accounts-entry-rank {
    font-size: 1rem;
  }

  .accounts-search-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.giveaways-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 1.15rem;
  padding: 1.55rem 1.6rem 1.55rem 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(240, 176, 0, 0.16);
  background: var(--bg-card-rich);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.giveaways-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe44d, rgba(240, 176, 0, 0.15));
  opacity: 0.75;
  pointer-events: none;
}

.giveaways-card::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -12%;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 176, 0, 0.14), transparent 68%);
  pointer-events: none;
}

.giveaways-page .page-content {
  width: min(100% - 2rem, 72rem);
  max-width: none;
}

.giveaways-shell {
  display: grid;
  gap: 1.35rem;
}

.giveaways-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 1.7rem 1.6rem 1.85rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(240, 176, 0, 0.18);
  background:
    radial-gradient(ellipse 55% 80% at 0% 0%, rgba(240, 176, 0, 0.16), transparent 55%),
    var(--bg-card-rich);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: giveaways-fade-up 0.55s ease-out;
}

.giveaways-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe44d, rgba(240, 176, 0, 0.15));
  opacity: 0.8;
  pointer-events: none;
}

.giveaways-hero-brand {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.giveaways-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.giveaways-hero-subtitle {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.giveaways-admin {
  display: grid;
  gap: 1.15rem;
  padding: 1.35rem 1.45rem;
  animation: giveaways-fade-up 0.6s ease-out;
}

.giveaways-admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.giveaways-admin-aff {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(240, 176, 0, 0.14);
}

.giveaways-aff-note {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.28);
  background: rgba(240, 176, 0, 0.1);
  color: var(--accent-bright);
  font-size: 0.86rem;
  font-weight: 600;
}

.giveaways-keyword-editor {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(240, 176, 0, 0.12);
}

.giveaways-keyword-editor .admin-panel-text {
  margin: 0;
}

.giveaways-admin-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(240, 176, 0, 0.14);
}

.giveaways-admin-block {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.1);
  background: rgba(10, 15, 20, 0.35);
}

.giveaways-keyword-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.giveaways-keyword-form .guess-input-row {
  flex: 1 1 14rem;
}

.giveaways-spotlight {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.45fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.giveaways-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.giveaways-layout-main,
.giveaways-layout-side {
  display: grid;
  gap: 1rem;
}

.giveaways-entrants-card {
  min-height: 24rem;
}

.giveaways-entrants-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.giveaways-entrants-total {
  display: grid;
  place-items: center;
  min-width: 3.4rem;
  min-height: 3.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(240, 176, 0, 0.28);
  background:
    linear-gradient(160deg, rgba(240, 176, 0, 0.2), rgba(240, 176, 0, 0.06));
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.giveaways-entrants-heading {
  padding-top: 0.15rem;
}

.giveaways-rolling-viewport {
  position: relative;
  z-index: 1;
  height: 22rem;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(240, 176, 0, 0.12);
  background: rgba(8, 12, 18, 0.55);
}

.giveaways-rolling-viewport:not(.is-rolling) {
  height: auto;
  max-height: 22rem;
  overflow: auto;
}

.giveaways-rolling-fade {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.giveaways-rolling-viewport.is-rolling .giveaways-rolling-fade {
  opacity: 1;
}

.giveaways-rolling-fade-top {
  top: 0;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.98), transparent);
}

.giveaways-rolling-fade-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(8, 12, 18, 0.98), transparent);
}

.giveaways-rolling-track {
  margin: 0;
  padding: 0.65rem;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.giveaways-rolling-track.is-rolling {
  animation: giveaways-roll var(--roll-duration, 14s) linear infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .giveaways-rolling-track.is-rolling {
    animation: none;
  }

  .giveaways-rolling-viewport.is-rolling {
    max-height: 22rem;
    overflow: auto;
  }
}

@keyframes giveaways-roll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-1 * var(--roll-distance, 50%)));
  }
}

.giveaways-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.giveaways-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.giveaways-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.giveaways-count {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 176, 0, 0.16);
  background: rgba(240, 176, 0, 0.08);
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.giveaways-empty {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.giveaways-open {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  padding: 1.1rem 1.15rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(255, 226, 40, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 226, 40, 0.1), rgba(240, 176, 0, 0.06));
}

.giveaways-open-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.giveaways-keyword-chip {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 226, 40, 0.25);
}

.giveaways-open-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.giveaways-list-head {
  display: none;
}

.giveaways-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.giveaways-entry {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 176, 0, 0.1);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.giveaways-rolling-viewport:not(.is-rolling) .giveaways-entry:hover {
  border-color: rgba(240, 176, 0, 0.28);
  background: rgba(240, 176, 0, 0.06);
}

.giveaways-entry-rank {
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
}

.giveaways-entry-user {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.giveaways-reveal-card {
  margin-top: 0;
  min-height: 100%;
}

.giveaways-reveal-card {
  gap: 0.85rem;
  background: linear-gradient(155deg, rgba(26, 30, 36, 0.55), rgba(12, 14, 16, 0.4));
  box-shadow: none;
}

.giveaways-reveal-card::after {
  display: none;
}

.giveaways-reveal-card .giveaways-title {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.giveaways-reveal-card .giveaways-count {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: transparent;
  color: #c5d0dc;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.giveaways-reveal-card .giveaways-count[data-state="winner"] {
  border-color: rgba(232, 197, 107, 0.4);
  color: #e8c56b;
}

.giveaways-reveal-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 0.1rem;
}

.giveaways-reveal-btn {
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-reel {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(240, 176, 0, 0.12);
  background: rgba(4, 10, 16, 0.45);
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.45s ease;
}

.case-reel.is-spinning {
  border-color: rgba(255, 226, 40, 0.32);
}

.case-reel.is-spinning .case-reel-marker {
  animation: case-marker-pulse 1.1s ease-in-out infinite;
}

.case-reel.is-landed {
  border-color: rgba(232, 197, 107, 0.38);
  background: rgba(4, 10, 16, 0.45);
  box-shadow: none;
}

.case-reel-burst {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.case-reel-burst:not(.is-active) {
  display: none;
}

.case-reel-speck {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--speck-size, 6px);
  height: var(--speck-size, 6px);
  margin: calc(var(--speck-size, 6px) / -2) 0 0 calc(var(--speck-size, 6px) / -2);
  border-radius: 2px;
  background: var(--speck-color, #f0c98e);
  opacity: 0;
  animation: case-speck-burst 1.05s ease-out forwards;
  animation-delay: var(--speck-delay, 0ms);
  box-shadow: 0 0 10px color-mix(in srgb, var(--speck-color, #f0c98e) 55%, transparent);
}

.case-reel-window {
  height: 108px;
  overflow: hidden;
}

.case-reel-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 100%;
  padding: 12px 0;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
}

.case-reel-item {
  flex: 0 0 148px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  box-shadow: none;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.case-reel-item.is-winner {
  border-color: rgba(232, 197, 107, 0.45);
  background: rgba(232, 197, 107, 0.08);
  box-shadow: inset 2px 0 0 #e8c56b;
}

.case-reel-item.is-winner.is-celebrate {
  animation: case-winner-card 0.7s ease-out;
}

.case-reel-item-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.case-reel-item-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.case-reel-item.is-winner .case-reel-item-name {
  color: #e8c56b;
}

.case-reel-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, #ffe44d 16%, #ffe44d 84%, transparent);
  pointer-events: none;
}

.case-reel.is-landed .case-reel-marker {
  background: linear-gradient(180deg, transparent, #e8c56b 16%, #e8c56b 84%, transparent);
}

.case-reel-marker::before,
.case-reel-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.case-reel-marker::before {
  top: 6px;
  border-top: 6px solid #ffe44d;
}

.case-reel-marker::after {
  bottom: 6px;
  border-bottom: 6px solid #ffe44d;
}

.case-reel.is-landed .case-reel-marker::before {
  border-top-color: #e8c56b;
}

.case-reel.is-landed .case-reel-marker::after {
  border-bottom-color: #e8c56b;
}

.case-reel-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 18%;
  pointer-events: none;
}

.case-reel-fade-left {
  left: 0;
  background: linear-gradient(90deg, rgba(8, 14, 20, 0.96), transparent);
}

.case-reel-fade-right {
  right: 0;
  background: linear-gradient(270deg, rgba(8, 14, 20, 0.96), transparent);
}

.case-reel-result {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  text-align: center;
}

.case-reel-result-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-reel-result strong,
.case-reel-winner-name {
  color: #e8c56b;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}

.case-reel-winner-name {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.case-reel-winner-name:hover,
.case-reel-winner-name:focus-visible {
  color: #f3dd9a;
  outline: none;
}

.winner-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.winner-profile-modal.is-hidden {
  display: none;
}

.winner-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(6px);
}

.winner-profile-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(240, 176, 0, 0.2);
  background:
    linear-gradient(165deg, rgba(26, 30, 36, 0.98), rgba(14, 16, 18, 0.96));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.winner-profile-title {
  margin: 0;
  color: #f0c98e;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.winner-profile-fields {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.winner-profile-field {
  display: grid;
  gap: 0.15rem;
}

.winner-profile-field dt {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.winner-profile-field dd {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.winner-profile-copy,
.stake-copy {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.winner-profile-copy:hover,
.winner-profile-copy:focus-visible,
.stake-copy:hover,
.stake-copy:focus-visible {
  color: #e8c56b;
  outline: none;
}

.is-stake-copy {
  cursor: pointer;
}

.winner-profile-copy.is-copied::after,
.winner-profile-copy.is-failed::after,
.stake-copy.is-copied::after,
.stake-copy.is-failed::after,
.is-stake-copy.is-copied::after,
.is-stake-copy.is-failed::after {
  margin-left: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.winner-profile-copy.is-copied::after,
.stake-copy.is-copied::after,
.is-stake-copy.is-copied::after {
  content: "Copied";
  color: #7dff9a;
}

.winner-profile-copy.is-failed::after,
.stake-copy.is-failed::after,
.is-stake-copy.is-failed::after {
  content: "Could not copy";
  color: #ff8d8d;
}

.accounts-kick-id.stake-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

#st-predictor-profile-aff.is-affiliate {
  color: #8dffb0;
}

.case-reel-result.is-pop {
  animation: case-winner-pop 0.85s cubic-bezier(0.2, 0.9, 0.25, 1.12);
}

@keyframes case-winner-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.86);
    filter: blur(4px);
  }
  55% {
    opacity: 1;
    transform: translateY(-2px) scale(1.08);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes case-winner-card {
  0% {
    background: rgba(232, 197, 107, 0.18);
  }
  100% {
    background: rgba(232, 197, 107, 0.08);
  }
}

@keyframes case-marker-pulse {
  0%,
  100% {
    opacity: 0.75;
    box-shadow: 0 0 12px rgba(255, 226, 40, 0.35);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 22px rgba(255, 226, 40, 0.75);
  }
}

@keyframes case-speck-burst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(160deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-reel.is-spinning .case-reel-marker,
  .case-reel.is-landed,
  .case-reel-item.is-winner.is-celebrate,
  .case-reel-result.is-pop,
  .case-reel-speck {
    animation: none;
  }
}

@keyframes giveaways-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .giveaways-spotlight,
  .giveaways-layout,
  .giveaways-admin-grid {
    grid-template-columns: 1fr;
  }

  .giveaways-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .giveaways-card {
    padding: 1.25rem 1.15rem;
  }

  .giveaways-hero {
    padding: 1.25rem 1.15rem;
  }

  .case-reel-window {
    height: 96px;
  }

  .case-reel-item {
    flex-basis: 128px;
    padding: 0.45rem 0.55rem;
  }

  .case-reel-item-name {
    font-size: 1.15rem;
  }

  .case-reel-result strong,
  .case-reel-winner-name {
    font-size: 1.6rem;
  }

  .giveaways-keyword-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.bonus-hunt-summary {
  margin-bottom: 1rem;
}

.bonus-hunt-page.page-section {
  padding-top: 1.5rem;
}

.bonus-hunt-page > .container {
  position: relative;
  z-index: 1;
}

.bonus-hunt-page .page-content {
  width: min(100% - 2rem, 84rem);
  max-width: none;
}

.bonus-hunt-page .back-link {
  margin-bottom: 0.55rem;
}

.bonus-hunt-layout {
  display: grid;
  gap: 0.75rem;
}

.hunt-page-hero {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.15rem;
}

.hunt-page-hero .section-eyebrow {
  margin-bottom: 0;
}

.hunt-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hunt-page-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hunt-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.hunt-layout-main,
.hunt-layout-side {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.hunt-layout-side {
  position: static;
}

@media (min-width: 1101px) {
  .hunt-layout-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.9fr);
    gap: 0.85rem;
  }

  .hunt-layout-main {
    display: contents;
  }

  .bonus-hunt-page .hunt-tracker {
    grid-column: 1;
    grid-row: 1;
  }

  .hunt-layout-side {
    grid-column: 2;
    grid-row: 1;
  }

  .hunt-queue-spin,
  #bonus-hunt-admin,
  #bonus-hunt-status {
    grid-column: 1 / -1;
  }

  .hunt-layout-side {
    position: sticky;
    top: calc(var(--header-height) + 0.75rem);
    align-self: start;
    max-height: calc(100vh - var(--header-height) - 1.5rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.15rem;
    scrollbar-gutter: stable;
  }
}

.hunt-tracker {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 0;
  padding: 0.95rem 1.05rem 1rem 1.1rem;
  backdrop-filter: blur(14px);
}

.hunt-tracker-glow {
  display: none;
}

.hunt-tracker-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.hunt-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
}

.hunt-tracker-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.hunt-tracker .bonus-admin-actions {
  margin-top: 0;
}

.hunt-status-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.hunt-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hunt-status-toggle {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.hunt-status-toggle:not(:disabled):hover {
  border-color: rgba(240, 176, 0, 0.35);
}

.hunt-status-toggle:disabled {
  cursor: default;
}

.hunt-status::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.hunt-status--collecting {
  color: #9ed0ff;
  background: rgba(240, 176, 0, 0.12);
  border-color: rgba(240, 176, 0, 0.24);
}

.hunt-status--collecting-off {
  color: #b7c7d4;
  background: rgba(139, 164, 182, 0.12);
  border-color: rgba(139, 164, 182, 0.24);
}

.hunt-status--closed {
  color: #b7c7d4;
  background: rgba(139, 164, 182, 0.12);
  border-color: rgba(139, 164, 182, 0.24);
}

.hunt-status--opening {
  color: #ffd27d;
  background: rgba(255, 210, 125, 0.1);
  border-color: rgba(255, 210, 125, 0.28);
  animation: hunt-status-glow 2.4s ease-in-out infinite;
}

.hunt-status--complete {
  color: #7dffb0;
  background: rgba(125, 255, 176, 0.1);
  border-color: rgba(125, 255, 176, 0.24);
}

.hunt-status--requests-open {
  color: #9ed0ff;
  background: rgba(240, 176, 0, 0.12);
  border-color: rgba(240, 176, 0, 0.24);
}

.hunt-status--requests-closed {
  color: #b7c7d4;
  background: rgba(139, 164, 182, 0.12);
  border-color: rgba(139, 164, 182, 0.24);
}

@keyframes hunt-status-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 210, 125, 0);
  }

  50% {
    box-shadow: 0 0 14px rgba(255, 210, 125, 0.16);
  }
}

.hunt-stats {
  position: relative;
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.hunt-stats-row {
  display: grid;
  gap: 0.4rem;
}

.hunt-stats-row--primary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hunt-stats-row--secondary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hunt-highest-multi {
  position: relative;
  display: grid;
  gap: 0.15rem;
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 210, 125, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(155deg, rgba(48, 34, 12, 0.72), rgba(12, 16, 22, 0.9));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.hunt-highest-multi-label {
  margin: 0;
  color: #ffd27d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hunt-highest-multi-value {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.hunt-highest-multi-byline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hunt-stat {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  align-content: center;
  min-height: 3.15rem;
  padding: 0.45rem 0.4rem;
  border: 1px solid rgba(240, 176, 0, 0.12);
  border-radius: 8px;
  background: rgba(10, 18, 26, 0.55);
  box-shadow: none;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hunt-stat:last-child {
  border-right: 1px solid rgba(240, 176, 0, 0.12);
}

.hunt-stat:hover {
  transform: none;
  border-color: rgba(255, 226, 40, 0.3);
  background: rgba(14, 24, 34, 0.72);
  box-shadow: none;
}

.hunt-stat--profit .hunt-stat-value.is-positive {
  color: #7dffb0;
}

.hunt-stat--profit .hunt-stat-value.is-negative {
  color: #ff5d6a;
}

.hunt-stat--breakeven .hunt-stat-value.is-positive {
  color: #7dffb0;
}

.hunt-stat--breakeven .hunt-stat-value.is-target {
  color: #f0c98e;
}

.hunt-stat--breakeven .hunt-stat-value.is-negative {
  color: #ff8f98;
}

.hunt-stat-label {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.hunt-stat-value {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--text);
}

.hunt-progress-wrap {
  margin-bottom: 0.7rem;
}

.hunt-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.hunt-progress {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.hunt-progress-count {
  margin: 0;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.hunt-progress-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(240, 176, 0, 0.1);
  overflow: hidden;
}

.hunt-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0b000, #ffe44d);
  transition: width 0.35s ease;
}

.hunt-bonus-section {
  position: relative;
  overflow: visible;
}

.hunt-bonus-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(240, 176, 0, 0.1);
}

.hunt-bonus-section-header h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hunt-bonus-section-header span {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.hunt-empty {
  margin: 0;
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(240, 176, 0, 0.16);
  color: var(--text-muted);
  text-align: center;
  background: transparent;
  font-size: 0.84rem;
}

.hunt-bonus-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 0.35rem;
}

.hunt-bonus-grid::-webkit-scrollbar {
  width: 0.45rem;
}

.hunt-bonus-grid::-webkit-scrollbar-track {
  background: transparent;
}

.hunt-bonus-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(240, 176, 0, 0.28);
}

.hunt-bonus-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 176, 0, 0.45);
}

.hunt-bonus-card {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 0.3rem 0.5rem;
  align-items: center;
  padding: 0.32rem 0.1rem;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(240, 176, 0, 0.08);
  background: transparent;
  transition: background-color 0.15s ease;
  animation: hunt-card-in 0.3s ease both;
}

.hunt-bonus-card:has(.hunt-bonus-admin) {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

@keyframes hunt-card-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hunt-bonus-card:hover {
  transform: none;
  border-color: rgba(240, 176, 0, 0.08);
  box-shadow: none;
  background: rgba(240, 176, 0, 0.03);
}

.hunt-bonus-card.is-opening {
  border-color: rgba(255, 210, 125, 0.22);
  background: rgba(255, 210, 125, 0.05);
  box-shadow: none;
}

.hunt-bonus-card.is-super {
  border-color: rgba(255, 176, 64, 0.42);
  background:
    linear-gradient(155deg, rgba(48, 34, 12, 0.55), rgba(12, 16, 22, 0.92));
}

.hunt-bonus-card.is-super.is-opening {
  border-color: rgba(255, 190, 80, 0.5);
  background:
    linear-gradient(155deg, rgba(56, 38, 12, 0.62), rgba(18, 16, 12, 0.92));
}

.hunt-bonus-card.is-epic {
  border-color: rgba(186, 120, 255, 0.45);
  background:
    linear-gradient(155deg, rgba(42, 22, 58, 0.62), rgba(12, 16, 22, 0.92));
}

.hunt-bonus-card.is-epic.is-opening {
  border-color: rgba(200, 140, 255, 0.55);
  background:
    linear-gradient(155deg, rgba(52, 26, 70, 0.68), rgba(16, 14, 22, 0.92));
}

.hunt-bonus-card.is-super.is-epic {
  border-color: rgba(220, 150, 255, 0.5);
  background:
    linear-gradient(135deg, rgba(48, 34, 12, 0.45), rgba(42, 22, 58, 0.55), rgba(12, 16, 22, 0.92));
}

.hunt-bonus-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.hunt-bonus-super-badge,
.hunt-bonus-epic-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.18rem 0.45rem;
  border-radius: 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hunt-bonus-super-badge {
  color: #1a1204;
  background: linear-gradient(135deg, #ffd27d, #f0a020);
}

.hunt-bonus-epic-badge {
  color: #120818;
  background: linear-gradient(135deg, #e0b8ff, #a85cff);
}

.hunt-bonus-flag-toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.55rem;
  margin-left: auto;
}

.hunt-bonus-flag-toggle {
  display: grid;
  gap: 0.28rem;
  align-content: end;
}

.hunt-bonus-flag-toggle .toggle {
  width: 46px;
  height: 26px;
}

.hunt-bonus-flag-toggle .toggle-slider::before {
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
}

.hunt-bonus-flag-toggle .toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.hunt-bonus-index {
  min-width: 1.2rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hunt-bonus-avatar {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  flex-shrink: 0;
}

.hunt-bonus-avatar.is-fallback {
  text-transform: uppercase;
}

.hunt-bonus-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hunt-bonus-main {
  min-width: 0;
}

.hunt-bonus-slot {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hunt-bonus-provider {
  margin: 0.05rem 0 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.hunt-bonus-requester {
  margin: 0.05rem 0 0;
  color: var(--accent-bright);
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hunt-bonus-result {
  display: grid;
  justify-items: end;
  gap: 0.08rem;
  text-align: right;
  min-width: 4.5rem;
}

.hunt-bonus-win-field {
  display: grid;
  gap: 0.25rem;
  flex-shrink: 0;
  min-width: 0;
}

.hunt-bonus-win-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hunt-bonus-win-row {
  width: 6.5rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.7rem;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 15, 20, 0.55);
}

.hunt-bonus-win-row .guess-prefix {
  font-size: 0.95rem;
}

.hunt-bonus-win-row .guess-input,
.hunt-bonus-win-row .bonus-payout-input {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hunt-bonus-win-row .guess-input:focus,
.hunt-bonus-win-row .bonus-payout-input:focus {
  outline: none;
}

.hunt-bonus-win-row:focus-within {
  border-color: rgba(240, 176, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(240, 176, 0, 0.12);
}

.hunt-bonus-payout {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.hunt-bonus-payout.is-win {
  color: #7dffb0;
}

.hunt-bonus-multiplier {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(240, 176, 0, 0.08);
}

.hunt-bonus-multiplier.is-win {
  color: #031018;
  background: rgba(125, 255, 176, 0.88);
}

.hunt-bonus-pending {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hunt-bonus-card.is-opening .hunt-bonus-pending {
  color: #ffd27d;
}

.hunt-bonus-admin {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-start;
  gap: 0.45rem;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

.hunt-bonus-admin .btn {
  padding: 0.32rem 0.75rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

.hunt-admin-card,
.hunt-side-card {
  backdrop-filter: blur(14px);
}

.bonus-hunt-page .hunt-admin-card,
.bonus-hunt-page .hunt-side-card {
  padding: 0.9rem 1rem 0.95rem 1.05rem;
}

.bonus-hunt-page .admin-panel.bj21-panel {
  background:
    linear-gradient(155deg, rgba(26, 30, 36, 0.92), rgba(12, 14, 16, 0.88));
  border-color: rgba(240, 176, 0, 0.16);
  box-shadow: var(--shadow-card);
}

.bonus-hunt-page .admin-panel.bj21-panel::before {
  /* keep a single accent from bj21-panel */
  opacity: 0.75;
}

.hunt-admin-title,
.hunt-overlay-title,
.requests-hub-title,
.past-hunts-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hunt-admin-header {
  margin-bottom: 0.85rem;
}

.hunt-admin-header .admin-panel-text,
.hunt-overlay-admin-header .admin-panel-text {
  margin-top: 0.4rem;
}

.bonus-hunt-page .hunt-settings-row {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.bonus-hunt-page .guess-input,
.bonus-hunt-page .slot-request-select {
  min-height: 2.55rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
}

.bonus-hunt-page .guess-input-row {
  min-height: 2.55rem;
  padding: 0.4rem 0.85rem;
}

.bonus-hunt-page .hunt-bonus-win-row {
  width: 6.5rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.7rem;
  gap: 0.35rem;
}

.bonus-hunt-page .hunt-bonus-win-row .guess-input,
.bonus-hunt-page .hunt-bonus-win-row .bonus-payout-input {
  min-height: 0;
  padding: 0;
  font-size: 0.95rem;
}

.bonus-hunt-page .slot-request-slot,
.bonus-hunt-page .slot-request-user {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hunt-admin-card {
  margin-top: 0;
}

.hunt-admin-header {
  margin-bottom: 0.65rem;
}

.hunt-settings-form {
  margin-bottom: 0.65rem;
}

.hunt-add-bonus {
  display: grid;
  gap: 0.65rem;
  margin: 0.65rem 0 0.85rem;
  padding: 0.8rem 0.85rem;
  border-radius: calc(var(--radius-sm) + 4px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 14, 22, 0.42);
}

.hunt-add-bonus-header {
  display: grid;
  gap: 0.25rem;
}

.hunt-add-bonus-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hunt-add-bonus-form {
  display: grid;
  gap: 0.7rem;
}

.slot-stats-page.page-section {
  padding-top: 1.15rem;
  min-height: 0;
}

.slot-stats-shell {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
}

.slot-stats-shell .back-link {
  margin-bottom: 0.2rem;
}

.slot-stats-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.slot-stats-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slot-stats-lede {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.slot-stats-overlay-link {
  flex-shrink: 0;
  margin-bottom: 0.15rem;
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 600;
}

.slot-stats-panel {
  display: grid;
  gap: 0.55rem;
  position: relative;
  padding: 0.8rem 0.9rem;
}

.slot-stats-toolbar {
  display: grid;
  gap: 0.4rem;
}

.slot-stats-toolbar .guess-input {
  min-height: 2.4rem;
}

.slot-stats-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.slot-stats-filter {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.18rem 0.62rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
}

.slot-stats-filter.is-active {
  border-color: rgba(255, 226, 40, 0.7);
  background: rgba(255, 226, 40, 0.12);
}

.slot-stats-empty {
  margin: 0;
  color: var(--text-muted, #8ba4b6);
  font-size: 0.82rem;
}

.slot-stats-detail {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.slot-stats-picked {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.slot-stats-picked-thumb {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.4rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e8f7ff;
  background: rgba(30, 41, 59, 0.9);
}

.slot-stats-picked-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slot-stats-name {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.1;
}

.slot-stats-meta {
  margin: 0.12rem 0 0;
  color: var(--text-muted, #8ba4b6);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slot-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.slot-stats-stat {
  margin: 0;
  padding: 0.4rem 0.45rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(6, 10, 16, 0.45);
}

.slot-stats-stat p {
  margin: 0 0 0.08rem;
  color: var(--text-muted, #8ba4b6);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slot-stats-stat strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.slot-stats-stat span {
  display: block;
  margin-top: 0.05rem;
  color: var(--text-muted, #8ba4b6);
  font-size: 0.72rem;
}

.slot-stats-stat span:empty {
  display: none;
}

.slot-stats-page .hunt-add-slot-results {
  max-height: 12.5rem;
  gap: 0.15rem;
  padding: 0.25rem;
}

.slot-stats-page .hunt-add-slot-option {
  padding: 0.28rem 0.4rem;
  gap: 0.45rem;
}

.slot-stats-page .hunt-add-slot-thumb {
  width: 1.9rem;
  height: 1.9rem;
}

.hunt-add-slot-option.is-selected {
  border-color: rgba(255, 226, 40, 0.45);
  background: rgba(255, 226, 40, 0.08);
}

@media (max-width: 640px) {
  .slot-stats-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .slot-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hunt-add-bonus-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
}

.hunt-add-slot-results {
  display: grid;
  gap: 0.35rem;
  max-height: min(18rem, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.45rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(6, 10, 16, 0.88);
}

.hunt-add-slot-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.hunt-add-slot-option:hover,
.hunt-add-slot-option:focus-visible {
  border-color: rgba(255, 226, 40, 0.35);
  background: rgba(255, 226, 40, 0.08);
  outline: none;
}

.hunt-add-slot-thumb {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.45rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e8f7ff;
  background: rgba(30, 41, 59, 0.9);
}

.hunt-add-slot-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hunt-add-slot-option-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.hunt-add-slot-option-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hunt-add-slot-option-provider,
.hunt-add-slot-empty,
.hunt-add-slot-meta,
.hunt-add-slot-selected-label,
.hunt-add-slot-selected-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.hunt-add-slot-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(255, 226, 40, 0.28);
  background: rgba(255, 226, 40, 0.08);
}

.hunt-add-slot-selected-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.hunt-add-slot-selected-name {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hunt-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.hunt-side-panel {
  margin-top: 1rem;
}

.bonus-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.bonus-summary-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 15, 20, 0.45);
}

.bonus-summary-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bonus-summary-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
}

.bonus-summary-value.is-positive {
  color: #7dffb0;
}

.bonus-summary-value.is-negative {
  color: #ff8f98;
}

.bonus-list-panel {
  margin-top: 0;
}

.bonus-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.bonus-entry {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 15, 20, 0.45);
}

.bonus-entry-main {
  display: grid;
  gap: 0.55rem;
}

.bonus-entry-number {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.bonus-entry-slot {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.bonus-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.bonus-entry-bet,
.bonus-entry-payout {
  font-weight: 700;
  color: var(--accent-bright);
}

.bonus-entry-payout {
  color: var(--text);
}

.bonus-entry-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bonus-entry-status--pending {
  color: #ffd27d;
  background: rgba(255, 210, 125, 0.12);
}

.bonus-entry-status--opened {
  color: #7dffb0;
  background: rgba(125, 255, 176, 0.12);
}

.bonus-entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.bonus-payout-field {
  display: grid;
  gap: 0.3rem;
}

.bonus-payout-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bonus-payout-input {
  width: 7.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(4, 8, 12, 0.9);
  color: var(--text);
}

.bonus-field {
  display: grid;
  gap: 0.45rem;
}

.bonus-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.hunt-overlay-admin {
  margin-top: 0.95rem;
}

.hunt-overlay-admin.bj21-panel-inset {
  margin-top: 1rem;
}

.hunt-overlay-admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.hunt-overlay-admin-preview {
  display: grid;
  place-items: start center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.12);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-color: rgba(4, 8, 12, 0.55);
  overflow: hidden;
}

.hunt-overlay-admin-preview iframe {
  width: 26rem;
  height: 28rem;
  border: 0;
  background: transparent;
  transform: scale(0.92);
  transform-origin: top center;
}

.hunt-overlay-admin-url {
  margin-top: 0.9rem;
}

.hunt-overlay-admin-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.hunt-overlay-admin-note {
  min-height: 1.1rem;
  margin: 0.45rem 0 0;
  color: var(--accent-bright);
  font-size: 0.82rem;
}

.hunt-queue-spin {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

@media (min-width: 1101px) {
  .hunt-queue-spin {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.spin-overlay-board {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem 1rem 0.95rem 1.15rem;
}

.hunt-queue-spin .spin-overlay-board {
  margin-top: 0;
}

.hunt-queue-spin .spin-open-row {
  flex-wrap: wrap;
}

.hunt-queue-spin .spin-open-name {
  flex: 1 1 7rem;
}

.spin-open-admin {
  display: grid;
  gap: 0.55rem;
}

.spin-open-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.spin-open-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.spin-open-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.1rem;
}

.spin-open-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.spin-open-requester {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted, #8ba4b6);
  font-size: 0.8rem;
}

.spin-open-add {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.bonus-hunt-page .spin-open-bet {
  width: 7.4rem;
  min-height: 0;
  padding: 0.28rem 0.55rem;
}

.bonus-hunt-page .spin-open-bet .guess-prefix,
.bonus-hunt-page .spin-open-bet .guess-input {
  min-height: 0;
  padding: 0;
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .spin-open-row {
    flex-wrap: wrap;
  }

  .spin-open-copy {
    flex-basis: 100%;
  }
}

.spin-open-empty {
  color: var(--text-muted, #8ba4b6);
  font-size: 0.86rem;
}

.spin-overlay-preview {
  display: flex;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}

.spin-overlay-preview.is-empty {
  display: none;
}

.spin-overlay-preview iframe {
  width: min(100%, 26rem);
  height: 9rem;
  border: 0;
  background: transparent;
}

@media (max-width: 720px) {
  .hunt-overlay-admin-header {
    flex-direction: column;
  }

  .hunt-overlay-admin-preview iframe {
    width: 100%;
    max-width: 26rem;
    height: 24rem;
    transform: none;
  }
}

.slot-requests-admin-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.slot-catalog-meta {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.slot-catalog-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.slot-catalog-script-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0.85rem;
}

.slot-sync-script-fallback {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 201, 142, 0.28);
  background: rgba(240, 201, 142, 0.06);
}

.slot-sync-script-fallback.is-hidden {
  display: none;
}

.slot-sync-script-fallback textarea {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text);
  background: rgba(4, 8, 12, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
}

.slot-request-panel,
.slot-request-guest,
.slot-request-closed,
.slot-requests-panel {
  margin-bottom: 1rem;
}

.requests-hub {
  display: grid;
  gap: 0.7rem;
}

.requests-hub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(240, 176, 0, 0.1);
}

.requests-hub-eyebrow {
  margin: 0 0 0.15rem;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.requests-hub-meta {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.requests-hub-count {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.requests-hub-status {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.requests-hub-status--open {
  color: #8ef0c4;
  border-color: rgba(72, 214, 150, 0.35);
  background: rgba(72, 214, 150, 0.12);
}

.requests-hub-status--closed {
  color: #f0c98e;
  border-color: rgba(240, 201, 142, 0.35);
  background: rgba(240, 201, 142, 0.1);
}

.requests-hub-command {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0.55rem 0.7rem 0.55rem 0.8rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.14);
  background:
    linear-gradient(155deg, rgba(14, 24, 34, 0.9), rgba(12, 14, 16, 0.86));
}

.requests-hub-command::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe44d, rgba(240, 176, 0, 0.15));
  opacity: 0.55;
  pointer-events: none;
}

.requests-hub-command-row {
  display: grid;
  gap: 0.35rem;
}

.requests-hub-command-label {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.requests-hub-command-code {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.3rem 0.5rem;
  border-radius: calc(var(--radius-sm) - 2px);
  background: rgba(4, 8, 12, 0.65);
  color: var(--accent-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.requests-hub-command-example {
  margin: 0 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.requests-hub-command-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.requests-hub-command-note a {
  color: var(--accent-bright);
}

.requests-hub-notice p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.requests-hub-notice .btn {
  margin-top: 0.85rem;
}

.requests-hub-form-text {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.requests-hub-catalog {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.requests-hub-limit {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.requests-hub-list-wrap {
  display: grid;
  gap: 0.55rem;
  max-height: calc(8 * 3.75rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 0.2rem;
}

.requests-hub-list-wrap::-webkit-scrollbar {
  width: 8px;
}

.requests-hub-list-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.requests-hub-list-wrap::-webkit-scrollbar-thumb {
  background: rgba(240, 176, 0, 0.35);
  border-radius: 999px;
}

.requests-hub-list-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 226, 40, 0.5);
}

.requests-hub-empty {
  margin: 0;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(240, 176, 0, 0.18);
  background: rgba(4, 8, 12, 0.35);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.requests-hub-aff-note {
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 226, 40, 0.28);
  background: rgba(255, 226, 40, 0.08);
  color: #9dff73;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.requests-hub-access-toggles {
  display: grid;
  gap: 0.45rem;
}

.requests-hub-aff-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.14);
  background:
    linear-gradient(155deg, rgba(14, 24, 34, 0.9), rgba(12, 14, 16, 0.86));
}

.requests-hub-aff-toggle .admin-panel-label {
  margin: 0 0 0.2rem;
}

.requests-hub-aff-toggle .admin-panel-text {
  margin: 0;
  font-size: 0.82rem;
}

.requests-hub-admin {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(240, 176, 0, 0.1);
}

.requests-hub-kick {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0.95rem 0.85rem 1.05rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.14);
  background:
    linear-gradient(155deg, rgba(14, 24, 34, 0.9), rgba(12, 14, 16, 0.86));
}

.requests-hub-kick-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.requests-hub-kick-status,
.requests-hub-kick-meta {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.requests-hub-kick-status.is-error {
  color: #ff8f8f;
}

.requests-hub-kick-status.is-success {
  color: #8ce4a8;
}

.requests-hub-kick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.slot-sync-help {
  display: grid;
  gap: 0.55rem;
  margin: 0.55rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(255, 226, 40, 0.28);
  background: rgba(255, 226, 40, 0.08);
}

.slot-sync-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hunt-admin-queue {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(240, 176, 0, 0.12);
  display: grid;
  gap: 0.7rem;
}

.hunt-admin-queue-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.hunt-admin-queue-list .slot-requests-list {
  gap: 0;
}

.hunt-admin-queue-list .slot-request-entry {
  padding: 0.55rem 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
}

.hunt-admin-queue-list .slot-request-entry:last-child {
  border-bottom: none;
}

.slot-request-bet-cell {
  margin-left: auto;
  flex-shrink: 0;
}

.slot-request-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-left: auto;
  flex-shrink: 0;
  padding-top: 0.05rem;
}

.slot-request-field {
  display: grid;
  gap: 0.3rem;
  flex-shrink: 0;
}

.slot-request-field-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.slot-request-action-row {
  display: flex;
  align-items: end;
  gap: 0.55rem;
}

.slot-request-controls .guess-input-row {
  width: 7.5rem;
  flex-shrink: 0;
}

.slot-request-controls .guess-input-row .guess-input {
  min-height: 0;
  padding: 0;
}

.slot-request-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 2.15rem;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.slot-request-remove:disabled {
  opacity: 0.55;
  cursor: wait;
}

.slot-request-remove svg {
  width: 0.95rem;
  height: 0.95rem;
}

.slot-request-remove:hover,
.slot-request-remove:focus-visible {
  color: #ffb8b8;
  background: rgba(255, 120, 120, 0.12);
}

.slot-requests-table-head {
  display: none;
}

.slot-requests-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.slot-request-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.slot-request-entry:last-child {
  border-bottom: none;
}

.requests-hub-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.requests-hub-pick-result {
  margin: 0;
  color: #e8c56b;
  font-weight: 700;
}

.slot-request-entry.is-picked,
.slot-request-entry.is-opening {
  margin-inline: -0.35rem;
  padding-inline: 0.35rem;
  border-radius: 8px;
  background: rgba(232, 197, 107, 0.1);
  box-shadow: inset 3px 0 0 #e8c56b;
}

.spin-replace-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.spin-replace-modal.is-hidden {
  display: none;
}

.spin-replace-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(6px);
}

.spin-replace-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  display: grid;
  gap: 0.7rem;
  padding: 1.05rem 1.1rem 1.1rem 1.2rem;
}

.spin-replace-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spin-replace-copy {
  margin: 0;
  color: var(--text-muted, #8ba4b6);
  font-size: 0.92rem;
}

.spin-replace-choices {
  display: grid;
  gap: 0.45rem;
}

.spin-replace-choice {
  width: 100%;
  justify-content: flex-start;
  white-space: normal;
  text-align: left;
}

.slot-request-thumb {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.4rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.slot-request-thumb.is-fallback {
  text-transform: uppercase;
}

.slot-request-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slot-request-info {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
  padding-top: 0.05rem;
}

.slot-request-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}

.slot-request-slot {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(255, 255, 255, 0.32);
  text-underline-offset: 0.16rem;
  overflow-wrap: anywhere;
}

.slot-request-provider {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  overflow-wrap: anywhere;
}

.slot-request-user {
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  overflow-wrap: anywhere;
}

.slot-request-bet {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0c98e;
  white-space: nowrap;
}

.hunt-admin-queue-tools {
  border-top: none;
  padding-top: 0;
}

.hunt-admin-queue-tools > .btn {
  align-self: flex-start;
}

.requests-hub-notice {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.12);
  background: rgba(8, 12, 18, 0.55);
}

.slot-request-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.slot-request-form .btn {
  justify-self: start;
}

.slot-request-select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(4, 8, 12, 0.9);
  color: var(--text);
  font: inherit;
}

.past-hunts-card {
  margin-top: 0;
}

.past-hunts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(240, 176, 0, 0.1);
}

.past-hunts-eyebrow {
  margin: 0 0 0.15rem;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.past-hunts-count {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.past-hunts-empty {
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(240, 176, 0, 0.16);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.past-hunts-list {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.past-hunt-entry {
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.14);
  background:
    linear-gradient(155deg, rgba(14, 24, 34, 0.88), rgba(12, 14, 16, 0.84));
  overflow: hidden;
}

.past-hunt-entry.is-expanded {
  border-color: rgba(240, 176, 0, 0.2);
}

.past-hunt-entry-row {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
}

.past-hunt-entry-toggle {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 0.7rem 0.8rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.past-hunt-entry-toggle:hover {
  background: rgba(240, 176, 0, 0.04);
}

.past-hunt-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  width: 2.15rem;
  min-width: 2.15rem;
  height: 2.15rem;
  margin-right: 0.65rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.past-hunt-remove svg {
  width: 0.95rem;
  height: 0.95rem;
}

.past-hunt-remove:hover,
.past-hunt-remove:focus-visible {
  color: #ffb8b8;
  background: rgba(255, 120, 120, 0.12);
}

.past-hunt-remove:disabled {
  opacity: 0.55;
  cursor: wait;
}

.past-hunt-entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.past-hunt-entry-main {
  min-width: 0;
}

.past-hunt-entry-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.past-hunt-entry-meta {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.past-hunt-entry-stats {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.past-hunt-entry-profit {
  font-size: 1rem;
  font-weight: 700;
}

.past-hunt-entry-profit.is-positive {
  color: #8ef0c4;
}

.past-hunt-entry-profit.is-negative {
  color: #ff8f98;
}

.past-hunt-entry-status {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.past-hunt-entry-status--complete {
  color: #8ef0c4;
  background: rgba(72, 214, 150, 0.12);
}

.past-hunt-entry-status--opening,
.past-hunt-entry-status--collecting {
  color: #f0c98e;
  background: rgba(240, 201, 142, 0.1);
}

.past-hunt-entry-details {
  padding: 0 1.05rem 1rem;
}

.past-hunt-entry-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.past-hunt-detail-stat {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.1);
  background: rgba(4, 8, 12, 0.35);
}

.past-hunt-detail-stat span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.past-hunt-detail-stat strong {
  font-size: 0.95rem;
}

.past-hunt-bonus-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.past-hunt-bonus-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.08);
  background: rgba(4, 8, 12, 0.28);
}

.past-hunt-bonus-slot {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.past-hunt-bonus-result {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.past-hunt-bonus-result.is-win {
  color: #8ef0c4;
}

@media (max-width: 1100px) {
  .hunt-layout-grid {
    grid-template-columns: 1fr;
  }

  .hunt-layout-side {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

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

  .hunt-layout-side {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .hunt-stats {
    gap: 0.35rem;
  }

  .hunt-stats-row--primary,
  .hunt-stats-row--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hunt-stats-row--secondary .hunt-stat:last-child {
    grid-column: 1 / -1;
  }

  .hunt-stat {
    min-height: 2.85rem;
    padding: 0.4rem 0.4rem;
  }

  .past-hunt-entry-detail-stats {
    grid-template-columns: 1fr;
  }

  .past-hunt-entry-top {
    flex-direction: column;
  }

  .past-hunt-entry-stats {
    justify-items: start;
  }

  .slot-request-form-row,
  .slot-requests-table-head {
    display: none;
  }

  .slot-request-entry {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .slot-request-controls {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .slot-request-bet-cell {
    margin-left: auto;
  }

  .hunt-settings-row {
    grid-template-columns: 1fr;
  }

  .hunt-add-bonus-row {
    grid-template-columns: 1fr;
  }

  .hunt-bonus-card,
  .hunt-bonus-card:has(.hunt-bonus-admin) {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "index avatar main result"
      "admin admin admin admin";
  }

  .hunt-bonus-index {
    display: block;
    grid-area: index;
  }

  .hunt-bonus-avatar {
    grid-area: avatar;
  }

  .hunt-bonus-main {
    grid-area: main;
  }

  .hunt-bonus-result {
    grid-area: result;
    justify-items: end;
  }

  .hunt-bonus-admin {
    grid-area: admin;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 0.2rem;
  }

  .hunt-bonus-win-field {
    min-width: 0;
  }

  .hunt-bonus-win-row {
    width: 6.25rem;
  }

  .hunt-bonus-slot {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .bonus-hunt-page .hunt-settings-row {
    grid-template-columns: 1fr;
  }

  .bonus-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.podium-panel {
  margin-top: 1rem;
}

.podium-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.podium-balance {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.podium-balance strong {
  color: var(--accent-bright);
}

.podium-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
  min-height: 220px;
}

.podium-slot {
  flex: 1;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
}

.podium-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.85rem 0.65rem 0.75rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  background: rgba(10, 15, 20, 0.55);
}

.podium-slot.place-1 .podium-block {
  min-height: 150px;
  border-color: rgba(255, 214, 102, 0.45);
  background: linear-gradient(
    180deg,
    rgba(255, 214, 102, 0.18),
    rgba(10, 15, 20, 0.55)
  );
}

.podium-slot.place-2 .podium-block {
  min-height: 118px;
  border-color: rgba(192, 202, 214, 0.4);
  background: linear-gradient(
    180deg,
    rgba(192, 202, 214, 0.14),
    rgba(10, 15, 20, 0.55)
  );
}

.podium-slot.place-3 .podium-block {
  min-height: 92px;
  border-color: rgba(205, 127, 50, 0.4);
  background: linear-gradient(
    180deg,
    rgba(205, 127, 50, 0.14),
    rgba(10, 15, 20, 0.55)
  );
}

.podium-medal {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
}

.podium-slot.place-1 .podium-medal {
  color: #ffd666;
}

.podium-slot.place-2 .podium-medal {
  color: #c0cad6;
}

.podium-slot.place-3 .podium-medal {
  color: #cd7f32;
}

.podium-user {
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.podium-stake {
  margin-top: -0.15rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.podium-guess {
  font-weight: 700;
  color: var(--accent-bright);
}

.podium-diff {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .podium-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .podium-stage {
    gap: 0.5rem;
  }

  .podium-slot {
    max-width: none;
  }
}

.toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 52px;
  height: 30px;
}

.toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(139, 164, 182, 0.35);
  border: 1px solid var(--border);
  transition: background 0.2s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle input:focus-visible + .toggle-slider {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

/* Player */
.player-wrap {
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(240, 176, 0, 0.16);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-wrap.theme-surface {
  background: #000;
}

.player-wrap.theme-surface::before {
  display: none;
}

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

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

.player-frame.is-hidden,
.player-offline.is-hidden {
  display: none;
}

.player-offline {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(240, 176, 0, 0.08), rgba(2, 16, 24, 0.95));
}

.player-offline p {
  margin: 0;
  color: var(--text-muted);
}

.player-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

/* Homepage community chat */
.site-chat {
  position: sticky;
  top: 0;
  align-self: start;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  z-index: 40;
}

.site-chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: none;
  border-radius: 0;
  border: 0;
  border-left: 1px solid rgba(240, 176, 0, 0.16);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(240, 176, 0, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(12, 18, 26, 0.98), rgba(6, 10, 14, 0.98));
  box-shadow: none;
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.site-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(240, 176, 0, 0.1);
  flex-shrink: 0;
}

.site-chat-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-chat-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-chat-live {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3dde7a;
  box-shadow: 0 0 0 0 rgba(61, 222, 122, 0.65);
  animation: live-strip-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}

.site-chat-title {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-chat-toggle {
  display: none;
}

.site-chat-close {
  display: none;
}

.site-chat-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.site-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 0.95rem 1rem;
  display: grid;
  gap: 1.05rem;
  align-content: start;
}

.site-chat-empty {
  margin: 0;
  padding: 0 0.85rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-shrink: 0;
}

.site-chat-empty.is-hidden,
.site-chat-composer.is-hidden,
.site-chat-signin.is-hidden,
.site-chat-status.is-hidden {
  display: none;
}

.site-chat-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: start;
}

.site-chat-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.45rem;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.site-chat-avatar.is-fallback {
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}

.site-chat-message-main {
  min-width: 0;
}

.site-chat-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.15rem;
}

.site-chat-username {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.site-chat-username.is-admin {
  color: var(--accent-bright);
}

.site-chat-time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.site-chat-text {
  margin: 0.12rem 0 0;
  color: rgba(226, 236, 245, 0.94);
  font-size: 0.98rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-chat-delete {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.site-chat-delete:hover {
  background: rgba(255, 90, 90, 0.16);
  color: #ffb4b4;
}

.site-chat-signin-note,
.house-games-guest-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-chat-signin-note a,
.house-games-guest-note a {
  color: var(--accent-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-chat-composer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem 0.9rem;
  border-top: 1px solid rgba(240, 176, 0, 0.1);
  flex-shrink: 0;
}

.site-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(4, 8, 12, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.site-chat-input:focus {
  outline: none;
  border-color: rgba(240, 176, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(240, 176, 0, 0.12);
}

.site-chat-signin {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  padding: 0.85rem;
  border-top: 1px solid rgba(240, 176, 0, 0.1);
  flex-shrink: 0;
}

.site-chat-signin p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.site-chat-status {
  margin: 0;
  padding: 0 0.85rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.site-chat-status.is-error {
  color: #ffb4b4;
}

.site-chat-status.is-success {
  color: #7dffb0;
}

@media (max-width: 960px) {
  .home-shell {
    display: block;
    min-height: 0;
  }

  .site-chat-toggle {
    display: inline-flex;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 120;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }

  .site-chat {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100vw, 22rem);
    height: 100vh;
    min-height: 100vh;
    z-index: 110;
    transform: translateX(100%);
    transition: transform 0.22s ease;
  }

  .site-chat.is-open {
    transform: none;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.45);
  }

  .site-chat-close {
    display: inline-flex;
  }

  .site-chat-body {
    display: flex;
  }
}

.info-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.35rem 1.35rem 1.35rem 1.45rem;
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg-card-rich);
  border: 1px solid rgba(240, 176, 0, 0.16);
  box-shadow: var(--shadow-card);
}

.info-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffe44d, rgba(240, 176, 0, 0.15));
  opacity: 0.75;
  pointer-events: none;
}

.info-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.info-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.info-card p:last-child {
  margin-bottom: 0;
}

/* Menu */
.menu {
  position: relative;
  padding: 2.1rem 0 1.85rem;
  overflow: hidden;
}

.home-page .house-games {
  padding-top: 1.5rem;
}

.home-page .hero {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.home-page .hero > .container {
  position: relative;
  z-index: 1;
}

.menu-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 55% at 10% 0%, rgba(240, 176, 0, 0.14), transparent 60%),
    radial-gradient(ellipse 40% 45% at 95% 80%, rgba(26, 30, 36, 0.45), transparent 58%),
    linear-gradient(180deg, rgba(240, 176, 0, 0.03), transparent 50%);
}

.menu-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(240, 176, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 176, 0, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 85%);
}

.menu-inner {
  position: relative;
  z-index: 1;
}

.menu-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
  margin-bottom: 1.15rem;
}

.menu-header-copy {
  display: grid;
  gap: 0.15rem;
}

.menu-eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

.menu-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu-lead {
  margin: 0;
  max-width: 16rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: right;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.menu-card {
  --menu-delay: 0ms;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 0;
  padding: 0.85rem 0.95rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.14);
  background: linear-gradient(160deg, rgba(14, 24, 34, 0.92), rgba(7, 12, 18, 0.88));
  box-shadow: none;
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  animation: menu-card-in 0.45s ease forwards;
  animation-delay: var(--menu-delay);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.menu-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe44d, rgba(240, 176, 0, 0.2));
  opacity: 0.7;
  transition: opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.menu-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 40%,
    rgba(255, 226, 40, 0.1) 50%,
    transparent 60%
  );
  transform: translateX(-130%);
  transition: transform 0.45s ease;
}

@keyframes menu-card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-card:hover,
.menu-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 226, 40, 0.42);
  background: linear-gradient(160deg, rgba(18, 32, 44, 0.98), rgba(8, 14, 20, 0.94));
}

.menu-card:hover::before,
.menu-card:focus-visible::before {
  opacity: 1;
  top: 0.45rem;
  bottom: 0.45rem;
}

.menu-card:hover::after,
.menu-card:focus-visible::after {
  transform: translateX(130%);
}

.menu-card:hover .menu-card-cta,
.menu-card:focus-visible .menu-card-cta {
  color: var(--accent-bright);
  transform: translateX(3px);
}

.menu-card:hover .menu-title,
.menu-card:focus-visible .menu-title {
  color: var(--accent-bright);
}

.menu-card-index {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 226, 40, 0.42);
  line-height: 1;
  padding-left: 0.2rem;
}

.menu-card-body {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.menu-label {
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
}

.menu-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.menu-blurb {
  margin: 0;
  max-width: 22rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.menu-card-cta {
  margin: 0;
  padding: 0;
  color: rgba(238, 246, 251, 0.45);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu-card--center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 960px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-lead {
    text-align: left;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .menu-card::after {
    display: none;
  }
}

/* House Games */
.house-games-card {
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem 1.2rem 1.35rem;
}

.house-games-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.house-games-card-top .house-games-header {
  margin: 0;
}

.house-games-header p {
  color: var(--text-muted);
  max-width: 38rem;
}

.house-games-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.house-games-balance {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
}

.house-games-self-credit {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.45rem 0.65rem;
}

.house-games-self-credit.is-hidden {
  display: none;
}

.house-games-balance-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.house-games-balance-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--accent-bright);
}

.house-games-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.house-games-tab {
  appearance: none;
  border: 1px solid rgba(240, 176, 0, 0.22);
  background: rgba(18, 21, 26, 0.72);
  color: rgba(226, 236, 245, 0.92);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.house-games-tab:hover,
.house-games-tab:focus-visible {
  color: var(--text);
  border-color: var(--border-strong);
}

.house-games-tab.is-active {
  color: var(--text);
  border-color: rgba(255, 226, 40, 0.7);
  background: rgba(240, 176, 0, 0.18);
  box-shadow: 0 0 16px rgba(240, 176, 0, 0.28);
}

.house-games-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.house-games-status.is-error {
  color: #ff8f8f;
}

.house-games-guest {
  display: grid;
  gap: 0.85rem;
}

.hg-guest-preview {
  pointer-events: none;
}

.hg-guest-preview .hg-bj-felt {
  min-height: 18rem;
  grid-template-rows: auto auto auto auto auto;
}

.house-games-guest-note {
  margin: 0;
}

.house-games-stage {
  display: grid;
  gap: 1rem;
}

.house-game-panel {
  display: none;
  gap: 1rem;
}

.house-game-panel.is-active {
  display: grid;
}

.hg-bet-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem 0.85rem;
}

.hg-bet-input {
  width: 7.5rem;
}

.hg-keno-risk {
  display: grid;
  gap: 0.4rem;
}

.hg-keno-risk-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 226, 40, 0.14);
  background: rgba(4, 14, 22, 0.55);
}

.hg-keno-risk-btn {
  appearance: none;
  border: 1px solid rgba(240, 176, 0, 0.22);
  background: rgba(18, 21, 26, 0.72);
  color: rgba(226, 236, 245, 0.92);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.hg-keno-risk-btn:hover,
.hg-keno-risk-btn:focus-visible {
  color: var(--accent-bright);
  outline: none;
  border-color: rgba(255, 226, 40, 0.55);
  background: rgba(18, 21, 26, 0.72);
}

.hg-keno-risk-btn.is-active {
  background: rgba(240, 176, 0, 0.2);
  color: #eaf8ff;
  box-shadow: inset 0 0 0 1px rgba(255, 226, 40, 0.28);
}

.hg-keno-random {
  display: grid;
  gap: 0.4rem;
}

.hg-keno-random-row {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 0.4rem;
  align-items: stretch;
}

.hg-keno-random-count {
  width: 100%;
  min-width: 0;
}

.hg-keno-controls {
  display: grid;
  gap: 1rem;
  align-content: start;
  align-self: stretch;
  min-width: 0;
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 226, 40, 0.12);
  background:
    linear-gradient(165deg, rgba(12, 24, 34, 0.92), rgba(6, 14, 22, 0.88));
}

.hg-keno-controls .guess-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(176, 196, 210, 0.78);
}

.hg-keno-field {
  display: grid;
  gap: 0.4rem;
}

.hg-keno-input {
  width: 100%;
  max-width: none;
  border-radius: 10px;
  border-color: rgba(255, 226, 40, 0.16);
  background: rgba(3, 12, 20, 0.72);
}

.hg-keno-input:focus {
  border-color: rgba(255, 226, 40, 0.45);
  outline: none;
}

.hg-keno-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.hg-keno-btn {
  width: 100%;
  border-radius: 10px;
  justify-content: center;
}

.hg-keno-draw {
  min-height: 2.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hg-keno-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.hg-bj-shell {
  display: grid;
  gap: 0;
  max-width: 46rem;
  margin-inline: auto;
}

.hg-bj-table {
  position: relative;
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(232, 197, 107, 0.32);
  background:
    linear-gradient(180deg, #243240 0%, #121a22 42%, #0c1218 100%);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 226, 40, 0.06);
}

.hg-bj-felt {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  justify-items: center;
  align-content: start;
  gap: 0.45rem;
  min-height: 26rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 0.95rem;
  background:
    radial-gradient(ellipse 62% 48% at 50% 36%, rgba(186, 232, 206, 0.16), transparent 68%),
    radial-gradient(ellipse 90% 70% at 50% 115%, rgba(0, 0, 0, 0.28), transparent 52%),
    linear-gradient(180deg, #1a8a68 0%, #0f6a50 46%, #0b5240 100%);
  box-shadow:
    inset 0 0 0 1px rgba(232, 197, 107, 0.28),
    inset 0 16px 24px rgba(255, 255, 255, 0.05),
    inset 0 -22px 32px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.hg-bj-table.is-dealing .hg-bj-felt {
  overflow: visible;
}

.hg-bj-shoe {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  z-index: 3;
  width: 2.4rem;
  height: 3.15rem;
  pointer-events: none;
  opacity: 0.9;
}

.hg-bj-shoe-deck {
  position: absolute;
  inset: 0;
  border-radius: 0.28rem;
  border: 1px solid rgba(232, 197, 107, 0.4);
  background:
    linear-gradient(160deg, #1a3c50, #0c1c28);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.hg-bj-shoe-deck::after {
  content: "21";
  position: absolute;
  inset: 0.28rem;
  border-radius: 0.16rem;
  border: 1px solid rgba(232, 197, 107, 0.4);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: rgba(232, 197, 107, 0.8);
  pointer-events: none;
}

.hg-bj-shoe-deck:nth-child(1) { transform: translate(3px, -3px); }
.hg-bj-shoe-deck:nth-child(2) { transform: translate(1.5px, -1.5px); }
.hg-bj-shoe-deck:nth-child(3) { transform: none; }

.hg-bj-player-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: end;
  gap: 1rem 1.5rem;
  width: 100%;
}

.hg-hand-player {
  flex: 1 1 6.5rem;
  max-width: 12rem;
  min-width: 6.5rem;
  margin-top: 0.25rem;
  padding: 0.45rem 0.55rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hg-hand-player.is-active {
  background: rgba(4, 16, 14, 0.18);
  border-color: rgba(232, 197, 107, 0.42);
  box-shadow: inset 0 0 0 1px rgba(232, 197, 107, 0.1);
}

.hg-hand-player.is-done:not(.is-active) {
  opacity: 0.72;
}

.hg-bj-table.is-dealing .hg-bj-shoe-deck:nth-child(3) {
  animation: hg-shoe-flick 0.78s ease;
}

.hg-bj-felt::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 16%;
  height: 34%;
  border: 1px solid rgba(232, 197, 107, 0.2);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.hg-bj-felt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 3px,
      rgba(0, 20, 14, 0.035) 3px 4px
    );
  opacity: 0.85;
}

.hg-bj-banner {
  position: relative;
  z-index: 1;
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 0.9;
  text-transform: uppercase;
  color: rgba(232, 197, 107, 0.92);
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.hg-bj-banner span {
  color: #f6e7bc;
}

.hg-bj-rules,
.hg-bj-insurance {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: calc(100% - 4.6rem);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
  color: rgba(246, 231, 188, 0.72);
  text-align: center;
}

.hg-bj-insurance {
  margin-top: 0.15rem;
}

.hg-hand {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  width: 100%;
}

.hg-hand-dealer {
  margin-top: 0.25rem;
}

.hg-hand-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238, 246, 251, 0.78);
}

.hg-hand-label span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e8c56b;
}

.hg-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  min-height: 5.15rem;
  padding-left: 0.15rem;
}

.hg-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.55rem;
  height: 5rem;
  margin-left: -0.85rem;
  border-radius: 0.38rem;
  border: 1px solid rgba(20, 24, 28, 0.14);
  background: linear-gradient(180deg, #fffefb 0%, #f3efe4 100%);
  color: #1c2430;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1;
  transform-origin: center top;
  box-shadow:
    0 10px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hg-card:first-child {
  margin-left: 0;
}

.hg-card.is-red {
  color: #c23b3b;
}

.hg-card.is-hidden-card {
  background: linear-gradient(160deg, #1a3c50, #0c1c28);
  color: transparent;
  font-size: 0;
  border-color: rgba(232, 197, 107, 0.38);
  box-shadow:
    0 10px 16px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(232, 197, 107, 0.12);
}

.hg-card.is-hidden-card::before {
  content: "21";
  position: absolute;
  inset: 0.38rem;
  border: 1px solid rgba(232, 197, 107, 0.42);
  border-radius: 0.22rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(232, 197, 107, 0.88);
}

.hg-card.is-dealing {
  animation: hg-deal 0.78s cubic-bezier(0.18, 0.82, 0.22, 1) both;
}

.hg-hand-player .hg-card.is-dealing {
  --deal-x: 48px;
  --deal-y: -150px;
  --deal-rot: -22deg;
}

.hg-hand-dealer .hg-card.is-dealing {
  --deal-x: 90px;
  --deal-y: -70px;
  --deal-rot: -12deg;
}

.hg-card.is-flipping {
  animation: hg-flip 0.45s ease both;
}

.hg-card-corner {
  position: absolute;
  top: 0.28rem;
  left: 0.3rem;
  display: grid;
  justify-items: center;
  gap: 0.02rem;
  line-height: 0.9;
}

.hg-card-corner.is-br {
  top: auto;
  left: auto;
  right: 0.3rem;
  bottom: 0.28rem;
  transform: rotate(180deg);
}

.hg-card-rank {
  font-size: 0.82rem;
  letter-spacing: -0.03em;
}

.hg-card-suit {
  font-size: 0.68rem;
}

.hg-card-pip {
  font-size: 1.45rem;
  line-height: 1;
}

@keyframes hg-deal {
  0% {
    opacity: 0;
    transform: translate(var(--deal-x, 40px), var(--deal-y, -140px))
      rotate(var(--deal-rot, -18deg)) scale(0.82);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@keyframes hg-flip {
  0% {
    transform: rotateY(90deg) scaleX(0.7);
    opacity: 0.4;
  }
  100% {
    transform: rotateY(0deg) scaleX(1);
    opacity: 1;
  }
}

@keyframes hg-shoe-flick {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: translate(-6px, 4px) rotate(-4deg);
  }
}

.hg-bj-result {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 48%;
  margin: 0;
  min-height: 0;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: rgba(6, 16, 18, 0.62);
  border: 1px solid rgba(232, 197, 107, 0.22);
  text-align: center;
  transform: translate(-50%, -50%);
  text-shadow: none;
}

.hg-bj-result:empty {
  display: none;
}

.hg-bj-player-row {
  align-self: end;
}

.hg-bj-spot {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  margin-top: 0.15rem;
  min-height: 4.6rem;
}

.hg-bj-spot::before {
  content: "";
  position: absolute;
  top: 0.05rem;
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 50%;
  border: 1px solid rgba(232, 197, 107, 0.62);
  box-shadow:
    inset 0 0 0 5px rgba(232, 197, 107, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.18);
}

.hg-bj-chip {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  margin-top: 0.65rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 54%, #102028 55% 58%, transparent 59%),
    repeating-conic-gradient(#e8c56b 0 14deg, #14303a 14deg 28deg);
  box-shadow:
    0 8px 14px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.hg-bj-chip-inner {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 1px solid rgba(232, 197, 107, 0.7);
  background: radial-gradient(circle at 35% 30%, #1d4656, #0c222c);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e8c56b;
}

.hg-bj-spot-label {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 231, 188, 0.78);
}

.hg-bj-side-note {
  position: relative;
  z-index: 1;
  min-height: 0.9rem;
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8c56b;
}

.hg-bj-side-note:empty {
  display: none;
}

.hg-bj-hands {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.hg-bj-hand-btn {
  appearance: none;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 226, 40, 0.22);
  background: rgba(18, 21, 26, 0.72);
  color: rgba(226, 236, 245, 0.92);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.hg-bj-hand-btn.is-active {
  color: #151515;
  border-color: transparent;
  background: #e8c56b;
}

.hg-bj-hand-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.hg-bj-sidebets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.7rem;
}

.hg-bj-side-field {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.hg-bj-side-field .hg-bj-bet-input {
  width: 4.4rem;
}

.hg-bj-rail {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(5, 10, 16, 0.42);
  border: 1px solid rgba(255, 226, 40, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hg-bj-bet-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0;
}

.hg-bj-rail-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 246, 251, 0.72);
}

.hg-bj-bet-input {
  width: 5.5rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.65rem;
  border-color: rgba(255, 226, 40, 0.28);
  background: rgba(7, 18, 28, 0.72);
  color: var(--text);
}

.hg-bj-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
}

.hg-bj-btn {
  min-width: 4.6rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.hg-bj-btn.btn-outline {
  border-color: rgba(255, 226, 40, 0.42);
  background: rgba(7, 18, 28, 0.45);
  color: rgba(238, 246, 251, 0.92);
}

.hg-bj-btn.btn-outline:hover:not(:disabled) {
  border-color: rgba(255, 226, 40, 0.7);
  background: rgba(240, 176, 0, 0.16);
  color: #fff;
}

.hg-bj-btn:disabled {
  opacity: 0.45;
}

.house-games-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hg-result {
  margin: 0;
  min-height: 1.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hg-result.is-win,
.hg-result.is-blackjack {
  color: #6de0a4;
}

.hg-result.is-lose,
.hg-result.is-bust {
  color: #ff8f8f;
}

.hg-result.is-push,
.hg-result.is-split {
  color: var(--accent-bright);
}

@media (max-width: 720px) {
  .hg-bj-table {
    border-radius: 1.05rem;
    padding: 0.5rem;
  }

  .hg-bj-felt {
    min-height: 22rem;
    border-radius: 0.8rem;
    padding: 0.9rem 0.65rem 1rem;
    gap: 0.35rem;
  }

  .hg-bj-felt::before {
    left: 8%;
    right: 8%;
    height: 30%;
  }

  .hg-bj-rail {
    border-radius: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 0.65rem;
  }

  .hg-bj-bet-controls,
  .hg-bj-actions {
    width: 100%;
    justify-content: center;
  }

  .hg-bj-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hg-card {
    width: 2.85rem;
    height: 4.05rem;
    margin-left: -0.7rem;
  }

  .hg-card-pip {
    font-size: 1.15rem;
  }
}

.hg-roulette-stage {
  display: grid;
  grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.hg-roulette-wheel-wrap {
  position: relative;
  width: min(100%, 22rem);
  margin-inline: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.hg-roulette-rim {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 0.7rem;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 236, 190, 0.22), transparent 34%),
    conic-gradient(
      from 0deg,
      #6b4e2a,
      #b8944f,
      #5a4124,
      #d0b06a,
      #6b4e2a,
      #b8944f,
      #5a4124,
      #d0b06a,
      #6b4e2a
    );
  box-shadow:
    inset 0 0 0 2px rgba(255, 220, 160, 0.28),
    inset 0 0 0 7px rgba(20, 14, 8, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.35);
}

.hg-roulette-rim.is-spinning {
  box-shadow:
    inset 0 0 0 2px rgba(255, 220, 160, 0.34),
    inset 0 0 0 7px rgba(20, 14, 8, 0.55),
    0 12px 28px rgba(0, 0, 0, 0.4);
}

.hg-roulette-bowl {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, #1a242e 0%, #0a1016 70%, #05080c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 160, 0.18),
    inset 0 18px 28px rgba(0, 0, 0, 0.45);
}

.hg-roulette-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: visible;
  will-change: transform;
  transform: translateZ(0);
}

.hg-roulette-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hg-roulette-fret {
  stroke: rgba(232, 205, 140, 0.72);
  stroke-width: 1.15;
  stroke-linecap: round;
}

.hg-roulette-inner-ring {
  fill: none;
  stroke: rgba(232, 205, 140, 0.55);
  stroke-width: 2.5;
}

.hg-roulette-label {
  fill: #f4f7fa;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 0.6px;
}

.hg-roulette-ball-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
  z-index: 4;
}

.hg-roulette-ball-orb {
  position: absolute;
  /* Sit on the number ring (labels are ~84% of radius). */
  top: 7.2%;
  left: 50%;
  width: 0.78rem;
  height: 0.78rem;
  margin-left: -0.39rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #ffffff 0%, #e8eef4 38%, #9aadb8 100%);
  box-shadow:
    0 1px 2px rgba(255, 255, 255, 0.55) inset,
    0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hg-roulette-ball-orb.is-spinning {
  box-shadow:
    0 1px 2px rgba(255, 255, 255, 0.55) inset,
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(255, 255, 255, 0.25);
}

.hg-roulette-ball-orb.is-settling {
  transform: scale(1.12);
}

.hg-roulette-hub {
  position: absolute;
  inset: 30%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 230, 180, 0.28), transparent 42%),
    linear-gradient(160deg, #2a2116, #120e0a 58%, #1c160f);
  border: 1px solid rgba(232, 205, 140, 0.42);
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(20, 14, 8, 0.55);
  pointer-events: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hg-roulette-hub.has-result:has(.is-red) {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 180, 180, 0.2), transparent 45%),
    linear-gradient(160deg, #7a1f28, #3a0e14 60%, #1a080a);
  border-color: rgba(226, 110, 118, 0.55);
}

.hg-roulette-hub.has-result:has(.is-black) {
  background:
    radial-gradient(circle at 35% 30%, rgba(200, 210, 220, 0.16), transparent 45%),
    linear-gradient(160deg, #2a3340, #0c1016 60%, #06080c);
  border-color: rgba(180, 190, 200, 0.4);
}

.hg-roulette-hub.has-result:has(.is-green) {
  background:
    radial-gradient(circle at 35% 30%, rgba(150, 230, 180, 0.2), transparent 45%),
    linear-gradient(160deg, #1f6b42, #0e3a24 60%, #071a10);
  border-color: rgba(109, 224, 164, 0.45);
}

.hg-roulette-hub-core {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f0d9a0, #b8934e 55%, #6d5228);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35);
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hg-roulette-hub.has-result .hg-roulette-hub-core,
.hg-roulette-hub.is-spinning .hg-roulette-hub-core {
  opacity: 0.18;
  transform: scale(0.92);
}

.hg-roulette-hub-mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a140c;
  text-shadow: 0 1px 0 rgba(255, 236, 190, 0.35);
  line-height: 1;
  transition: color 0.2s ease, font-size 0.2s ease, transform 0.25s ease;
}

.hg-roulette-hub-mark.is-spinning {
  font-size: 1.8rem;
  color: rgba(240, 217, 160, 0.75);
  text-shadow: none;
  animation: hg-roulette-hub-pulse 0.9s ease-in-out infinite;
}

.hg-roulette-hub-mark.is-result {
  font-size: clamp(1.8rem, 5vw, 2.35rem);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  animation: hg-roulette-hub-pop 0.35s ease both;
}

.hg-roulette-hub-mark.is-result.is-red {
  color: #ff8f96;
}

.hg-roulette-hub-mark.is-result.is-black {
  color: #eef4f8;
}

.hg-roulette-hub-mark.is-result.is-green {
  color: #7eefb0;
}

@keyframes hg-roulette-hub-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes hg-roulette-hub-pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.hg-roulette-board-wrap {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.hg-roulette-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
  max-width: 22rem;
}

.hg-roulette-cell {
  appearance: none;
  min-height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f2f4f6;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hg-roulette-cell.is-zero {
  grid-column: 1 / -1;
  background: linear-gradient(160deg, #249656, #1f7a45);
}

.hg-roulette-cell.is-red {
  background: linear-gradient(160deg, #d13a45, #b4232e);
}

.hg-roulette-cell.is-black {
  background: linear-gradient(160deg, #243040, #121820);
}

.hg-roulette-cell:hover,
.hg-roulette-cell:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 226, 40, 0.55);
}

.hg-roulette-cell.is-active {
  box-shadow:
    0 0 0 2px rgba(255, 226, 40, 0.85),
    0 8px 18px rgba(0, 0, 0, 0.28);
  border-color: var(--accent-bright);
}

.hg-roulette-cell.is-hit {
  outline: 2px solid #f0d68c;
  outline-offset: 1px;
}

.hg-roulette-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hg-roulette-pick.is-active {
  border-color: rgba(240, 176, 0, 0.65);
  background: rgba(240, 176, 0, 0.12);
  color: var(--text);
}

.hg-roulette-pick-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hg-roulette-result {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.2rem;
}

.hg-roulette-ball {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  background: #1a1a1a;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  animation: hg-spin-pop 0.35s ease both;
}

.hg-roulette-ball.is-red {
  background: #b4232e;
}

.hg-roulette-ball.is-black {
  background: #151515;
}

.hg-roulette-ball.is-green {
  background: #1f7a45;
}

.hg-roulette-copy {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes hg-spin-pop {
  from {
    opacity: 0;
    transform: scale(0.7) rotate(-18deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .hg-roulette-stage {
    grid-template-columns: 1fr;
  }

  .hg-roulette-wheel-wrap {
    width: min(100%, 19rem);
  }

  .hg-roulette-board {
    max-width: none;
  }
}

.hg-keno-layout {
  display: grid;
  grid-template-columns: minmax(12.5rem, 15rem) minmax(0, 1fr) minmax(12.5rem, 16rem);
  gap: 1rem 1.15rem;
  align-items: stretch;
}

.hg-keno-layout:has(.hg-keno-paytable[hidden]),
.hg-keno-layout:has(.hg-keno-paytable.is-hidden) {
  grid-template-columns: minmax(12.5rem, 15rem) minmax(0, 1fr);
}

.hg-keno-paytable.is-hidden {
  display: none;
}

.hg-keno-board-stage {
  position: relative;
  align-self: stretch;
  width: 100%;
  max-width: none;
  height: 100%;
  display: grid;
  align-content: start;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 226, 40, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 176, 0, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(10, 22, 32, 0.9), rgba(5, 12, 20, 0.94));
  box-sizing: border-box;
}

.hg-keno-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
}

.hg-keno-paytable {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  align-self: stretch;
  min-width: 0;
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 226, 40, 0.12);
  background:
    linear-gradient(165deg, rgba(12, 24, 34, 0.92), rgba(6, 14, 22, 0.88));
  box-sizing: border-box;
}

.hg-keno-paytable-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.hg-keno-paytable-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.hg-keno-pay-head,
.hg-keno-pay-row,
.hg-keno-pay-overview-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.45rem;
  align-items: center;
}

.hg-keno-pay-overview-row {
  grid-template-columns: 4.25rem 1fr;
  gap: 0.55rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(240, 176, 0, 0.08);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hg-keno-pay-overview-row:last-child {
  border-bottom: 0;
}

.hg-keno-pay-overview-row span:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.hg-keno-pay-head {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(240, 176, 0, 0.14);
}

.hg-keno-pay-rows {
  display: grid;
  gap: 0;
}

.hg-keno-pay-row {
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(240, 176, 0, 0.07);
  font-size: 0.9rem;
}

.hg-keno-pay-row:last-child {
  border-bottom: 0;
}

.hg-keno-pay-hits {
  color: var(--text);
}

.hg-keno-pay-mult {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
}

.hg-keno-pay-pts {
  font-family: var(--font-display);
  font-weight: 600;
  color: #6de0a4;
}

.hg-keno-cell {
  appearance: none;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 226, 40, 0.1);
  border-radius: 10px;
  background: rgba(8, 18, 28, 0.72);
  color: rgba(196, 214, 226, 0.72);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.hg-keno-cell:hover,
.hg-keno-cell:focus-visible {
  color: var(--text);
  border-color: rgba(255, 226, 40, 0.38);
  background: rgba(240, 176, 0, 0.1);
  outline: none;
}

.hg-keno-cell.is-picked {
  color: #eaf8ff;
  border-color: rgba(255, 226, 40, 0.55);
  background: rgba(240, 176, 0, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 40, 0.12);
}

.hg-keno-cell.is-miss {
  color: #fff;
  border-color: rgba(230, 90, 98, 0.55);
  background: #c63a45;
  box-shadow: none;
}

.hg-keno-cell.is-hit {
  color: #07140f;
  border-color: rgba(109, 224, 164, 0.7);
  background: #6de0a4;
  box-shadow: none;
}

.hg-keno-cell.is-picked.is-miss {
  color: #fff;
  border-color: rgba(230, 90, 98, 0.55);
  background: #c63a45;
}

.hg-keno-cell.is-picked.is-hit {
  color: #07140f;
  border-color: rgba(109, 224, 164, 0.7);
  background: #6de0a4;
}

.hg-keno-cell.is-revealing {
  animation: hg-keno-pop 0.2s ease both;
  z-index: 2;
}

@keyframes hg-keno-pop {
  0% {
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(255, 226, 40, 0);
  }
  55% {
    transform: scale(1.08);
    box-shadow: 0 0 0 5px rgba(255, 226, 40, 0.16);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 226, 40, 0);
  }
}

.hg-keno-result {
  min-height: 1.15rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-bright);
  line-height: 1.35;
}

.hg-keno-win-banner,
.hg-roulette-win-banner {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  pointer-events: none;
  text-align: center;
  padding: 1rem;
  border-radius: inherit;
  background: radial-gradient(
    circle at center,
    rgba(4, 16, 22, 0.7) 0%,
    rgba(4, 16, 22, 0.35) 48%,
    rgba(4, 16, 22, 0) 74%
  );
}

.hg-keno-win-banner.is-hidden,
.hg-roulette-win-banner.is-hidden {
  display: none;
}

.hg-win-banner-inner,
.hg-keno-win-banner-inner {
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  padding: 0.95rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(109, 224, 164, 0.35);
  background: rgba(8, 28, 34, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  animation: hg-win-banner-pop 0.4s ease both;
}

.hg-win-banner-label,
.hg-keno-win-banner-label {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.8vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6de0a4;
}

.hg-win-banner-detail,
.hg-keno-win-banner-detail {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

@keyframes hg-win-banner-pop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  60% {
    transform: scale(1.03);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes hg-keno-win-pop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  60% {
    transform: scale(1.03);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-card.is-dealing,
  .hg-card.is-flipping,
  .hg-roulette-ball,
  .hg-keno-cell.is-revealing,
  .hg-keno-win-banner-inner,
  .hg-win-banner-inner,
  .hg-bj-table.is-dealing .hg-bj-shoe-deck:nth-child(3) {
    animation: none;
  }

  .hg-roulette-ball-orb.is-settling {
    transform: none;
  }

  .hg-roulette-hub-mark.is-spinning,
  .hg-roulette-hub-mark.is-result {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .hg-keno-layout {
    grid-template-columns: minmax(12rem, 14rem) minmax(0, 1fr);
  }

  .hg-keno-layout:has(.hg-keno-paytable[hidden]),
  .hg-keno-layout:has(.hg-keno-paytable.is-hidden) {
    grid-template-columns: minmax(12rem, 14rem) minmax(0, 1fr);
  }

  .hg-keno-paytable {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .hg-keno-layout {
    grid-template-columns: 1fr;
  }

  .hg-keno-controls,
  .hg-keno-board-stage,
  .hg-keno-paytable {
    height: auto;
  }

  .hg-keno-paytable {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .hg-keno-board-stage {
    padding: 0.85rem;
  }

  .hg-keno-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Links */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.link-card {
  position: relative;
  display: grid;
  gap: 0.35rem;
  min-height: 9.5rem;
  padding: 1.25rem 1.3rem 1.15rem 1.45rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(240, 176, 0, 0.08);
}

.link-card:hover .menu-card-cta,
.link-card:focus-visible .menu-card-cta {
  color: var(--accent-bright);
  transform: translateX(3px);
}

.link-card.kick:hover { border-color: rgba(240, 176, 0, 0.55); }
.link-card.discord:hover { border-color: rgba(88, 101, 242, 0.45); }
.link-card.twitter:hover { border-color: rgba(240, 176, 0, 0.35); }

.link-platform {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.link-handle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.link-card .menu-label {
  margin-bottom: 0.15rem;
}

.link-card .menu-card-cta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(238, 246, 251, 0.78);
}

/* Footer */
.footer {
  position: relative;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(240, 176, 0, 0.14);
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(240, 176, 0, 0.06), transparent 60%),
    rgba(2, 16, 24, 0.72);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-contact a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #ffe44d;
}

.privacy-page .legal-doc {
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem 1.55rem;
  max-width: 46rem;
}

.privacy-page .legal-doc > p,
.privacy-page .legal-doc > ul {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.privacy-page .legal-doc h2 {
  margin: 0.85rem 0 0;
  font-family: var(--font-display), Impact, sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.privacy-page .legal-doc ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.privacy-page .legal-doc li {
  padding-left: 0.15rem;
}

.privacy-page .legal-doc a {
  color: #ffe44d;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.privacy-page .legal-doc strong {
  color: var(--text);
  font-weight: 600;
}

.disclaimer {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.2);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.disclaimer a {
  color: var(--text);
  text-decoration: underline;
}

.copyright {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: rgba(21, 24, 28, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: 0;
    padding-top: 0.5rem;
  }

  .auth-member {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .auth-user {
    justify-content: center;
  }

  .auth-panel .btn {
    width: 100%;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 0.9rem 0.5rem;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .menu-card {
    padding: 0.75rem 0.8rem;
    gap: 0.55rem;
  }

  .menu-title {
    font-size: 1.15rem;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-card,
  .accounts-hero,
  .giveaways-hero,
  .accounts-card,
  .leaderboard-hero {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .menu-card::after,
  .link-card,
  .menu-card {
    transition: none;
  }
}
/* Level Up Rewards */
.level-up-page.page-section {
  padding-bottom: 4rem;
}

/* Slot Tournaments */
.slot-tournaments-page.page-section {
  padding-bottom: 4rem;
}

.slot-tournaments-page .page-content.slot-tournaments-shell {
  max-width: 72rem;
}

.slot-tournaments-shell {
  max-width: 72rem;
  display: grid;
  gap: 1rem;
}

.slot-tournaments-split {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 900px) {
  .slot-tournaments-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .slot-tournaments-split > .slot-tournaments-panel {
    min-height: 100%;
  }
}

.slot-tournaments-top {
  display: grid;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.25rem;
}

@media (min-width: 760px) {
  .slot-tournaments-top {
    grid-template-columns: minmax(0, 1.35fr) minmax(11rem, 0.75fr);
  }
}

.slot-tournaments-hero {
  margin: 0;
}

.slot-tournaments-heading {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slot-tournaments-lede {
  margin: 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.slot-tournaments-status-card {
  display: grid;
  gap: 0.25rem;
  padding: 1.05rem 1.15rem;
}

.slot-tournaments-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.slot-tournaments-status-toggle {
  width: 46px;
  height: 26px;
}

.slot-tournaments-status-toggle .toggle-slider::before {
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
}

.slot-tournaments-status-toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.slot-tournaments-status-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0c98e;
  line-height: 1;
}

.slot-tournaments-status-card[data-phase="signup"] .slot-tournaments-status-value {
  color: #9dff73;
}

.slot-tournaments-status-card[data-phase="live"] .slot-tournaments-status-value {
  color: #ffe44d;
}

.slot-tournaments-status-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.slot-tournaments-banner {
  margin: 0;
  color: #9dff73;
  font-size: 0.9rem;
}

.slot-tournaments-banner.is-error {
  color: #ffb0b0;
}

.slot-tournaments-panel {
  display: grid;
  gap: 0.65rem;
  padding: 1.2rem 1.25rem 1.3rem;
}

.slot-tournaments-panel-label {
  margin: 0;
  color: rgba(255, 226, 40, 0.75);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slot-tournaments-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slot-tournaments-panel-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.slot-tournaments-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.slot-tournaments-meta dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.slot-tournaments-meta dd {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.slot-tournaments-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.slot-tournaments-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.slot-tournaments-section-head > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.slot-tournaments-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.slot-tournaments-scroll {
  max-height: min(18rem, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.slot-tournaments-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.slot-tournaments-entry {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 14, 22, 0.45);
}

.slot-tournaments-entry-change {
  margin-left: auto;
  flex-shrink: 0;
}

.slot-tournaments-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
  justify-content: flex-end;
}

.slot-tournaments-entry-index {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #ffe44d;
  min-width: 2rem;
}

.slot-tournaments-entry-name {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.slot-tournaments-entry-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.slot-tournaments-entry-bot {
  width: fit-content;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slot-tournaments-bots {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: grid;
  gap: 0.45rem;
}

.slot-tournaments-manual {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: grid;
  gap: 0.45rem;
}

.slot-tournaments-manual .slot-tournaments-bots-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.slot-tournaments-manual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
}

.slot-tournaments-manual-search {
  position: relative;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.slot-tournaments-manual-suggestions {
  position: fixed;
  z-index: 80;
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  max-height: 14rem;
  overflow: auto;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(255, 226, 40, 0.22);
  background: rgba(8, 14, 22, 0.98);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.slot-tournaments-manual-suggestion {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
}

.slot-tournaments-manual-suggestion:hover,
.slot-tournaments-manual-suggestion.is-active {
  background: rgba(240, 176, 0, 0.14);
  color: #fff;
}

@media (max-width: 640px) {
  .slot-tournaments-manual-row {
    grid-template-columns: 1fr;
  }
}

.slot-tournaments-bots-row {
  display: grid;
  grid-template-columns: auto 5rem auto auto;
  gap: 0.55rem;
  align-items: end;
}

.slot-tournaments-bots-row .guess-label {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .slot-tournaments-bots-row {
    grid-template-columns: 1fr 1fr;
  }

  .slot-tournaments-bots-row .guess-input,
  .slot-tournaments-bots-row .btn {
    grid-column: auto;
  }

  .slot-tournaments-bots-row .guess-input {
    grid-column: 1 / -1;
  }
}

.st-predictions-timer-admin {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.16);
  background: rgba(8, 14, 22, 0.4);
}

.st-predictions-timer-admin .guess-label {
  margin: 0;
}

.st-predictions-timer-admin .slot-tournaments-panel-text {
  margin: 0;
}

.st-predictions-timer-admin .digital-clock-picker {
  margin-top: 0.25rem;
}

#st-predictions-timer {
  margin-top: 0.35rem;
}

.st-predictors-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.st-predictors-item {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--text);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.st-prediction-podium {
  margin-top: 0;
}

.st-prediction-board-scroll {
  display: grid;
  gap: 0.85rem;
  max-height: min(32rem, 70vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
  margin-top: 0.35rem;
}

.st-prediction-board-scroll:has(.st-prediction-board.is-hidden):has(.st-prediction-podium.is-hidden) {
  display: none;
}

.slot-tournaments-panel:has(#st-prediction-board-title) {
  text-align: center;
  align-self: start;
}

.slot-tournaments-panel:has(#st-prediction-board-title) .slot-tournaments-section-head {
  justify-content: center;
}

.slot-tournaments-panel:has(#st-prediction-board-title) .slot-tournaments-section-head > div {
  justify-items: center;
}

.slot-tournaments-panel:has(#st-prediction-board-title) .st-prediction-board-row {
  text-align: left;
}

.st-prediction-podium-stage {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  align-items: end;
  gap: 1rem;
  min-height: 0;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-slot {
  max-width: none;
  width: 100%;
  gap: 0;
  align-items: stretch;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-block {
  width: 100%;
  min-height: 0;
  padding: 0 0.4rem 0.35rem;
  border: 0;
  border-radius: 0;
  background: none;
  gap: 0.28rem;
  display: grid;
  justify-items: center;
  justify-content: end;
  text-align: center;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-slot::after {
  content: none;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-trophy {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.4rem;
  margin: 0 auto 0.2rem;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-slot.place-1 .podium-trophy {
  width: 5.2rem;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-slot.place-2 .podium-trophy {
  width: 4.6rem;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-trophy-icon {
  display: block;
  width: 100%;
  height: auto;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-trophy-place {
  position: absolute;
  bottom: 0.15rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(12, 14, 16, 0.85);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-slot.place-1 .podium-trophy-place {
  font-size: 1.2rem;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-user {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  overflow-wrap: anywhere;
  max-width: 100%;
}

.slot-tournaments-page .st-prediction-podium-stage .st-predictor-name {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.35);
  text-underline-offset: 0.18em;
}

.slot-tournaments-page .st-prediction-podium-stage .st-predictor-name:hover,
.slot-tournaments-page .st-prediction-podium-stage .st-predictor-name:focus-visible {
  color: #ffe44d;
  text-decoration-color: rgba(255, 226, 40, 0.65);
  outline: none;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-guess {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.3;
  max-width: 100%;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-prize {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f0b000;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-slot.place-1 .podium-prize {
  color: #ffd666;
}

.slot-tournaments-page .st-prediction-podium-stage .podium-slot.is-vacant .podium-user,
.slot-tournaments-page .st-prediction-podium-stage .podium-slot.is-vacant .podium-guess,
.slot-tournaments-page .st-prediction-podium-stage .podium-slot.is-vacant .podium-prize {
  opacity: 0.45;
}

.st-prediction-board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.st-prediction-board-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 14, 22, 0.45);
}

.st-prediction-board-place {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  min-width: 1.5rem;
  text-align: center;
}

.st-prediction-board-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.st-prediction-board-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
  text-align: left;
}

.st-prediction-board-name.st-predictor-name {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.35);
  text-underline-offset: 0.18em;
}

.st-prediction-board-name.st-predictor-name:hover,
.st-prediction-board-name.st-predictor-name:focus-visible {
  color: #ffe44d;
  text-decoration-color: rgba(255, 226, 40, 0.65);
  outline: none;
}

.st-prediction-board-detail {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.st-prediction-board-points {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--raffle-gold, #f0b000);
  white-space: nowrap;
}

.st-predict-modal-open {
  overflow: hidden;
}

.st-predict-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.st-predict-modal.is-hidden {
  display: none;
}

.st-predict-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(6px);
}

.st-predict-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, 100%);
  max-height: min(92vh, 920px);
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(240, 176, 0, 0.22);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(240, 176, 0, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(14, 20, 28, 0.98), rgba(8, 12, 18, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.st-predict-modal-head,
.st-predict-modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
}

.st-predict-modal-head {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.st-predict-modal-foot {
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.st-predict-modal-title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.st-predict-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 0.85rem 1.15rem 1.15rem;
}

.st-predict-modal-body .st-bracket-board {
  min-width: max-content;
}

.st-predict-modal #st-predict-modal-status.is-error {
  color: #ff8f8f;
}

.st-predict-modal #st-predict-modal-status.is-success {
  color: #8dffb0;
}

.st-bracket-player.is-predicted {
  border-color: rgba(240, 176, 0, 0.55);
  background: rgba(240, 176, 0, 0.14);
  box-shadow: inset 0 0 0 1px rgba(240, 176, 0, 0.18);
}

@media (max-width: 720px) {
  .st-predict-modal {
    padding: 0.5rem;
  }

  .st-predict-modal-dialog {
    max-height: 96vh;
  }

  .st-predict-modal-head,
  .st-predict-modal-foot {
    padding: 0.85rem;
  }

  .slot-tournaments-page .st-prediction-podium-stage {
    gap: 0.55rem;
  }

  .slot-tournaments-page .st-prediction-podium-stage .podium-trophy {
    width: 3rem;
  }

  .slot-tournaments-page .st-prediction-podium-stage .podium-slot.place-1 .podium-trophy {
    width: 3.6rem;
  }

  .slot-tournaments-page .st-prediction-podium-stage .podium-slot.place-2 .podium-trophy {
    width: 3.2rem;
  }

  .slot-tournaments-page .st-prediction-podium-stage .podium-user {
    font-size: 1rem;
  }

  .slot-tournaments-page .st-prediction-podium-stage .podium-prize {
    font-size: 1rem;
  }
}

.slot-tournaments-entry-slot {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.slot-tournaments-entry-slot-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.slot-tournaments-entry-slot-row.is-primary .st-slot-thumb {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.58rem;
}

.slot-tournaments-entry-user-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.slot-tournaments-entry-slot-row .st-slot-thumb {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.5rem;
}

.slot-tournaments-assign,
.slot-tournaments-admin {
  display: grid;
  gap: 1rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.slot-tournaments-assign-add {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.slot-tournaments-assign .slot-tournaments-panel.bj21-panel {
  overflow: visible;
}

.st-slot-picker {
  position: relative;
  display: grid;
  gap: 0.45rem;
}

.st-slot-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 14, 22, 0.72);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.st-slot-picker-trigger[aria-expanded="true"] {
  border-color: rgba(255, 226, 40, 0.45);
}

.st-slot-picker-trigger-copy {
  flex: 1;
  min-width: 0;
  color: var(--text-muted);
}

.st-slot-picker-menu {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(8, 12, 18, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.st-slot-picker-search {
  width: 100%;
}

.st-slot-picker-groups {
  max-height: min(22rem, 48vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 0.75rem;
}

.st-slot-picker-group {
  display: grid;
  gap: 0.35rem;
}

.st-slot-picker-group-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe44d;
}

.st-slot-picker-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-sm) + 2px);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.st-slot-picker-option:hover:not(:disabled),
.st-slot-picker-option:focus-visible {
  border-color: rgba(255, 226, 40, 0.28);
  background: rgba(255, 226, 40, 0.08);
  outline: none;
}

.st-slot-picker-option:disabled,
.st-slot-picker-option.is-added {
  opacity: 0.55;
  cursor: default;
}

.st-slot-picker-option-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.st-slot-picker-option-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.st-slot-picker-option-provider {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.st-claim-modal .st-predict-modal-dialog {
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
}

.st-claim-slot-groups {
  max-height: min(52vh, 420px);
  overflow: auto;
  margin-top: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: calc(var(--radius-sm) + 2px);
  background: rgba(6, 10, 16, 0.55);
}

.st-claim-modal #st-claim-modal-status.is-error {
  color: #fca5a5;
}

.st-claim-modal #st-claim-modal-status.is-success {
  color: #86efac;
}

.st-slot-picker-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.st-slot-thumb {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.4rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.st-slot-thumb.is-fallback {
  text-transform: uppercase;
}

.st-slot-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slot-tournaments-assign-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.slot-tournaments-assign-scroll {
  max-height: min(20rem, 40vh);
  margin-bottom: 0.85rem;
}

.slot-tournaments-assign-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 14, 22, 0.45);
}

.slot-tournaments-assign-identity {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.slot-tournaments-assign-name {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
}

.slot-tournaments-assign-select {
  min-width: 0;
}

.slot-tournaments-admin-grid {
  display: grid;
  gap: 0.4rem;
}

.slot-tournaments-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.slot-tournaments-results-editor {
  display: grid;
  gap: 0.55rem;
}

.slot-tournaments-result-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0.55rem;
  align-items: center;
}

@media (max-width: 640px) {
  .slot-tournaments-assign-row {
    grid-template-columns: auto 1fr;
  }

  .slot-tournaments-assign-row .slot-tournaments-assign-select,
  .slot-tournaments-assign-row .btn {
    grid-column: 1 / -1;
  }

  .slot-tournaments-result-row {
    grid-template-columns: auto 1fr;
  }

  .slot-tournaments-result-row .guess-input:last-child {
    grid-column: 2;
  }
}

.st-bracket-toolbar {
  margin-bottom: 0.35rem;
}

.st-bracket-page .st-bracket-shell,
.slot-tournaments-page.st-bracket-page .page-content.slot-tournaments-shell {
  max-width: min(100%, 96rem);
  width: 100%;
}

.slot-tournaments-page.st-bracket-page > .container {
  width: min(100% - 1.25rem, 96rem);
}

.st-bracket-page .slot-tournaments-top {
  margin-bottom: 0;
}

.st-bracket-page .slot-tournaments-heading {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.st-bracket-page .slot-tournaments-lede {
  max-width: 36rem;
}

.st-bracket-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.55rem;
  width: 100%;
  overflow: visible;
  padding-bottom: 0;
}

.st-bracket-board.is-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 12rem) minmax(0, 1fr);
  grid-auto-flow: row;
  grid-auto-columns: unset;
  align-items: stretch;
  gap: 0.55rem;
  min-height: 0;
  width: 100%;
}

.st-bracket-wing {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.45rem;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  overflow: visible;
}

.st-bracket-wing.is-left {
  direction: ltr;
}

.st-bracket-wing.is-right {
  direction: rtl;
}

.st-bracket-wing.is-right > * {
  direction: ltr;
}

.st-bracket-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.st-bracket-center .st-bracket-round {
  width: 100%;
}

.st-bracket-round {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.4rem;
  align-content: stretch;
  min-width: 0;
  width: 100%;
}

.st-bracket-round-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0.4rem;
  min-height: 100%;
}

.st-bracket-round-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe44d;
  text-align: center;
}

.st-bracket-match {
  display: grid;
  gap: 0.28rem;
  padding: 0.45rem 0.5rem;
}

.st-bracket-match .slot-tournaments-panel-label {
  font-size: 0.62rem;
  margin: 0;
}

.st-bracket-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.3rem;
  align-items: center;
  width: 100%;
  padding: 0.28rem 0.35rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 14, 22, 0.45);
  color: inherit;
  text-align: left;
}

.st-bracket-player.is-pickable {
  cursor: pointer;
}

.st-bracket-player.is-pickable:hover,
.st-bracket-player.is-pickable:focus-visible {
  border-color: rgba(255, 226, 40, 0.45);
  background: rgba(255, 226, 40, 0.08);
  outline: none;
}

.st-bracket-player.is-winner {
  border-color: rgba(255, 226, 40, 0.45);
  background: rgba(255, 226, 40, 0.1);
}

.st-bracket-player-name {
  min-width: 0;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-bracket-player-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.st-bracket-player-user {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-bracket-player-name.is-empty {
  color: var(--text-muted);
  font-weight: 500;
}

.st-bracket-score-input {
  width: 100%;
  min-width: 0;
  text-align: right;
  padding: 0.28rem 0.35rem;
  font-size: 0.78rem;
}

.st-bracket-score-value {
  text-align: right;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}

.st-bracket-match-actions {
  display: flex;
  justify-content: flex-end;
}

.st-bracket-match-actions .btn {
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
}

.st-bracket-match-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .st-bracket-board.is-split {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .st-bracket-wing.is-left,
  .st-bracket-wing.is-right {
    direction: ltr;
  }

  .st-bracket-center {
    order: -1;
    max-width: 16rem;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .st-bracket-wing {
    grid-auto-flow: row;
    grid-auto-columns: unset;
  }

  .st-bracket-player {
    grid-template-columns: minmax(0, 1fr) 3.25rem;
  }
}

/* Store */
.store-page.page-section {
  padding-bottom: 4.5rem;
}

.store-shell {
  max-width: 68rem;
  display: grid;
  gap: 1.35rem;
}

.store-page .page-content.store-shell {
  max-width: 68rem;
}

.store-top {
  display: grid;
  gap: 1rem;
  align-items: end;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(240, 176, 0, 0.12);
}

@media (min-width: 720px) {
  .store-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
  }
}

.store-hero {
  margin: 0;
}

.store-heading {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 6vw, 3.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.store-lede {
  margin: 0;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.store-balance {
  display: grid;
  gap: 0.15rem;
  min-width: 10.5rem;
  padding: 0.85rem 1.05rem;
  border-radius: calc(var(--radius-sm) + 4px);
  border: 1px solid rgba(240, 176, 0, 0.16);
  background:
    linear-gradient(160deg, rgba(14, 28, 38, 0.92), rgba(12, 14, 16, 0.88));
}

.store-balance-label,
.store-panel-label {
  margin: 0;
  color: rgba(255, 226, 40, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-balance-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f0c98e;
  line-height: 1;
}

.store-balance-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.store-status {
  margin: 0;
  color: #9dff73;
  font-size: 0.9rem;
}

.store-status.is-error {
  color: #ffb0b0;
}

.store-buy {
  display: grid;
  gap: 0.85rem;
  padding: 1.05rem 1.15rem;
  border-radius: calc(var(--radius-sm) + 6px);
  border: 1px solid rgba(240, 176, 0, 0.16);
  background:
    linear-gradient(155deg, rgba(12, 26, 36, 0.9), rgba(5, 12, 18, 0.86));
}

.store-buy-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.store-buy-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-buy-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.store-buy-packages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

.store-buy-package-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(255, 226, 40, 0.28);
  background: linear-gradient(135deg, rgba(240, 176, 0, 0.18), rgba(14, 28, 38, 0.9));
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.store-buy-package-btn:hover:not(:disabled) {
  border-color: rgba(255, 226, 40, 0.55);
  transform: translateY(-1px);
}

.store-buy-package-btn:disabled,
.store-buy-packages.is-disabled .store-buy-package-btn {
  opacity: 0.5;
  pointer-events: none;
}

.store-buy-package-btn.is-selected {
  border-color: rgba(240, 201, 142, 0.65);
  box-shadow: 0 0 0 1px rgba(240, 201, 142, 0.25);
}

.store-buy-package-pts {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-buy-package-sep {
  display: none;
}

.store-buy-package-usd {
  color: #9dff73;
  font-size: 0.92rem;
  font-weight: 700;
}

.store-buy-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.55rem;
  width: 100%;
}

.store-buy-methods.is-hidden {
  display: none;
}

.store-buy-method-btn {
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(255, 226, 40, 0.3);
  background: linear-gradient(135deg, rgba(240, 176, 0, 0.2), rgba(14, 28, 38, 0.92));
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.store-buy-method-btn:hover:not(:disabled) {
  border-color: rgba(255, 226, 40, 0.55);
  transform: translateY(-1px);
}

.store-buy-method-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.store-buy-method-btn.is-crypto {
  border-color: rgba(157, 255, 115, 0.28);
  background: linear-gradient(135deg, rgba(157, 255, 115, 0.14), rgba(14, 28, 38, 0.92));
}

.store-buy-method-btn.is-hidden {
  display: none;
}

.store-buy-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.store-buy-form {
  display: none;
}

.store-buy-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.14);
  background: rgba(12, 14, 16, 0.55);
}

.store-buy-toggle .admin-panel-label {
  margin: 0 0 0.2rem;
}

.store-buy-toggle .admin-panel-text {
  margin: 0;
  font-size: 0.82rem;
}

#store-buy-settings {
  grid-column: 1 / -1;
}

.store-browse-row {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.store-browse-side {
  display: grid;
  gap: 1rem;
  min-width: 0;
  align-content: start;
}

@media (min-width: 960px) {
  .store-browse-row {
    grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 0.78fr);
    gap: 1.5rem;
  }
}

.store-rewards,
.store-rail {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.store-rail {
  padding: 0.95rem 1rem;
  border-radius: calc(var(--radius-sm) + 4px);
  border: 1px solid rgba(240, 176, 0, 0.12);
  background: rgba(12, 14, 16, 0.45);
}

.store-section-header {
  display: grid;
  gap: 0.2rem;
}

.store-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-section-subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.store-section-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.store-section-copy code {
  color: #ffe44d;
  font-size: 0.9em;
}

.store-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.store-redemptions-list,
.store-admin-catalog,
.store-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.store-rewards-note {
  margin: -0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.store-reward-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr));
  gap: 0.6rem;
  align-items: stretch;
}

.store-reward-card {
  --reward-delay: 0ms;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 0;
  padding: 0.7rem 0.8rem 0.7rem 0.95rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(255, 226, 40, 0.14);
  background:
    linear-gradient(165deg, rgba(16, 28, 38, 0.95), rgba(12, 14, 16, 0.9));
  overflow: hidden;
  animation: store-reward-in 0.4s ease both;
  animation-delay: var(--reward-delay);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.store-reward-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ffe44d, transparent 70%);
  opacity: 0.75;
  pointer-events: none;
}

.store-reward-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 226, 40, 0.32);
}

.store-reward-card.is-locked {
  opacity: 0.68;
}

.store-reward-card-glow {
  display: none;
}

.store-reward-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.65rem;
  min-width: 0;
}

.store-reward-card-eyebrow {
  margin: 0;
  color: rgba(255, 226, 40, 0.72);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.store-reward-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text);
  overflow-wrap: anywhere;
}

.store-reward-card-cost {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  width: fit-content;
  color: #9dff73;
  line-height: 1;
}

.store-reward-card-cost strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.store-reward-card-cost span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.store-reward-card-description {
  flex-basis: 100%;
  margin: 0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-reward-card-cta {
  position: relative;
  z-index: 1;
  width: auto;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0.48rem 0.95rem;
  font-size: 0.92rem;
}

@keyframes store-reward-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .store-reward-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-reward-card {
    animation: none;
  }

  .store-reward-card:hover,
  .store-buy-package-btn:hover:not(:disabled) {
    transform: none;
  }
}

.lb-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
}

.lb-tab {
  appearance: none;
  border: 1px solid rgba(240, 176, 0, 0.22);
  background: rgba(18, 21, 26, 0.72);
  color: rgba(226, 236, 245, 0.92);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.lb-tab:hover,
.lb-tab:focus-visible {
  color: var(--text);
  border-color: var(--border-strong);
}

.lb-tab.is-active {
  color: var(--text);
  border-color: rgba(255, 226, 40, 0.7);
  background: rgba(240, 176, 0, 0.18);
  box-shadow: 0 0 16px rgba(240, 176, 0, 0.28);
}

.lb-panel.is-hidden {
  display: none;
}

.store-redeem-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.store-redeem-modal.is-hidden {
  display: none;
}

.store-redeem-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.store-redeem-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  display: grid;
  gap: 0.65rem;
  padding: 1.05rem 1.1rem 1.1rem 1.2rem;
}

.store-redeem-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.store-redeem-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.store-redeem-dialog .hunt-add-slot-results {
  max-height: min(12rem, 36vh);
}

.store-redeem-slot-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.store-redeem-slot-selected {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 197, 107, 0.28);
  background: rgba(232, 197, 107, 0.08);
}

.store-redeem-slot-selected-label {
  margin: 0;
  color: #f0c98e;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-redeem-slot-selected-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.store-redeem-slot-selected-name {
  margin: 0;
  font-weight: 650;
}

.store-redeem-slot-selected-meta {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.store-redeem-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.store-redeem-type-option {
  display: grid;
  place-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.18);
  background: rgba(8, 16, 24, 0.55);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.store-redeem-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.store-redeem-type-option:has(input:checked) {
  border-color: rgba(232, 197, 107, 0.55);
  background: rgba(232, 197, 107, 0.12);
  color: #f0c98e;
  box-shadow: inset 0 0 0 1px rgba(232, 197, 107, 0.25);
}

.store-redeem-error {
  margin: 0;
  color: #ff8d8d;
  font-size: 0.86rem;
}

.store-redeem-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.store-list-scroll {
  max-height: min(18rem, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}

.store-queue-scroll {
  max-height: min(28rem, 55vh);
}

.store-history-scroll {
  max-height: min(20rem, 48vh);
}

.store-list-scroll::-webkit-scrollbar {
  width: 8px;
}

.store-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.store-catalog-item,
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.1);
  background: rgba(8, 16, 24, 0.55);
}

.store-catalog-copy,
.store-row-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 10rem;
}

.store-catalog-title,
.store-row-title {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  line-height: 1.25;
}

.store-catalog-cost {
  margin: 0;
  color: #9dff73;
  font-size: 0.86rem;
  font-weight: 700;
}

.store-catalog-description,
.store-row-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.store-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
}

.store-row-sep {
  opacity: 0.5;
}

.store-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.store-status-pill.is-pending {
  color: #f0c98e;
  border-color: rgba(240, 201, 142, 0.28);
  background: rgba(240, 201, 142, 0.08);
}

.store-status-pill.is-fulfilled {
  color: #9dff73;
  border-color: rgba(157, 255, 115, 0.28);
  background: rgba(157, 255, 115, 0.08);
}

.store-status-pill.is-cancelled {
  color: #ffb0b0;
  border-color: rgba(255, 176, 176, 0.28);
  background: rgba(255, 176, 176, 0.08);
}

.store-queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.store-admin-item.is-inactive {
  opacity: 0.55;
}

.store-history-item.is-cancelled {
  opacity: 0.72;
}

.store-admin {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(240, 176, 0, 0.12);
}

.store-admin-layout {
  display: grid;
  gap: 1rem;
}

.store-admin-sidebar,
.store-admin-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
  align-content: start;
}

@media (min-width: 900px) {
  .store-admin-layout {
    grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.35fr);
  }
}

.store-admin-tools {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 780px) {
  .store-admin-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.store-admin-form {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.05rem;
  margin: 0;
  border-radius: calc(var(--radius-sm) + 4px);
  border: 1px solid rgba(240, 176, 0, 0.12);
  background: rgba(12, 14, 16, 0.45);
}

.store-admin-grid {
  display: grid;
  gap: 0.4rem;
}

.store-award-chat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
}

.store-field {
  display: grid;
  gap: 0.35rem;
}

.store-admin-queue-header {
  margin: 0;
}

.store-award-chat-status {
  margin: 0.35rem 0 0;
  color: var(--text-muted, #9aa4b2);
  font-size: 0.88rem;
}

.store-award-chat-status.is-success {
  color: #9dff73;
}

.store-award-chat-status.is-error {
  color: #ffb0b0;
}

.level-up-page > .container.level-up-shell,
.level-up-shell {
  width: min(100% - 2rem, 72rem);
  max-width: none;
  margin-inline: auto;
}

.level-up-hero {
  margin-bottom: 1.75rem;
}

.level-up-heading {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.level-up-lede {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.level-up-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.level-up-card {
  display: grid;
  gap: 0.9rem;
  min-height: 9.75rem;
  padding: 1.05rem 1.1rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(160deg, rgba(15, 23, 36, 0.96), rgba(8, 12, 20, 0.94));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.level-up-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.level-up-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.level-up-icon {
  flex-shrink: 0;
  width: 3.85rem;
  height: 3.85rem;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 12px rgba(240, 176, 0, 0.28));
}

.level-up-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.level-up-card[data-tier="beginner"] .level-up-icon {
  filter: drop-shadow(0 0 10px rgba(154, 163, 178, 0.4));
}

.level-up-card[data-tier="silver"] .level-up-icon {
  filter: drop-shadow(0 0 12px rgba(200, 212, 220, 0.5));
}

.level-up-card[data-tier="gold"] .level-up-icon {
  filter: drop-shadow(0 0 14px rgba(240, 192, 32, 0.6));
}

.level-up-card[data-tier="emerald"] .level-up-icon {
  filter: drop-shadow(0 0 14px rgba(47, 212, 138, 0.55));
}

.level-up-card[data-tier="ruby"] .level-up-icon {
  filter: drop-shadow(0 0 14px rgba(240, 69, 106, 0.55));
}

.level-up-card[data-tier="diamond"] .level-up-icon {
  filter: drop-shadow(0 0 12px rgba(94, 200, 255, 0.5));
}

.level-up-card[data-tier="champion"] .level-up-icon {
  filter: drop-shadow(0 0 14px rgba(255, 138, 42, 0.55));
}

.level-up-card[data-tier="legend"] .level-up-icon {
  filter: drop-shadow(0 0 14px rgba(176, 108, 255, 0.55));
}

.level-up-card[data-tier="master"] .level-up-icon {
  filter: drop-shadow(0 0 14px rgba(79, 124, 255, 0.55));
}

.level-up-card[data-tier="grandmaster"] .level-up-icon {
  filter: drop-shadow(0 0 14px rgba(42, 212, 212, 0.55));
}

.level-up-card[data-tier="immortal"] .level-up-icon {
  filter: drop-shadow(0 0 16px rgba(255, 233, 160, 0.65));
}

.level-up-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.55rem;
  border-radius: 0.22rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: #041018;
  background: #f0b000;
  border: none;
}

.level-up-card[data-tier="beginner"] .level-up-badge {
  color: #121820;
  background: linear-gradient(180deg, #c8d0dc, #7a8494);
}

.level-up-card[data-tier="silver"] .level-up-badge {
  color: #121820;
  background: linear-gradient(180deg, #e8eef4, #9aa8b4);
}

.level-up-card[data-tier="gold"] .level-up-badge {
  color: #1a1204;
  background: linear-gradient(180deg, #ffe066, #d4a018);
}

.level-up-card[data-tier="emerald"] .level-up-badge {
  color: #041810;
  background: linear-gradient(180deg, #7dffc0, #1aaa68);
}

.level-up-card[data-tier="ruby"] .level-up-badge {
  color: #1a0610;
  background: linear-gradient(180deg, #ff8aa4, #d02048);
}

.level-up-card[data-tier="diamond"] .level-up-badge {
  color: #041018;
  background: linear-gradient(180deg, #c5eeff, #2a88c8);
}

.level-up-card[data-tier="champion"] .level-up-badge {
  color: #1a0c04;
  background: linear-gradient(180deg, #ffc078, #e06010);
}

.level-up-card[data-tier="legend"] .level-up-badge {
  color: #12061a;
  background: linear-gradient(180deg, #d8b0ff, #8030d0);
}

.level-up-card[data-tier="master"] .level-up-badge {
  color: #060a1a;
  background: linear-gradient(180deg, #9cbcff, #3050e0);
}

.level-up-card[data-tier="grandmaster"] .level-up-badge {
  color: #041818;
  background: linear-gradient(180deg, #9af0f0, #12a0a0);
}

.level-up-card[data-tier="immortal"] .level-up-badge {
  color: #1a1404;
  background: linear-gradient(180deg, #fff4c8, #d4a020);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.level-up-card-meta {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.level-up-wager {
  margin: 0;
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.level-up-copy {
  margin: 0;
  color: rgba(238, 246, 251, 0.86);
  font-size: 0.86rem;
  line-height: 1.45;
}

.level-up-copy strong {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  .level-up-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .level-up-grid {
    grid-template-columns: 1fr;
  }

  .level-up-wager {
    font-size: 1.2rem;
  }
}

.commands-admin {
  margin-top: 2rem;
  padding: 1rem 1.1rem 1.1rem;
}

.commands-admin-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.commands-admin .admin-panel-text {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.commands-admin .admin-panel-label {
  margin: 0;
}

.commands-admin-scroll {
  max-height: min(28rem, 58vh);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 0.55rem;
  margin-right: -0.15rem;
  display: grid;
  gap: 0.95rem;
  scrollbar-gutter: stable;
}

.commands-admin-scroll::-webkit-scrollbar {
  width: 8px;
}

.commands-admin-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.commands-admin-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.35);
  border-radius: 999px;
}

.commands-replies-form {
  display: grid;
  gap: 0.85rem;
}

.commands-replies-fields {
  display: grid;
  gap: 0.55rem;
}

.commands-replies-group {
  display: grid;
  gap: 0.45rem;
}

.commands-reply-field {
  gap: 0.25rem;
}

.commands-reply-field .guess-label {
  margin: 0;
  font-size: 0.72rem;
}

.commands-reply-input {
  min-height: 2.35rem;
  max-height: 6.5rem;
  padding: 0.45rem 0.65rem;
  resize: vertical;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
}

.commands-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.commands-custom-fields {
  display: grid;
  gap: 0.55rem;
}

.commands-builtin-row,
.commands-custom-row {
  display: grid;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: calc(var(--radius-sm) + 2px);
  background: rgba(6, 10, 16, 0.45);
}

.commands-builtin-row-actions,
.commands-custom-row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
}

.commands-custom-delete {
  border-color: rgba(255, 120, 120, 0.45);
  color: #ffb0b0;
}

.commands-custom-delete:hover,
.commands-custom-delete:focus-visible {
  border-color: rgba(255, 140, 140, 0.7);
  color: #ffd0d0;
  background: rgba(255, 80, 80, 0.12);
}

.commands-custom-delete:disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (min-width: 720px) {
  .commands-builtin-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .commands-custom-row {
    grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr) auto;
    align-items: end;
  }
}

/* —— Weekly Raffles —— */
.weekly-raffle-body {
  --raffle-gold: #f0b000;
  --raffle-gold-soft: rgba(240, 176, 0, 0.18);
}

.weekly-raffle-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 36% at 18% 12%, rgba(240, 176, 0, 0.18), transparent 62%),
    radial-gradient(ellipse 42% 30% at 82% 18%, rgba(240, 176, 0, 0.1), transparent 58%),
    radial-gradient(ellipse 55% 40% at 50% 100%, rgba(240, 176, 0, 0.08), transparent 55%);
  animation: weekly-raffle-atmosphere 12s ease-in-out infinite alternate;
}

@keyframes weekly-raffle-atmosphere {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}

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

@keyframes weekly-raffle-celebrate {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  55% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes weekly-raffle-draw-tick {
  0% {
    opacity: 0.35;
    transform: translateY(12px) scale(0.96);
    filter: blur(2px);
  }
  40% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 0.7;
    transform: translateY(-8px) scale(1.02);
    filter: blur(1px);
  }
}

@keyframes weekly-raffle-stake-reveal {
  0% {
    opacity: 0;
    letter-spacing: 0.28em;
    transform: scale(0.88);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    letter-spacing: 0.04em;
    transform: scale(1);
  }
}

@keyframes weekly-raffle-sub-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes weekly-raffle-burst {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  40% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.35;
    transform: scale(1.15);
  }
}

@keyframes weekly-raffle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 176, 0, 0.18); }
  50% { box-shadow: 0 0 0 10px rgba(240, 176, 0, 0); }
}

.weekly-raffle-page .page-content {
  width: min(100% - 2rem, 74rem);
  max-width: none;
}

.weekly-raffle-shell {
  display: grid;
  gap: 1.5rem;
}

.weekly-raffle-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(240, 176, 0, 0.2);
  background:
    linear-gradient(135deg, rgba(240, 176, 0, 0.08), transparent 34%),
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(240, 176, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(26, 30, 36, 0.55), transparent 60%),
    var(--bg-card-rich);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  animation: weekly-raffle-rise 0.65s ease-out;
}

.weekly-raffle-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--raffle-gold), #ffe44d 55%, transparent);
  pointer-events: none;
}

.weekly-raffle-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -30%;
  width: min(48vw, 28rem);
  height: min(48vw, 28rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 176, 0, 0.16), transparent 68%);
  pointer-events: none;
  animation: weekly-raffle-atmosphere 9s ease-in-out infinite alternate;
}

.weekly-raffle-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.weekly-raffle-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.weekly-raffle-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.2rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(115deg, #fff8ea 8%, #f0b000 38%, #ffe44d 78%, #f0b000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.weekly-raffle-subtitle {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.house-loss-raffle {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(240, 176, 0, 0.28);
  background:
    linear-gradient(120deg, rgba(240, 176, 0, 0.1), transparent 42%),
    rgba(4, 18, 28, 0.55);
}

.house-loss-raffle-copy {
  max-width: 40rem;
}

.house-loss-raffle-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.house-loss-raffle-sub {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.house-loss-prev {
  margin: 0.9rem 0 0;
}

.house-loss-prev.is-hidden {
  display: none;
}

.house-loss-prev-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.house-loss-prev-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.house-loss-prev-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 176, 0, 0.18);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.95rem;
}

.house-loss-prev-name {
  font-weight: 600;
  color: var(--text);
}

.house-loss-prev-amount {
  color: #f0b000;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.house-loss-raffle-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .house-loss-raffle-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.house-loss-raffle-pool {
  display: grid;
  align-content: center;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 226, 40, 0.22);
  background: rgba(0, 0, 0, 0.22);
}

.house-loss-raffle-pool-label,
.house-loss-raffle-timer-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.house-loss-raffle-pool-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #f0b000;
}

.house-loss-raffle-pool-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.house-loss-raffle-timer {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(0, 0, 0, 0.18);
}

.house-loss-raffle-timer-digits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.house-loss-raffle-timer-digits small {
  margin-left: 0.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.house-loss-raffle-timer-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.house-loss-raffle-timer[data-state="active"] .house-loss-raffle-timer-digits {
  color: #ffe44d;
}

.house-loss-raffle-timer[data-state="ended"] .house-loss-raffle-timer-digits {
  color: #f0b000;
}

.weekly-raffle-countdown {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.weekly-raffle-countdown-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.weekly-raffle-countdown-digits {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem 0.35rem;
}

.weekly-raffle-digit-block {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  min-width: 3.6rem;
}

.weekly-raffle-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  padding: 0.35rem 0.45rem 0.15rem;
  border-radius: 12px;
  border: 1px solid rgba(240, 176, 0, 0.22);
  background: rgba(4, 10, 16, 0.55);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.weekly-raffle-digit-unit {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.weekly-raffle-digit-sep {
  align-self: center;
  padding-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: rgba(255, 226, 40, 0.45);
}

.weekly-raffle-countdown-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.weekly-raffle-countdown[data-state="active"] .weekly-raffle-digit {
  color: var(--accent-bright);
  border-color: rgba(255, 226, 40, 0.4);
  animation: weekly-raffle-pulse 2.4s ease-out infinite;
}

.weekly-raffle-countdown[data-state="ended"] .weekly-raffle-digit {
  color: var(--raffle-gold);
  border-color: rgba(240, 176, 0, 0.4);
  background: rgba(240, 176, 0, 0.08);
}

.weekly-raffle-period {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(240, 176, 0, 0.9);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.weekly-raffle-admin {
  display: grid;
  gap: 0.75rem;
  animation: weekly-raffle-rise 0.55s ease-out 0.08s both;
}

.weekly-raffle-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.weekly-raffle-winner-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.5rem, 4vw, 2.35rem);
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(240, 176, 0, 0.42);
  background:
    radial-gradient(ellipse 80% 90% at 50% -10%, rgba(240, 176, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(240, 176, 0, 0.12), transparent 50%),
    linear-gradient(160deg, rgba(24, 20, 12, 0.92), rgba(8, 14, 20, 0.96));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.weekly-raffle-winner-stage.is-celebrate {
  animation: weekly-raffle-celebrate 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.weekly-raffle-winner-stage.is-drawing {
  border-color: rgba(240, 176, 0, 0.55);
  box-shadow:
    0 0 0 1px rgba(240, 176, 0, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.35);
}

.weekly-raffle-winner-stage.is-drawing .weekly-raffle-winner-title {
  animation: none;
}

.weekly-raffle-winner-title.is-draw-tick {
  animation: weekly-raffle-draw-tick 0.16s ease-out;
}

.weekly-raffle-winner-stage.is-drawing .weekly-raffle-winner-kicker {
  color: var(--accent, #f0b000);
}

.weekly-raffle-winner-stage.is-drawing .weekly-raffle-winner-burst {
  opacity: 0.7;
  animation: weekly-raffle-pulse 1.2s ease-in-out infinite;
}

.weekly-raffle-winner-burst {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(circle at 20% 40%, rgba(240, 176, 0, 0.28), transparent 28%),
    radial-gradient(circle at 80% 35%, rgba(255, 226, 40, 0.22), transparent 26%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.12), transparent 35%);
  pointer-events: none;
  opacity: 0.45;
}

.weekly-raffle-winner-stage.is-celebrate .weekly-raffle-winner-burst {
  animation: weekly-raffle-burst 1.1s ease-out;
}

.weekly-raffle-winner-kicker {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--raffle-gold);
}

.weekly-raffle-winner-title {
  position: relative;
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(115deg, #fff8ea, #f0b000 45%, #ffe44d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.weekly-raffle-winner-title.is-stake-reveal {
  animation: weekly-raffle-stake-reveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.weekly-raffle-winner-sub {
  position: relative;
  margin: 0.55rem 0 0;
  color: var(--text);
  font-size: 1.05rem;
}

.weekly-raffle-winner-sub.is-revealed {
  animation: weekly-raffle-sub-reveal 0.55s ease-out 0.15s both;
}

.weekly-raffle-winner-meta {
  position: relative;
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.weekly-raffle-board {
  position: relative;
  overflow: hidden;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(240, 176, 0, 0.16);
  background:
    radial-gradient(ellipse 55% 80% at 0% 0%, rgba(240, 176, 0, 0.1), transparent 55%),
    var(--bg-card-rich);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
  animation: weekly-raffle-rise 0.65s ease-out 0.12s both;
}

.weekly-raffle-board-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.15rem;
}

.weekly-raffle-board-title {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.weekly-raffle-stats {
  display: flex;
  gap: 1.25rem;
}

.weekly-raffle-stat {
  display: grid;
  gap: 0.1rem;
  min-width: 4.5rem;
  text-align: right;
}

.weekly-raffle-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
}

.weekly-raffle-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.weekly-raffle-table-head,
.weekly-raffle-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, 1fr) 5.5rem;
  gap: 0.65rem;
  align-items: center;
}

.weekly-raffle-table-head {
  padding: 0.5rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.weekly-raffle-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
  max-height: min(58vh, 36rem);
  overflow: auto;
}

.weekly-raffle-row {
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 0.95rem;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.weekly-raffle-row:hover {
  background: rgba(240, 176, 0, 0.05);
}

.weekly-raffle-row.is-ineligible {
  opacity: 0.5;
}

.weekly-raffle-row.is-top-1 .weekly-raffle-place,
.weekly-raffle-row.is-top-2 .weekly-raffle-place,
.weekly-raffle-row.is-top-3 .weekly-raffle-place {
  color: var(--raffle-gold);
}

.weekly-raffle-row.is-winner {
  background: linear-gradient(90deg, rgba(240, 176, 0, 0.14), rgba(240, 176, 0, 0.08));
  border: 1px solid rgba(240, 176, 0, 0.28);
  box-shadow: inset 0 0 0 1px rgba(240, 176, 0, 0.08);
}

.weekly-raffle-place {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.weekly-raffle-stake {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.weekly-raffle-kick,
.weekly-raffle-wagered {
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.weekly-raffle-tickets {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-align: right;
  color: var(--accent);
}

.weekly-raffle-row.is-winner .weekly-raffle-tickets {
  color: var(--raffle-gold);
}

.weekly-raffle-empty {
  margin: 1.25rem 0 0;
  padding: 1.4rem 1rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(4, 10, 16, 0.28);
}

.weekly-raffle-footnote {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .weekly-raffle-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.9fr);
    align-items: end;
  }

  .weekly-raffle-countdown {
    justify-items: end;
    text-align: right;
    padding: 0;
    border-top: 0;
  }

  .weekly-raffle-countdown-digits {
    justify-content: flex-end;
  }

  .weekly-raffle-period {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .weekly-raffle-table-head {
    display: none;
  }

  .weekly-raffle-row {
    grid-template-columns: 2rem 1fr auto;
    grid-template-areas:
      "place stake tickets"
      "place kick tickets"
      "place wagered tickets";
    gap: 0.15rem 0.65rem;
  }

  .weekly-raffle-place {
    grid-area: place;
    align-self: center;
  }

  .weekly-raffle-stake {
    grid-area: stake;
  }

  .weekly-raffle-kick {
    grid-area: kick;
    font-size: 0.88rem;
  }

  .weekly-raffle-wagered {
    grid-area: wagered;
    font-size: 0.88rem;
  }

  .weekly-raffle-tickets {
    grid-area: tickets;
    align-self: center;
  }

  .weekly-raffle-digit-sep {
    display: none;
  }
}

/* Page titles: clean weight, no all-caps shout. */
.page-section :is(
  h1,
  .theme-heading,
  .store-heading,
  .giveaways-hero-title,
  .weekly-raffle-title,
  .level-up-heading,
  .accounts-hero-title,
  .slot-stats-title,
  .slot-tournaments-heading
),
.home-page .section-header h2,
#watch-title {
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: none;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.one-v-one-page .theme-heading {
  margin-bottom: 0.35rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.store-balance,
.accounts-hero-stat,
.house-games-balance {
  border-radius: 12px;
  border: 1px solid rgba(240, 176, 0, 0.14);
  background: rgba(8, 16, 24, 0.55);
  box-shadow: none;
}

.store-balance-value,
.accounts-hero-stat-value,
.house-games-balance-value {
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 600;
}

.accounts-hero-stat-value {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}

.guess-entry,
.accounts-entry,
.giveaways-entry,
.store-row {
  border: 0;
  border-top: 1px solid rgba(240, 176, 0, 0.08);
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.guess-entry:hover,
.accounts-entry:hover,
.giveaways-rolling-viewport:not(.is-rolling) .giveaways-entry:hover,
.store-row:hover {
  border-color: transparent;
  background: rgba(255, 226, 40, 0.06);
  transform: none;
  box-shadow: none;
}

.store-reward-card {
  background: transparent;
  border-color: rgba(240, 176, 0, 0.1);
  box-shadow: none;
}

.store-reward-card::before {
  display: none;
}

.store-reward-card:hover {
  background: rgba(255, 226, 40, 0.06);
  transform: none;
}

.avgx-page.page-section {
  padding-top: 0.85rem;
  min-height: 0;
}

.avgx-page .back-link {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.avgx-page .avgx-hero {
  margin-bottom: 0.55rem;
}

.avgx-page .section-eyebrow {
  margin-bottom: 0;
  font-size: 0.72rem;
}

.avgx-page .section-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.15rem);
}

.avgx-page .bj21-panel {
  padding: 0.65rem 0.75rem;
}

.avgx-page .avgx-board,
.avgx-page .avgx-admin,
.avgx-page .avgx-overlay-board {
  margin-top: 0.45rem;
}

.avgx-page .guess-input {
  width: 100%;
  min-width: 0;
  padding: 0.28rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.86rem;
  font-weight: 500;
}

.avgx-status:empty {
  display: none;
}

.avgx-status {
  margin: 0.2rem 0 0;
  color: #9fb0c3;
  font-size: 0.8rem;
}

.avgx-status.is-error {
  color: #ff8d8d;
}

.avgx-status.is-ok {
  color: #8ee0b5;
}

.avgx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.avgx-slot-main {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.avgx-slot-main img {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: cover;
  border-radius: 0.4rem;
  flex: none;
}

.avgx-kicker,
.avgx-slot-main p {
  display: none;
}

.avgx-slot-main h3,
.avgx-heading {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.03em;
}

.avgx-empty {
  margin: 0;
  font-size: 0.86rem;
}

.avgx-metrics span,
.avgx-field span,
.avgx-range small {
  display: block;
  color: #8ea0b5;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.avgx-note,
.avgx-picked,
.avgx-yours {
  margin: 0.3rem 0 0;
  color: #c5d0dc;
  font-size: 0.75rem;
  line-height: 1.3;
}

.avgx-yours:empty,
.avgx-bets:empty,
.avgx-results:empty,
.avgx-picked:empty {
  display: none;
}

.avgx-metrics {
  display: flex;
  gap: 0.85rem;
  margin: 0;
  flex: none;
}

.avgx-metrics div {
  text-align: right;
}

.avgx-metrics strong {
  font-family: var(--font-display), sans-serif;
  font-size: 1.25rem;
  line-height: 1;
  color: #e8c56b;
  font-variant-numeric: tabular-nums;
}

.avgx-table {
  width: 100%;
  margin-top: 0.4rem;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.avgx-table th,
.avgx-table td {
  padding: 0.22rem 0.3rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-variant-numeric: tabular-nums;
}

.avgx-table th {
  color: #8ea0b5;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.avgx-ranges {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.5rem 0 0;
}

.avgx-range > span {
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.avgx-range > span.avgx-range-x {
  color: #f2f4f6;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.avgx-range {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.28rem 0.35rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.avgx-range strong {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  color: #ffe44d;
}

.avgx-range small {
  display: none;
}

.avgx-range.is-selected {
  border-color: #e8c56b;
  box-shadow: inset 0 0 0 1px #e8c56b;
}

.avgx-range.is-winner {
  background: rgba(232, 197, 107, 0.12);
}

.avgx-bet-form,
.avgx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.avgx-bets-timer {
  margin: 0.45rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text-muted);
}

.avgx-bets-timer.is-live {
  color: var(--accent-bright);
}

.avgx-bet-form {
  margin-top: 0.4rem;
}

.avgx-bet-form .guess-input {
  width: 6.5rem;
}

.avgx-admin-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.avgx-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.avgx-bet-form.is-hidden {
  display: none;
}

.avgx-bets {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.avgx-bets li {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 0.5rem;
  padding: 0.18rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.avgx-head-betters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.avgx-head-betters.is-hidden {
  display: none;
}

.avgx-betters-label {
  margin: 0 0 0.2rem;
  color: #8ea0b5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.avgx-betters-list {
  max-height: 8.5rem;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.avgx-better {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.16rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.avgx-better span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avgx-better strong {
  flex-shrink: 0;
  color: #e8c56b;
  font-variant-numeric: tabular-nums;
}

.avgx-better small {
  color: #8ea0b5;
  font-weight: 600;
}

.avgx-better.is-mine span {
  color: #ffe44d;
}

.avgx-betters-empty {
  margin: 0;
  color: #8ea0b5;
  font-size: 0.78rem;
}

.avgx-results {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.35rem 0 0;
}

.avgx-results button,
.avgx-editor {
  width: 100%;
}

.avgx-results button {
  text-align: left;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.avgx-slot-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
}

.avgx-slot-option img {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.35rem;
  object-fit: cover;
}

.avgx-slot-option span {
  display: grid;
  min-width: 0;
}

.avgx-slot-option strong,
.avgx-slot-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avgx-slot-option strong {
  font-size: 0.82rem;
  font-weight: 650;
}

.avgx-slot-option small {
  color: #8ea0b5;
  font-size: 0.68rem;
}

.avgx-row {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: end;
  margin: 0.4rem 0;
}

.avgx-money {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.avgx-money > span:first-child {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.avgx-money .guess-input-row {
  min-height: 2.15rem;
  padding: 0.3rem 0.55rem;
  gap: 0.3rem;
}

.avgx-money .guess-prefix {
  font-size: 0.9rem;
}

.avgx-money .guess-input {
  min-height: 0;
  padding: 0;
  font-size: 0.95rem;
}

.avgx-row > span {
  color: #8ea0b5;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.avgx-actions {
  margin-top: 0.4rem;
}

.avgx-head-board .avgx-heading,
.avgx-overlay-board .avgx-heading,
.avgx-spins .avgx-heading,
.avgx-spins-admin .avgx-heading {
  margin-bottom: 0.25rem;
}

.avgx-board.avgx-spins,
.avgx-admin.avgx-spins-admin {
  margin-top: 0.75rem;
}

.avgx-spins-count {
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.avgx-spins-slot {
  margin: 0 0 0.35rem;
  color: #e8c56b;
  font-family: var(--font-display), sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.avgx-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.avgx-overlay-preview {
  display: grid;
  place-items: start center;
  margin: 0.45rem 0 0.55rem;
  padding: 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(240, 176, 0, 0.12);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: rgba(4, 8, 12, 0.55);
}

.avgx-overlay-preview iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  border: 0;
  background: transparent;
}

.avgx-overlay-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
}

.avgx-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
}

.avgx-vs {
  margin: 0.8rem 0 0;
  font-family: var(--font-display), sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  color: #e8c56b;
}

.avgx-side {
  width: 100%;
  padding: 0.4rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.avgx-side strong {
  display: block;
  font-family: var(--font-display), sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  color: #e8c56b;
}

.avgx-side small {
  color: #8ea0b5;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.avgx-side.is-selected {
  border-color: #e8c56b;
  box-shadow: inset 0 0 0 1px #e8c56b;
}

.avgx-side.is-winner {
  background: rgba(232, 197, 107, 0.12);
}

.avgx-side .avgx-table {
  margin-top: 0.35rem;
}

.avgx-duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  margin-top: 0.45rem;
}

@media (max-width: 720px) {
  .avgx-top,
  .avgx-admin-head {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .avgx-metrics div {
    text-align: left;
  }

  .avgx-ranges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .avgx-versus,
  .avgx-duel,
  .avgx-head-betters {
    grid-template-columns: 1fr;
  }

  .avgx-vs {
    margin: 0;
  }
}


/* —— Slot League —— */
.league-page .page-content {
  display: grid;
  gap: 1.1rem;
}

.league-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem);
  gap: 1rem;
  align-items: start;
}

.league-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}

.league-lede {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  max-width: 36rem;
}

.league-status-card,
.league-panel {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.1rem;
}

.league-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.league-panel-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.league-panel-title {
  margin: 0.2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.league-status-value {
  margin: 0.55rem 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.league-status-meta,
.league-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.league-banner {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.2);
  background: rgba(8, 18, 26, 0.75);
}

.league-banner.is-error {
  border-color: rgba(255, 110, 110, 0.35);
  color: #ffb4b4;
}

.league-banner.is-success {
  border-color: rgba(157, 255, 115, 0.3);
  color: #c8ffad;
}

.league-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.league-meta dt {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.league-meta dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.league-join-form,
.league-admin-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
  max-width: 28rem;
}

.league-field {
  display: grid;
  gap: 0.35rem;
}

.league-field span {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.league-field input,
.league-field select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(255, 226, 40, 0.22);
  background: rgba(5, 12, 18, 0.85);
  color: var(--text);
}

.league-spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 0.65rem;
}

.league-spot {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.14);
  background: rgba(6, 14, 20, 0.72);
}

.league-spot.is-filled {
  border-color: rgba(255, 226, 40, 0.28);
}

.league-spot-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.league-spot-thumb.is-empty {
  border: 1px dashed rgba(255, 226, 40, 0.25);
}

.league-spot-index {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.league-spot-name,
.league-spot-slot {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  line-height: 1.25;
}

.league-spot-slot {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.league-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.league-group {
  padding: 0.75rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.14);
  background: rgba(5, 12, 18, 0.55);
}

.league-group-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.league-table th,
.league-table td {
  padding: 0.35rem 0.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.league-table th {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.league-table-wrap {
  margin-top: 0.75rem;
  overflow-x: auto;
}

.league-prem-table {
  min-width: 28rem;
}

.league-group .league-table-wrap {
  margin-top: 0;
}

.league-prem-table th:not(:nth-child(2)),
.league-prem-table td:not(:nth-child(2)) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.league-prem-table .league-pos {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.league-prem-table .league-club {
  display: grid;
  gap: 0.1rem;
  min-width: 8rem;
}

.league-prem-table .league-club-name {
  font-weight: 600;
}

.league-prem-table .league-club-slot {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.league-prem-table .league-pts {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #9dff73;
}

.league-prem-table tr.is-leader td:first-child,
.league-prem-table tr.is-champion td:first-child {
  color: #e8c56b;
}

.league-prem-table tr.is-leader {
  background: rgba(240, 176, 0, 0.08);
}

.league-prem-table tr.is-champion {
  background: rgba(232, 197, 107, 0.12);
}

.league-matchday {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.league-playoff-seeds {
  margin: 0.75rem 0 1rem;
}

.league-seed-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.league-seed-list span {
  color: var(--text-muted);
  font-weight: 500;
}

.league-admin-week-field {
  min-width: 8rem;
}

.league-matches,
.league-knockout {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.league-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(240, 176, 0, 0.12);
  background: rgba(5, 12, 18, 0.55);
}

.league-match.is-done {
  border-color: rgba(157, 255, 115, 0.22);
}

.league-match-stage {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.league-match-names {
  margin: 0.15rem 0 0;
  font-weight: 600;
  line-height: 1.35;
}

.league-match-names span {
  color: var(--text-muted);
  font-weight: 500;
}

.league-match-scores {
  display: grid;
  gap: 0.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #9dff73;
  text-align: right;
}

.league-match-winner {
  margin: 0;
  min-width: 5rem;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.league-knockout-round {
  display: grid;
  gap: 0.45rem;
}

.league-champion {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e8c56b;
}

.league-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.league-admin-score {
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 820px) {
  .league-top {
    grid-template-columns: 1fr;
  }

  .league-match {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .league-match-scores,
  .league-match-winner {
    text-align: left;
  }
}


/* redesign-v2 */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brand-sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.brand-hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
}

.brand-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  animation: rise-in 0.7s ease both;
}

.brand-hero-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.brand-hero-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: none;
  background: linear-gradient(100deg, #fffce8 6%, #ffe228 35%, #f0b000 65%, #c07000 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-sheen 8s linear infinite alternate;
}

.brand-hero-lede {
  margin: 0 0 1.4rem;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.55;
  animation: rise-in 0.7s ease 0.12s both;
}

.brand-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: rise-in 0.7s ease 0.22s both;
}

.brand-hero-visual {
  position: absolute;
  inset: auto 0 0 auto;
  width: min(48vw, 34rem);
  height: min(70%, 22rem);
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 40%, rgba(240, 176, 0, 0.2), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(255, 226, 40, 0.08), transparent 50%);
  mask-image: linear-gradient(90deg, transparent, #000 35%);
  animation: rise-in 1s ease 0.1s both;
}

.home-page .hero.section {
  padding-top: 1.5rem;
}

.home-page .house-games.section,
.home-page .links.section,
.home-page .hero.section {
  animation: rise-in 0.65s ease both;
}

.home-page .house-games.section { animation-delay: 0.05s; }
.home-page .hero.section { animation-delay: 0.1s; }
.home-page .links.section { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .brand-hero-title,
  .brand-hero-copy,
  .brand-hero-lede,
  .brand-hero-actions,
  .brand-hero-visual,
  .home-page .house-games.section,
  .home-page .links.section,
  .home-page .hero.section {
    animation: none;
  }
}

@media (max-width: 720px) {
  .brand-hero-visual { opacity: 0.45; width: 70vw; }
}


/* type-cleanup */
.level-up-heading,
.store-heading,
.accounts-heading,
.guess-heading,
.lb-heading,
.commands-page h1,
.page-section h1,
.section-header h1 {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
  line-height: 1.12 !important;
  font-size: clamp(1.85rem, 4vw, 2.6rem) !important;
}

.site-drawer-title,
.menu-label,
.store-buy-title,
.store-section-title,
.guesses-heading,
.guess-panel-title,
.admin-panel-label,
.lb-lede,
.house-games-tab {
  letter-spacing: 0.02em;
}

.menu-label,
.admin-panel-label,
.store-panel-label,
.store-balance-label,
.house-games-balance-label {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.btn,
.btn-pill,
.nav-links a:not(.btn) {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-primary {
  font-weight: 600;
}

/* logo-image height mobile */
@media (max-width: 640px) {
  .logo-image { height: 40px; max-width: min(180px, 58vw); }
}
