:root {
  --bg: #070b16;
  --bg-2: #0a1020;
  --panel: #121c30;
  --panel-2: #172338;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #96a4b8;
  --emerald: #22d89a;
  --cyan: #20d5e9;
  --amber: #f6c84c;
  --rose: #fb7185;
  --violet: #d946ef;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 5%, rgba(34, 216, 154, 0.12), transparent 28rem),
    radial-gradient(circle at 78% 20%, rgba(32, 213, 233, 0.12), transparent 30rem),
    radial-gradient(circle at 50% 85%, rgba(217, 70, 239, 0.08), transparent 28rem),
    linear-gradient(180deg, #0e1425 0%, #070b16 46%, #081120 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  border: 0;
  cursor: pointer;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #080d19;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.loading-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader-ring {
  position: relative;
  width: 82px;
  height: 82px;
  margin-bottom: 24px;
}

.loader-ring span,
.loader-ring i {
  position: absolute;
  border-radius: 999px;
}

.loader-ring span:first-child {
  inset: 0;
  border-top: 4px solid var(--emerald);
  filter: drop-shadow(0 0 14px rgba(34, 216, 154, 0.75));
  animation: spin 900ms linear infinite;
}

.loader-ring span:nth-child(2) {
  inset: 10px;
  border-right: 4px solid var(--cyan);
  filter: drop-shadow(0 0 12px rgba(32, 213, 233, 0.72));
  animation: spin 700ms linear infinite reverse;
}

.loader-ring i {
  inset: 28px;
  background: rgba(34, 216, 154, 0.18);
  filter: blur(4px);
  animation: pulse 1.2s ease-in-out infinite;
}

.loading-title {
  color: var(--emerald);
  font-size: 14px;
  font-weight: 900;
}

.loading-subtitle {
  margin-top: 8px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

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

@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: scale(1.18);
  }
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: 104px 1fr auto;
  align-items: stretch;
  min-height: 80px;
  background: rgba(13, 20, 36, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.logo-box {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 216, 154, 0.25);
  background:
    radial-gradient(circle at 68% 42%, rgba(251, 113, 133, 0.22), transparent 30%),
    linear-gradient(135deg, #05070d, #121827);
  box-shadow: 0 0 28px rgba(34, 216, 154, 0.28);
  font-size: 7px;
  font-weight: 950;
}

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

.desktop-nav,
.mobile-nav {
  display: flex;
  align-items: stretch;
  gap: 28px;
  padding-left: 32px;
}

.mobile-nav {
  display: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-link svg,
.admin-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  background: var(--active-accent, var(--emerald));
  box-shadow: 0 0 16px var(--active-glow, rgba(34, 216, 154, 0.55));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px 0 16px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  color: #dce4ef;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pill-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 216, 154, 0.7);
  box-shadow: 0 0 22px rgba(34, 216, 154, 0.18);
}

.pill-btn.primary {
  color: #06101a;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  border-color: transparent;
  box-shadow: 0 0 24px rgba(32, 213, 233, 0.36);
}

.pill-btn.gold {
  background: linear-gradient(90deg, var(--amber), #ff8a3d);
}

.pill-btn.pink {
  background: linear-gradient(90deg, var(--violet), #ff67d6);
}

.hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 70px 24px 44px;
  text-align: center;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: "Arial Black", Impact, Inter, sans-serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #19d99a, #20d5e9, #f6c84c);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 22px auto 0;
  color: #a9b4c6;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 700;
  line-height: 1.6;
}

.section-wrap {
  width: 100%;
  margin-bottom: 36px;
  overflow: visible;
}

.section-heading {
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.section-heading h2 {
  margin: 0;
  padding-left: 16px;
  border-left: 6px solid var(--emerald);
  color: transparent;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Arial Black", Impact, Inter, sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  text-transform: uppercase;
  filter: drop-shadow(0 0 12px rgba(34, 216, 154, 0.22));
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(22, 31, 49, 0.78);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.view-all span {
  color: var(--emerald);
}

.carousel {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  overflow: visible;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.carousel.is-dragging {
  cursor: grabbing;
}

.carousel-stage {
  position: relative;
  width: 210px;
  height: 292px;
  transform-style: preserve-3d;
  pointer-events: auto;
}

.carousel-card {
  position: absolute;
  inset: 0;
  transform: translateZ(0);
  z-index: 1;
  opacity: 1;
  transition: transform 280ms cubic-bezier(0.22, 0.72, 0.18, 1), opacity 280ms ease;
  will-change: transform, opacity;
}

.carousel.is-dragging .carousel-card {
  transition: none;
}

.carousel.is-snapping .carousel-card {
  transition: transform 280ms cubic-bezier(0.22, 0.72, 0.18, 1), opacity 280ms ease;
}

.carousel-card[data-abs="2"] {
  opacity: 0.18;
}

.carousel-arrow {
  position: absolute;
  z-index: 80;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(26, 38, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #fff;
  box-shadow: var(--shadow);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.carousel-arrow:hover {
  background: var(--emerald);
  color: #07101a;
  transform: scale(1.04);
}

.carousel-arrow.left {
  left: max(16px, 16vw);
}

.carousel-arrow.right {
  right: max(16px, 16vw);
}

.carousel-drag-layer {
  position: absolute;
  inset: -20px 0;
  z-index: 70;
  pointer-events: none;
}

.carousel .game-card.clickable {
  cursor: grab;
}

.carousel.is-dragging .game-card.clickable {
  cursor: grabbing;
  pointer-events: none;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #142037 0%, #0a1020 100%);
  border: 1px solid rgba(246, 200, 76, 0.62);
  border: 1px solid color-mix(in srgb, var(--card-color), transparent 28%);
  box-shadow: 0 0 20px rgba(246, 200, 76, 0.22), 0 16px 34px rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 20px color-mix(in srgb, var(--card-color), transparent 62%), 0 16px 34px rgba(0, 0, 0, 0.38);
  color: var(--text);
  text-align: left;
  isolation: isolate;
}

.game-card.is-low {
  border-color: rgba(251, 113, 133, 0.48);
  box-shadow: 0 0 15px rgba(251, 113, 133, 0.16), 0 14px 32px rgba(0, 0, 0, 0.34);
}

.game-card.clickable {
  cursor: pointer;
}

.game-card.clickable:hover {
  transform: translateY(-3px);
}

.game-art {
  position: relative;
  height: 65%;
  min-height: 170px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 28%, hsl(var(--hue) 92% 62% / 0.95), transparent 18%),
    radial-gradient(circle at 74% 34%, hsl(calc(var(--hue) + 44) 90% 60% / 0.85), transparent 24%),
    linear-gradient(135deg, hsl(var(--hue) 88% 28%), #09101f 58%, hsl(calc(var(--hue) + 180) 72% 20%));
}

.game-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, transparent 0 32%, rgba(255, 255, 255, 0.16) 34%, transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.game-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(0deg, rgba(7, 11, 22, 0.94), transparent);
}

.art-symbols {
  position: absolute;
  inset: 18px 12px auto;
  display: flex;
  justify-content: space-around;
  transform: rotate(-5deg);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(30px, 5vw, 54px);
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.48);
}

.art-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  z-index: 2;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 24px;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  color: #f8fafc;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
}

.uploaded-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-art:has(.uploaded-art)::before {
  opacity: 0.18;
}

.card-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.42), rgba(7, 11, 22, 0.98));
}

.game-card h3,
.leader-row h2,
.promo-card h2 {
  margin: 0;
  font-family: "Arial Black", Impact, Inter, sans-serif;
  line-height: 1.1;
  text-transform: uppercase;
}

.game-card h3 {
  min-height: 22px;
  font-size: 16px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rate-row span:first-child,
.leader-rate small {
  color: #8792a6;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.rate-gauge {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.rate-gauge svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  overflow: visible;
}

.rate-gauge .track {
  fill: none;
  stroke: #1d2a40;
  stroke-width: 5;
}

.rate-gauge .progress {
  fill: none;
  stroke: var(--rate-color);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px var(--rate-color));
}

.rate-value {
  font-family: "Arial Black", Impact, sans-serif;
  color: var(--rate-color);
  font-size: 14px;
}

.hot-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 190, 88, 0.62);
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.62);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.hot-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.page-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}

.page-hero h1 {
  color: transparent;
  background: linear-gradient(90deg, var(--page-accent, var(--emerald)), #f8fafc 82%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(40px, 7vw, 76px);
}

.grid-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px 64px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.game-grid .game-card {
  min-height: 320px;
  border-radius: 14px;
}

.game-grid .game-art {
  min-height: 205px;
}

.game-grid .art-title {
  font-size: 22px;
}

.leaderboard {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: end;
  gap: 16px;
  margin: 22px 0 42px;
}

.podium-card {
  position: relative;
  min-height: 170px;
  padding: 28px 18px 18px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  background: linear-gradient(180deg, rgba(26, 38, 59, 0.86), rgba(11, 16, 29, 0.95));
  border: 2px solid rgba(246, 200, 76, 0.72);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 0 24px rgba(246, 200, 76, 0.18);
}

.podium-card.first {
  min-height: 235px;
  border-color: var(--amber);
  box-shadow: 0 0 34px rgba(246, 200, 76, 0.32);
}

.rank-num {
  position: absolute;
  top: -30px;
  left: 18px;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 42px;
  color: var(--amber);
}

.podium-card.first .rank-num {
  left: 50%;
  transform: translateX(-50%);
  color: var(--amber);
}

.mini-art {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 15px;
  border: 2px solid rgba(246, 200, 76, 0.7);
}

.podium-card.first .mini-art {
  width: 96px;
  height: 96px;
}

.mini-art .game-art {
  min-height: 100%;
  height: 100%;
}

.mini-art .art-symbols {
  font-size: 20px;
  inset: 8px 6px auto;
}

.mini-art .art-title {
  display: none;
}

.podium-card h2 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
}

.podium-card p,
.leader-row p {
  margin: 0;
  color: #99a7bc;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.leader-score {
  color: var(--amber);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 28px;
}

.leader-list {
  display: grid;
  gap: 16px;
}

.leader-row {
  display: grid;
  grid-template-columns: 42px 70px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(246, 200, 76, 0.6);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(22, 31, 49, 0.9), rgba(10, 16, 32, 0.92));
}

.leader-row .rank {
  color: #657286;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 24px;
}

.leader-row h2 {
  font-size: 18px;
}

.leader-rate {
  text-align: right;
}

.leader-rate strong {
  display: block;
  color: var(--amber);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 28px;
}

.promotions {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 72px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #172338, #111827);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  isolation: isolate;
}

.promo-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 36%;
  width: 34px;
  height: 34px;
  opacity: 0;
  z-index: 5;
  background:
    linear-gradient(135deg, #39ff38 0 45%, transparent 46%),
    radial-gradient(circle at 45% 45%, #39ff38 0 38%, transparent 39%);
  clip-path: polygon(15% 0, 100% 44%, 67% 55%, 82% 100%, 58% 100%, 43% 62%, 15% 78%);
  filter: drop-shadow(0 0 10px rgba(57, 255, 56, 0.75));
  transform: translate(-50%, -50%) rotate(-10deg) scale(0.8);
  animation: promoPointer 4s ease-in-out infinite;
}

.promo-card:nth-child(2)::after {
  animation-delay: 1.3s;
}

.promo-card:hover,
.promo-card:focus-visible {
  transform: translateY(-8px) scale(1.01);
  border-color: color-mix(in srgb, var(--promo-accent, #d946ef), transparent 8%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--promo-accent, #d946ef), transparent 34%), 0 0 34px color-mix(in srgb, var(--promo-accent, #d946ef), transparent 42%), var(--shadow);
  outline: 0;
}

.promo-card:hover::after,
.promo-card:focus-visible::after {
  opacity: 1;
}

.promo-card:hover .promo-content h2,
.promo-card:focus-visible .promo-content h2 {
  color: #f472ff;
  text-shadow: 0 0 16px rgba(217, 70, 239, 0.45);
}

@keyframes promoPointer {
  0%, 38%, 100% {
    opacity: 0;
    transform: translate(-65%, -25%) rotate(-10deg) scale(0.75);
  }
  48%, 70% {
    opacity: 1;
    transform: translate(-35%, -5%) rotate(-10deg) scale(1);
  }
}

.promo-art {
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 26px;
  background:
    radial-gradient(circle at 15% 30%, rgba(34, 216, 154, 0.95), transparent 34%),
    radial-gradient(circle at 80% 24%, rgba(217, 70, 239, 0.88), transparent 32%),
    linear-gradient(135deg, #0a8427, #1e1734 54%, #8e124f);
}

.promo-art span {
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(44px, 9vw, 96px);
  line-height: 0.82;
  color: #ffe9a0;
  text-align: center;
  text-shadow: 0 7px 20px rgba(0, 0, 0, 0.48);
}

.promo-art.has-image {
  padding: 0;
  display: block;
  background: #0f172a;
}

.promo-art.has-image img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: block;
  object-fit: cover;
}

.promo-content {
  padding: 30px 36px 34px;
}

.promo-content h2 {
  font-size: clamp(24px, 3vw, 34px);
  transition: color 220ms ease, text-shadow 220ms ease;
}

.promo-content p {
  max-width: 950px;
  margin: 16px 0 22px;
  color: #b5c0d1;
  font-weight: 700;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  color: var(--violet);
  background: transparent;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.76);
  backdrop-filter: blur(12px);
}

.modal-panel {
  width: min(620px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, #172338, #0c1323);
  box-shadow: var(--shadow);
}

.modal-panel.game-popup {
  position: relative;
  width: min(488px, calc(100vw - 36px));
  max-height: calc(100vh - 44px);
  padding: 34px 36px 32px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--popup-accent, #f6c84c), transparent 18%);
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--popup-accent, #f6c84c), transparent 90%), transparent 15rem),
    linear-gradient(180deg, #111b2f 0%, #0d1426 100%);
  box-shadow: 0 0 0 1px rgba(246, 200, 76, 0.05), 0 24px 70px rgba(0, 0, 0, 0.72);
  text-align: center;
  scrollbar-width: none;
}

.modal-panel.game-popup::-webkit-scrollbar,
.game-popup-pattern::-webkit-scrollbar {
  display: none;
}

.modal-panel.promo-popup {
  position: relative;
  width: min(920px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  padding: 0;
  overflow: auto;
  border-radius: 34px;
  border: 1px solid color-mix(in srgb, var(--promo-accent, #d946ef), transparent 18%);
  background: #07101d;
  box-shadow: 0 0 42px color-mix(in srgb, var(--promo-accent, #d946ef), transparent 62%), 0 28px 90px rgba(0, 0, 0, 0.82);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--promo-accent, #d946ef), transparent 25%) rgba(15, 23, 42, 0.4);
}

.promo-popup-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 8;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 8, 15, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.promo-popup-close svg {
  width: 28px;
  height: 28px;
}

.promo-popup-hero {
  min-height: 330px;
  overflow: hidden;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(135deg, #0a8427, #1e1734 54%, #8e124f);
}

.promo-popup-hero img {
  width: 100%;
  height: 390px;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.76);
}

.promo-popup-fallback {
  min-height: 390px;
  display: grid;
  place-items: center;
  color: #ffe9a0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(52px, 8vw, 96px);
  text-align: center;
}

.promo-popup-content {
  width: min(780px, calc(100% - 80px));
  margin: -88px auto 40px;
  position: relative;
  z-index: 3;
  padding: 42px 52px 48px;
  border-radius: 28px;
  background: rgba(26, 38, 57, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
}

.promo-popup-content h2 {
  margin: 0 0 24px;
  color: #ec77ff;
  font-family: "Arial Black", Impact, Inter, sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(217, 70, 239, 0.38);
}

.promo-popup-copy {
  padding-left: 28px;
  border-left: 3px solid color-mix(in srgb, var(--promo-accent, #d946ef), transparent 15%);
  color: #d4dce8;
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 800;
  line-height: 1.72;
  white-space: pre-line;
}

.claim-promo-btn {
  min-height: 70px;
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(90deg, #d30bdc, #8022f2);
  box-shadow: 0 0 28px rgba(217, 70, 239, 0.44);
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 950;
  text-transform: uppercase;
}

.claim-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(217, 70, 239, 0.58);
}

.game-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #8fa0b9;
  background: rgba(148, 163, 184, 0.13);
}

.game-popup-close:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.24);
}

.game-popup-close svg {
  width: 21px;
  height: 21px;
}

.game-popup-flame {
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--rate-color, #f6c84c);
}

.game-popup-flame svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--rate-color, #f6c84c), transparent 35%));
}

.game-popup-title {
  margin: 0;
  font-family: "Arial Black", Impact, Inter, sans-serif;
  font-size: clamp(30px, 6vw, 39px);
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.game-popup-category {
  margin-top: 11px;
  color: #8d98aa;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.popup-rate {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  margin: 32px auto 24px;
}

.popup-rate svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.popup-rate .track {
  fill: none;
  stroke: rgba(30, 41, 59, 0.9);
  stroke-width: 8;
}

.popup-rate .progress {
  fill: none;
  stroke: var(--rate-color, #f6c84c);
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--rate-color, #f6c84c), transparent 35%));
}

.popup-rate-text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.popup-rate-text small {
  color: #77849a;
  font-size: 10px;
  font-weight: 950;
}

.popup-rate-text strong {
  color: var(--rate-color, #f6c84c);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 54px;
  line-height: 0.82;
}

.popup-rate-text span {
  font-size: 16px;
}

.game-popup-brand {
  margin: 0 0 20px;
  color: color-mix(in srgb, var(--popup-accent, #f6c84c), #ffffff 10%);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.game-popup-pattern {
  max-height: 320px;
  padding: 24px 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(10, 16, 32, 0.42);
  color: #d0d8e6;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.48;
  text-align: left;
  white-space: pre-line;
  overflow: hidden;
}

.play-now-btn {
  min-height: 58px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #ff6b1a);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.play-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.3);
}

.modal-panel.announcement {
  text-align: center;
}

.modal-head {
  padding: 28px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(90deg, #10a37f, #0ea5c8);
}

.modal-head.center {
  display: grid;
  justify-items: center;
  text-align: center;
}

.modal-head h2 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 30px;
  text-transform: uppercase;
}

.modal-icon svg {
  width: 42px;
  height: 42px;
}

.modal-body {
  padding: 30px;
  color: #cbd5e1;
  line-height: 1.7;
}

.modal-body strong {
  color: #fff;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.wide-action {
  width: 100%;
  min-height: 58px;
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: rgba(30, 41, 59, 0.78);
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-panel {
  display: grid;
  gap: 14px;
  text-align: center;
}

.contact-number {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(34, 216, 154, 0.28);
  background: rgba(34, 216, 154, 0.08);
  color: #bff9e3;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 28px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
}

.detail-layout .game-card {
  min-height: 310px;
}

.pattern-box {
  padding: 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
  white-space: pre-line;
}

#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1500;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 14px;
  color: #06101a;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  box-shadow: var(--shadow);
  font-weight: 900;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

#toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(34, 216, 154, 0.16), transparent 30rem),
    linear-gradient(180deg, #08121f, #070b16);
}

.login-card {
  width: min(520px, 100%);
  padding: 42px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1b2a3e, #131d2d);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 8px;
  color: transparent;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 42px;
  text-align: center;
}

.login-card p {
  margin: 0 0 30px;
  color: var(--muted);
  text-align: center;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  color: #d5deeb;
  font-size: 14px;
  font-weight: 850;
}

.field input,
.field select,
.field textarea,
.admin-search {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  outline: 0;
  color: var(--text);
  background: rgba(9, 15, 28, 0.74);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-search:focus {
  border-color: rgba(34, 216, 154, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 216, 154, 0.12);
}

.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #08101d;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(148, 163, 184, 0.15);
  background: linear-gradient(180deg, #111c2e, #090f1b);
}

.admin-brand {
  padding: 28px 24px;
  color: transparent;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 25px;
}

.admin-nav {
  display: grid;
  gap: 4px;
  padding: 0 14px;
}

.admin-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  color: #a8b3c6;
  background: transparent;
  text-align: left;
  font-weight: 850;
}

.admin-link:hover,
.admin-link.is-active {
  color: #06101a;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

.admin-spacer {
  flex: 1;
}

.admin-main {
  min-width: 0;
  padding: 34px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.admin-top h1 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 34px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-btn {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 12px;
  color: #e6edf7;
  background: #1b2a3f;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 13px;
  font-weight: 900;
}

.admin-btn.primary {
  color: #06101a;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  border-color: transparent;
}

.admin-btn.danger {
  color: #fff;
  background: rgba(251, 113, 133, 0.18);
  border-color: rgba(251, 113, 133, 0.35);
}

.admin-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: #a8b3c6;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.tab-btn.is-active {
  color: #06101a;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  border-color: transparent;
}

.admin-panel,
.stat-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(17, 27, 43, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  padding: 20px;
}

.stat-card span {
  color: #91a1b8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 9px;
  color: #fff;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 34px;
}

.table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
}

.admin-table th {
  color: #91a1b8;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td {
  color: #e6edf7;
  font-weight: 700;
}

.thumb {
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 10px;
}

.thumb .game-art {
  min-height: 100%;
  height: 100%;
}

.thumb .art-title,
.thumb .art-symbols {
  display: none;
}

.rate-chip {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #07101a;
  background: var(--rate-color);
  font-weight: 950;
}

.action-group {
  display: flex;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .field.full {
  grid-column: 1 / -1;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 12px;
  align-items: center;
}

.range-row input[type="range"] {
  accent-color: var(--emerald);
}

.preview-box {
  min-height: 150px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.34);
  overflow: hidden;
}

.preview-box img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 66px 1fr;
    min-height: 64px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    font-size: 6px;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    justify-content: flex-end;
    padding-right: 14px;
    gap: 8px;
  }

  .pill-btn {
    min-height: 36px;
    padding: 0 14px;
    font-size: 11px;
  }

  .mobile-nav {
    position: sticky;
    top: 64px;
    z-index: 260;
    display: flex;
    justify-content: center;
    gap: 18px;
    min-height: 42px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 20, 36, 0.9);
    backdrop-filter: blur(16px);
  }

  .nav-link {
    font-size: 11px;
    gap: 6px;
  }

  .hero {
    padding-top: 48px;
  }

  .carousel {
    height: 270px;
  }

  .carousel-stage {
    width: 168px;
    height: 238px;
  }

  .carousel-arrow {
    display: none;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .game-grid .game-card {
    min-height: 292px;
  }

  .game-grid .game-art {
    min-height: 180px;
  }

  .podium {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .podium-card,
  .podium-card.first {
    min-height: 170px;
    border-radius: 22px;
  }

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

  .modal-panel.promo-popup {
    width: min(720px, calc(100vw - 28px));
    border-radius: 26px;
  }

  .promo-popup-hero {
    min-height: 260px;
    border-radius: 26px 26px 0 0;
  }

  .promo-popup-hero img,
  .promo-popup-fallback {
    height: 310px;
    min-height: 310px;
  }

  .promo-popup-content {
    width: calc(100% - 44px);
    margin-top: -70px;
    padding: 32px 30px 38px;
  }

  .leader-row {
    grid-template-columns: 34px 58px 1fr;
  }

  .leader-rate {
    grid-column: 3;
    text-align: left;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 14px;
  }

  .admin-link {
    justify-content: center;
  }

  .admin-main {
    padding: 20px;
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .section-heading {
    padding: 0 16px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .view-all {
    padding: 8px 12px;
    font-size: 10px;
  }

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

  .promotions,
  .leaderboard {
    padding-left: 16px;
    padding-right: 16px;
  }

  .promo-content {
    padding: 24px 22px 28px;
  }

  .promo-popup-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .promo-popup-content {
    width: calc(100% - 24px);
    margin-top: -58px;
    padding: 26px 22px 30px;
    border-radius: 22px;
  }

  .promo-popup-copy {
    padding-left: 18px;
    font-size: 16px;
    line-height: 1.62;
  }

  .claim-promo-btn {
    min-height: 58px;
    margin-top: 24px;
    font-size: 16px;
  }

  .modal-body {
    padding: 22px;
  }

  .modal-head h2 {
    font-size: 24px;
  }

  .modal-panel.game-popup {
    width: min(370px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 22px 20px 20px;
  }

  .popup-rate {
    width: 112px;
    height: 112px;
    margin: 18px auto 14px;
  }

  .game-popup-pattern {
    max-height: 220px;
    padding: 14px 15px;
    font-size: 14px;
    line-height: 1.4;
  }

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

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

  .admin-nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* Live 77-DM leaderboard replica refinements */
body[data-route="leaderboard"] {
  background:
    radial-gradient(circle at 50% 72%, rgba(246, 200, 76, 0.16), transparent 260px),
    radial-gradient(circle at 15% 52%, rgba(246, 200, 76, 0.08), transparent 190px),
    radial-gradient(circle at 86% 55%, rgba(249, 115, 22, 0.07), transparent 210px),
    linear-gradient(180deg, #080c17 0%, #080d18 62%, #0b0e18 100%);
}

body[data-route="leaderboard"]::before {
  opacity: 0;
}

body[data-route="leaderboard"] .page-hero {
  max-width: 1040px;
  padding: 18px 42px 0;
  text-align: center;
}

body[data-route="leaderboard"] .page-hero h1 {
  letter-spacing: -2.8px;
  font-size: clamp(52px, 9.25vw, 76px);
  line-height: 0.92;
  background: linear-gradient(90deg, #fee68b 0%, #fb923c 48%, #fef3b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
}

body[data-route="leaderboard"] .page-hero p {
  max-width: 610px;
  margin-top: 14px;
  color: #a8b2c3;
  font-size: clamp(16px, 2.6vw, 18px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.52;
}

body[data-route="leaderboard"] .leaderboard {
  max-width: 760px;
  padding: 0 40px 72px;
}

body[data-route="leaderboard"] .podium {
  max-width: 540px;
  grid-template-columns: 1fr 1.25fr 1fr;
  align-items: end;
  gap: 24px;
  margin: 34px auto 42px;
}

body[data-route="leaderboard"] .podium-card,
body[data-route="leaderboard"] .podium-card.first {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 294px;
  padding: 0 10px 22px;
  gap: 7px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

body[data-route="leaderboard"] .podium-card.first {
  min-height: 380px;
  padding-bottom: 25px;
}

body[data-route="leaderboard"] .podium-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  z-index: 0;
  background: linear-gradient(180deg, rgba(35, 49, 70, 0.94) 0%, rgba(22, 32, 50, 0.98) 48%, rgba(17, 26, 43, 0.98) 100%);
  border: 2px solid rgba(255, 211, 45, 0.88);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow:
    0 0 26px rgba(255, 214, 10, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body[data-route="leaderboard"] .podium-card:nth-child(1)::before {
  border-color: rgba(107, 124, 145, 0.78);
  box-shadow: 0 0 26px rgba(255, 214, 10, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-route="leaderboard"] .podium-card:nth-child(3)::before {
  border-color: rgba(195, 94, 37, 0.9);
  box-shadow: 0 0 24px rgba(255, 137, 35, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-route="leaderboard"] .podium-card.first::before {
  height: 210px;
  border-color: #ffd51d;
  border-radius: 22px 22px 0 0;
  box-shadow:
    0 0 38px rgba(255, 214, 10, 0.36),
    0 -10px 70px rgba(255, 214, 10, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body[data-route="leaderboard"] .podium-card > * {
  position: relative;
  z-index: 1;
}

body[data-route="leaderboard"] .podium-card.first > div:first-child {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 66px;
  height: 54px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  color: #ffd400 !important;
  filter: drop-shadow(0 0 12px rgba(255, 214, 10, 0.92));
}

body[data-route="leaderboard"] .podium-card.first > div:first-child svg {
  width: 64px;
  height: 50px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.4;
}

body[data-route="leaderboard"] .rank-num {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: #d8dde5;
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.22), 0 0 18px rgba(255, 255, 255, 0.18);
}

body[data-route="leaderboard"] .podium-card.first .rank-num {
  display: none;
}

body[data-route="leaderboard"] .podium-card:nth-child(3) .rank-num {
  color: #ff9b3d;
  text-shadow: 0 0 12px rgba(255, 155, 61, 0.45);
}

body[data-route="leaderboard"] .mini-art {
  position: absolute;
  top: 32px;
  left: 50%;
  z-index: 2;
  width: 112px;
  height: 112px;
  transform: translateX(-50%);
  border: 4px solid #ffd51d;
  border-radius: 16px;
  background: #05070d;
  box-shadow: 0 0 24px rgba(255, 214, 10, 0.72);
}

body[data-route="leaderboard"] .podium-card.first .mini-art {
  top: 60px;
  width: 145px;
  height: 145px;
  border-width: 5px;
  border-radius: 21px;
}

body[data-route="leaderboard"] .mini-art .game-art,
body[data-route="leaderboard"] .mini-art .uploaded-art {
  min-height: 100%;
  height: 100%;
  border-radius: 10px;
}

body[data-route="leaderboard"] .mini-art .game-art::before,
body[data-route="leaderboard"] .mini-art .game-art::after {
  opacity: 0;
}

body[data-route="leaderboard"] .podium-card h2 {
  margin-top: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: -0.2px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.65);
}

body[data-route="leaderboard"] .podium-card.first h2 {
  font-size: 15px;
}

body[data-route="leaderboard"] .podium-card p {
  color: #8997ad;
  font-size: 10px;
  letter-spacing: 0.7px;
}

body[data-route="leaderboard"] .leader-score {
  margin-top: 4px;
  color: #ffd53b;
  font-size: 32px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 213, 59, 0.28);
}

body[data-route="leaderboard"] .podium-card.first .leader-score {
  font-size: 46px;
}

@media (max-width: 860px) {
  body[data-route="leaderboard"] .podium {
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 24px;
  }

  body[data-route="leaderboard"] .podium-card,
  body[data-route="leaderboard"] .podium-card.first {
    border-radius: 0;
  }
}

@media (max-width: 620px) {
  body[data-route="leaderboard"] .page-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  body[data-route="leaderboard"] .leaderboard {
    padding-left: 18px;
    padding-right: 18px;
  }

  body[data-route="leaderboard"] .podium {
    gap: 12px;
  }

  body[data-route="leaderboard"] .mini-art {
    width: 88px;
    height: 88px;
  }

  body[data-route="leaderboard"] .podium-card.first .mini-art {
    width: 118px;
    height: 118px;
  }

  body[data-route="leaderboard"] .podium-card,
  body[data-route="leaderboard"] .podium-card.first {
    min-height: 260px;
  }

  body[data-route="leaderboard"] .podium-card.first {
    min-height: 330px;
  }

  body[data-route="leaderboard"] .podium-card::before {
    height: 150px;
  }

  body[data-route="leaderboard"] .podium-card.first::before {
    height: 190px;
  }

  body[data-route="leaderboard"] .podium-card h2 {
    font-size: 11px;
  }

  body[data-route="leaderboard"] .leader-score {
    font-size: 26px;
  }

  body[data-route="leaderboard"] .podium-card.first .leader-score {
    font-size: 38px;
  }
}


/* Match the live 77-DM promotion sizing and row thumbnails */
body[data-route="promotion"] {
  background:
    radial-gradient(circle at 14% 8%, rgba(217, 70, 239, 0.13), transparent 320px),
    linear-gradient(180deg, #0b1020 0%, #080d18 58%, #070b14 100%);
}

body[data-route="promotion"] .page-hero {
  max-width: 960px;
  padding: 70px 24px 54px;
}

body[data-route="promotion"] .page-hero h1 {
  font-size: clamp(46px, 5.3vw, 62px);
  letter-spacing: -1.6px;
  background: linear-gradient(90deg, #d58be7 0%, #9145dc 52%, #f6d8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body[data-route="promotion"] .page-hero p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.4;
}

body[data-route="promotion"] .promotions {
  max-width: 1000px;
  grid-template-columns: repeat(2, 302px);
  justify-content: start;
  gap: 28px;
  padding: 0 24px 72px;
}

body[data-route="promotion"] .promo-card {
  width: 302px;
  min-height: 416px;
  border-radius: 20px;
}

body[data-route="promotion"] .promo-art,
body[data-route="promotion"] .promo-art.has-image,
body[data-route="promotion"] .promo-art.has-image img {
  height: 194px;
  min-height: 194px;
}

body[data-route="promotion"] .promo-content {
  padding: 28px 28px 28px;
}

body[data-route="promotion"] .promo-content h2 {
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0.2px;
}

body[data-route="promotion"] .promo-content p {
  margin: 14px 0 22px;
  font-size: 12px;
  line-height: 1.72;
}

body[data-route="promotion"] .text-link {
  font-size: 12px;
}

body[data-route="leaderboard"] .leader-row {
  grid-template-columns: 38px 58px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 84px;
  padding: 12px 18px 12px 14px;
}

body[data-route="leaderboard"] .leader-thumb {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid rgba(255, 213, 59, 0.85);
  background: #05070d;
  box-shadow: 0 0 16px rgba(255, 214, 10, 0.34);
}

body[data-route="leaderboard"] .leader-thumb .game-art,
body[data-route="leaderboard"] .leader-thumb .uploaded-art {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 8px;
}

body[data-route="leaderboard"] .leader-thumb .game-art::before,
body[data-route="leaderboard"] .leader-thumb .game-art::after,
body[data-route="leaderboard"] .leader-thumb .art-symbols,
body[data-route="leaderboard"] .leader-thumb .art-title {
  display: none;
}

body[data-route="leaderboard"] .leader-info {
  min-width: 0;
}

@media (max-width: 860px) {
  body[data-route="leaderboard"] .leader-row {
    grid-template-columns: 34px 52px minmax(0, 1fr) auto;
    gap: 10px;
  }

  body[data-route="leaderboard"] .leader-thumb {
    width: 52px;
    height: 52px;
  }

  body[data-route="leaderboard"] .leader-rate {
    grid-column: auto;
    text-align: right;
  }
}

@media (max-width: 700px) {
  body[data-route="promotion"] .promotions {
    max-width: 350px;
    grid-template-columns: 302px;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  body[data-route="promotion"] .page-hero h1 {
    font-size: 42px;
  }

  body[data-route="leaderboard"] .leader-row {
    grid-template-columns: 30px 48px minmax(0, 1fr);
  }

  body[data-route="leaderboard"] .leader-thumb {
    width: 48px;
    height: 48px;
  }

  body[data-route="leaderboard"] .leader-rate {
    grid-column: 3;
    text-align: left;
  }
}


/* Update: clickable leaderboard, slightly larger promotion cards, smaller promo detail popup */
body[data-route="leaderboard"] .clickable-leader {
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

body[data-route="leaderboard"] .clickable-leader:hover,
body[data-route="leaderboard"] .clickable-leader:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.08);
  outline: none;
}

body[data-route="leaderboard"] .podium-card.clickable-leader:hover,
body[data-route="leaderboard"] .podium-card.clickable-leader:focus-visible {
  box-shadow: 0 0 28px rgba(255, 213, 59, 0.42);
}

body[data-route="leaderboard"] .leader-row.clickable-leader:hover,
body[data-route="leaderboard"] .leader-row.clickable-leader:focus-visible {
  border-color: rgba(255, 213, 59, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 213, 59, 0.18), 0 0 22px rgba(255, 213, 59, 0.20);
}

body[data-route="promotion"] .promotions {
  max-width: 1060px;
  grid-template-columns: repeat(2, 330px);
  gap: 30px;
}

body[data-route="promotion"] .promo-card {
  width: 330px;
  min-height: 446px;
}

body[data-route="promotion"] .promo-art,
body[data-route="promotion"] .promo-art.has-image,
body[data-route="promotion"] .promo-art.has-image img {
  height: 214px;
  min-height: 214px;
}

body[data-route="promotion"] .promo-content {
  padding: 30px 30px 30px;
}

body[data-route="promotion"] .promo-content h2 {
  font-size: 25px;
}

body[data-route="promotion"] .promo-content p {
  font-size: 12.5px;
  line-height: 1.72;
}

.modal-panel.promo-popup {
  width: min(760px, calc(100vw - 44px));
  border-radius: 28px;
}

.promo-popup-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
}

.promo-popup-close svg {
  width: 22px;
  height: 22px;
}

.promo-popup-hero {
  min-height: 255px;
  border-radius: 28px 28px 0 0;
}

.promo-popup-hero img,
.promo-popup-fallback {
  height: 285px;
  min-height: 285px;
}

.promo-popup-content {
  width: min(600px, calc(100% - 64px));
  margin: -66px auto 32px;
  padding: 34px 42px 38px;
  border-radius: 22px;
}

.promo-popup-content h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.2vw, 44px);
}

.promo-popup-copy {
  padding-left: 22px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.66;
}

.claim-promo-btn {
  min-height: 58px;
  margin-top: 26px;
  border-radius: 11px;
  font-size: clamp(16px, 2.2vw, 22px);
}

@media (max-width: 700px) {
  body[data-route="promotion"] .promotions {
    max-width: 370px;
    grid-template-columns: 330px;
  }

  .modal-panel.promo-popup {
    width: min(620px, calc(100vw - 28px));
  }

  .promo-popup-content {
    width: calc(100% - 34px);
    padding: 28px 26px 32px;
  }
}


/* Mobile responsive hardening: keeps every public/admin page usable on 320px-430px phones */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.site-shell,
.site-shell main,
.section-wrap,
.grid-wrap,
.leaderboard,
.promotions,
.admin-main,
.admin-panel,
.table-wrap {
  min-width: 0;
}

.game-card,
.promo-card,
.leader-row,
.podium-card,
.modal-panel {
  max-width: 100%;
}

.leader-info,
.game-card h3,
.leader-row h2,
.promo-content h2 {
  min-width: 0;
}

@media (hover: none) {
  .game-card.clickable:hover,
  .promo-card:hover,
  body[data-route="leaderboard"] .clickable-leader:hover {
    transform: none;
  }
}

@media (max-width: 860px) {
  body {
    background-size: auto;
  }

  .site-header {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 58px;
  }

  .logo-box {
    min-width: 0;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    min-width: 0;
    justify-content: flex-end;
    gap: 7px;
    padding: 0 10px 0 8px;
  }

  .pill-btn {
    flex: 0 1 auto;
    min-width: 70px;
    min-height: 34px;
    padding: 0 clamp(8px, 2.6vw, 13px);
    font-size: 10.5px;
    white-space: nowrap;
  }

  .mobile-nav {
    top: 58px;
    justify-content: flex-start;
    gap: 4px;
    min-height: 44px;
    padding: 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav .nav-link {
    flex: 1 0 auto;
    justify-content: center;
    min-width: max-content;
    padding: 0 8px;
    font-size: 10.5px;
    white-space: nowrap;
  }

  .mobile-nav .nav-link svg {
    width: 14px;
    height: 14px;
  }

  .hero,
  .page-hero {
    padding: clamp(28px, 8vw, 44px) 16px clamp(24px, 6vw, 38px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(31px, 10vw, 44px);
    line-height: 0.98;
    letter-spacing: -0.8px;
    overflow-wrap: anywhere;
  }

  .hero p,
  .page-hero p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
  }

  .section-wrap {
    margin-bottom: 26px;
  }

  .section-heading {
    padding: 0 14px;
    gap: 10px;
  }

  .section-heading h2 {
    padding-left: 10px;
    border-left-width: 4px;
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1;
  }

  .view-all {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  .carousel {
    height: 252px;
    overflow: hidden;
    perspective: 780px;
  }

  .carousel-stage {
    width: 158px;
    height: 224px;
  }

  .carousel-card[data-abs="2"] {
    opacity: 0;
    pointer-events: none;
  }

  .carousel .game-art {
    min-height: 136px;
  }

  .carousel .card-body {
    padding: 10px 11px 12px;
    gap: 8px;
  }

  .carousel .game-card h3 {
    font-size: 12px;
  }

  .grid-wrap {
    padding: 0 12px 48px;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .game-grid .game-card {
    min-height: 224px;
    border-radius: 15px;
  }

  .game-grid .game-art {
    min-height: 132px;
  }

  .game-grid .art-title {
    left: 8px;
    right: 8px;
    bottom: 14px;
    font-size: clamp(13px, 4vw, 16px);
  }

  .game-grid .card-body {
    padding: 10px;
    gap: 8px;
  }

  .game-grid .game-card h3 {
    min-height: 17px;
    font-size: 12px;
  }

  .rate-row {
    gap: 6px;
  }

  .rate-row span:first-child,
  .leader-rate small {
    font-size: 9px;
  }

  .rate-gauge {
    width: 42px;
    height: 42px;
  }

  .rate-value {
    font-size: 11px;
  }

  .hot-badge {
    top: 7px;
    right: 7px;
    padding: 3px 7px;
    font-size: 8.5px;
  }

  .modal-backdrop {
    padding: 10px;
    align-items: center;
  }

  .modal-panel {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .modal-head {
    padding: 20px 18px;
  }

  .modal-body {
    padding: 20px 18px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .pill-btn,
  .wide-action {
    width: 100%;
  }

  .modal-panel.game-popup {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 22px 18px 18px;
    overflow: auto;
  }

  .game-popup-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .game-popup-title {
    padding: 0 28px;
    font-size: clamp(25px, 8vw, 34px);
  }

  .popup-rate {
    width: 112px;
    height: 112px;
    margin: 18px auto 14px;
  }

  .popup-rate-text strong {
    font-size: 40px;
  }

  .game-popup-brand {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .game-popup-pattern {
    max-height: 34dvh;
    overflow: auto;
    padding: 14px 15px;
    font-size: 14px;
    line-height: 1.45;
  }

  .play-now-btn {
    min-height: 48px;
    margin-top: 14px;
    font-size: 14px;
  }

  .modal-panel.promo-popup {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }

  .promo-popup-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .promo-popup-hero {
    min-height: 184px;
    border-radius: 20px 20px 0 0;
  }

  .promo-popup-hero img,
  .promo-popup-fallback {
    height: 220px;
    min-height: 220px;
  }

  .promo-popup-content {
    width: calc(100% - 24px);
    margin: -46px auto 16px;
    padding: 24px 20px 26px;
    border-radius: 18px;
  }

  .promo-popup-content h2 {
    margin-bottom: 14px;
    font-size: clamp(25px, 8vw, 34px);
  }

  .promo-popup-copy {
    padding-left: 14px;
    font-size: 14.5px;
    line-height: 1.55;
  }

  .claim-promo-btn {
    min-height: 50px;
    margin-top: 18px;
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  body[data-route="promotion"] .page-hero {
    padding: 32px 16px 30px;
  }

  body[data-route="promotion"] .page-hero h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  body[data-route="promotion"] .promotions {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 18px;
    padding: 0 14px 48px;
  }

  body[data-route="promotion"] .promo-card {
    width: 100%;
    max-width: 370px;
    min-height: auto;
    justify-self: center;
    border-radius: 18px;
  }

  body[data-route="promotion"] .promo-art,
  body[data-route="promotion"] .promo-art.has-image,
  body[data-route="promotion"] .promo-art.has-image img {
    height: clamp(174px, 54vw, 214px);
    min-height: clamp(174px, 54vw, 214px);
  }

  body[data-route="promotion"] .promo-content {
    padding: 22px 20px 24px;
  }

  body[data-route="promotion"] .promo-content h2 {
    font-size: clamp(21px, 6.2vw, 25px);
  }

  body[data-route="promotion"] .promo-content p {
    margin: 12px 0 18px;
  }
}

@media (max-width: 620px) {
  body[data-route="leaderboard"] .page-hero {
    padding: 14px 14px 0;
  }

  body[data-route="leaderboard"] .page-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
    letter-spacing: -1.6px;
  }

  body[data-route="leaderboard"] .page-hero p {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.45;
  }

  body[data-route="leaderboard"] .leaderboard {
    max-width: 100%;
    padding: 0 10px 48px;
  }

  body[data-route="leaderboard"] .podium {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr 1.18fr 1fr;
    gap: 8px;
    margin: 24px auto 28px;
  }

  body[data-route="leaderboard"] .podium-card,
  body[data-route="leaderboard"] .podium-card.first {
    min-width: 0;
    min-height: 232px;
    padding: 0 5px 16px;
    gap: 5px;
  }

  body[data-route="leaderboard"] .podium-card.first {
    min-height: 292px;
  }

  body[data-route="leaderboard"] .podium-card::before {
    height: 132px;
    border-radius: 13px 13px 0 0;
  }

  body[data-route="leaderboard"] .podium-card.first::before {
    height: 166px;
    border-radius: 16px 16px 0 0;
  }

  body[data-route="leaderboard"] .rank-num {
    font-size: 28px;
  }

  body[data-route="leaderboard"] .mini-art {
    top: 30px;
    width: 76px;
    height: 76px;
    border-width: 3px;
    border-radius: 13px;
  }

  body[data-route="leaderboard"] .podium-card.first .mini-art {
    top: 54px;
    width: 104px;
    height: 104px;
    border-width: 4px;
    border-radius: 17px;
  }

  body[data-route="leaderboard"] .podium-card.first > div:first-child {
    width: 54px;
    height: 44px;
  }

  body[data-route="leaderboard"] .podium-card.first > div:first-child svg {
    width: 52px;
    height: 42px;
  }

  body[data-route="leaderboard"] .podium-card h2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.08;
  }

  body[data-route="leaderboard"] .podium-card.first h2 {
    font-size: 11px;
  }

  body[data-route="leaderboard"] .podium-card p {
    font-size: 8.5px;
  }

  body[data-route="leaderboard"] .leader-score {
    font-size: 22px;
  }

  body[data-route="leaderboard"] .podium-card.first .leader-score {
    font-size: 32px;
  }

  body[data-route="leaderboard"] .leader-list {
    gap: 12px;
  }

  body[data-route="leaderboard"] .leader-row {
    grid-template-columns: 28px 46px minmax(0, 1fr);
    gap: 9px;
    min-height: 82px;
    padding: 11px 12px;
  }

  body[data-route="leaderboard"] .leader-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  body[data-route="leaderboard"] .leader-row .rank {
    font-size: 20px;
  }

  body[data-route="leaderboard"] .leader-row h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }

  body[data-route="leaderboard"] .leader-row p {
    margin-top: 2px;
    font-size: 9px;
  }

  body[data-route="leaderboard"] .leader-rate {
    grid-column: 2 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 213, 59, 0.12);
    text-align: left;
  }

  body[data-route="leaderboard"] .leader-rate strong {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .hero h1,
  .page-hero h1 {
    font-size: clamp(30px, 10vw, 38px);
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promotions,
  .leaderboard {
    padding-left: 12px;
    padding-right: 12px;
  }

  .contact-number {
    font-size: clamp(20px, 7vw, 28px);
    overflow-wrap: anywhere;
  }

  #toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .login-card {
    padding: 26px 20px;
  }

  .login-card h1 {
    font-size: 32px;
  }

  .admin-main {
    padding: 14px;
  }

  .admin-brand {
    padding: 18px 14px;
    font-size: 20px;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 10px 12px;
  }

  .admin-link {
    gap: 7px;
    padding: 11px 8px;
    font-size: 12px;
  }

  .admin-top h1 {
    font-size: 26px;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .admin-btn {
    flex: 1 1 calc(50% - 8px);
  }

  .category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 0 0 auto;
  }

  .table-wrap {
    margin: 0 -14px;
    padding: 0 14px;
  }

  .admin-table {
    min-width: 680px;
  }

  .form-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .header-actions {
    gap: 5px;
  }

  .pill-btn {
    min-width: 62px;
    padding: 0 7px;
    font-size: 9.5px;
  }

  .mobile-nav .nav-link {
    font-size: 9.5px;
  }

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

  body[data-route="leaderboard"] .podium {
    gap: 5px;
  }

  body[data-route="leaderboard"] .mini-art {
    width: 66px;
    height: 66px;
  }

  body[data-route="leaderboard"] .podium-card.first .mini-art {
    width: 90px;
    height: 90px;
  }
}
