/* -----------------------------------------------------------
   NEXORA ESPORTS � Clean Base Theme
   ----------------------------------------------------------- */

/* -----------------------------------------------------------
   NEXORA ESPORTS � Dark Gaming Theme
   ----------------------------------------------------------- */

:root {
  --bg: #0c0e13;
  --bg-soft: #141820;
  --surface: #141820;
  --surface-2: #181d28;
  --ink: #e8e0d4;
  --ink-2: #b8ac9e;
  --muted: #8c8070;
  --line: #1e2430;
  --line-strong: #2a3040;

  --brand: #d4a420;
  --brand-2: #f0c040;
  --brand-soft: #1e1a10;
  --accent: #f0c040;
  --accent-soft: #1a1608;
  --green: #22c97a;
  --green-soft: #0e2218;
  --red: #e85454;
  --red-soft: #2a1212;
  --amber: #d4a420;
  --amber-soft: #2a2010;

  --grad: linear-gradient(120deg, #d4a420, #f0c040);
  --grad-2: linear-gradient(120deg, #f0c040, #d4a420);

  --sh-sm: 0 1px 2px rgba(14, 16, 22, .05), 0 2px 8px rgba(14, 16, 22, .04);
  --sh: 0 2px 6px rgba(14, 16, 22, .05), 0 12px 28px rgba(14, 16, 22, .07);
  --sh-lg: 0 8px 20px rgba(14, 16, 22, .07), 0 26px 60px rgba(14, 16, 22, .11);
  --ring: 0 0 0 4px rgba(212, 164, 32, .13);

  --r: 16px;
  --r-sm: 11px;
  --r-xs: 8px;
  --nav-h: 72px;
  --wrap: 1200px;
}

/* Scanner decision controls: keep every action reachable on a phone. */
.qr-decision-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.qr-decision-fields label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}
.qr-decision-fields input,
.qr-decision-fields select {
  min-width: 0;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  color: #111827;
  background: #fff;
  font: inherit;
}
.qr-decision-fields .qr-override-field {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
}
.qr-decision-fields .qr-override-field input { min-height: auto; width: 16px; height: 16px; }
.qr-btn.scan-next { background: #334155; color: #fff; }
@media (max-width: 640px) {
  .qr-decision-fields { grid-template-columns: 1fr; }
  .qr-overlay-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .qr-overlay-actions .qr-btn {
    flex: 1 1 calc(50% - 5px);
    min-height: 48px;
  }

  .qr-overlay-actions .qr-btn.scan-next {
    flex: 1 1 100%;
  }
  .qr-btn { min-height: 48px; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  font-family: 'Rajdhani', 'Outfit', sans-serif;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -.005em;
  color: #e8384f;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 800;
  color: #e8384f;
  text-shadow: 0 0 30px rgba(232, 56, 79, .25);
}

h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  color: #e8384f;
}

h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: #ffffff;
}

strong {
  color: #ffffff;
  font-weight: 700;
}

.section-heading .eyebrow {
  color: #f0c040;
}

.section-heading p {
  color: #b8ac9e;
}

::selection {
  background: rgba(212, 164, 32, .16);
}

/* -- LAYOUT -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section {
  padding: clamp(52px, 7vw, 92px) 0;
}

.section.tight {
  padding: clamp(36px, 5vw, 60px) 0;
}

.section.white {
  background: linear-gradient(180deg, #141820 0%, #0c0e13 100%);
  border-block: 1px solid var(--line);
}

.section.soft {
  background: linear-gradient(135deg, #161a24 0%, #10141c 100%);
  border-block: 1px solid var(--line);
}

.section-heading {
  margin-bottom: clamp(26px, 4vw, 44px);
  max-width: 720px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  color: var(--ink-2);
  margin: 12px 0 0;
  font-size: clamp(15px, 1.6vw, 17px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(232, 56, 79, 0.12);
  border: 1px solid rgba(232, 56, 79, 0.25);
  color: #e8384f;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow.on-dark {
  background: rgba(240, 192, 64, 0.12);
  border-color: rgba(240, 192, 64, 0.3);
  color: #f0c040;
  backdrop-filter: blur(6px);
}

.grad-text {
  background: linear-gradient(135deg, #f0c040, #e8384f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: #b8ac9e;
  font-size: clamp(15.5px, 1.8vw, 18px);
  max-width: 660px;
  margin: 0;
}

/* -- NAVBAR -- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 2px solid #8b1a1a;
  transition: box-shadow .25s, background .25s, border-color .25s;
}

.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 2px solid #8b1a1a;
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(212, 164, 32, .28);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 9px 15px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s, background .2s;
}

.nav-links a:hover {
  color: #f0c040;
  background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(240, 192, 64, 0.6);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #f0c040;
  box-shadow: 0 0 8px rgba(240, 192, 64, 0.8);
}

.nav-cta {
  color: #b71c1c !important;
  background: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform .18s, box-shadow .18s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(212, 164, 32, .34);
}

.nav-cta.active::after {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* -- BUTTONS -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 99px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all .25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  filter: brightness(1.1) saturate(1.2);
  opacity: 0;
  transition: opacity .3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #b71c1c, #e8384f);
  box-shadow: 0 4px 14px rgba(232, 56, 79, 0.35), inset 0 1px 1px rgba(255, 255, 255, .15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 56, 79, 0.45), inset 0 1px 1px rgba(255, 255, 255, .15);
}

.btn.outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: #e8e0d4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.btn.outline:hover {
  border-color: #e8384f;
  color: #e8384f;
  background: rgba(232, 56, 79, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 56, 79, 0.15);
}

.btn.on-dark {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn.on-dark:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.btn.ghost {
  background: var(--brand-soft);
  color: var(--brand);
}

.btn.ghost:hover {
  background: rgba(212, 164, 32, .16);
  color: var(--brand-2);
}

.btn.small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 13.5px;
  border-radius: 99px;
}

.btn.block {
  width: 100%;
}

.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* -- HERO -- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  display: grid;
  align-items: center;
  padding: clamp(40px, 6vw, 60px) 0 clamp(40px, 6vw, 60px);
  overflow: hidden;
  background: #06080c;
}

.hero-slider,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 7s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide.fallback {
  background:
    radial-gradient(circle at 22% 25%, rgba(232, 56, 79, 0.5), transparent 55%),
    radial-gradient(circle at 78% 70%, rgba(240, 192, 64, 0.35), transparent 55%),
    linear-gradient(135deg, #0c0e16, #1a1610 60%, #121410);
}

.hero-slide.f2 {
  background:
    radial-gradient(circle at 70% 25%, rgba(232, 56, 79, 0.45), transparent 55%),
    linear-gradient(135deg, #0e1018, #1a1408, #181208);
}

.hero-slide.f3 {
  background:
    radial-gradient(circle at 35% 70%, rgba(240, 192, 64, 0.4), transparent 55%),
    linear-gradient(135deg, #060812, #181610, #1e1610);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 10, 14, .72) 0%, rgba(8, 10, 14, .48) 45%, rgba(8, 10, 14, .18) 100%),
    linear-gradient(0deg, rgba(8, 10, 14, .55), transparent 50%);
}

.hero-content {
  position: relative;
  max-width: 680px;
  color: #fff;
  text-align: center;
  margin: 0 auto;
}

.hero-content h1 {
  color: #e8384f;
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 20px;
  line-height: 1.15;
  text-shadow: 0 0 40px rgba(232, 56, 79, 0.3);
}

.hero-quote {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(15.5px, 1.9vw, 18px);
  max-width: 500px;
  margin: 0 auto;
}

.hero-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.hero-meta div {
  display: grid;
  gap: 2px;
}

.hero-meta strong {
  font-family: Rajdhani, sans-serif;
  font-size: 20px;
  color: #fff;
  line-height: 1.2;
}

.hero-meta span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .32);
  cursor: pointer;
  transition: background .25s, width .25s;
}

.hero-dots button.active {
  width: 40px;
  background: #fff;
}

/* -- TICKER -- */
.ticker {
  background: #1a1f2e;
  color: #fff;
  overflow: hidden;
  padding: 11px 0;
}

.ticker-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .78);
}

.ticker-track span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* -- COUNTDOWN -- */
.countdown-panel {
  position: relative;
  color: #fff;
}

.countdown-panel::before,
.countdown-panel::after {
  display: none;
}

.countdown-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.countdown-copy .eyeb.on-dark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 5px 14px 5px 10px;
  border-radius: 4px 999px 999px 4px;
  background: rgba(232, 56, 79, .1);
  border: 1px solid rgba(232, 56, 79, .2);
  border-left: 3px solid #e8384f;
  color: #e8384f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  width: fit-content;
}

.countdown-copy .eyeb.on-dark i {
  font-size: 10px;
}

.countdown-copy h2 {
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
}

.countdown-copy h2 .accent {
  color: #e8384f;
}

.countdown-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.countdown-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(232, 56, 79, .08);
  border: 1px solid rgba(232, 56, 79, .15);
  color: rgba(255, 255, 255, .92);
  font-size: 13.5px;
  font-weight: 600;
  width: fit-content;
}

.countdown-date i {
  color: #e8384f;
  font-size: 13px;
}

.countdown-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.countdown-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
}

.countdown-meta span i {
  color: #e8384f;
  font-size: 11px;
}

.countdown-side {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.timer {
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: 0;
  align-items: center;
}

.timer.finished {
  display: none;
}

.countdown-separator {
  width: 2px;
  height: clamp(36px, 4vw, 48px);
  margin: 0 clamp(6px, 1vw, 14px);
  background: rgba(232, 56, 79, .3);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(232, 56, 79, .2);
}

.timer-unit {
  padding: clamp(12px, 1.6vw, 18px) clamp(10px, 1.4vw, 18px) clamp(10px, 1.2vw, 14px);
  text-align: center;
  border-radius: clamp(10px, 1.2vw, 14px);
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(232, 56, 79, .18);
  min-width: clamp(68px, 8vw, 96px);
}

.timer-unit strong {
  display: block;
  font-family: Rajdhani, sans-serif;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.timer-unit span {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e8384f;
}

.timer-message {
  display: none;
  margin: 0;
  padding: 18px 26px;
  border-radius: 14px;
  background: rgba(23, 153, 107, .18);
  border: 1px solid rgba(70, 220, 160, .4);
  color: #7ff0c0;
  font-family: Rajdhani, sans-serif;
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
}

/* -- GAME OPEN / CLOSED STATE -- */
.status-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(20, 24, 32, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(14, 16, 22, .12);
}

.status-pill i {
  font-size: 7px;
}

.status-pill.open i {
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .45;
    transform: scale(.75);
  }
}

.status-pill.open {
  background: rgba(34, 201, 122, 0.15);
  color: #22c97a;
  border: 1px solid rgba(34, 201, 122, 0.25);
}

.status-pill.closed {
  background: rgba(232, 56, 79, 0.15);
  color: #e8384f;
  border: 1px solid rgba(232, 56, 79, 0.25);
}

.status-pill.soon {
  background: rgba(240, 192, 64, 0.15);
  color: #f0c040;
  border: 1px solid rgba(240, 192, 64, 0.25);
}

.game-card.is-closed {
  opacity: .72;
}

.game-card.is-closed .game-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 22, .35);
}

.game-card.is-closed .card-cta {
  background: var(--bg-soft);
  border-color: var(--line);
  color: var(--muted);
}

.game-card.is-closed:hover {
  transform: none;
}

.game-card.is-closed:hover .card-cta {
  background: var(--bg-soft);
  border-color: var(--line);
  color: var(--muted);
}

.window-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.window-note i {
  color: var(--brand);
}

/* -- GAME CARDS (TICKET STYLE) -- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.game-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #1a1f2e, #141820);
  border: 1px solid rgba(232, 56, 79, 0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform .45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .45s, border-color .45s;
  position: relative;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: rgba(232, 56, 79, 0.4);
  box-shadow:
    0 22px 48px rgba(232, 56, 79, 0.15),
    0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ticket punch-holes on both sides of the perforation line */
.game-body::before,
.game-body::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #181d28;
  border: 1px solid var(--line);
  z-index: 3;
}

.game-body::before {
  left: -13px;
  border-left-color: transparent;
}

.game-body::after {
  right: -13px;
  border-right-color: transparent;
}

/* shine sweep across the cover image */
.game-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .28) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform .9s ease;
  pointer-events: none;
}

.game-card:hover .game-image::before {
  transform: translateX(130%);
}

.game-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
}

.game-image.game-fallback {
  background:
    radial-gradient(circle at 28% 26%, rgba(240, 192, 64, .5), transparent 58%),
    radial-gradient(circle at 74% 76%, rgba(255, 220, 100, .42), transparent 55%),
    linear-gradient(135deg, #0e1016, #161a22);
}

.game-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.platform-pill-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(232, 56, 79, 0.12);
  color: #e8384f;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
  border: 1px solid rgba(232, 56, 79, 0.2);
}

.platform-pill-new i {
  font-size: 10px;
}

.game-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 22px;
  position: relative;
  border-top: 2px dashed rgba(232, 56, 79, 0.2);
}

.game-body h3 {
  font-size: 21px;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0;
  overflow-wrap: anywhere;
}

.price-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.price-chips p {
  position: relative;
  margin: 0;
  padding: 11px 14px 9px;
  border-radius: 12px;
  background: rgba(232, 56, 79, 0.08);
  border: 1px solid rgba(232, 56, 79, 0.2);
  overflow: hidden;
}

.price-chips p+p {
  background: rgba(240, 192, 64, 0.08);
  border-color: rgba(240, 192, 64, 0.2);
}

/* tiny ticket notch inside each price stub */
.price-chips p::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #181d28;
  border: 1px solid rgba(232, 56, 79, 0.2);
  transform: translateY(-50%);
}

.price-chips p+p::after {
  border-color: rgba(240, 192, 64, 0.2);
}

.price-chips small {
  display: block;
  margin-bottom: 3px;
  color: #b8ac9e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.price-chips strong {
  font-family: Rajdhani, sans-serif;
  font-size: 19px;
  color: #ffffff;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #b71c1c, #e8384f);
  border: none;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(232, 56, 79, 0.3);
  transition: box-shadow .3s, filter .3s;
}

.card-cta i {
  transition: transform .25s ease;
}

.game-card:hover .card-cta {
  box-shadow: 0 12px 26px rgba(232, 56, 79, 0.45);
  filter: brightness(1.1);
}

.game-card:hover .card-cta i {
  transform: translateX(5px);
}

/* -- NEW FEATURES & REVIEWS SECTIONS -- */

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-spec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 24px;
  border-radius: 20px;
  transition: transform .3s, box-shadow .3s;
}

.feature-spec-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh);
}

.feature-spec-card .f-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-spec-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.feature-spec-card p {
  color: var(--ink-2);
  margin: 0;
  font-size: 14.5px;
}

.prize-banner {
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg, #1a1f2e, #141820);
  border-top: 1px solid rgba(232, 56, 79, 0.15);
  padding: clamp(60px, 8vw, 90px) 0;
  overflow: hidden;
  text-align: center;
}

.prize-banner-overlay {
  display: none;
}

.prize-banner-bg {
  display: block;
}

.prize-banner h2 {
  color: #e8384f;
}

.prize-banner .eyebrow {
  margin: 0 auto 16px;
}

.prize-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prize-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.prize-item {
  background: linear-gradient(145deg, #1a1f2e, #141820);
  border: 1px solid rgba(240, 192, 64, 0.12);
  padding: 30px 24px;
  border-radius: 12px;
  width: clamp(240px, 28vw, 280px);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.prize-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(240, 192, 64, 0.1);
}

.prize-item i {
  font-size: 36px;
  color: #f0c040;
  margin-bottom: 16px;
}

.prize-item strong {
  display: block;
  font-size: 19px;
  margin-bottom: 6px;
  color: #ffffff;
}

.prize-item span {
  font-size: 14px;
  color: #b8ac9e;
}

.phase-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}

.phase-item {
  background: linear-gradient(145deg, #1a1f2e, #141820);
  border: 1px solid rgba(232, 56, 79, 0.15);
  padding: 30px 24px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.phase-item:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 56, 79, 0.35);
  box-shadow: 0 12px 30px rgba(232, 56, 79, 0.1);
}

.phase-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e8384f, #f0c040);
}

.phase-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: rgba(232, 56, 79, 0.12);
  position: absolute;
  top: 12px;
  right: 20px;
  line-height: 1;
  z-index: 1;
}

.phase-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.phase-item p {
  color: #b8ac9e;
  font-size: 14px;
  margin: 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 600px) {
  .prize-highlights {
    flex-direction: column;
    align-items: center;
  }
}


/* -- LEADERSHIP QUOTES -- */
.leader-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.leader-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #1a1f2e, #141820);
  border: 1px solid rgba(232, 56, 79, 0.12);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, border-color .3s;
}

.leader-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 56, 79, 0.35);
  box-shadow: 0 12px 30px rgba(232, 56, 79, 0.12);
}

.leader-photo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 12px;
  background: transparent;
}

.leader-photo-wrap img,
.leader-initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.leader-initials {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(232, 56, 79, 0.15), #181d28);
  color: #e8384f;
  font-family: Rajdhani, sans-serif;
  font-size: 26px;
  font-weight: 700;
  border: 1px solid rgba(232, 56, 79, 0.2);
  box-shadow: 0 4px 10px rgba(232, 56, 79, 0.1);
}

.leader-name-plate {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leader-name-plate strong {
  font-family: Rajdhani, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.leader-name-plate span {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e8384f;
}

.leader-body {
  position: relative;
  padding: 12px 24px 26px;
  flex: 1;
}

.leader-body .quote-icon {
  position: absolute;
  top: -8px;
  right: 20px;
  font-family: Rajdhani, sans-serif;
  font-size: 60px;
  line-height: 1;
  color: rgba(232, 56, 79, 0.08);
  pointer-events: none;
}

.leader-quote {
  position: relative;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: #b8ac9e;
  z-index: 1;
  font-style: italic;
}

@media (min-width: 768px) {
  .leader-card {
    flex-direction: row;
    align-items: stretch;
    max-width: 660px;
  }

  .leader-photo-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-width: 240px;
    padding: 30px 24px;
    border-right: 1px solid var(--line);
    background: var(--surface-2);
  }

  .leader-name-plate {
    align-items: center;
  }

  .leader-body {
    padding: 30px;
    display: flex;
    align-items: center;
  }

  .leader-body .quote-icon {
    top: 20px;
  }

  /* Cascading offset */
  .leader-card:nth-child(1) {
    margin-left: 0;
  }

  .leader-card:nth-child(2) {
    margin-left: 80px;
  }

  .leader-card:nth-child(3) {
    margin-left: 160px;
  }

  .leader-card:nth-child(4) {
    margin-left: 0;
  }
}

@media (min-width: 1024px) {

  /* Exact cascade to match 240px frame width on desktop */
  .leader-card {
    transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, margin .4s;
  }

  .leader-card:nth-child(2) {
    margin-left: 240px;
  }

  .leader-card:nth-child(3) {
    margin-left: 480px;
  }

  .leader-card:nth-child(4) {
    margin-left: 0;
  }
}

/* -- MEMORIES SLIDER -- */
.memories {
  position: relative;
}

.memory-viewport {
  overflow: hidden;
  padding: 14px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.memory-track {
  display: flex;
  gap: 18px;
  width: max-content;
  /* JS drives the transform, one card at a time with a pause between */
  transition: transform 1.15s cubic-bezier(.5, .05, .2, 1);
  will-change: transform;
}

.memory-track>.memory-card {
  width: 300px;
  flex: 0 0 300px;
}

/* fallback when JS is off: plain horizontal scroll */
.no-js .memory-viewport {
  overflow-x: auto;
}

.memory-track::-webkit-scrollbar {
  height: 6px;
}

.memory-track::-webkit-scrollbar-track {
  background: var(--line);
  border-radius: 99px;
}

.memory-track::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
}

.memory-card {
  margin: 0;
  cursor: zoom-in;
  background: linear-gradient(145deg, #1a1f2e, #141820);
  border: 1px solid rgba(232, 56, 79, 0.12);
  border-radius: 14px;
  padding: 10px 10px 12px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}

/* scattered polaroid tilt */
.memory-track>.memory-card:nth-child(odd) {
  transform: rotate(-1.7deg);
}

.memory-track>.memory-card:nth-child(even) {
  transform: rotate(1.5deg);
}

.memory-card:hover {
  transform: rotate(0deg) translateY(-9px);
  box-shadow: 0 20px 44px rgba(232, 56, 79, 0.15);
  z-index: 10;
}

/* washi-tape accent on top */
.memory-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 76px;
  height: 19px;
  transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(120deg, rgba(232, 56, 79, 0.3), rgba(240, 192, 64, 0.35));
  border-inline: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 2;
  pointer-events: none;
}

.memory-card .gallery-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  overflow: hidden;
  background: #0c0e13;
}

.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .65s cubic-bezier(.2, .7, .3, 1);
}

.memory-card:hover img {
  transform: scale(1.07);
}

.memory-card figcaption {
  display: grid;
  gap: 3px;
  padding: 12px 6px 2px;
  background: none;
}

.memory-card figcaption strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: color .25s;
}

.memory-card figcaption span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.memory-card:hover figcaption strong {
  color: var(--brand);
}

.memory-card.placeholder-card {
  cursor: default;
}

.memory-card.placeholder-card .ph-img {
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  border: 2px dashed rgba(232, 56, 79, 0.2);
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 56, 79, 0.08), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(240, 192, 64, 0.08), transparent 55%),
    #141820;
}

.slider-nav {
  display: flex;
  gap: 8px;
}

.slider-nav button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: background .2s, color .2s, border-color .2s;
}

.slider-nav button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.heading-row .section-heading {
  margin-bottom: 0;
}

/* -- SPONSORS (continuous marquee) -- */
.sponsor-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.sponsor-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: sponsor-scroll var(--marquee-duration, 34s) linear infinite;
}

.sponsor-marquee:hover .sponsor-marquee-track {
  animation-play-state: paused;
}

@keyframes sponsor-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.sponsor-marquee .sponsor-card {
  width: 230px;
  flex: 0 0 230px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.sponsor-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 26px 20px;
  background: linear-gradient(145deg, #1a1f2e, #141820);
  border: 1px solid rgba(240, 192, 64, 0.1);
  border-radius: var(--r);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.sponsor-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 192, 64, 0.35);
  box-shadow: 0 12px 30px rgba(240, 192, 64, 0.1);
}

.sponsor-logo-box {
  display: grid;
  place-items: center;
  width: 100%;
  height: 84px;
  padding: 8px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.sponsor-logo-box img {
  max-height: 68px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.sponsor-logo-box .logo-fallback {
  font-family: Rajdhani, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #f0c040;
}

.sponsor-card strong {
  font-size: 15.5px;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.sponsor-tier {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(240, 192, 64, 0.12);
  color: #f0c040;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sponsor-card p {
  margin: 0;
  color: #b8ac9e;
  font-size: 13.5px;
  line-height: 1.6;
}

/* -- STATS BAND -- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.band-card {
  padding: 26px 20px;
  text-align: center;
  background: linear-gradient(145deg, #1a1f2e, #141820);
  border: 1px solid rgba(240, 192, 64, 0.1);
  border-radius: var(--r);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform .25s, border-color .25s;
}

.band-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 192, 64, 0.3);
}

.band-card strong {
  display: block;
  font-family: Rajdhani, sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
  color: #f0c040;
  font-variant-numeric: tabular-nums;
}

.band-card span {
  display: block;
  margin-top: 8px;
  color: #b8ac9e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* -- MISSION / FEATURE CARDS -- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.mission-card {
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.mission-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 164, 32, .25);
  box-shadow: var(--sh);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--brand-soft);
  border: 1px solid rgba(212, 164, 32, .16);
  color: var(--brand);
  font-size: 19px;
}

.icon-badge svg {
  width: 23px;
  height: 23px;
}

.mission-card h3 {
  margin-bottom: 10px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.mission-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* -- STEPS -- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step {
  position: relative;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: Rajdhani, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* -- FEATURE LIST -- */
.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list p {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0;
  padding: 16px 18px;
  background: linear-gradient(145deg, #1a1f2e, #141820);
  border: 1px solid rgba(232, 56, 79, 0.1);
  border-radius: var(--r-sm);
  color: #e8e0d4;
  font-size: 14.5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tick {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(34, 201, 122, 0.12);
  color: #22c97a;
  font-size: 12px;
  font-weight: 800;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 44px);
  align-items: start;
}

/* -- FAQ -- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: linear-gradient(145deg, #1a1f2e, #141820);
  border: 1px solid rgba(232, 56, 79, 0.12);
  border-radius: var(--r-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #ffffff;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: Rajdhani, sans-serif;
  font-size: 24px;
  line-height: 1;
  color: #f0c040;
  transition: transform .25s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: #b8ac9e;
  font-size: 14.5px;
}

/* -- REVIEWS -- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.review-card {
  position: relative;
  padding: 24px;
  background: linear-gradient(145deg, #1a1f2e, #141820);
  border: 1px solid rgba(232, 56, 79, 0.12);
  border-radius: var(--r);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform .25s, border-color .25s;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 56, 79, 0.3);
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8384f, #f0c040);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.review-card p {
  margin: 0;
  color: #b8ac9e;
  font-size: 14.5px;
}

/* -- PAGE HEAD -- */
.page-head {
  padding: clamp(48px, 6vw, 80px) 0 clamp(30px, 4vw, 48px);
  background: linear-gradient(180deg, #141820, #0c0e13);
  border-bottom: 1px solid rgba(232, 56, 79, 0.15);
}

.page-head.center {
  text-align: center;
}

.page-head.center .lead {
  margin-inline: auto;
}

.page-head h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  margin: 0 0 14px;
}

/* -- GALLERY -- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.gallery-card {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(232, 56, 79, 0.12);
  transition: transform .4s cubic-bezier(.2, .7, .3, 1), box-shadow .4s;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(232, 56, 79, 0.12);
  z-index: 5;
}

.gallery-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0c0e13;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(0deg, rgba(10, 12, 16, .9) 0%, transparent 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: all .35s;
}

.gallery-card:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card figcaption strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

.gallery-card figcaption span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  margin-top: 3px;
}

.gallery-media::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.7);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(12, 14, 19, .92);
  color: var(--brand);
  font-size: 16px;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.gallery-card:hover .gallery-media::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* -- LIGHTBOX -- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 14, .92);
  backdrop-filter: blur(6px);
}

.lightbox.open {
  display: grid;
  animation: lb-fade .28s ease;
}

@keyframes lb-fade {
  from {
    opacity: 0;
  }
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  width: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  animation: lb-pop .34s cubic-bezier(.2, .7, .3, 1);
}

@keyframes lb-pop {
  from {
    opacity: 0;
    transform: scale(.94);
  }
}

.lightbox-caption {
  margin-top: 16px;
  max-width: 640px;
  text-align: center;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
}

.lightbox-caption strong {
  display: block;
  font-family: Rajdhani, sans-serif;
  font-size: 21px;
  color: #fff;
  margin-bottom: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, .24);
  transform: scale(1.06);
}

.lightbox-close {
  top: 22px;
  right: 22px;
}

.lightbox-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

@media (max-width: 620px) {

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: scale(1.06);
  }
}


/* -- ADMIN/QR FIXES -- */
/* ---------------------------------------------------------------
   NEXORA � ADMIN/QR/MOBILE FINAL UI FIXES
   --------------------------------------------------------------- */

.admin-topbar {
  display: none;
}

.admin-side .side-label {
  color: #facc15 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

.admin-side-nav a:not(.brand) {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
}

.admin-side-nav a:not(.brand) i {
  width: 20px;
  flex: 0 0 20px;
  text-align: center;
}

@media (min-width: 1025px) {
  .admin-side {
    width: 264px !important;
  }

  .admin-side-nav {
    overflow: visible !important;
  }
}

@media (max-width: 1024px) {
  .admin-topbar {
    display: flex !important;
  }

  .admin-side {
    width: min(88vw, 320px) !important;
  }

  .admin-side-nav {
    padding-bottom: max(28px, env(safe-area-inset-bottom)) !important;
  }
}

/* Public mobile nav rules removed — handled by overrides.css slide-in sidebar */

#games .game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {

  #games .game-grid,
  .register-container~.game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(10px, 1.5vw, 18px) !important;
  }
}

@media (max-width: 420px) {

  #games .game-grid,
  .section.tight .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
}

@media (max-width: 520px) {
  .qr-overlay {
    align-items: stretch !important;
    padding: 0 !important;
  }

  .qr-overlay-card {
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    border: 0 !important;
  }

  .qr-overlay-close {
    top: max(10px, env(safe-area-inset-top)) !important;
    right: 10px !important;
    width: 42px !important;
    height: 42px !important;
  }

  .qr-overlay-head {
    border-radius: 0 !important;
    padding: max(14px, env(safe-area-inset-top)) 56px 12px 14px !important;
  }

  .qr-overlay-badge {
    padding: 4px 9px !important;
    font-size: 9.5px !important;
  }

  .qr-overlay-head h2 {
    margin-top: 6px !important;
    font-size: clamp(17px, 5vw, 22px) !important;
  }

  .qr-overlay-head p {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .qr-overlay-body {
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 10px 12px 0 !important;
  }

  .qr-person {
    gap: 10px !important;
    padding-bottom: 9px !important;
    margin-bottom: 9px !important;
  }

  .qr-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 11px !important;
    font-size: 17px !important;
  }

  .qr-person strong {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .qr-person small {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .qr-line-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .qr-line {
    padding: 6px 7px !important;
    border-radius: 8px !important;
    gap: 0 !important;
  }

  .qr-line span {
    font-size: 8.8px !important;
    letter-spacing: .06em !important;
  }

  .qr-line strong {
    font-size: 11.2px !important;
    line-height: 1.25 !important;
  }

  .qr-proof-link {
    margin-top: 8px !important;
    padding: 7px 10px !important;
    font-size: 11.5px !important;
  }

  .qr-overlay-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 10px 12px 4px !important;
  }

  .qr-btn {
    min-height: 48px !important;
    padding: 10px 8px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
  }

  .qr-overlay-note {
    padding: 6px 12px max(10px, env(safe-area-inset-bottom)) !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .qr-invalid-box {
    min-height: 100%;
    align-content: center;
    padding: 12px !important;
  }
}

.review-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

.review-card {
  display: grid !important;
  gap: 14px !important;
  padding: 18px !important;
  min-width: 0 !important;
}

.review-card p {
  margin: 0 !important;
  line-height: 1.6 !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
}

.review-top {
  min-width: 0 !important;
}

.review-top .avatar {
  flex: 0 0 42px !important;
}

.leadership-section .leader-grid,
.directors-showcase .leader-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

.leadership-section .leader-card,
.leadership-section .leader-card:nth-child(n),
.directors-showcase .leader-card,
.directors-showcase .leader-card:nth-child(n) {
  margin: 0 !important;
  max-width: none !important;
  min-width: 0 !important;
}

.leader-quote {
  line-height: 1.62 !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 620px) {

  .review-grid,
  .leadership-section .leader-grid,
  .directors-showcase .leader-grid {
    grid-template-columns: 1fr !important;
  }

  .review-card {
    padding: 14px !important;
  }
}


/* -- ADMIN PANEL -- */
/* -------------------------------------------
   ADMIN PANEL
   ------------------------------------------- */
.admin-body {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}

.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px 14px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.admin-side .brand {
  margin-bottom: 18px;
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-side .side-label {
  padding: 12px 12px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-side a:not(.brand) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: background .2s, color .2s;
}

.admin-side a:not(.brand) i {
  width: 17px;
  flex-shrink: 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s;
}

.admin-side a:not(.brand):hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.admin-side a:not(.brand):hover i {
  color: var(--brand);
}

.admin-side a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.admin-side a.active i {
  color: var(--brand);
}

.admin-side .logout {
  margin-top: auto;
  color: var(--red) !important;
}

.admin-side .logout i {
  color: var(--red) !important;
}

.admin-side .logout:hover {
  background: var(--red-soft) !important;
}

.admin-main {
  padding: clamp(20px, 3vw, 36px);
  min-width: 0;
}

.admin-head {
  margin-bottom: 26px;
}

.admin-head h1 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 6px;
}

.admin-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: transform .2s, border-color .2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 164, 32, .25);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 18px;
}

.stat-card.paid .stat-icon {
  background: var(--green-soft);
  color: var(--green);
}

.stat-card.unpaid .stat-icon {
  background: var(--red-soft);
  color: var(--red);
}

.stat-card.amber .stat-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.stat-card.cyan .stat-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.stat-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.stat-text strong {
  font-family: Rajdhani, sans-serif;
  font-size: 30px;
  line-height: 1.05;
  color: var(--ink);
}

.stat-text span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.admin-panel {
  margin-top: 22px;
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
}

.admin-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: clamp(19px, 2.2vw, 24px);
}

.admin-panel h2 i {
  color: var(--brand);
  font-size: .85em;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  align-items: end;
}

.admin-form.stacked {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

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

.admin-form .btn {
  min-height: 46px;
}

.field-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.mini-admin-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: transform .2s, border-color .2s;
}

.mini-admin-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 164, 32, .25);
}

.mini-admin-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.mini-admin-card .thumb.contain {
  object-fit: contain;
  padding: 8px;
  background: var(--surface-2);
}

.mini-admin-card strong {
  font-size: 16px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.mini-admin-card .role-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
}

.mini-admin-card p {
  margin: 2px 0 8px;
  color: var(--ink-2);
  font-size: 13.5px;
}

.mini-admin-card form {
  margin-top: auto;
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: background .2s;
}

.bar-row:hover {
  background: var(--brand-soft);
}

.bar-row span {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.bar-row strong {
  font-family: Rajdhani, sans-serif;
  font-size: 22px;
  color: var(--brand);
  flex-shrink: 0;
}

/* -- TABLE -- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 13.8px;
  color: var(--ink-2);
  max-width: 220px;
  overflow-wrap: anywhere;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--surface-2);
}

td.nowrap {
  white-space: nowrap;
}

pre {
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.paid {
  background: var(--green-soft);
  color: var(--green);
}

.badge.unpaid {
  background: var(--red-soft);
  color: var(--red);
}

.badge.under_verification {
  background: #fff3bf;
  color: #8a5a00;
}

.badge.neutral {
  background: var(--brand-soft);
  color: var(--brand);
}

.badge.tier {
  background: var(--amber-soft);
  color: var(--amber);
}

.danger-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--red);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.danger-link:hover {
  background: var(--red-soft);
  border-color: rgba(211, 72, 72, .35);
}

/* -- ADMIN FILTER BAR -- */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 13px;
  align-items: end;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.filter-bar label {
  font-size: 12px;
}

.filter-bar input,
.filter-bar select {
  padding: 10px 12px;
  font-size: 14px;
}

.filter-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.result-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.result-summary .dot-paid,
.result-summary .dot-unpaid,
.result-summary .dot-verification {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.result-summary .dot-paid::before,
.result-summary .dot-unpaid::before,
.result-summary .dot-verification::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.result-summary .dot-paid::before {
  background: var(--green);
}

.result-summary .dot-unpaid::before {
  background: var(--red);
}

.result-summary .dot-verification::before {
  background: #d6a300;
}

/* unpaid rows highlighted red */
tr.row-unpaid td {
  background: rgba(232, 56, 79, 0.06);
}

tr.row-unpaid:hover td {
  background: rgba(232, 56, 79, 0.12);
}

tr.row-unpaid td:first-child {
  box-shadow: inset 3px 0 0 var(--red);
}

tr.row-paid td:first-child {
  box-shadow: inset 3px 0 0 var(--green);
}

tr.row-under_verification td {
  background: #fff9d9;
}

tr.row-under_verification td:first-child {
  box-shadow: inset 3px 0 0 #d6a300;
}

.status-form {
  display: grid;
  gap: 7px;
  min-width: 128px;
}

.status-form select {
  padding: 7px 10px;
  font-size: 13px;
}

.link-out {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
}

.link-out:hover {
  text-decoration: underline;
}

/* -- ADMIN LOGIN -- */
.login-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 40px 18px;
}

.login-card {
  width: min(430px, 100%);
  text-align: center;
}

.login-card .brand-mark {
  width: 54px;
  height: 54px;
  font-size: 20px;
  margin-inline: auto;
}

.login-card h1 {
  font-size: clamp(26px, 3.4vw, 34px);
}

.login-fields {
  display: grid;
  gap: 14px;
  text-align: left;
}

.login-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}


/* -- ADMIN DRAWER + QR OVERLAY -- */
/* ---------------------------------------------------------------
   NEXORA � FINAL RESPONSIVE + ADMIN DRAWER + QR OVERLAY LAYER
   Appended at EOF so it wins every earlier cascade.
   --------------------------------------------------------------- */

/* -------------------------------------------
   1. ADMIN LEFT SLIDE-IN DRAWER
   ------------------------------------------- */
.admin-topbar {
  display: none;
}

.admin-backdrop {
  display: none;
}

.admin-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-side-head .brand {
  flex: 1;
  min-width: 0;
}

.admin-drawer-close {
  display: none;
}

/* legacy toggle button is retired by the drawer */
.admin-sidebar-toggle {
  display: none !important;
}

/* Desktop / large tablet: canonical admin layout � see overrides.css */
@media (min-width: 1025px) {
  .admin-side-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    flex: 1;
  }
}

/* Tablet + mobile: off-canvas drawer that slides in from the LEFT */
@media (max-width: 1024px) {

  .admin-body {
    display: block !important;
    grid-template-columns: none !important;
    padding-top: 60px;
  }

  .admin-topbar {
    display: flex !important;
    align-items: center;
    gap: 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 14px;
    background: #111827;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    z-index: 1200;
  }

  .admin-topbar .brand {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .admin-burger,
  .admin-topbar-out {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(255, 255, 255, .06);
    color: #facc15;
    font-size: 18px;
    cursor: pointer;
  }

  .admin-burger:active,
  .admin-topbar-out:active {
    background: rgba(250, 204, 21, .18);
  }

  .admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 12, .62);
    backdrop-filter: blur(2px);
    z-index: 1250;
    animation: adminFade .2s ease-out;
  }

  .admin-backdrop[hidden] {
    display: none;
  }

  @keyframes adminFade {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .admin-side {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(84vw, 300px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #111827 !important;
    border-right: 1px solid rgba(148, 163, 184, .2) !important;
    border-bottom: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-104%) !important;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1) !important;
    z-index: 1300 !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, .5);
  }

  .admin-side.open {
    transform: translateX(0) !important;
  }

  .admin-side-head {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    position: sticky;
    top: 0;
    background: #111827;
    z-index: 2;
  }

  .admin-side-head .brand {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .admin-drawer-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(255, 255, 255, .06);
    color: #f87171;
    font-size: 17px;
    cursor: pointer;
  }

  .admin-side-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    padding: 12px 12px 26px !important;
    background: transparent !important;
  }

  .admin-side .side-label {
    display: block !important;
    padding: 12px 12px 5px !important;
    font-size: 10px !important;
  }

  .admin-side a:not(.brand) {
    white-space: normal !important;
    padding: 12px 14px !important;
    font-size: 14.5px !important;
    border-radius: 10px !important;
  }

  .admin-side .logout {
    margin-top: 10px !important;
    border-top: 1px solid rgba(148, 163, 184, .14);
    padding-top: 14px !important;
  }

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

  .admin-main {
    padding: 18px 14px 40px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* -------------------------------------------
   2. QR SCANNER � PERMISSIONS + OVERLAY
   ------------------------------------------- */
.qr-permission-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.qr-perm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(148, 163, 184, .07);
}

.qr-perm-item .qr-perm-text {
  flex: 1;
  min-width: 0;
}

.qr-perm-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.qr-perm-item small {
  display: block;
  font-size: 12px;
  opacity: .75;
  overflow-wrap: anywhere;
}

.qr-perm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(250, 204, 21, .16);
  color: #facc15;
  font-size: 16px;
}

.qr-perm-item.granted {
  border-color: rgba(34, 197, 94, .45);
  background: rgba(34, 197, 94, .09);
}

.qr-perm-item.granted .qr-perm-icon {
  background: rgba(34, 197, 94, .18);
  color: #22c55e;
}

.qr-perm-item .btn {
  flex-shrink: 0;
}

/* overlay shell */
.qr-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 6, 12, .78);
  backdrop-filter: blur(5px);
  z-index: 2000;
}

.qr-overlay.open {
  display: flex;
}

body.qr-overlay-lock {
  overflow: hidden;
}

.qr-overlay-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  background: #131a26;
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: qrPop .24s cubic-bezier(.2, .9, .3, 1);
}

@keyframes qrPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.qr-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 4;
  transition: background .2s, transform .2s;
}

.qr-overlay-close:hover {
  background: rgba(239, 68, 68, .85);
  transform: rotate(90deg);
}

.qr-overlay-head {
  padding: 24px 58px 20px 22px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, #1f2937, #111827);
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.qr-overlay-head[data-state="approved"] {
  background: linear-gradient(135deg, #14532d, #052e16);
}

.qr-overlay-head[data-state="rejected"],
.qr-overlay-head[data-state="invalid"] {
  background: linear-gradient(135deg, #7f1d1d, #450a0a);
}

.qr-overlay-head[data-state="already"] {
  background: linear-gradient(135deg, #78350f, #451a03);
}

.qr-overlay-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
}

.qr-overlay-head h2 {
  margin: 10px 0 4px;
  color: #fff;
  font-size: clamp(19px, 5vw, 26px);
  overflow-wrap: anywhere;
}

.qr-overlay-head p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13.5px;
}

.qr-overlay-body {
  padding: 18px 20px 4px;
}

.qr-person {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 15px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(148, 163, 184, .28);
}

.qr-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.qr-person strong {
  display: block;
  font-size: 17px;
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.qr-person small {
  display: block;
  font-size: 12.5px;
  color: rgba(226, 232, 240, .68);
}

.qr-line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.qr-line {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(148, 163, 184, .09);
  border: 1px solid rgba(148, 163, 184, .14);
  min-width: 0;
}

.qr-line span {
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, .6);
}

.qr-line strong {
  font-size: 13.5px;
  color: #f1f5f9;
  overflow-wrap: anywhere;
}

.qr-proof-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, .4);
  background: rgba(56, 189, 248, .1);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 600;
}

.qr-invalid-box {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 16px;
  text-align: center;
  color: #fca5a5;
}

.qr-invalid-box i {
  font-size: 40px;
}

.qr-invalid-box p {
  margin: 0;
  font-size: 14px;
  color: rgba(248, 250, 252, .82);
}

.qr-overlay-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px 20px 6px;
}

.qr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .16s, filter .16s, opacity .16s;
}

.qr-btn i {
  font-size: 17px;
}

.qr-btn.approve {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  box-shadow: 0 8px 22px rgba(22, 163, 74, .3);
}

.qr-btn.reject {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  box-shadow: 0 8px 22px rgba(220, 38, 38, .3);
}

.qr-btn.confirm-payment {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 8px 22px rgba(245, 158, 11, .3);
}

.qr-btn.scan-next {
  background: rgba(148, 163, 184, .15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, .25);
}

.qr-btn.team-approve {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 22px rgba(139, 92, 246, .3);
}

.qr-pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.qr-pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.qr-pay-badge.paid {
  background: rgba(34, 197, 94, .18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .3);
}

.qr-pay-badge.unpaid {
  background: rgba(239, 68, 68, .18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .3);
}

.qr-pay-badge.verifying {
  background: rgba(234, 179, 8, .18);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, .3);
}

.qr-status-chip {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

.qr-status-chip.approved {
  background: rgba(34, 197, 94, .18);
  color: #4ade80;
}

.qr-status-chip.rejected {
  background: rgba(239, 68, 68, .18);
  color: #f87171;
}

.qr-status-chip.pending {
  background: rgba(148, 163, 184, .15);
  color: #94a3b8;
}

.qr-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.qr-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.qr-overlay-note {
  margin: 0;
  padding: 12px 20px 20px;
  font-size: 12.8px;
  line-height: 1.5;
  color: rgba(226, 232, 240, .7);
}

@media (max-width: 520px) {
  .qr-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .qr-overlay-card {
    width: 100%;
    max-height: 94dvh;
    border-radius: 22px 22px 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .qr-overlay-head {
    border-radius: 22px 22px 0 0;
    padding: 22px 56px 18px 18px;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .qr-overlay-body {
    padding: 16px 16px 2px;
  }

  .qr-line-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .qr-overlay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 16px 4px;
    position: sticky;
    bottom: 0;
    background: rgba(15, 18, 28, .95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(148, 163, 184, .12);
  }

  .qr-overlay-actions .qr-btn {
    flex: 1 1 calc(50% - 5px);
    min-height: 48px;
    padding: 12px 12px;
    font-size: 13.5px;
  }

  .qr-overlay-actions .qr-btn.scan-next {
    flex: 1 1 100%;
  }

  .qr-overlay-note {
    padding: 10px 16px 22px;
  }

  .qr-pay-row {
    flex-wrap: wrap;
  }
}

/* live camera feed always fits its frame */
#qr-reader {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0f16;
}

#qr-reader video,
#qr-reader canvas {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: cover;
}

#qr-reader img[alt="Info icon"] {
  display: none !important;
}

/* -------------------------------------------
   3. GAME CARD GRID � 3 PER ROW, EVERYWHERE
   ------------------------------------------- */
.game-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2.2vw, 28px) !important;
  align-items: stretch !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.game-card {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
}

.game-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.game-body .card-cta {
  margin-top: auto;
}

.game-body h3 {
  overflow-wrap: anywhere;
}

/* laptop / small desktop */
@media (max-width: 1180px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* tablet � 2 per row */
@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

/* phone � still 2 per row so the layout matches the laptop feel */
@media (max-width: 620px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 11px !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  .game-body {
    padding: 11px !important;
  }

  .game-body h3 {
    font-size: 14.5px !important;
    line-height: 1.25 !important;
  }

  .game-title-row {
    display: grid !important;
    gap: 6px !important;
  }

  .platform-pill-new,
  .platform-pill {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }

  .price-chips {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .price-chips p {
    padding: 6px 7px !important;
  }

  .price-chips small {
    font-size: 9.5px !important;
  }

  .price-chips strong {
    font-size: 13px !important;
  }

  .card-cta {
    min-height: 34px !important;
    padding: 7px 9px !important;
    font-size: 11.5px !important;
  }

  .window-note {
    font-size: 10.5px !important;
  }

  .status-pill {
    font-size: 9.5px !important;
    padding: 3px 7px !important;
  }

  /* punch holes look broken at small widths */
  .game-body::before,
  .game-body::after {
    display: none !important;
  }
}

/* very small phones � single column, full width */
@media (max-width: 400px) {
  .game-grid {
    grid-template-columns: 1fr !important;
    max-width: none !important;
    margin-inline: 0 !important;
    gap: 12px !important;
  }

  .game-body h3 {
    font-size: 17px !important;
  }
}

/* View All header row */
.heading-row.games-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.heading-row.games-heading-row .section-heading {
  flex: 1;
  min-width: 240px;
  margin-bottom: 0;
  text-align: left;
}

.view-all-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .heading-row.games-heading-row {
    display: grid;
    gap: 14px;
    justify-items: stretch;
    text-align: center;
  }

  .heading-row.games-heading-row .section-heading {
    min-width: 0;
    text-align: center;
  }

  .view-all-btn {
    justify-self: center;
    width: min(100%, 280px);
    justify-content: center;
  }
}

/* -------------------------------------------
   4. COVER / HERO IMAGE FITS ITS FRAME
   ------------------------------------------- */
.hero {
  min-height: clamp(400px, 62vh, 620px) !important;
  overflow: hidden !important;
}

.hero-slider {
  overflow: hidden !important;
}

.hero-slide {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #06080c !important;
}

.hero-inner {
  min-width: 0;
}

.hero-title,
.hero-content h1 {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {

  /* on portrait screens a cover crop cuts faces off � pull focus to the top */
  .hero-slide {
    background-position: center 28% !important;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 470px !important;
    padding: 52px 0 64px !important;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 10, 14, .58) 0%, rgba(8, 10, 14, .80) 55%, rgba(8, 10, 14, .93) 100%) !important;
  }

  .hero-acts {
    display: grid !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .hero-acts .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  .hero-dots {
    bottom: 14px !important;
  }
}

/* prize banner image frame � canonical in overrides.css */

/* gallery / memory images never stretch */
.gallery-media img,
.memory-card img,
.leader-photo-wrap img,
.reg-hero-poster img,
.sponsor-logo-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.sponsor-logo-box img {
  object-fit: contain !important;
}

.gallery-media,
.memory-card .gallery-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d1119;
}

/* -------------------------------------------
   5. MESSAGES / DIRECTORS � SAME VIEW ON MOBILE
   ------------------------------------------- */
.review-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 14px !important;
  align-items: start !important;
}

.review-card {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.review-card p {
  overflow-wrap: anywhere !important;
  white-space: pre-line;
}

.review-top {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  min-width: 0 !important;
}

.review-top .avatar {
  flex-shrink: 0 !important;
}

.leader-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: clamp(14px, 2.4vw, 26px) !important;
  align-items: stretch !important;
}

.leader-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.leader-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.leader-body {
  flex: 1 1 auto;
}

.leader-quote {
  overflow-wrap: anywhere !important;
}

@media (max-width: 760px) {

  .review-grid,
  .leader-grid {
    grid-template-columns: 1fr !important;
  }

  .leader-photo-wrap {
    aspect-ratio: 16 / 10;
  }
}

/* -------------------------------------------
   6. GLOBAL OVERFLOW GUARDS
   ------------------------------------------- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  min-width: 0;
}

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(12px, 4vw, 24px);
}

pre,
code,
.account,
.footer-contact a,
.qr-line strong,
.reg-card-details strong,
.reg-card-player p {
  overflow-wrap: anywhere;
}

/* -------------------------------------------
   7. ADMIN CONTENT RESPONSIVENESS
   ------------------------------------------- */
@media (max-width: 1024px) {

  .admin-panel {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .stat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 11px !important;
  }

  .admin-form,
  .admin-card-grid,
  .compact-admin-grid,
  .prize-admin-grid,
  .mini-form-grid {
    grid-template-columns: 1fr !important;
    gap: 13px !important;
  }

  .filter-bar {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    gap: 12px !important;
  }

  .filter-actions {
    grid-column: 1 / -1 !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  .filter-actions .btn {
    flex: 1 1 140px !important;
    justify-content: center !important;
  }

  .result-summary {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    align-items: center !important;
  }

  .result-summary .btn {
    margin-left: 0 !important;
    flex: 1 1 160px !important;
    justify-content: center !important;
  }

  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .reg-card-main {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 12px !important;
  }

  .reg-card-details {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: 10px !important;
  }

  .reg-card-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .reg-card-status {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 7px !important;
  }

  .qr-scan-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 560px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .reg-card-main,
  .reg-card-details {
    grid-template-columns: 1fr 1fr !important;
  }

  .reg-card-actions .mini-action,
  .reg-card-actions .danger-link {
    flex: 1 1 calc(50% - 8px) !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 11.5px !important;
  }

  .admin-head h1 {
    font-size: clamp(20px, 6vw, 27px) !important;
  }
}

@media (max-width: 400px) {

  .reg-card-main,
  .reg-card-details {
    grid-template-columns: 1fr !important;
  }
}

/* -------------------------------------------
   8. PUBLIC PAGES � ABOUT / GALLERY / REGISTER
   ------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: clamp(10px, 2vw, 20px) !important;
}

@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .gallery-card figcaption strong {
    font-size: 13.5px !important;
  }

  .gallery-card figcaption span {
    font-size: 11.5px !important;
  }
}

@media (max-width: 380px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
}

/* about page */
@media (max-width: 760px) {

  .about-copy-panel,
  .form-panel {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .feature-list p {
    font-size: 13.5px !important;
    overflow-wrap: anywhere !important;
  }

  .faq-item summary {
    font-size: 14px !important;
    padding-right: 26px !important;
  }

  .faq-item p {
    font-size: 13px !important;
  }

  .page-head h1 {
    font-size: clamp(25px, 7.5vw, 38px) !important;
  }

  .page-head .lead {
    font-size: 14px !important;
  }
}

/* register form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

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

.register-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
}

.register-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 980px) {
  .register-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .register-process {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .register-form-panel,
  .register-side {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .form-title {
    font-size: 15.5px !important;
  }

  .register-form input,
  .register-form select,
  .register-form textarea,
  .form-panel input,
  .form-panel select,
  .form-panel textarea {
    font-size: 16px !important;
    /* 16px stops iOS from zooming the page on focus */
    padding: 11px 13px !important;
  }

  .submit-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .reg-hero-inner {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    justify-items: center !important;
  }

  .reg-hero-tags {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .reg-hero-tags span {
    font-size: 12px !important;
  }

  .member-box {
    padding: 12px !important;
  }
}

/* footer + nav polish */
@media (max-width: 760px) {
  .footer-topline {
    display: grid !important;
    gap: 14px !important;
    text-align: center !important;
    justify-items: center !important;
  }

  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .footer-contact a,
  .footer-contact span {
    overflow-wrap: anywhere !important;
    font-size: 13px !important;
  }

  .ticker span {
    font-size: 12px !important;
  }

  .section-heading h2 {
    font-size: clamp(21px, 6vw, 30px) !important;
  }

  .section-heading p {
    font-size: 13.5px !important;
  }

  .phase-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .feature-card-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .phase-timeline {
    grid-template-columns: 1fr !important;
  }
}

/* tap targets never smaller than a thumb */
@media (max-width: 760px) {

  .btn,
  .mini-action,
  .danger-link,
  .icon-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }
}



/* -- FINAL ADMIN OVERRIDES -- */
/* ---------------------------------------------------------------
   NEXORA � ABSOLUTE FINAL ADMIN / QR / MOBILE OVERRIDES
   --------------------------------------------------------------- */

.admin-topbar {
  display: none;
}

.admin-side .side-label {
  color: #facc15 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

.admin-side-nav a:not(.brand) {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
}

.admin-side-nav a:not(.brand) i {
  width: 20px;
  flex: 0 0 20px;
  text-align: center;
}

@media (min-width: 1025px) {
  .admin-side {
    width: 264px !important;
  }
}

@media (max-width: 1024px) {
  .admin-topbar {
    display: flex !important;
  }

  .admin-side {
    width: min(88vw, 320px) !important;
  }
}

/* Public mobile nav rules removed — handled by overrides.css slide-in sidebar */

#games .game-grid,
.section.tight .game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {

  #games .game-grid,
  .section.tight .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 420px) {

  #games .game-grid,
  .section.tight .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .qr-overlay {
    align-items: stretch !important;
    padding: 0 !important;
  }

  .qr-overlay-card {
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    border: 0 !important;
  }

  .qr-overlay-close {
    top: max(10px, env(safe-area-inset-top)) !important;
    right: 10px !important;
    width: 42px !important;
    height: 42px !important;
  }

  .qr-overlay-head {
    border-radius: 0 !important;
    padding: max(14px, env(safe-area-inset-top)) 56px 12px 14px !important;
  }

  .qr-overlay-badge {
    padding: 4px 9px !important;
    font-size: 9.5px !important;
  }

  .qr-overlay-head h2 {
    margin-top: 6px !important;
    font-size: clamp(17px, 5vw, 22px) !important;
  }

  .qr-overlay-head p {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .qr-overlay-body {
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 10px 12px 0 !important;
  }

  .qr-person {
    gap: 10px !important;
    padding-bottom: 9px !important;
    margin-bottom: 9px !important;
  }

  .qr-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 11px !important;
    font-size: 17px !important;
  }

  .qr-person strong {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .qr-person small {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .qr-line-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .qr-line {
    padding: 6px 7px !important;
    border-radius: 8px !important;
    gap: 0 !important;
  }

  .qr-line span {
    font-size: 8.8px !important;
    letter-spacing: .06em !important;
  }

  .qr-line strong {
    font-size: 11.2px !important;
    line-height: 1.25 !important;
  }

  .qr-proof-link {
    margin-top: 8px !important;
    padding: 7px 10px !important;
    font-size: 11.5px !important;
  }

  .qr-overlay-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 10px 12px 4px !important;
  }

  .qr-btn {
    min-height: 48px !important;
    padding: 10px 8px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
  }

  .qr-overlay-note {
    padding: 6px 12px max(10px, env(safe-area-inset-bottom)) !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .qr-invalid-box {
    min-height: 100%;
    align-content: center;
    padding: 12px !important;
  }
}

.review-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

.review-card {
  display: grid !important;
  gap: 14px !important;
  padding: 18px !important;
  min-width: 0 !important;
}

.review-card p {
  margin: 0 !important;
  line-height: 1.6 !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
}

.review-top {
  min-width: 0 !important;
}

.review-top .avatar {
  flex: 0 0 42px !important;
}

.leadership-section .leader-grid,
.directors-showcase .leader-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

.leadership-section .leader-card,
.leadership-section .leader-card:nth-child(n),
.directors-showcase .leader-card,
.directors-showcase .leader-card:nth-child(n) {
  margin: 0 !important;
  max-width: none !important;
  min-width: 0 !important;
}

.leader-quote {
  line-height: 1.62 !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 620px) {

  .review-grid,
  .leadership-section .leader-grid,
  .directors-showcase .leader-grid {
    grid-template-columns: 1fr !important;
  }

  .review-card {
    padding: 14px !important;
  }
}

/* TRUE EOF UI OVERRIDES - keep last (cleaned: see overrides.css for canonical admin) */

@media (max-width: 760px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
  }

  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    left: auto !important;
    width: 280px !important;
    height: 100dvh !important;
    max-height: none !important;
    bottom: 0 !important;
    background: linear-gradient(180deg, #b71c1c, #911515) !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 80px 24px 30px !important;
    z-index: 1600 !important;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5) !important;
  }

  .nav-links.open {
    right: 0 !important;
  }

  .nav-links a {
    font-size: 17px !important;
    padding: 12px 18px !important;
    width: 100% !important;
    text-align: center !important;
  }

  .nav-links .nav-cta {
    margin-top: 20px !important;
  }
}

#games .game-grid,
body:not(.admin-body) .section.tight .game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 860px) {

  #games .game-grid,
  body:not(.admin-body) .section.tight .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 390px) {

  #games .game-grid,
  body:not(.admin-body) .section.tight .game-grid {
    grid-template-columns: 1fr !important;
  }
}

.leadership-section .leader-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {
  .leadership-section .leader-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .leadership-section .leader-grid {
    grid-template-columns: 1fr !important;
  }

  .leadership-section .leader-card {
    display: grid !important;
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) !important;
  }
}

.about-story-grid,
.about-rules-grid,
.about-contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .86fr) !important;
}

@media (max-width: 860px) {

  .about-story-grid,
  .about-rules-grid,
  .about-contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Duplicate prize split-banner final block removed � canonical in overrides.css */

.permission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 9px; margin: 14px 0; }
.permission-grid label { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #d8dee8; border-radius: 6px; font-weight: 600; }
.permission-section { grid-column: 1 / -1; margin-top: 12px; padding-top: 12px; border-top: 1px solid #dbe2ea; }
.permission-section h3 { margin: 0; color: #111827; font-size: 1rem; }

.payment-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.payment-summary-grid > div { padding: 11px; border: 1px solid #dbe2ea; border-radius: 6px; background: #f8fafc; }
.payment-summary-grid span { display: block; color: #475569; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.payment-summary-grid strong { display: block; margin-top: 5px; color: #111827; font-size: 1.05rem; }
.payment-summary-grid .payment-paid { color: #13734d; }
.payment-summary-grid .payment-remaining { color: #b45309; }
@media (max-width: 620px) { .payment-summary-grid { grid-template-columns: 1fr; } }

.reg-payment-mini { display: grid; gap: 4px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #dbe2ea; color: #475569; font-size: .78rem; }
.reg-payment-mini strong { color: #111827; font-size: .84rem; }
.reg-payment-mini .paid-value { color: #13734d; }
.reg-payment-mini .remaining-value { color: #b45309; }

.game-registration-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; border-bottom: 1px solid #dbe2ea; }
.game-registration-tab { flex: 0 0 auto; border: 1px solid #cbd5e1; border-radius: 6px; padding: 9px 12px; background: #fff; color: #111827; font: 800 0.9rem inherit; cursor: pointer; }
.game-registration-tab.active { background: #86192a; border-color: #86192a; color: #fff; }
.game-registration-tab span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: .72rem; }
.game-registration-panel { display: none; padding-top: 18px; }
.game-registration-panel.active { display: block; }
.game-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.game-panel-heading h2 { margin: 0; color: #111827; }
.game-panel-heading > span { color: #475569; font-weight: 800; }
.game-registration-table table { min-width: 920px; }
.game-registration-table td { vertical-align: top; white-space: normal; }
.game-registration-table small { display: block; margin-top: 4px; color: #64748b; font-weight: 600; }
.game-registration-table .ticket-cell { font-family: Consolas, monospace; font-size: .78rem; white-space: nowrap; }
.registration-options { display: flex; flex-wrap: wrap; gap: 6px; min-width: 180px; }
.registration-options .mini-action { white-space: nowrap; }
.game-registration-table tr.row-paid > td { background: #e4f7eb !important; }
.game-registration-table tr.row-unpaid > td { background: #ffe5e7 !important; }
.game-registration-table tr.row-under_verification > td { background: #fff3bf !important; }
.inline-payment-form select { min-width: 100px; border: 1px solid #cbd5e1; border-radius: 5px; padding: 6px 8px; color: #111827; font-weight: 800; background: #fff; }
.ajax-feedback { position: sticky; top: 12px; z-index: 5; margin: 0 0 14px; padding: 10px 13px; border: 1px solid #8fd1a8; border-radius: 6px; background: #e8f8ee; color: #155c34; font-weight: 800; box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
.ajax-feedback.error { border-color: #f0a3a8; background: #fff0f1; color: #a32132; }

/* Admin forms need high-contrast labels and typed values, not gold text. */
.admin-main .admin-panel label,
.admin-main .admin-panel .permission-grid label,
.admin-main .filter-bar label {
  color: #111827 !important;
  font-weight: 800 !important;
}
.admin-main .admin-panel input,
.admin-main .admin-panel select,
.admin-main .admin-panel textarea,
.admin-main .filter-bar input,
.admin-main .filter-bar select {
  color: #111827 !important;
  font-weight: 700 !important;
  background-color: #ffffff !important;
}
.admin-main .admin-panel input::placeholder,
.admin-main .admin-panel textarea::placeholder,
.admin-main .filter-bar input::placeholder { color: #64748b !important; font-weight: 600; opacity: 1; }
.admin-main .admin-panel select option,
.admin-main .filter-bar select option { color: #111827; background: #ffffff; font-weight: 700; }

/* QR verification fields intentionally use the same compact layout on desktop and mobile. */
.qr-overlay-card .qr-decision-fields { display: grid; }
.qr-overlay-card .qr-btn.scan-next { background: #334155; color: #fff; }
.qr-overlay-card[data-state="invalid"] .qr-decision-fields,
.qr-overlay-card[data-state="invalid"] .qr-overlay-actions,
.qr-overlay-card[data-state="camera"] .qr-decision-fields,
.qr-overlay-card[data-state="camera"] .qr-overlay-actions {
  display: none !important;
}
@media (max-width: 640px) {
  .qr-overlay-card .qr-decision-fields { grid-template-columns: 1fr; }
  .qr-overlay-card .qr-overlay-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  .qr-overlay-card .qr-overlay-actions .qr-btn {
    flex: 1 1 calc(50% - 5px);
  }
  .qr-overlay-card .qr-overlay-actions .qr-btn.scan-next {
    flex: 1 1 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESTORED ADMIN PANEL CSS — desktop + mobile
   ═══════════════════════════════════════════════════════════ */

/* ── Flash messages (centered modal popup) ── */
.flash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.flash-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.flash-modal {
  position: relative;
  max-width: 440px;
  width: 90%;
  padding: 28px 32px 24px;
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transform: translateY(20px) scale(.95);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.flash-overlay.is-visible .flash-modal {
  transform: translateY(0) scale(1);
}
.flash-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: .45;
  transition: opacity .2s;
  padding: 4px 6px;
}
.flash-modal-close:hover { opacity: 1; }
.flash-modal-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.flash-modal-body { flex: 1; min-width: 0; }
.flash-modal-title { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.flash-modal-msg { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 500; }

/* category colours */
.flash-modal.success {
  background: #ecfdf5;
  color: #14532d;
  border: 1px solid #86efac;
}
.flash-modal.success .flash-modal-icon {
  background: #dcfce7;
  color: #16a34a;
}
.flash-modal.danger {
  background: #fef2f2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}
.flash-modal.danger .flash-modal-icon {
  background: #fee2e2;
  color: #dc2626;
}
.flash-modal.warning {
  background: #fffbeb;
  color: #78350f;
  border: 1px solid #fde68a;
}
.flash-modal.warning .flash-modal-icon {
  background: #fef3c7;
  color: #d97706;
}
.flash-modal.info {
  background: #eff6ff;
  color: #1e3a5f;
  border: 1px solid #93c5fd;
}
.flash-modal.info .flash-modal-icon {
  background: #dbeafe;
  color: #2563eb;
}

/* auto-dismiss progress bar */
.flash-modal::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: .2;
  width: 100%;
  transform-origin: left;
  animation: flash-progress 10s linear forwards;
}
.flash-modal.is-paused::after { animation-play-state: paused; }
@keyframes flash-progress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── Empty state ── */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted, #94a3b8);
  font-size: 15px;
  border: 1px dashed var(--line, #e2e8f0);
  border-radius: var(--r, 14px);
  background: var(--surface-2, #f8fafc);
}
.empty i {
  display: block;
  font-size: 32px;
  margin-bottom: 10px;
  opacity: .5;
}

/* ── Form element base styles (admin) ── */
.admin-form label,
.admin-form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form input[type="url"],
.admin-form input[type="date"],
.admin-form input[type="search"],
.admin-form input[type="tel"],
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font: 700 14px/1.5 inherit;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus {
  outline: none;
  border-color: var(--brand, #d4a420);
  box-shadow: 0 0 0 3px rgba(212, 164, 32, .18);
}
.admin-form select,
.admin-form-grid select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.admin-form textarea,
.admin-form-grid textarea {
  min-height: 100px;
  resize: vertical;
}
.admin-form .field-hint,
.admin-form-grid .field-hint {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-top: 4px;
}

/* ── Label.check (checkbox labels) ── */
label.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13.5px;
}
label.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand, #d4a420);
}

/* ── Table wrapper ── */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--r-sm, 8px);
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}
.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.admin-table-wrap th,
.admin-table-wrap td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: #111827;
}
.admin-table-wrap th {
  background: #f8fafc;
  font-weight: 700;
  white-space: nowrap;
  color: #334155;
}

/* ── Compact admin grid (games, leaders) ── */
.compact-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.compact-manage-card {
  position: relative;
}
.compact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.compact-card-head h3,
.compact-card-head strong {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.compact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.compact-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
}
.compact-prices span {
  color: #475569;
}
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* ── Mini admin card ── */
.mini-admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--r-sm, 8px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-admin-card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-xs, 6px);
  object-fit: cover;
  background: #f1f5f9;
}
.mini-admin-card .thumb.contain {
  object-fit: contain;
  background: transparent;
}
.mini-admin-card strong {
  font-size: 14px;
  color: #111827;
}

/* ── Admin avatar (leaders) ── */
.admin-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,164,32,.15), rgba(232,56,79,.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #d4a420;
  flex-shrink: 0;
}
.leader-admin-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}
.leader-admin-summary .leader-info {
  flex: 1;
  min-width: 0;
}
.admin-quote-preview {
  font-size: 13px;
  color: #64748b;
  font-style: italic;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Inline edit (hidden by default) ── */
.admin-inline-edit {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: #f8fafc;
  border-radius: var(--r-xs, 6px);
}
.admin-inline-edit.is-open {
  display: block;
}
.admin-inline-edit input,
.admin-inline-edit textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: var(--r-xs, 6px);
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 13px;
}

/* ── Game admin thumb ── */
.game-admin-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-xs, 6px);
  object-fit: cover;
}

/* ── Sponsor admin form ── */
.sponsor-admin-form {
  max-width: 520px;
}

/* ── Admin gallery ── */
.admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.admin-gallery-card {
  position: relative;
  border-radius: var(--r-sm, 8px);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

/* ── Prize pool admin ── */
.prize-admin-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.prize-admin-panel {
  padding: 0;
}
.prize-admin-form {
  padding: 20px;
}
.prize-admin-preview {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 20px);
}
.prize-admin-preview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--r, 14px);
  padding: 20px;
}
.preview-copy {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ── Admin form grid ── */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  align-items: end;
}

/* ── Tiny button ── */
.tiny-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: var(--r-xs, 6px);
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.tiny-btn:hover {
  background: #f1f5f9;
  color: #111827;
}
.tiny-btn.danger {
  color: #e8384f;
  border-color: rgba(232, 56, 79, .3);
}
.tiny-btn.danger:hover {
  background: rgba(232, 56, 79, .08);
}

/* ── Badge color variants ── */
.badge.green {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.badge.red {
  background: #ffe5e7;
  color: #a32132;
  border: 1px solid #f0a3a8;
}
.badge.cyan {
  background: #cffafe;
  color: #0e7490;
  border: 1px solid #67e8f9;
}
.badge.amber {
  background: #fff3bf;
  color: #92400e;
  border: 1px solid #f0d68a;
}

/* ── Registration view page ── */
.pro-view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.pro-view-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--r-sm, 8px);
  padding: 20px;
}
.pro-view-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111827;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.pro-detail-list {
  display: grid;
  gap: 8px;
}
.pro-detail-list dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #64748b;
  margin: 0;
}
.pro-detail-list dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.pro-member-list {
  display: grid;
  gap: 6px;
}
.pro-member-list .member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 13px;
}
.ticket-qr-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.proof-preview {
  border-radius: var(--r-sm, 8px);
  overflow: hidden;
  max-width: 280px;
}
.proof-preview img {
  width: 100%;
  display: block;
}

/* ── Registration proof page ── */
.proof-view-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--r, 14px);
  padding: 24px;
}
.proof-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.proof-image-frame {
  border-radius: var(--r-sm, 8px);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.proof-image-frame img {
  width: 100%;
  display: block;
}
.proof-details {
  display: grid;
  gap: 12px;
}
.proof-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ── Registration view / ticket panel ── */
.registration-view-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--r, 14px);
  padding: 24px;
}
.view-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.pro-ticket-view {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--r, 14px);
  overflow: hidden;
}
.pro-ticket-hero {
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-bottom: 1px solid #e2e8f0;
}
.pro-ticket-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pro-ticket-side {
  padding: 20px;
}
.pro-ticket-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ── Stat grid (dashboard) ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--r-sm, 8px);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(212,164,32,.12);
  color: #d4a420;
}
.stat-icon.cyan {
  background: rgba(6, 182, 212, .12);
  color: #06b6d4;
}
.stat-icon.amber {
  background: rgba(245, 158, 11, .12);
  color: #f59e0b;
}
.stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-text strong {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.stat-text span {
  font-size: 12px;
  color: #64748b;
}

/* ── Bar list (dashboard recent activity) ── */
.bar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: var(--r-xs, 6px);
  font-size: 13px;
}

/* ── Field group header ── */
.field-group-header {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 16px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

/* ── Form two-col ── */
.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── Permission grid (roles) ── */
.permission-section {
  margin-bottom: 16px;
}
.permission-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.permission-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: var(--r-xs, 6px);
  font-size: 13px;
  cursor: pointer;
}

/* ── Game registration rows (NOT flex on tr — use table styling) ── */
.game-registration-row {
  padding: 12px 14px;
  transition: background .15s;
}
.game-registration-row:hover {
  background: var(--surface-2, #f1f5f9);
}

/* ── Game panel heading (keep flex) ── */
.game-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

/* ── Registration edit form ── */
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.registration-edit-form .admin-form {
  max-width: 760px;
}

/* ── Admin responsive ── */
@media (max-width: 1024px) {
  .compact-admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .prize-admin-grid {
    grid-template-columns: 1fr;
  }
  .prize-admin-preview {
    position: static;
  }
  .proof-view-grid {
    grid-template-columns: 1fr;
  }
  .pro-view-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .compact-admin-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-two-col {
    grid-template-columns: 1fr;
  }
  .permission-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}