:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Syne', 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --header-h: 72px;
  --max-w: 1240px;
  --gold: #e4c06b;
  --gold-soft: #f5e6bc;
  --gold-deep: #b8943f;
  --astro-blue: #4cc9f0;
  --navy: #050810;
  --surface-glass: rgba(13, 21, 40, 0.72);
}

body.theme-light {
  color-scheme: light;
  --bg: #f2f5fb;
  --bg-page: #f2f5fb;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #0b1220;
  --text-muted: #55607a;
  --border: rgba(11, 18, 32, 0.1);
  --border-hover: rgba(11, 18, 32, 0.2);
  --accent: var(--gold-deep);
  --accent-hover: var(--gold-deep);
  --accent-soft: color-mix(in srgb, var(--gold) 18%, transparent);
  --accent-gradient: linear-gradient(
    135deg,
    color-mix(in srgb, var(--gold) 70%, #ffffff) 0%,
    var(--gold) 45%,
    var(--gold-deep) 100%
  );
  --btn-primary-text: #0b1220;
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-text: #0b1220;
  --header-text-muted: rgba(11, 18, 32, 0.68);
  --header-hover-bg: rgba(11, 18, 32, 0.06);
  --promo-bg: #0b1220;
  --pill-active-bg: #0b1220;
  --pill-active-text: #ffffff;
  --hero-bg: linear-gradient(135deg, #0a1020 0%, #14203d 48%, #0a1020 100%);
  --hero-border: rgba(11, 18, 32, 0.12);

  /* Container outline system */
  --ring: rgba(11, 18, 32, 0.09);
  --ring-strong: rgba(11, 18, 32, 0.16);
  --ring-accent: color-mix(in srgb, var(--gold-deep) 34%, transparent);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --elev: 0 1px 2px rgba(11, 18, 32, 0.05), 0 12px 28px rgba(11, 18, 32, 0.07);
  --elev-hover: 0 2px 4px rgba(11, 18, 32, 0.06), 0 20px 40px rgba(11, 18, 32, 0.11);
  --card-glow: 0 0 0 1px var(--ring), var(--edge), var(--elev);

  --success: #166534;
  --warning: #b45309;
  --error: #b91c1c;
}

body.theme-dark {
  color-scheme: dark;
  --bg: #050810;
  --bg-page: #050810;
  --surface: rgba(13, 21, 40, 0.82);
  --surface-strong: #101a33;
  --text: #f4f7ff;
  --text-muted: #9aa8c7;
  --border: rgba(148, 163, 184, 0.16);
  --border-hover: color-mix(in srgb, var(--gold) 35%, transparent);
  --accent: var(--gold);
  --accent-hover: var(--gold-soft);
  --accent-soft: color-mix(in srgb, var(--gold) 12%, transparent);
  --accent-gradient: linear-gradient(
    135deg,
    color-mix(in srgb, var(--gold) 70%, #ffffff) 0%,
    var(--gold) 45%,
    var(--gold-deep) 100%
  );
  --btn-primary-text: #0b1220;
  --header-bg: rgba(8, 12, 24, 0.78);
  --header-text: #f4f7ff;
  --header-text-muted: rgba(244, 247, 255, 0.86);
  --header-hover-bg: rgba(255, 255, 255, 0.08);
  --promo-bg: #03050a;
  --pill-active-bg: linear-gradient(135deg, #f0d489 0%, #c9a24e 100%);
  --pill-active-text: #0b1220;
  --hero-bg: linear-gradient(135deg, rgba(8, 13, 28, 0.96) 0%, rgba(16, 26, 51, 0.92) 55%, rgba(8, 13, 28, 0.96) 100%);
  --hero-border: rgba(228, 192, 107, 0.2);

  /* Container outline system */
  --ring: rgba(163, 184, 224, 0.16);
  --ring-strong: rgba(163, 184, 224, 0.28);
  --ring-accent: color-mix(in srgb, var(--gold) 40%, transparent);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --elev: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 44px rgba(0, 0, 0, 0.42);
  --elev-hover: 0 2px 6px rgba(0, 0, 0, 0.45), 0 26px 56px rgba(0, 0, 0, 0.5);
  --card-glow: 0 0 0 1px var(--ring), var(--edge), var(--elev);

  --success: #34d399;
  --warning: #fbbf24;
  --error: #f87171;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

body.theme-dark {
  background: transparent;
}

.atmosphere-host {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-page);
}

.atmosphere-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.atmosphere-host.is-video-active .atmosphere-video {
  opacity: var(--atmosphere-video-opacity, 0.4);
}

.atmosphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.atmosphere-host.is-video-active .atmosphere {
  opacity: 0;
  visibility: hidden;
}

.atmosphere-host.is-video-active::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 16, 0.35) 0%,
    rgba(5, 8, 16, 0.12) 40%,
    rgba(5, 8, 16, 0.2) 100%
  );
}

body.theme-light .atmosphere-host.is-video-active .atmosphere-video {
  opacity: calc(var(--atmosphere-video-opacity, 0.4) * 0.55);
}

body.theme-light .atmosphere-host.is-video-active::after {
  background: linear-gradient(
    180deg,
    rgba(242, 245, 251, 0.5) 0%,
    rgba(242, 245, 251, 0.25) 45%,
    rgba(242, 245, 251, 0.4) 100%
  );
}

.site-header,
main,
.site-footer,
.promo-bar {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--max-w), calc(100% - 32px));
  margin-inline: auto;
}

/* Promo bar */
.promo-bar {
  background: var(--promo-bg);
  color: #fff;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(228, 192, 107, 0.18);
}

.promo-track {
  display: flex;
  width: max-content;
  --promo-sets: 2;
  --promo-duration: 40s;
  animation: promo-scroll var(--promo-duration) linear infinite;
}

/* Generous spacing so a single set of messages is wider than the viewport —
   otherwise the marquee's duplicate set is on screen at the same time as the
   original and reads as repeated text. */
.promo-item {
  white-space: nowrap;
  padding: 8px clamp(28px, 5vw, 72px);
}

.promo-item::after {
  content: '•';
  margin-left: 28px;
  opacity: 0.5;
}

@keyframes promo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    /* Shift by exactly one set so the loop point is invisible. */
    transform: translateX(calc(-100% / var(--promo-sets)));
  }
}

.narrow {
  max-width: 640px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  height: auto;
  padding: 16px 0 0;
  backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
  padding: 0 20px;
  background: var(--header-bg);
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--ring), var(--edge), var(--elev);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--header-text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--accent);
  background: var(--header-hover-bg);
}

.header-nav .btn-ghost {
  color: var(--header-text-muted);
}

.header-nav .btn-ghost:hover {
  background: var(--header-hover-bg);
  color: var(--header-text);
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.header-btn-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  color: currentColor;
}

.header-btn-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.header-btn-label {
  white-space: nowrap;
}

.header-btn-chevron {
  display: inline-flex;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-left: -2px;
  color: currentColor;
  opacity: 0.75;
}

.header-btn-chevron svg {
  display: block;
  width: 100%;
  height: 100%;
}

.header-account {
  position: relative;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1200;
  width: min(260px, calc(100vw - 24px));
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--ring);
  background: rgba(10, 16, 32, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(140%);
}

body.theme-light .account-menu {
  background: rgba(248, 250, 255, 0.96);
  box-shadow: 0 18px 48px rgba(16, 24, 48, 0.14), 0 0 0 1px rgba(16, 24, 48, 0.06);
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--header-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  outline: none;
  background: var(--header-hover-bg);
  color: var(--accent);
}

.account-menu-item-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--gold-soft);
}

.account-menu-item-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.account-menu-separator {
  height: 1px;
  margin: 6px 8px;
  background: var(--ring);
}

@media (max-width: 768px) {
  .account-menu {
    display: none !important;
  }
}

body.account-sheet-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

.account-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: rgba(6, 10, 22, 0.58);
  opacity: 0;
  transition: opacity 0.22s ease;
  touch-action: none;
}

.account-sheet-backdrop.is-open {
  opacity: 1;
}

.account-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1160;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(80dvh, 640px);
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--ring);
  border-bottom: 0;
  background: rgba(10, 16, 32, 0.97);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  transform: translateY(100%);
  transition: transform 0.28s ease;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.account-sheet.is-open {
  transform: translateY(0);
}

body.theme-light .account-sheet {
  background: rgba(248, 250, 255, 0.98);
  box-shadow: 0 -18px 48px rgba(16, 24, 48, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .account-sheet-backdrop,
  .account-sheet {
    transition: none;
  }
}

.account-sheet-handle {
  width: 42px;
  height: 4px;
  margin: 10px auto 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

body.theme-light .account-sheet-handle {
  background: rgba(16, 24, 48, 0.18);
}

.account-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px 12px;
}

.account-sheet-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.account-sheet-close {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.account-sheet-close:hover,
.account-sheet-close:focus-visible {
  outline: none;
  background: var(--header-hover-bg);
}

.account-sheet-body {
  overflow-y: auto;
  padding: 0 14px 8px;
}

.account-sheet-intro {
  margin: 0 0 16px;
  padding: 0 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.account-sheet-actions {
  display: grid;
  gap: 10px;
  padding: 0 4px 8px;
}

.account-sheet-section + .account-sheet-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ring);
}

.account-sheet-section-title {
  margin: 0 0 6px;
  padding: 0 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-sheet-section-items,
.account-sheet-footer {
  display: grid;
  gap: 2px;
}

.account-sheet-item,
.account-sheet-action {
  min-height: 44px;
}

.account-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--header-text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-sheet-item:hover,
.account-sheet-item:focus-visible,
.account-sheet-action:focus-visible {
  outline: none;
  background: var(--header-hover-bg);
  color: var(--accent);
}

.account-sheet-item-danger {
  color: #f5b0b0;
}

.account-sheet-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ring);
}

@media (min-width: 769px) {
  .account-sheet,
  .account-sheet-backdrop {
    display: none !important;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(200px, 50vw);
  object-fit: contain;
  object-position: left center;
}

.brand-logo[hidden],
.brand-fallback[hidden] {
  display: none !important;
}

.brand-wordmark {
  display: grid;
  gap: 2px;
  line-height: 1;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4f7ff;
  text-shadow: 0 0 24px rgba(76, 201, 240, 0.18);
}

.brand-tagline {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

body.theme-dark .brand-name {
  color: #f3f4f6;
}

body.theme-dark .brand-tagline {
  color: var(--gold-soft);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-cta {
  margin-left: 4px;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 12px 14px;
    gap: 10px;
  }

  .brand-logo {
    height: 42px;
    max-width: 180px;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
  }

  .header-nav a,
  .header-nav .btn-ghost {
    font-size: 0.75rem;
    padding: 6px 8px;
  }

  .header-nav a[data-nav='postal-entry'],
  .header-nav a[data-nav='faq'] {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-nav #themeToggle .header-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .header-nav #accountBtn .header-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.home-stage {
  padding: 10px 0 30px;
}

.home-shell {
  padding: 0 0 64px;
  display: grid;
  gap: 48px;
}

.home-trust-band-shell {
  padding: 0 0 20px;
}

.home-trust-band-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-trust-band-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--edge);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-trust-band-item:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  transform: translateY(-1px);
}

.home-trust-band-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.home-trust-band-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  flex-shrink: 0;
}

.home-trust-band-label {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-hero {
  margin: 0;
  padding: 44px 38px 32px;
  background: var(--hero-bg);
  color: #fff;
  border-radius: 26px;
  border: 1px solid transparent;
  box-shadow: 0 0 0 1px var(--ring-accent), inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--elev);
  position: relative;
  overflow: hidden;
}

.home-hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.22), transparent 68%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .home-hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: start;
    gap: 32px;
  }
}

.hero-trust-panel {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 12, 24, 0.42);
  backdrop-filter: blur(10px);
}

.hero-trust-panel--compact .hero-trust-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}

.hero-trust-checklist {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hero-trust-checklist-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.875rem;
  color: rgba(244, 247, 255, 0.88);
}

.hero-trust-check {
  color: #5eead4;
  font-weight: 800;
}

.hero-trust-cta {
  width: 100%;
}

.hero-trust-operator {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.68);
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: auto auto -35% -8%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(228, 192, 107, 0.2), transparent 70%);
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%);
  pointer-events: none;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--astro-blue);
}

.home-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  max-width: 12ch;
  font-weight: 800;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 22px;
  max-width: 54ch;
  color: rgba(244, 247, 255, 0.78);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta {
  margin-top: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-stat strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-soft);
}

.hero-stat span {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.72);
  font-weight: 600;
}

.draws-section {
  margin-bottom: 0;
}

.draws-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.draws-heading h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.draws-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.draws-toolbar .section-tabs {
  margin-bottom: 0;
}

#featuredSpotlight {
  margin-top: 4px;
}

.featured-spotlight {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 0;
  padding: 0;
  border-radius: 26px;
  border: 1px solid transparent;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ring-accent), var(--edge), var(--elev);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.featured-spotlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--ring-accent), var(--edge), var(--elev-hover);
}

.spotlight-media {
  position: relative;
  min-height: 100%;
  aspect-ratio: auto;
  background: #050810;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.spotlight-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 16, 0.15), rgba(5, 8, 16, 0.72));
}

.spotlight-prize {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold-soft);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.spotlight-copy {
  padding: 28px;
  display: grid;
  align-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.spotlight-countdown {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spotlight-copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.spotlight-hook {
  margin: 0 0 4px;
  font-size: 1rem;
}

.spotlight-hook strong {
  color: var(--accent);
  font-size: 1.125rem;
}

.spotlight-was {
  margin-left: 8px;
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.spotlight-alt {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.spotlight-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.spotlight-progress {
  margin-bottom: 16px;
}

.spotlight-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
}

.spotlight-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.spotlight-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--astro-blue), var(--gold));
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(76, 201, 240, 0.35);
}

.signup-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ring), var(--edge), var(--elev);
}

.signup-prompt h3 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
}

.signup-prompt p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.winners-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
}

.winner-scroll-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 0 1px var(--ring), var(--edge), var(--elev);
  transition: border-color 0.2s, transform 0.2s;
}

.winner-scroll-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.winner-scroll-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
  border: 2px solid rgba(228, 192, 107, 0.35);
}

.winner-scroll-card h3 {
  margin: 0;
  font-size: 0.9375rem;
}

.winner-scroll-prize {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

.winner-scroll-date {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.home-hero p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
}

.hero-rating {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-rating-value {
  display: inline-block;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
}

.home-competition-rail {
  margin: 0;
}

.home-mission-bundles {
  margin: 0;
}

.home-mission-bundles .home-rail-header h2 {
  font-size: 1.35rem;
}

.home-rail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.home-rail-header h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.home-rail-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.home-rail-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
}

.competition-rail-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 0 1px var(--ring), var(--edge), var(--elev);
  transition: border-color 0.2s, transform 0.2s;
}

.competition-rail-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.competition-rail-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.competition-rail-copy h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.competition-rail-meta,
.competition-rail-prize,
.competition-rail-progress {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.home-next-draw-rail .next-draw-banner {
  margin-bottom: 0;
}

.next-draw-banner {
  display: block;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 0 1px var(--ring), var(--edge), var(--elev);
  backdrop-filter: blur(12px);
}

.next-draw-banner:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.next-draw-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}

.next-draw-body {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;
}

.next-draw-body img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #1a1a1a;
}

.next-draw-copy h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.3;
}

.next-draw-meta {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
}

.next-draw-progress {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.next-draw-progress strong {
  color: var(--accent);
}

.sale-tag,
.card-sale-badge {
  display: inline-block;
  background: #c62828;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 6px;
}

.competitions-header {
  margin-bottom: 14px;
}

.competitions-header h2 {
  margin: 0 0 4px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.competitions-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.trust-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--ring), var(--edge), var(--elev);
  backdrop-filter: blur(12px);
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 72px;
}

.trust-stat strong {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.trust-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-divider {
  color: var(--border);
  font-weight: 400;
  user-select: none;
}

.section-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.section-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.section-tab:hover {
  border-color: var(--border-hover);
}

.section-tab.active {
  background: var(--pill-active-bg);
  border-color: transparent;
  color: var(--pill-active-text);
  box-shadow: 0 0 0 1px var(--ring-accent), 0 8px 20px rgba(11, 18, 32, 0.14);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
}

.section-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
}

.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

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

.category-pill {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.category-pill.active {
  background: var(--pill-active-bg);
  border-color: transparent;
  color: var(--pill-active-text);
  box-shadow: 0 0 0 1px var(--ring-accent), 0 6px 16px rgba(11, 18, 32, 0.14);
}

.category-pill:hover:not(.active) {
  border-color: var(--border-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

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

.btn-primary {
  background: var(--accent-gradient);
  color: var(--btn-primary-text);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(228, 192, 107, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(228, 192, 107, 0.38), 0 0 24px rgba(76, 201, 240, 0.12);
}

.home-hero .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.home-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 8px 14px;
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn-danger {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
  min-height: 36px;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 40px;
}

.hero-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}

.hero-ends {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.875rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-copy p {
  color: var(--text-muted);
  margin: 0 0 12px;
}

.hero-prize {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px !important;
}

/* Trust strip */
.trust-strip {
  background: #111;
  color: #fff;
  padding: 16px 0;
  text-align: center;
}

.trust-inner p {
  margin: 0;
  font-size: 1rem;
}

.trust-inner strong {
  font-size: 1.25rem;
}

.trust-link {
  color: #fff;
  font-weight: 600;
  margin-left: 8px;
}

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

.page-intro {
  margin: 8px 0 0;
}

/* Winners */
.winners-section {
  margin-bottom: 40px;
}

.winners-section h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.winners-grid.featured {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.winner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.winner-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  background: var(--bg);
}

.winner-body h3 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
}

.winner-location {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.winner-prize {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--accent);
}

.winner-date {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--bg);
}

.faq-item summary {
  padding: 14px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: '+';
  float: right;
  font-weight: 400;
  color: var(--text-muted);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Prose / Terms */
.prose-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-top: 0;
}

.terms-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.terms-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 16px;
}

.terms-section h2 {
  font-size: 1.0625rem;
  margin: 0 0 8px;
}

.terms-section p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Image upload */
.upload-field {
  display: grid;
  gap: 10px;
}

.upload-hint {
  margin: 0;
  font-size: 0.8125rem;
}

.image-preview {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Avoid broken-image icons before an upload is chosen */
.image-preview:not([src]),
.image-preview[src=''] {
  display: none;
}

.image-preview-sm {
  max-width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.section {
  padding: 48px 0;
}

.section-muted {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* Competition grid */
.competition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.competition-card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 0 1px var(--ring), var(--edge), var(--elev);
  backdrop-filter: blur(14px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.competition-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--ring-strong), var(--edge), var(--elev-hover);
}

.competition-card.featured {
  box-shadow: 0 0 0 1px var(--ring-accent), var(--edge), var(--elev);
}

.competition-card.featured:hover {
  box-shadow: 0 0 0 1px var(--ring-accent), var(--edge), var(--elev-hover);
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #050810;
  overflow: hidden;
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.05) 35%, rgba(5, 8, 16, 0.7));
}

.card-prize-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  background: transparent;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  padding: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.card-sold-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 118, 110, 0.88);
  border: 1px solid rgba(94, 234, 212, 0.35);
  padding: 5px 10px;
  border-radius: 999px;
}

.card-ends {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5, 8, 16, 0.72);
  border: 1px solid rgba(228, 192, 107, 0.28);
  padding: 5px 10px;
  border-radius: 999px;
}

.card-hit {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-draw-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: capitalize;
}

.card-sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}

.card-price {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}

.card-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 8px;
}

.card-entry-price {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.card-price-was {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 600;
}

.card-price-now {
  color: var(--accent);
  font-weight: 800;
}

.card-per-entry {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
}

.card-progress-line {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.competition-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 800;
}

.card-alt {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.card-draw-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

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

.card-cta {
  display: block;
  margin-top: 4px;
  text-align: center;
  background: var(--accent-gradient);
  color: var(--btn-primary-text);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(154, 123, 47, 0.22);
}

.competition-card:hover .card-cta {
  filter: brightness(1.08);
}

/* The thin bar across the bottom of a card shows how much of the draw has
   sold. It uses the theme's secondary and accent colours. */
.card-progress {
  height: 3px;
  background: color-mix(in srgb, var(--text-muted) 22%, transparent);
}

.card-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--astro-blue), var(--gold));
}

.how-to-play {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.how-to-play h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.how-to-subtitle {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.how-to-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.how-to-item {
  display: grid;
  gap: 8px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 0 0 1px var(--ring), var(--edge), var(--elev);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease;
}

.how-to-item:hover {
  box-shadow: 0 0 0 1px var(--ring-strong), var(--edge), var(--elev-hover);
}

.how-to-num {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.how-to-item h3 {
  margin: 0 0 4px;
  font-size: 0.9375rem;
}

.how-to-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.recent-winners-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.recent-winners-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.recent-winners-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.text-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

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

.recent-winners-list {
  display: grid;
  gap: 8px;
}

.recent-winner-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s;
}

.recent-winner-row:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.winner-entry-ref,
.entry-ref {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.detail-price-sale {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .next-draw-body {
    grid-template-columns: 72px 1fr;
  }

  .next-draw-body .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }
}

.recent-winner-row img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}

.recent-winner-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.recent-winner-copy strong {
  font-size: 0.9375rem;
}

.recent-winner-copy span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-winner-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Competition detail */
.back-link {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 12px 8px 0;
  min-height: 40px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.back-link:hover {
  color: var(--text);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.detail-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 4 / 3;
}

.detail-price {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.875rem;
  padding: 6px 10px;
  border-radius: 8px;
}

/* Sale pricing renders inline in the panel rather than over the image */
.detail-price.detail-price-sale {
  position: static;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.detail-alt {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 600;
}

.detail-sold {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.detail-label {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-panel h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.detail-ends {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.875rem;
  margin: 0;
  text-transform: uppercase;
}

.detail-desc {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}

.detail-stats div {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}

.detail-stats dt {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-stats dd {
  margin: 4px 0 0;
  font-size: 1.125rem;
  font-weight: 800;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.bundle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.bundle-btn:hover {
  border-color: var(--accent);
}

.bundle-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.bundle-label {
  font-weight: 700;
  font-size: 0.875rem;
}

.bundle-price {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.bundle-total {
  font-weight: 700;
  margin: 0 0 16px;
}

/* Entry purchase panel */
.detail-layout-purchase {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 20px;
}

.detail-purchase-aside {
  position: sticky;
  top: 88px;
  align-self: start;
}

.entry-purchase-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.entry-purchase-price-line {
  margin: 0;
  font-weight: 700;
  font-size: 0.9375rem;
}

.entry-purchase-heading {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.entry-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-quick-pick {
  min-width: 56px;
  min-height: 48px;
  padding: 8px 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: border-color 0.15s, background 0.15s;
}

.entry-quick-pick:hover:not(:disabled),
.entry-quick-pick:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.entry-quick-pick.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.entry-quick-pick.is-disabled,
.entry-quick-pick:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.entry-quick-pick-qty {
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1.1;
}

.entry-quick-pick-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}

.entry-slider-wrap {
  display: grid;
  gap: 6px;
}

.entry-slider-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.entry-qty-slider {
  width: 100%;
  accent-color: var(--accent);
  min-height: 28px;
}

.entry-stepper {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.entry-stepper-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.entry-stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.entry-qty-input {
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.entry-purchase-summary {
  display: grid;
  gap: 6px;
  min-height: 4.5rem;
}

.entry-purchase-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9375rem;
}

.entry-purchase-saving strong {
  color: var(--accent);
}

.entry-purchase-effective {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.entry-purchase-limit-msg {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
}

.entry-purchase-basket-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.entry-purchase-odds-host {
  margin-top: 4px;
}

.entry-purchase-odds {
  display: grid;
  gap: 4px;
  padding: 12px 0 4px;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.entry-purchase-odds-label,
.entry-purchase-odds-secondary-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.entry-purchase-odds-primary {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.entry-purchase-odds-percent {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.entry-purchase-odds-secondary {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.entry-purchase-odds-owned,
.entry-purchase-odds-total {
  margin: 0 0 4px;
  font-size: 0.875rem;
  color: var(--text);
}

.entry-purchase-odds-footnote {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.entry-purchase-odds-unavailable-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.card-odds {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}

.card-odds-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-odds-value {
  margin: 2px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.card-odds-secondary {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.overview-promotion-flag {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.entry-purchase-credit-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  padding: 4px 0;
}

.entry-purchase-mobile-bar {
  display: none;
}

body.entry-purchase-sheet-open {
  overflow: hidden;
}

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

@media (max-width: 767px) {
  .detail-purchase-aside {
    display: none;
  }

  .entry-purchase-mobile-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface-strong);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  }

  .entry-purchase-mobile-summary {
    display: grid;
    gap: 2px;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    padding: 8px 4px;
    cursor: pointer;
  }

  .entry-purchase-mobile-qty {
    font-weight: 700;
    font-size: 0.9375rem;
  }

  .entry-purchase-mobile-price {
    font-size: 0.8125rem;
    color: var(--text-muted);
  }

  .entry-purchase-mobile-change {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
  }

  .entry-purchase-mobile-cta {
    white-space: nowrap;
    min-height: 44px;
  }

  body.has-cookie-banner .entry-purchase-mobile-bar {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

.detail-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 0;
}

/* Steps */
.steps-preview,
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 12px;
}

.steps-preview li {
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  font-size: 0.9375rem;
}

.step-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

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

/* Cards & forms */
.card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 0 0 1px var(--ring), var(--edge), var(--elev);
  backdrop-filter: blur(12px);
}

.auth-card {
  margin-top: 20px;
}

.stack-form {
  display: grid;
  gap: 16px;
}

.stack-form label,
.form-row label {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.stack-form input,
.stack-form textarea,
.stack-form select,
.auth-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus,
.auth-card input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

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

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
}

.checkbox-label input[type='checkbox'] {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--gold-deep);
  cursor: pointer;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  font-size: 0.9375rem;
  cursor: pointer;
}

.radio-label input[type='radio'] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--gold-deep);
}

.pricing-mode-fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
}

.pricing-mode-help {
  margin: 0 0 8px;
  font-size: 0.8125rem;
}

.form-error {
  color: var(--error);
  font-size: 0.875rem;
  min-height: 1.25rem;
  margin: 0;
}

.form-success {
  color: var(--success, #22c55e);
  font-size: 0.875rem;
  min-height: 1.25rem;
  margin: 0;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.auth-switch {
  margin: 12px 0 0;
  text-align: center;
}

.age-confirm {
  margin: 12px 0 16px;
}

.postal-address {
  font-style: normal;
  line-height: 1.6;
  margin: 0 0 20px;
}

.draw-summary {
  display: block;
}

.lookup-form {
  margin-bottom: 0;
}

.lookup-result {
  margin-top: 20px;
}

.lookup-result-card {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.lookup-result-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.lookup-details {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.lookup-details div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.lookup-details dt {
  color: var(--text-muted);
  margin: 0;
}

.lookup-details dd {
  margin: 0;
  text-align: right;
}

.closing-draws-list {
  margin: 12px 0 16px;
}

.audit-log-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.audit-log-item {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.audit-log-details {
  display: block;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  padding: 0;
  background: transparent;
  border-top: none;
}

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(8, 12, 24, 0.96);
  border: 1px solid transparent;
  box-shadow: 0 0 0 1px rgba(228, 192, 107, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 20px 44px rgba(0, 0, 0, 0.5);
  color: #f4f7ff;
  backdrop-filter: blur(14px);
}

.cookie-banner-inner a {
  color: var(--gold-soft);
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.skill-question-field {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.skill-question-legend {
  padding: 0;
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.skill-question-text {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.skill-question-options {
  display: grid;
  gap: 8px;
}

.skill-question-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
  cursor: pointer;
}

.skill-question-option input {
  margin-top: 0.2rem;
}

.basket-skill-host {
  margin-bottom: 12px;
}

.skill-qualification-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in srgb, var(--bg) 20%, transparent);
  backdrop-filter: blur(6px);
}

.skill-qualification-view,
.skill-qualification-result {
  width: min(640px, 100%);
  max-height: 90vh;
  overflow: auto;
}

.skill-qualification-note {
  margin-top: 12px;
}

.instant-win-section {
  margin-top: 24px;
}

.instant-win-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
}

.instant-win-summary {
  margin: 8px 0 16px;
}

.instant-win-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.instant-win-table {
  width: 100%;
  border-collapse: collapse;
}

.instant-win-table th,
.instant-win-table td {
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  text-align: left;
}

.instant-win-trust {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.recent-verified-wins-block {
  margin-top: 32px;
}

.recent-verified-wins-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.recent-verified-wins-list li {
  display: grid;
  gap: 4px;
}

.verified-pill {
  color: var(--accent);
  font-weight: 600;
}

.admin-json-output {
  white-space: pre-wrap;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.credit-redeem-inner {
  margin-top: 12px;
}

.winners-empty h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.draw-result-panel {
  margin-top: 20px;
}

.draw-result-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.draw-result-list div {
  display: grid;
  gap: 4px;
}

.draw-result-list dt {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.draw-result-list dd {
  margin: 0;
}

.account-danger-zone {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.account-danger-zone h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.closing-draw-item + .closing-draw-item {
  margin-top: 8px;
}

.muted {
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-cell {
  text-align: center;
  color: var(--text-muted);
  padding: 24px !important;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:hover {
  background: var(--bg);
}

/* Admin */
.admin-header {
  margin-bottom: 24px;
}

.admin-header h1 {
  margin: 0 0 4px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.admin-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
}

.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: start;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.form-header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.admin-raffle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.admin-raffle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.admin-raffle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.status-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  width: fit-content;
}

.status-live {
  background: #d1fae5;
  color: #065f46;
}

.status-draft {
  background: #fef3c7;
  color: #92400e;
}

.status-closed {
  background: #f3f4f6;
  color: #6b7280;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 28px 0;
  border-top: 1px solid var(--ring);
  background: var(--header-bg);
  color: var(--text-muted);
  backdrop-filter: blur(18px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 16px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--text);
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 24px;
  /* Above the basket drawer, live draw banner, and cookie banner. */
  z-index: 1200;
  display: grid;
  gap: 8px;
  max-width: 360px;
}

.live-draw-toast {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(8, 12, 24, 0.96);
  color: #f4f7ff;
  border: 1px solid rgba(228, 192, 107, 0.24);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

body.theme-light .live-draw-toast {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.live-draw-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.live-draw-toast-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

.live-draw-toast-body {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(244, 247, 255, 0.86);
}

body.theme-light .live-draw-toast-body {
  color: rgba(15, 23, 42, 0.72);
}

.live-draw-toast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-draw-banner-host {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 12, 24, 0.96);
  color: #f4f7ff;
  border: 1px solid rgba(228, 192, 107, 0.24);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

body.theme-light .live-draw-banner-host {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.live-draw-banner-text {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.live-draw-banner-dismiss {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.live-draw-banner-dismiss:hover,
.live-draw-banner-dismiss:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

body.has-live-draw-banner .toast-container {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

body.has-cookie-banner .toast-container {
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

body.has-live-draw-banner.has-cookie-banner .toast-container {
  bottom: calc(168px + env(safe-area-inset-bottom, 0px));
}

body.has-live-draw-banner .live-draw-banner-host {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

body.has-cookie-banner .live-draw-banner-host {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.toast {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

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

.toast-success {
  background: var(--success);
}

.toast-error {
  background: var(--error);
}

.toast-warning {
  background: var(--warning);
}

.play-responsibly-intro,
.account-play-responsibly,
.play-responsibly-grid .card {
  margin-bottom: 1rem;
}

.play-responsibly-grid {
  display: grid;
  gap: 1rem;
}

.play-responsibly-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.play-responsibly-stat {
  padding: 0.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.play-responsibly-stat span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.play-responsibly-statement,
.play-responsibly-notice {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.play-responsibly-preset-row,
.play-responsibly-actions,
.activity-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.play-responsibly-details {
  margin: 0.75rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}

.play-responsibly-support-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.entry-trust-postal-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.checkout-preview {
  margin: 0.75rem 0;
  padding: 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.checkout-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.checkout-preview-payable strong {
  font-size: 1.15rem;
}

.activity-reminder-host {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 1150;
}

.activity-reminder {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: rgba(8, 12, 24, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

body.theme-light .activity-reminder,
body.theme-light .play-responsibly-stat,
body.theme-light .checkout-preview,
body.theme-light .entry-trust-postal-card {
  background: rgba(255, 255, 255, 0.98);
}

/* Responsive */
@media (max-width: 768px) {
  .toast-container {
    left: 16px;
    right: 16px;
    max-width: none;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  body.has-live-draw-banner .toast-container {
    bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  }

  body.has-cookie-banner .toast-container {
    bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  }

  body.has-live-draw-banner.has-cookie-banner .toast-container {
    bottom: calc(220px + env(safe-area-inset-bottom, 0px));
  }

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

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

  .header-cta {
    display: none;
  }

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

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

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

body.theme-dark .stack-form input,
body.theme-dark .stack-form textarea,
body.theme-dark .stack-form select,
body.theme-dark .auth-card input {
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-spotlight {
    grid-template-columns: 1fr;
  }

  .signup-prompt {
    flex-direction: column;
    align-items: stretch;
  }

  .how-to-grid {
    grid-template-columns: 1fr;
  }

  .draws-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Light theme: keep contrast on the dark hero panel and tune surfaces */
body.theme-light .home-hero,
body.theme-light .spotlight-media,
body.theme-light .card-image {
  color: #fff;
}

body.theme-light .promo-bar {
  border-bottom: none;
}

body.theme-light .spotlight-bar {
  background: rgba(11, 18, 32, 0.1);
}

body.theme-light .card-progress {
  background: rgba(11, 18, 32, 0.08);
}

body.theme-light .meta-chip {
  background: rgba(11, 18, 32, 0.04);
  border-color: var(--ring);
}

body.theme-light .section-tab,
body.theme-light .category-pill,
body.theme-light .btn-secondary {
  border-color: transparent;
  box-shadow: 0 0 0 1px var(--ring), var(--edge);
}

body.theme-light .section-tab:hover:not(.active),
body.theme-light .category-pill:hover:not(.active),
body.theme-light .btn-secondary:hover {
  box-shadow: 0 0 0 1px var(--ring-strong), var(--edge);
}

body.theme-light .winner-scroll-card img {
  border-color: rgba(184, 148, 63, 0.4);
}

/* Touch targets: WCAG 2.5.5 wants 44px, so grow controls on touch devices */
@media (pointer: coarse) {
  .btn-sm,
  .header-nav a,
  .section-tab,
  .category-pill {
    min-height: 44px;
  }

  .btn-sm {
    padding: 10px 16px;
  }

  .text-link,
  .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .back-link {
    min-height: 44px;
  }
}

/* Anchor links keep a comfortable hit area on all devices */
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}


/* ------------------------------------------------------------------
   Shimmer borders
   A gold beam travels around each container edge. The rotation is a
   plain transform on an oversized gradient, so it animates in every
   browser rather than depending on @property. The wrapper is masked to
   a 1px ring and clips the spinner, keeping the card fill untouched.
   ------------------------------------------------------------------ */
.edge-lit {
  position: relative;
  --beam-speed: 6s;
  --beam-head: color-mix(in srgb, var(--gold) 45%, #ffffff);
  --beam-body: var(--gold);
  --beam-opacity: 1;
  --beam-ring: 2px;
  --beam-glow: 0 0 10px rgba(228, 192, 107, 0.7);
}

.edge-beam {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: var(--beam-ring);
  pointer-events: none;
  overflow: hidden;
  opacity: var(--beam-opacity);
  filter: drop-shadow(var(--beam-glow));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 0.3s ease;
}

.edge-beam::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    transparent 0turn,
    transparent 0.45turn,
    rgba(228, 192, 107, 0.35) 0.62turn,
    var(--beam-body) 0.8turn,
    var(--beam-head) 0.92turn,
    var(--beam-head) 0.95turn,
    var(--beam-body) 0.98turn,
    transparent 1turn
  );
  animation: beam-spin var(--beam-speed) linear infinite;
  will-change: transform;
}

@keyframes beam-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Per-surface tuning */
.competition-card.edge-lit {
  --beam-speed: 6s;
  --beam-opacity: 0.95;
}

.competition-card.edge-lit:hover {
  --beam-speed: 3.5s;
  --beam-opacity: 1;
  --beam-glow: 0 0 12px rgba(228, 192, 107, 0.7);
}

.competition-card.featured.edge-lit,
.featured-spotlight.edge-lit {
  --beam-opacity: 1;
}

.home-hero.edge-lit {
  --beam-speed: 10s;
  --beam-ring: 1.5px;
}

.signup-prompt.edge-lit,
.how-to-item.edge-lit {
  --beam-speed: 8s;
  --beam-opacity: 0.75;
  --beam-glow: 0 0 7px rgba(228, 192, 107, 0.45);
}

.signup-prompt.edge-lit:hover,
.how-to-item.edge-lit:hover {
  --beam-opacity: 0.95;
}

/* Deeper gold so the beam reads against white */
body.theme-light .edge-lit {
  --beam-head: #e2b855;
  --beam-body: #9a7828;
  --beam-glow: 0 0 7px rgba(154, 120, 40, 0.4);
}

body.theme-light .competition-card.edge-lit:hover {
  --beam-glow: 0 0 11px rgba(154, 120, 40, 0.5);
}

/* Motion is attribute-driven so an explicit in-app choice can override the
   operating system preference in either direction. */
html[data-motion='reduced'] .edge-beam {
  filter: none;
}

html[data-motion='reduced'] .edge-beam::before {
  animation: none;
  background: var(--beam-body);
  opacity: 0.55;
}

html[data-motion='reduced'] .promo-track {
  animation: none;
  flex-wrap: wrap;
  width: auto;
  justify-content: center;
}

/* Motion toggle in the footer */
.footer-inner {
  flex-wrap: wrap;
}

.motion-toggle {
  color: var(--text-muted);
  border: 1px solid var(--ring);
  border-radius: 999px;
}

.motion-toggle:hover {
  color: var(--accent);
  border-color: var(--ring-strong);
  background: var(--accent-soft);
}

.motion-toggle[aria-pressed='true']::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.motion-toggle[aria-pressed='false']::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
}

/* Social sign-in */
.social-auth {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.social-auth-buttons {
  display: grid;
  gap: 10px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--ring), var(--edge);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-social:hover {
  box-shadow: 0 0 0 1px var(--ring-strong), var(--edge), var(--elev);
  transform: translateY(-1px);
}

.social-mark {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-mark svg {
  width: 100%;
  height: 100%;
}

body.theme-dark .btn-social {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

body.theme-dark .btn-social:hover {
  background: rgba(255, 255, 255, 0.1);
}

.social-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.social-auth-divider::before,
.social-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ring);
}

.linked-providers {
  margin: 4px 0 12px;
  font-size: 0.875rem;
}

/* text-link is used on both anchors and buttons */
button.text-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button.text-link:hover {
  background: none;
  text-decoration: underline;
}

/* Apple's mark is monochrome and follows the button text colour */
.btn-social[data-provider='apple'] .social-mark {
  color: var(--text);
}

/* Operator identity line in the footer */
.footer-legal {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ring);
}

.footer-legal p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-legal p:empty {
  display: none;
}

.footer-legal a {
  color: var(--accent);
}

/* Free entry credits */
.credit-redeem {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ring);
}

.credit-balance {
  margin: 0 0 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.credit-balance strong {
  color: var(--accent);
}

.credit-balance-line {
  margin: 4px 0 12px;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
}

.cash-winnings-summary,
.my-prizes-section {
  margin: 16px 0;
  padding: 16px;
}

.cash-winnings-totals {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.cash-winnings-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.my-prize-card {
  padding: 12px 0;
  border-top: 1px solid var(--ring);
}

.my-prize-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.my-prize-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.verified-badge {
  color: var(--accent);
  font-weight: 600;
}

.settlement-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.reconcile-report {
  margin-top: 16px;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: auto;
  max-height: 240px;
  font-size: 0.8rem;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* Entry trust panel — clarity at point of purchase */
.entry-trust-panel {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--ring);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--card-glow);
}

.entry-trust-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.entry-trust-facts {
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}

.entry-trust-facts div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 8px;
  font-size: 0.9rem;
}

.entry-trust-facts dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.entry-trust-facts dd {
  margin: 0;
  font-weight: 600;
}

.entry-trust-note,
.entry-trust-postal,
.entry-trust-links {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.entry-trust-postal {
  padding: 10px 12px;
  border-radius: calc(var(--radius) - 4px);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.entry-trust-list {
  margin: 0 0 10px;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.entry-trust-list li + li {
  margin-top: 4px;
}

.basket-postal-note {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.basket-postal-note a {
  color: var(--accent);
  font-weight: 600;
}

.about-page h1 {
  margin-bottom: 8px;
}

.about-sections .about-section + .about-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ring);
}

.about-sections .about-section h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.about-sections .about-section p {
  margin: 0;
}

.about-compliance {
  margin-top: 1rem;
}

.about-cta {
  margin-top: 1rem;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Admin portal */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.overview-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ring), var(--edge), var(--elev);
}

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

.overview-value {
  /* Syne reads well in headlines but stretches numerals at heavy
     weights — body type keeps £6.00 and counts looking natural. */
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--accent);
}

.overview-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.overview-closing {
  display: grid;
  gap: 10px;
}

.overview-closing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--ring);
}

.overview-closing-row:last-child {
  border-bottom: none;
}

.overview-closing-row .muted {
  display: block;
  font-size: 0.8125rem;
}

.overview-progress {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

.settings-form {
  display: grid;
  gap: 20px;
}

.settings-group {
  display: grid;
  gap: 12px;
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0;
}

.settings-group legend {
  padding: 0 8px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.settings-check {
  min-height: auto;
}

.inline-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.inline-form input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.role-pill {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-admin {
  background: var(--accent-soft);
  color: var(--accent);
}

.role-user {
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-muted);
}

/* Settings form controls match the rest of the admin forms */
.settings-group label {
  display: grid;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.settings-group label > span {
  color: var(--text);
}

.settings-group input[type='text'],
.settings-group input[type='email'],
.settings-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
}

.settings-group input:focus-visible,
.settings-group textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.settings-group textarea {
  resize: vertical;
  min-height: 76px;
}

.settings-group .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

body.theme-dark .settings-group input,
body.theme-dark .settings-group textarea {
  background: rgba(15, 23, 42, 0.72);
}

/* Unverified email prompt */
.verify-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--ring-accent);
}

.verify-notice p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
}

/* Repeatable content editors */
.collection-editors {
  display: grid;
  gap: 20px;
}

.collection-head h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.collection-head p {
  margin: 0 0 14px;
  font-size: 0.8125rem;
}

.collection-list {
  list-style: none;
  counter-reset: item;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.collection-row {
  counter-increment: item;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ring), var(--edge);
}

.collection-row::before {
  content: counter(item);
  position: absolute;
  margin-left: -6px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-muted);
}

.collection-row-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.collection-row-fields label {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.collection-row-fields input,
.collection-row-fields textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
}

.collection-row-fields textarea {
  resize: vertical;
  min-height: 64px;
}

body.theme-dark .collection-row-fields input,
body.theme-dark .collection-row-fields textarea {
  background: rgba(15, 23, 42, 0.72);
}

.collection-row-actions {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.collection-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.collection-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .collection-row {
    grid-template-columns: 1fr;
  }

  .collection-row-actions {
    grid-auto-flow: column;
  }
}

/* Theme editor */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.theme-row {
  display: grid;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
}

.theme-row > span {
  color: var(--text);
}

.theme-row small {
  font-weight: 500;
  font-size: 0.75rem;
}

.theme-row input[type='text'],
.theme-row select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
}

.theme-color {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
  align-items: center;
}

.theme-color input[type='color'] {
  width: 46px;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-strong);
  cursor: pointer;
}

body.theme-dark .theme-row input,
body.theme-dark .theme-row select {
  background: rgba(15, 23, 42, 0.72);
}

/* Admin tables */
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.panel-header h2 {
  margin: 0 0 2px;
}

.panel-header p {
  margin: 0;
  font-size: 0.8125rem;
}

.admin-table td {
  vertical-align: middle;
}

.admin-table strong {
  display: block;
}

.admin-table .muted {
  display: block;
  font-size: 0.75rem;
}

.admin-table code {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.col-actions {
  width: 1%;
  white-space: nowrap;
}

/* Actions get real breathing room instead of bunching together */
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.row-more {
  position: relative;
}

.row-more summary {
  list-style: none;
  cursor: pointer;
}

.row-more summary::-webkit-details-marker {
  display: none;
}

/* Secondary actions live behind "More" so the common ones stay obvious */
.row-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: grid;
  gap: 4px;
  min-width: 170px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface-strong);
  box-shadow: 0 0 0 1px var(--ring), var(--elev);
}

.row-more-menu .btn {
  justify-content: flex-start;
  width: 100%;
}

/* Modal forms */
.admin-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  padding: 0;
  border: none;
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--ring), var(--elev);
  overflow: auto;
}

.admin-dialog::backdrop {
  background: rgba(5, 8, 16, 0.6);
  backdrop-filter: blur(3px);
}

.admin-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--ring);
}

.admin-dialog-head h2 {
  margin: 0;
  font-size: 1.125rem;
}

.admin-dialog form {
  padding: 20px 22px 24px;
}

@media (max-width: 720px) {
  .row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .col-actions {
    width: auto;
    white-space: normal;
  }
}

/* Cycling promo bar, used when the messages are too short to scroll well */
.promo-bar.promo-cycle {
  display: grid;
  place-items: center;
}

.promo-bar.promo-cycle .promo-track {
  width: 100%;
  display: grid;
  animation: none;
}

.promo-bar.promo-cycle .promo-item {
  grid-area: 1 / 1;
  justify-self: center;
  padding: 8px 16px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.promo-bar.promo-cycle .promo-item.active {
  opacity: 1;
  transform: none;
}

.promo-bar.promo-cycle .promo-item::after {
  content: none;
}

html[data-motion='reduced'] .promo-bar.promo-cycle .promo-item {
  transition: none;
}

.astro-build-stamp {
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.55;
}

/* Draw entries viewer */
.admin-dialog-wide {
  width: min(1040px, calc(100vw - 32px));
}

.admin-dialog-body {
  padding: 20px 22px 24px;
}

.admin-dialog-body .overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 18px;
}

.admin-dialog-body .overview-value {
  font-size: 1.25rem;
}

.entries-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

/* A draw title reads as a link but stays a button for keyboard and semantics */
.link-cell {
  display: block;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--accent);
  text-align: left;
  cursor: pointer;
}

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

.source-paid {
  background: color-mix(in srgb, var(--astro-blue) 18%, transparent);
  color: var(--astro-blue);
}

.source-postal {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--accent);
}

.source-credit {
  background: color-mix(in srgb, var(--success) 20%, transparent);
  color: var(--success);
}

.entry-winner {
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}

body.theme-dark .entries-search {
  background: rgba(15, 23, 42, 0.72);
}

.mask-notice {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.entries-table td.is-masked {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Basket */
.basket-btn {
  position: relative;
}

.basket-btn.has-items {
  color: var(--gold);
}

.basket-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--gold);
  color: #10182b;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.basket-overlay {
  position: fixed;
  inset: 0;
  /* Above the cookie banner, which would otherwise swallow clicks on the
     drawer's checkout button. */
  z-index: 1100;
  background: rgba(6, 10, 22, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.basket-overlay.open {
  opacity: 1;
}

.basket-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1101;
  display: flex;
  flex-direction: column;
  width: min(440px, 100vw);
  height: 100dvh;
  background: var(--surface-strong);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 48px rgba(4, 8, 18, 0.45);
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.basket-drawer.open {
  transform: translateX(0);
}

.basket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.basket-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.basket-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.25rem;
}

.basket-empty {
  padding: 2.5rem 0;
  text-align: center;
}

.basket-empty p {
  margin: 0 0 0.4rem;
}

.basket-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.basket-thumb {
  width: 72px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.basket-line-main {
  min-width: 0;
}

.basket-line-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.basket-line-meta {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.basket-line-warn {
  margin: 0.3rem 0 0;
  color: #ff8f6b;
  font-size: 0.8rem;
}

.basket-qty {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.qty-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.qty-input {
  width: 60px;
  height: 32px;
  padding: 0 0.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: center;
  font: inherit;
  font-size: 0.9rem;
}

.basket-line-end {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.basket-remove {
  border: 0;
  background: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.basket-remove:hover {
  color: #ff8f6b;
}

.basket-foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface-strong);
}

.basket-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.basket-total-row strong {
  font-size: 1.3rem;
  color: var(--gold);
}

.basket-foot .age-confirm {
  margin-bottom: 0.75rem;
}

.detail-basket-note {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

body.basket-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .basket-drawer,
  .basket-overlay {
    transition: none;
  }
}

@media (max-width: 480px) {
  .basket-line {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .basket-thumb {
    width: 56px;
    height: 44px;
  }
}

/* Launch spin promo */
.launch-spin-overlay,
.live-draw-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(8px);
}

.live-draw-backdrop {
  position: relative;
  width: min(100%, 40rem);
  isolation: isolate;
}

.live-draw-motion-host {
  position: absolute;
  inset: -12%;
  z-index: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  pointer-events: none;
}

.live-draw-motion-canvas,
.live-draw-motion-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.live-draw-motion-video {
  filter: saturate(1.15) contrast(1.05);
  mix-blend-mode: screen;
}

.live-draw-backdrop .live-draw-modal {
  position: relative;
  z-index: 1;
}

.launch-spin-modal,
.live-draw-modal {
  position: relative;
  width: min(100%, 28rem);
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(18, 24, 42, 0.98), rgba(8, 12, 24, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.launch-spin-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.launch-spin-title,
.live-draw-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.5rem;
}

.launch-spin-wheel-wrap {
  position: relative;
  width: min(100%, 16rem);
  margin: 1.25rem auto;
  aspect-ratio: 1;
}

.launch-spin-pointer {
  position: absolute;
  top: -0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.65rem solid transparent;
  border-right: 0.65rem solid transparent;
  border-bottom: 1.1rem solid var(--accent, #5eead4);
  z-index: 2;
}

.launch-spin-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transform: rotate(0deg);
}

.launch-spin-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.launch-spin-age {
  justify-content: center;
  margin: 0.75rem 0 1rem;
  text-align: left;
}

.launch-spin-result {
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.launch-spin-result.is-win {
  color: #5eead4;
}

.launch-spin-terms {
  margin: 1rem 0 0;
  font-size: 0.78rem;
}

body.launch-spin-open,
body.live-draw-open,
body.instant-win-open {
  overflow: hidden;
}

/* Instant win celebration */
.instant-win-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(4, 8, 18, 0.86);
  backdrop-filter: blur(10px);
}

.instant-win-overlay.is-celebrating .instant-win-modal {
  animation: instantWinPop 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes instantWinPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.instant-win-modal {
  width: min(100%, 24rem);
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: linear-gradient(165deg, rgba(15, 118, 110, 0.25), rgba(8, 12, 24, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.instant-win-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #5eead4);
}

.instant-win-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.75rem;
}

.instant-win-prize {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent, #5eead4);
}

.instant-win-copy {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

/* Account notification preferences */
.account-prefs-form {
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.account-prefs-form h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.account-prefs-form .muted {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
}

/* Astro Verified Draw */
.verified-draw-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(15, 118, 110, 0.18);
}

.verified-draw-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #5eead4);
}

.verified-draw-header h1 {
  margin-bottom: 0.5rem;
}

.verified-draw-lead {
  max-width: 42rem;
  color: var(--text-muted);
}

.verified-draw-facts {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.verified-draw-facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.verified-draw-facts dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.verified-draw-events {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  max-height: 14rem;
  overflow: auto;
  text-align: left;
  font-size: 0.85rem;
}

.verified-draw-events li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.verified-draw-events time {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.verified-draw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.verify-draw-result.is-success {
  color: #5eead4;
  font-weight: 600;
}

.verify-draw-result.is-error {
  color: #f87171;
  font-weight: 600;
}

.verified-draw-pre {
  overflow: auto;
  max-height: 24rem;
  font-size: 0.75rem;
  text-align: left;
}

.verified-draw-steps {
  padding-left: 1.25rem;
  line-height: 1.6;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
}

/* Live draw animation */
.live-draw-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #5eead4);
}

.live-draw-stage {
  margin: 1.25rem 0;
  min-height: 9rem;
}

.live-draw-drum {
  overflow: hidden;
  height: 9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  position: relative;
}

.live-draw-drum::before,
.live-draw-drum::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2rem;
  z-index: 1;
  pointer-events: none;
}

.live-draw-drum::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(8, 12, 24, 0.95), transparent);
}

.live-draw-drum::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(8, 12, 24, 0.95), transparent);
}

.live-draw-drum-track {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem;
}

.live-draw-drum-track.is-spinning {
  animation: live-draw-scroll var(--live-draw-duration, 12s) cubic-bezier(0.15, 0.85, 0.2, 1) forwards;
}

.live-draw-drum-track span {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

.live-draw-winner-label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.live-draw-winner-name {
  margin: 0.35rem 0;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 2rem;
}

.live-draw-modal-wide {
  width: min(100%, 36rem);
  text-align: left;
}

.live-draw-phase {
  margin: 1rem 0 0.5rem;
}

.live-draw-phase-label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.live-draw-range-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.35);
  font-size: 0.82rem;
  font-weight: 600;
}

.live-draw-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 11rem;
  overflow: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-draw-entry-row {
  display: grid;
  grid-template-columns: 2.5rem 5.5rem 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
}

.live-draw-entry-row:last-child {
  border-bottom: none;
}

.live-draw-entry-row.is-winner {
  background: rgba(250, 204, 21, 0.12);
}

.live-draw-entry-pos {
  font-weight: 700;
  color: var(--accent, #5eead4);
}

.live-draw-entry-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
}

.live-draw-entry-name {
  color: var(--text-muted);
}

.live-draw-entries-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
}

.live-draw-range-picker {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
}

.live-draw-range-track {
  position: relative;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.live-draw-range-marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  margin-left: -0.5rem;
  border-radius: 50%;
  background: var(--accent, #5eead4);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.65);
  transition: left 80ms linear;
}

.live-draw-api-panel {
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}

.live-draw-api-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.live-draw-api-url {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  word-break: break-all;
}

.live-draw-api-response {
  margin: 0;
  max-height: 8rem;
  overflow: auto;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.45);
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.live-draw-winner-position {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.live-draw-reveal {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.live-draw-suspense {
  text-align: center;
}

.live-draw-suspense-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, #5eead4);
}

.live-draw-position-number {
  margin: 0.25rem 0;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: #facc15;
  text-shadow: 0 0 40px rgba(250, 204, 21, 0.35);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.live-draw-position-number.is-locked {
  animation: live-draw-position-lock 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.live-draw-position-of {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.live-draw-name-drum {
  margin: 0.75rem auto 0;
  padding: 1.25rem 1rem;
  max-width: 22rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  min-height: 7.5rem;
  display: grid;
  align-content: center;
  gap: 0.35rem;
}

.live-draw-name-drum.is-winner-locked {
  border-color: rgba(250, 204, 21, 0.45);
  box-shadow: 0 0 32px rgba(250, 204, 21, 0.15);
}

.live-draw-cycle-position {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-draw-cycle-name {
  margin: 0;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  min-height: 2.4rem;
}

.live-draw-cycle-name.is-winner-locked {
  color: #facc15;
  animation: live-draw-winner-pop 0.65s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.live-draw-cycle-ref {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
}

@keyframes live-draw-position-lock {
  from {
    opacity: 0.4;
    transform: scale(0.75);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#liveDrawRevealPhase.is-revealed .live-draw-winner-name {
  animation: live-draw-winner-pop 0.65s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes live-draw-winner-pop {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes live-draw-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-100% + 9rem)); }
}

@media (prefers-reduced-motion: reduce) {
  .live-draw-drum-track.is-spinning {
    animation: none;
  }
}

/* Verified draw reveal */
.verified-reveal-backdrop {
  width: min(100%, 68rem);
}

.verified-reveal-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 68rem);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.verified-reveal-header {
  flex: 0 0 auto;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 0.75rem;
  padding-top: max(clamp(1.25rem, 3vw, 2rem), env(safe-area-inset-top, 0px));
  text-align: center;
}

.verified-reveal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
  padding-bottom: calc(var(--verified-draw-footer-height, 0px) + 24px);
  scroll-padding-bottom: calc(var(--verified-draw-footer-height, 0px) + 24px);
}

.verified-reveal-actions-footer {
  flex: 0 0 auto;
  padding: 0.75rem clamp(1.25rem, 3vw, 2rem) max(0.85rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(8px);
}

.verified-reveal-actions-footer[hidden] {
  display: none;
}

.verified-reveal-close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.verified-reveal-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.verified-reveal-close:focus-visible {
  outline: 2px solid var(--accent, #5eead4);
  outline-offset: 2px;
}

.verified-reveal-header {
  margin-bottom: 0;
  text-align: center;
}

.verified-reveal-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.verified-reveal-replay-notice {
  margin: 0.5rem auto 0;
  max-width: 32rem;
  font-size: 0.82rem;
  font-style: italic;
}

.verified-reveal-body {
  display: grid;
  gap: 1rem;
}

.verified-reveal-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.verified-reveal-progress-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
}

.verified-reveal-progress-step.is-passed {
  border-color: rgba(94, 234, 212, 0.35);
}

.verified-reveal-progress-step.is-active {
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.08);
}

.verified-reveal-progress-step.is-pending {
  opacity: 0.72;
  border-color: rgba(255, 255, 255, 0.06);
}

.verified-reveal-progress-step.is-failed {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}

.verified-reveal-progress-icon {
  flex: 0 0 auto;
  width: 1.1rem;
  text-align: center;
  font-weight: 700;
}

.verified-reveal-stage-panel {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.verified-reveal-stage-label {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.verified-reveal-stage-detail {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.verified-reveal-verification-panel {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.verified-reveal-evidence {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.verified-reveal-evidence-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.verified-reveal-evidence dt {
  margin: 0;
  color: var(--text-muted);
}

.verified-reveal-evidence dd {
  margin: 0;
  word-break: break-word;
}

.verified-reveal-evidence dd.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.verified-reveal-status-lines {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.verified-reveal-status-lines li + li {
  margin-top: 0.25rem;
}

.verified-reveal-technical summary,
.verified-reveal-raw summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent, #5eead4);
}

.verified-reveal-technical-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
}

.verified-reveal-technical-list div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.5rem;
}

.verified-reveal-technical-list dt {
  margin: 0;
  color: var(--text-muted);
}

.verified-reveal-technical-list dd {
  margin: 0;
  word-break: break-word;
}

.verified-reveal-raw-pre {
  margin: 0.5rem 0 0;
  max-height: 10rem;
  overflow: auto;
  padding: 0.65rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.45);
  font-size: 0.72rem;
  white-space: pre-wrap;
}

.verified-reveal-position-area,
.verified-reveal-resolve-area,
.verified-reveal-final {
  text-align: center;
  padding: 1rem 0.5rem;
}

.verified-reveal-scale-marker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: italic;
}

.verified-reveal-position-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #5eead4);
}

.verified-reveal-position-label,
.verified-reveal-final-kicker,
.verified-reveal-resolve-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.verified-reveal-position-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(4.5rem, 16vw, 7rem);
  margin: 0.35rem 0;
}

.verified-reveal-position-number,
.verified-reveal-final-position {
  margin: 0;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(4rem, 14vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  color: #facc15;
  text-shadow: 0 0 40px rgba(250, 204, 21, 0.35);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.verified-reveal-position-number.is-scale-lg,
.verified-reveal-final-position.is-scale-lg {
  font-size: clamp(4rem, 14vw, 6.5rem);
}

.verified-reveal-position-number.is-scale-md,
.verified-reveal-final-position.is-scale-md {
  font-size: clamp(3rem, 10vw, 5rem);
}

.verified-reveal-position-number.is-scale-sm,
.verified-reveal-final-position.is-scale-sm {
  font-size: clamp(2.25rem, 8vw, 3.75rem);
}

.verified-reveal-position-number.is-scale-xs,
.verified-reveal-final-position.is-scale-xs {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
}

.verified-reveal-position-tick {
  position: absolute;
  right: calc(50% - 3.5rem);
  top: 0.15rem;
  font-size: 1.5rem;
  color: #5eead4;
  font-weight: 700;
}

.verified-reveal-position-number.is-locked {
  animation: live-draw-position-lock 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.verified-reveal-position-number.is-lock-glow {
  text-shadow:
    0 0 24px rgba(250, 204, 21, 0.55),
    0 0 48px rgba(250, 204, 21, 0.35);
}

.verified-reveal-winner-name,
.verified-reveal-final-winner {
  margin: 0.35rem 0 0;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
}

.verified-reveal-winner-ref,
.verified-reveal-final-ref {
  margin: 0.25rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
}

.verified-reveal-verified-badge {
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.verified-reveal-verified-badge.is-verified {
  color: #5eead4;
}

.verified-reveal-verified-badge.is-partial {
  color: #facc15;
}

.verified-reveal-final-prize {
  margin: 0.75rem 0 0.15rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.verified-reveal-final-copy {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-size: 0.88rem;
}

.verified-reveal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.verified-reveal-actions-tertiary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.verified-reveal-tertiary-link {
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  cursor: pointer;
}

.verified-reveal-tertiary-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.verified-reveal-tertiary-link:focus-visible {
  outline: 2px solid var(--accent, #5eead4);
  outline-offset: 2px;
}

.verified-reveal-tertiary-sep {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1;
}

.verified-reveal-btn-tertiary {
  opacity: 0.85;
  font-size: 0.92rem;
}

.verified-reveal-progress-mobile {
  display: none;
}

.verified-reveal-progress-stage-heading {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.verified-reveal-progress-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.verified-reveal-progress-mobile-list .verified-reveal-progress-step {
  font-size: 0.85rem;
}

.verified-reveal-final-date-utc {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
}

.verified-reveal-waiting,
.verified-reveal-failure {
  text-align: center;
  padding: 2rem 1rem;
}

.verified-reveal-waiting-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.verified-reveal-failure-icon {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  color: #f87171;
}

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

@media (max-width: 768px) {
  .live-draw-overlay.verified-reveal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .verified-reveal-backdrop,
  .verified-reveal-modal {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .verified-reveal-modal {
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding-top: 0;
  }

  .verified-reveal-scroll {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .verified-reveal-progress-desktop {
    display: none;
  }

  .verified-reveal-progress-mobile {
    display: block;
  }

  .verified-reveal-evidence-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .verified-reveal-technical-list div {
    grid-template-columns: 1fr;
  }

  .verified-reveal-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
  }

  .verified-reveal-actions .btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .verified-reveal-actions-tertiary {
    margin-top: 0.35rem;
    gap: 0.15rem 0.5rem;
  }

  .verified-reveal-tertiary-sep {
    display: inline;
  }

  .verified-reveal-tertiary-link {
    min-height: 2.75rem;
    padding: 0.35rem 0.5rem;
    text-decoration: underline;
    text-underline-offset: 0.15em;
  }

  .verified-reveal-position-tick {
    right: calc(50% - 2.5rem);
  }
}

@media (min-width: 769px) {
  .verified-reveal-actions-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
  }

  .verified-reveal-actions,
  .verified-reveal-actions-tertiary {
    margin-top: 0;
  }

  .verified-reveal-actions-tertiary {
    gap: 0.5rem;
  }

  .verified-reveal-tertiary-sep {
    display: none;
  }

  .verified-reveal-tertiary-link {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    opacity: 0.9;
  }
}

@media (min-width: 1280px) {
  .verified-reveal-backdrop,
  .verified-reveal-modal {
    width: min(100%, 68rem);
  }
}

@media (max-height: 720px) {
  .verified-reveal-modal {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .verified-reveal-final-position {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
  }
}

/* Commercial UX — competition badges & Instant Win */
.competition-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-badge-row {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 2;
}
.badge-instant { background: rgba(120, 90, 255, 0.9); color: #fff; }
.badge-instant-end { background: rgba(90, 160, 255, 0.9); color: #fff; }
.badge-verified { background: rgba(40, 180, 140, 0.9); color: #052; }
.badge-allocated {
  background: rgba(15, 118, 110, 0.88);
  color: #fff;
  border: 1px solid rgba(94, 234, 212, 0.35);
}
.badge-ending { background: rgba(255, 170, 60, 0.95); color: #321; }
.badge-closed, .badge-sold-out { background: rgba(120, 120, 130, 0.9); color: #fff; }
.card-iw-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.35rem 0 0.5rem;
  font-size: 0.88rem;
}
.card-iw-pool { font-weight: 700; color: var(--accent, #9fd4ff); }
.card-iw-count, .card-iw-largest, .card-iw-remaining { color: var(--muted, #aab); }

.iw-hero-stats {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .iw-hero-stats { grid-template-columns: 1fr 1.2fr; align-items: end; }
}
.iw-hero-amount {
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
}
.iw-hero-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.iw-prize-headline-grid,
.iw-prize-high-grid {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 560px) {
  .iw-prize-headline-grid { grid-template-columns: repeat(2, 1fr); }
  .iw-prize-high-grid { grid-template-columns: repeat(3, 1fr); }
}
.iw-prize-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.03);
}
.iw-tier-headline { border-color: rgba(255, 210, 90, 0.35); }
.iw-tier-high { border-color: rgba(120, 180, 255, 0.25); }
.iw-prize-card-value { font-size: 1.15rem; font-weight: 700; }
.iw-prize-card-counts { font-size: 0.85rem; margin-top: 0.25rem; }
.iw-inventory-details summary { cursor: pointer; font-weight: 600; margin-bottom: 0.5rem; }
.iw-trust-panel { margin-top: 1rem; }
.iw-trust-title { font-size: 1.05rem; margin-bottom: 0.5rem; }
.iw-trust-list { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.iw-trust-list li { margin: 0.25rem 0; }
.iw-verification-section { margin-top: 1rem; }
.iw-verification-checks { list-style: none; padding: 0; }
.iw-verification-checks li { margin: 0.35rem 0; }

.iw-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0,0,0,0.65);
}
.iw-modal {
  width: min(100%, 34rem);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  padding: 1.25rem;
}
.iw-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}
.iw-how-list { padding-left: 1.1rem; }
.iw-tech-facts { margin-top: 0.75rem; font-size: 0.9rem; }
.iw-tech-facts div { margin: 0.35rem 0; }
body.iw-modal-open { overflow: hidden; }

.entry-purchase-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
@media (min-width: 480px) {
  .entry-purchase-actions { grid-template-columns: 1fr 1fr; }
}
.entry-multibuy-hint { font-size: 0.85rem; margin: 0.35rem 0; }

.recent-verified-wins-list { list-style: none; padding: 0; margin: 0; }
.recent-verified-win-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.recent-verified-win-prize { display: block; font-size: 1.05rem; }
.recent-verified-win-meta,
.recent-verified-win-ref,
.recent-verified-win-time { display: block; font-size: 0.82rem; color: var(--muted, #aab); }
.verified-pill.iw-verified-proof-btn {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.instant-win-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

/* Astronomer Companion (Phase 1) */
.astro-companion-host-mount {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1090;
  pointer-events: none;
}

.astro-companion {
  position: relative;
  display: block;
  pointer-events: none;
}

.astro-companion-layout {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 12px;
}

.astro-companion-help-open .astro-companion-orbit,
.astro-companion-help-open .astro-companion-radar-sweep {
  animation: none;
}

.astro-companion-help-open .astro-companion-anchor {
  animation: none;
  transform: scale(1.04);
}

.astro-companion-help-open .astro-companion-help-label {
  animation: none;
  opacity: 1;
  box-shadow: 0 0 18px rgba(76, 201, 240, 0.32);
}

.astro-companion-help-open .astro-companion-media video {
  opacity: 0.92;
}

.astro-companion-anchor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  transform-origin: center bottom;
  transition: transform 0.35s ease;
  animation: astro-companion-drift 18s ease-in-out infinite;
}

.astro-companion-orb-shell {
  position: relative;
  width: 112px;
  height: 112px;
}

.astro-companion-anchor:hover,
.astro-companion-anchor:focus-within {
  transform: scale(1.12);
  animation-play-state: paused;
}

.astro-companion-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.astro-companion-dismiss {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(8, 12, 24, 0.92);
  color: #f4f7ff;
  cursor: pointer;
  pointer-events: auto;
}

.astro-companion-help-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: inherit;
  pointer-events: auto;
}

.astro-companion-mobile-avatar {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.astro-companion-help-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(76, 201, 240, 0.34);
  background:
    linear-gradient(180deg, rgba(10, 18, 36, 0.94), rgba(6, 10, 22, 0.88));
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: #c7f4ff;
  text-shadow: 0 0 10px rgba(76, 201, 240, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  animation: astro-companion-help-label-glow 3s ease-in-out infinite;
}

.astro-companion-help-label::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(76, 201, 240, 0.18) 42%,
    rgba(228, 192, 107, 0.22) 50%,
    rgba(76, 201, 240, 0.18) 58%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: astro-companion-help-label-shimmer 4.5s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.astro-companion-anchor:hover .astro-companion-help-label,
.astro-companion-anchor:focus-within .astro-companion-help-label {
  animation: astro-companion-help-label-active 1.4s ease-in-out infinite;
  color: #e8fbff;
  border-color: rgba(126, 220, 255, 0.55);
}

.astro-companion-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(76, 201, 240, 0.28), 0 16px 40px rgba(0, 0, 0, 0.42);
  background: radial-gradient(circle at 30% 30%, rgba(76, 201, 240, 0.24), rgba(5, 8, 16, 0.96) 68%);
  transition: box-shadow 0.35s ease;
}

.astro-companion-anchor:hover .astro-companion-media,
.astro-companion-anchor:focus-within .astro-companion-media {
  box-shadow:
    0 0 0 1px rgba(76, 201, 240, 0.5),
    0 0 28px rgba(76, 201, 240, 0.22),
    0 18px 44px rgba(0, 0, 0, 0.46);
}

.astro-companion-video,
.astro-companion-static {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.astro-companion-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.astro-companion-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  height: 72%;
  border: 1px dashed rgba(228, 192, 107, 0.42);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: astro-companion-orbit-spin 14s linear infinite;
}

.astro-companion-radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(76, 201, 240, 0.34) 24deg,
    rgba(76, 201, 240, 0.08) 42deg,
    transparent 64deg
  );
  animation: astro-companion-radar-sweep 3.6s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.astro-companion-core {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5eead4, #4cc9f0);
  box-shadow: 0 0 18px rgba(76, 201, 240, 0.45);
  animation: astro-companion-core-pulse 2.8s ease-in-out infinite;
}

@keyframes astro-companion-orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes astro-companion-radar-sweep {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes astro-companion-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-5px, -7px) scale(1.02); }
  50% { transform: translate(4px, -3px) scale(0.98); }
  75% { transform: translate(-3px, 5px) scale(1.01); }
}

@keyframes astro-companion-core-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.88; }
}

@keyframes astro-companion-help-label-glow {
  0%, 100% {
    opacity: 0.78;
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(76, 201, 240, 0.24), 0 6px 16px rgba(0, 0, 0, 0.32);
  }
}

@keyframes astro-companion-help-label-active {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.04);
  }
}

@keyframes astro-companion-help-label-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.astro-companion-status {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--astro-blue, #4cc9f0);
}

.astro-companion-panel,
.astro-help-panel {
  width: min(22rem, calc(100vw - 32px));
  min-width: 20rem;
  max-width: 23.75rem;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(76, 201, 240, 0.22);
  background: rgba(8, 14, 30, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.astro-help-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.astro-help-panel-head-start {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.astro-help-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
}

.astro-help-panel-body {
  display: grid;
  gap: 12px;
  max-height: min(52vh, 420px);
  overflow: auto;
}

.astro-help-panel-intro,
.astro-help-panel-content {
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.astro-help-panel-topics {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.astro-help-panel-topic-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(76, 201, 240, 0.18);
  background: rgba(12, 20, 38, 0.72);
  color: #e2e8f0;
  text-align: left;
  font-size: 0.82rem;
  cursor: pointer;
}

.astro-help-panel-topic-btn:hover,
.astro-help-panel-topic-btn:focus-visible {
  border-color: rgba(76, 201, 240, 0.45);
  background: rgba(76, 201, 240, 0.12);
}

.astro-help-panel-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.astro-help-panel-backdrop {
  z-index: 1165;
}

body.astro-help-panel-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

.astro-companion-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.astro-companion-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.astro-companion-panel-copy {
  margin: 0 0 10px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.astro-companion-panel-intro {
  margin: 0 0 10px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.astro-companion-topics {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.astro-companion-topic-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(76, 201, 240, 0.18);
  background: rgba(12, 20, 38, 0.72);
  color: #e2e8f0;
  text-align: left;
  font-size: 0.82rem;
  cursor: pointer;
}

.astro-companion-topic-btn[aria-expanded='true'] {
  border-color: rgba(76, 201, 240, 0.45);
  background: rgba(76, 201, 240, 0.12);
}

.astro-companion-topic-detail {
  display: grid;
  gap: 8px;
}

.astro-companion-topic-title {
  margin: 0;
  font-size: 0.95rem;
}

.astro-companion-topic-content {
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.84rem;
  line-height: 1.45;
}

.astro-companion-meta {
  display: grid;
  gap: 6px;
  margin: 0;
}

.astro-companion-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.76rem;
}

.astro-companion-meta dt {
  color: rgba(148, 163, 184, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.astro-companion-meta dd {
  margin: 0;
  font-weight: 700;
  text-transform: capitalize;
}

.astro-companion[data-intent='warning'] .astro-companion-core,
.astro-companion[data-intent='alert'] .astro-companion-core {
  background: linear-gradient(135deg, #fbbf24, #f87171);
}

.astro-companion[data-intent='verified'] .astro-companion-core,
.astro-companion[data-intent='success'] .astro-companion-core,
.astro-companion[data-intent='celebration'] .astro-companion-core {
  background: linear-gradient(135deg, #5eead4, #e4c06b);
}

html[data-motion='reduced'] .astro-companion-orbit,
html[data-motion='reduced'] .astro-companion-radar-sweep,
html[data-motion='reduced'] .astro-companion-core,
html[data-motion='reduced'] .astro-companion-anchor,
html[data-motion='reduced'] .astro-companion-help-label,
html[data-motion='reduced'] .astro-companion-help-label::after {
  animation: none;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .astro-companion-host-mount {
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .astro-companion-orb-shell {
    width: 96px;
    height: 96px;
  }

  .astro-companion-anchor:hover,
  .astro-companion-anchor:focus-within {
    transform: scale(1.1);
  }
}

@media (max-width: 767px) {
  .astro-companion-host-mount {
    right: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .astro-companion-layout {
    display: block;
  }

  .astro-companion-orb-shell {
    width: 56px;
    height: 56px;
  }

  .astro-companion-visual {
    display: none;
  }

  .astro-companion-help-trigger {
    display: block;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(76, 201, 240, 0.28), 0 10px 24px rgba(0, 0, 0, 0.42);
    background: radial-gradient(circle at 30% 30%, rgba(76, 201, 240, 0.24), rgba(5, 8, 16, 0.96) 68%);
  }

  .astro-companion-mobile-avatar {
    display: block;
  }

  .astro-companion-help-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    animation: none;
    box-shadow: none;
  }

  .astro-companion-help-label::after {
    display: none;
  }

  .astro-companion-panel,
  .astro-help-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1170;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: min(78dvh, 560px);
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .astro-help-panel.is-open {
    transform: translateY(0);
  }

  .astro-help-panel-body {
    max-height: min(58dvh, 460px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .astro-companion-panel,
  .astro-help-panel {
    transition: none;
  }
}

.competition-progress {
  margin: 12px 0;
}

.competition-progress-primary {
  margin: 0;
  font-weight: 600;
}

.competition-progress-secondary,
.competition-progress-remaining,
.competition-progress-instant {
  margin: 4px 0 0;
}

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

.mission-bundle-card {
  padding: 18px;
}

.mission-bundle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mission-bundle-badge {
  background: var(--accent-soft, rgba(255, 255, 255, 0.08));
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 4px 10px;
}

.mission-bundle-lines {
  margin: 12px 0;
  padding-left: 18px;
}

.mission-bundle-pricing {
  margin: 12px 0;
}

.mission-bundle-saving {
  color: var(--accent, #7dd3fc);
}

.competition-rail-price,
.next-draw-prize {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.competition-rail-cta {
  margin-top: 10px;
}

.free-entry-callout,
.practice-reveal-panel,
.how-astro-free-entry {
  margin-top: 16px;
}

.how-astro-works-page {
  display: grid;
  gap: 24px;
}

.how-astro-sections {
  display: grid;
  gap: 18px;
}

.how-astro-section {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.how-astro-section h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.how-astro-summary {
  margin: 0;
  color: var(--text-muted);
  max-width: 62ch;
}

.how-astro-details {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.how-astro-details > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
  list-style: none;
}

.how-astro-details > summary::-webkit-details-marker {
  display: none;
}

.how-astro-details > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.how-astro-details-body {
  margin-top: 12px;
  color: var(--text-muted);
}

.how-astro-detail-list {
  margin: 0;
  padding-left: 1.1rem;
}

.how-astro-link-row {
  margin: 14px 0 0;
}

.verified-draw-consumer {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.verified-draw-outcome-facts {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
}

.verified-draw-outcome-facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.verified-draw-outcome-facts dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.verified-draw-milestone-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.verified-draw-milestone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.verified-draw-milestone.is-complete {
  border-color: color-mix(in srgb, #5eead4 35%, var(--border));
}

.verified-draw-milestone.is-current {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}

.verified-draw-milestone.is-pending {
  opacity: 0.72;
}

.verified-draw-milestone-icon {
  font-weight: 800;
}

.verified-draw-milestone-status {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.verified-draw-status-panel > summary,
.verified-draw-technical > summary {
  cursor: pointer;
  font-weight: 700;
}

.verified-draw-status-panel > summary:focus-visible,
.verified-draw-technical > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.verified-draw-status-body {
  margin-top: 14px;
}

.verified-draw-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .home-trust-band-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .home-trust-band-list {
    grid-template-columns: 1fr;
  }

  .home-shell {
    gap: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.verified-draw-subheading {
  margin: 0 0 10px;
  font-size: 1rem;
}

.practice-reveal-panel {
  padding: 22px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.06), transparent);
}

.practice-reveal-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(125, 211, 252, 0.45);
  background: rgba(125, 211, 252, 0.1);
}

.practice-reveal-lead {
  margin: 0 0 10px;
}

.practice-reveal-warning {
  margin: 12px 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.practice-reveal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.instant-win-reveal-open {
  overflow: hidden;
}

.instant-win-reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  background: rgba(3, 7, 18, 0.9);
  padding: 16px;
}

.instant-win-reveal-practice-band {
  margin: -28px -24px 16px;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f172a;
  background: linear-gradient(90deg, #fbbf24, #fde68a, #fbbf24);
  border-radius: 20px 20px 0 0;
  border-bottom: 1px solid rgba(251, 191, 36, 0.45);
}

.instant-win-reveal-overlay.is-practice .instant-win-reveal-panel {
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(125, 211, 252, 0.12);
}

.instant-win-reveal-overlay.is-launcher .instant-win-reveal-panel {
  width: min(100%, 640px);
}

.instant-win-reveal-overlay.is-complete .instant-win-reveal-body {
  min-height: 0;
}

.instant-win-reveal-panel {
  width: min(100%, 580px);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: var(--surface, #111827);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  outline: none;
}

.iw-reveal-sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal-skip-link {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 4px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.reveal-skip-link:hover,
.reveal-skip-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.reveal-skip-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.instant-win-reveal-kicker {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.instant-win-reveal-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.instant-win-reveal-intro {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.instant-win-reveal-body {
  min-height: 200px;
  margin-top: 18px;
}

.instant-win-reveal-note {
  margin: 14px 0 0;
  font-size: 0.875rem;
}

.instant-win-reveal-actions {
  margin-top: 16px;
}

.instant-win-reveal-result-host {
  margin-top: 8px;
}

.iw-reveal-outcome {
  text-align: center;
  padding: 28px 20px 24px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 20%, rgba(125, 211, 252, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.iw-reveal-outcome.is-practice {
  border-color: rgba(251, 191, 36, 0.28);
}

.iw-reveal-outcome-sparkles {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: rgba(251, 191, 36, 0.65);
  opacity: 0.85;
}

.iw-reveal-outcome.is-win .iw-reveal-outcome-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.iw-reveal-outcome.is-win .iw-reveal-outcome-amount {
  margin: 10px 0 0;
  font-size: clamp(2.75rem, 9vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(125, 211, 252, 0.25);
}

.iw-reveal-outcome.is-win.is-practice .iw-reveal-outcome-amount {
  color: #fde68a;
  text-shadow: 0 0 32px rgba(251, 191, 36, 0.2);
}

.iw-reveal-outcome.is-win .iw-reveal-outcome-type {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.iw-reveal-outcome-note,
.iw-reveal-outcome-support {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.iw-reveal-outcome.is-neutral .iw-reveal-outcome-headline {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.iw-practice-launcher {
  display: grid;
  gap: 18px;
}

.iw-practice-scenario-block {
  display: grid;
  gap: 8px;
}

.iw-practice-scenario-label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.iw-practice-scenario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.iw-practice-scenario-btn {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.iw-practice-scenario-btn.is-active {
  border-color: var(--accent);
  background: rgba(125, 211, 252, 0.1);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.25);
}

.iw-practice-scenario-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.instant-win-reveal-picker-label {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.instant-win-reveal-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.instant-win-reveal-style-card {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.instant-win-reveal-style-card:hover,
.instant-win-reveal-style-card:focus-visible {
  border-color: rgba(125, 211, 252, 0.5);
  outline: none;
}

.instant-win-reveal-style-card.is-selected {
  border-color: var(--accent);
  background: rgba(125, 211, 252, 0.08);
  transform: translateY(-1px);
}

.instant-win-reveal-style-icon {
  font-size: 1.25rem;
  color: var(--accent);
}

.instant-win-reveal-style-title {
  font-weight: 700;
  font-size: 0.9375rem;
}

.instant-win-reveal-style-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.scratch-reveal {
  display: grid;
  gap: 12px;
}

.scratch-reveal-surface {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1 / 0.58;
  min-height: 260px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.2), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.scratch-reveal-brand {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
  text-align: center;
}

.scratch-reveal-brand-mark {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: rgba(253, 230, 138, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.scratch-reveal-brand-hint {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.scratch-reveal-result {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(125, 211, 252, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
  padding: 20px;
  text-align: center;
}

.scratch-reveal-mystery {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(125, 211, 252, 0.35);
}

.scratch-reveal-placeholder-label {
  display: block;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.scratch-reveal-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  touch-action: none;
  cursor: crosshair;
}

.scratch-reveal-canvas.is-loading {
  opacity: 0;
  pointer-events: none;
}

.instant-win-reveal-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.instant-win-reveal-overlay.is-revealing .instant-win-reveal-body {
  min-height: 240px;
}

.orbit-reveal.is-revealing .orbit-reveal-core,
.signal-reveal.is-revealing .signal-reveal-radar,
.launch-reveal.is-revealing .launch-reveal-pad {
  box-shadow: 0 0 32px rgba(125, 211, 252, 0.35);
}

.instant-win-reveal-style-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.15);
}

body.instant-win-reveal-open .astro-companion-host-mount {
  z-index: 1100;
}

.scratch-reveal-progress-wrap {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.scratch-reveal-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.12s ease;
}

.scratch-reveal-progress-label {
  margin: 0;
  font-size: 0.8125rem;
  text-align: center;
}

.scratch-reveal-fallback {
  width: 100%;
}

.scratch-reveal.is-revealed .scratch-reveal-canvas {
  display: none;
}

.launch-reveal,
.orbit-reveal,
.signal-reveal {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.scratch-reveal-fallback {
  justify-self: center;
}

.launch-reveal-stage {
  width: min(100%, 340px);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.launch-reveal-pad {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 20px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  background:
    radial-gradient(circle at 50% 85%, rgba(125, 211, 252, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.65));
  display: grid;
  place-items: end center;
  padding-bottom: 28px;
  overflow: hidden;
}

.launch-reveal-charge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--charge, 0%);
  background: linear-gradient(180deg, transparent, rgba(125, 211, 252, 0.42));
  border-radius: 0 0 20px 20px;
  transition: height 0.1s linear;
}

.launch-reveal-rocket {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 160px;
  transform: translateY(8px);
}

.launch-reveal.is-charging .launch-reveal-rocket {
  animation: iw-rocket-idle 0.9s ease-in-out infinite;
}

.launch-reveal-rocket-svg {
  width: 100%;
  height: 100%;
}

.launch-reveal-rocket-body {
  fill: rgba(125, 211, 252, 0.85);
  stroke: rgba(253, 230, 138, 0.55);
  stroke-width: 2;
}

.launch-reveal-rocket-fin {
  fill: rgba(96, 165, 250, 0.7);
}

.launch-reveal-rocket-window {
  fill: rgba(15, 23, 42, 0.85);
  stroke: rgba(253, 230, 138, 0.65);
  stroke-width: 2;
}

.launch-reveal-flame {
  position: absolute;
  bottom: 18px;
  width: 28px;
  height: 42px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, #fde68a, #f59e0b, transparent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease;
}

.launch-reveal.is-charging .launch-reveal-flame,
.launch-reveal.is-complete .launch-reveal-flame {
  opacity: 0.85;
  animation: iw-launch-flame 0.45s ease-in-out infinite alternate;
}

.launch-reveal-charge-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.launch-reveal-charge-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.launch-reveal-charge-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #fde68a);
  transition: width 0.1s linear;
}

.launch-reveal-countdown {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.launch-reveal-trigger {
  min-width: 220px;
  min-height: 48px;
}

.orbit-reveal-ring {
  position: relative;
  width: min(72vw, 260px);
  height: min(72vw, 260px);
  border-radius: 50%;
  border: 2px solid rgba(125, 211, 252, 0.25);
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.06), transparent 68%);
}

.orbit-reveal-scan-point {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
  animation: iw-orbit-scan-point 2.5s linear infinite;
  transform-origin: 50% 430%;
}

.orbit-reveal-core {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  gap: 2px;
  font-weight: 800;
  color: var(--text-muted);
  background: radial-gradient(circle at 35% 30%, rgba(125, 211, 252, 0.18), rgba(15, 23, 42, 0.85));
  border: 2px solid rgba(125, 211, 252, 0.35);
  box-shadow: inset 0 0 24px rgba(125, 211, 252, 0.12);
}

.orbit-reveal-core-label {
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
}

.orbit-reveal-core-mark {
  font-size: 1.5rem;
  line-height: 1;
}

.signal-reveal-radar {
  position: relative;
  width: min(72vw, 260px);
  height: min(72vw, 260px);
  border-radius: 50%;
  border: 2px solid rgba(125, 211, 252, 0.25);
  background: radial-gradient(circle, rgba(125, 211, 252, 0.08), transparent 70%);
  overflow: hidden;
}

.signal-reveal-grid {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.12);
  background:
    repeating-radial-gradient(circle, transparent 0 14px, rgba(125, 211, 252, 0.06) 14px 15px);
}

.signal-reveal-lock-ring {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 2px dashed rgba(56, 189, 248, 0.35);
  opacity: 0;
}

.signal-reveal.is-locked .signal-reveal-lock-ring {
  opacity: 1;
  animation: iw-signal-lock-pulse 1s ease-in-out infinite;
}

.signal-reveal-acquired {
  margin: 8px 0 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #38bdf8;
}

.orbit-reveal-orbit {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(125, 211, 252, 0.35);
}

.orbit-reveal-orbit-a {
  animation: iw-orbit-spin 4s linear infinite;
}

.orbit-reveal-orbit-b {
  inset: 36px;
  animation: iw-orbit-spin 6s linear infinite reverse;
}

.orbit-reveal-scanner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(125, 211, 252, 0.35) 40deg, transparent 80deg);
  animation: iw-orbit-spin 2.5s linear infinite;
}

.orbit-reveal.is-locked .orbit-reveal-core,
.signal-reveal.is-locked .signal-reveal-radar {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(125, 211, 252, 0.25);
}

.signal-reveal-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(125, 211, 252, 0.45) 30deg, transparent 60deg);
  animation: iw-orbit-spin 2s linear infinite;
}

.signal-reveal-blip {
  position: absolute;
  top: 38%;
  left: 58%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: iw-signal-blip 2s ease-in-out infinite;
}

.signal-reveal-bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 48px;
}

.signal-reveal-bar {
  width: 10px;
  height: calc(20% + (var(--bar-index) * 12%));
  border-radius: 4px;
  background: rgba(125, 211, 252, 0.35);
  animation: iw-signal-bar 1.2s ease-in-out infinite;
  animation-delay: calc(var(--bar-index) * 0.1s);
}

.launch-reveal-status,
.orbit-reveal-status,
.signal-reveal-status {
  margin: 0;
  font-weight: 600;
  color: var(--text-muted);
}

@keyframes iw-rocket-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes iw-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes iw-signal-blip {
  0%, 40%, 100% { opacity: 0; transform: scale(0.6); }
  55% { opacity: 1; transform: scale(1); }
}

@keyframes iw-signal-bar {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.instant-win-reveal-style-scratch .instant-win-reveal-stage {
  display: none;
}

.my-entries-table code {
  font-size: 0.85rem;
}

.basket-recommendations-host {
  padding: 0 16px 12px;
}

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

.basket-recommendation-card {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  background: transparent;
  color: inherit;
}

.basket-bundle-note {
  margin-bottom: 12px;
  padding: 12px;
}

@media (max-width: 560px) {
  .instant-win-reveal-style-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .mission-bundle-grid {
    grid-template-columns: 1fr;
  }

  .my-entries-table {
    font-size: 0.9rem;
  }
}

/* Astro Side — branded whole-site theme (Solar = light, Eclipse = dark) */
:root {
  --side-primary: var(--accent);
  --side-glow: rgba(76, 201, 240, 0.35);
  --side-accent: var(--gold-soft, #e4c06b);
  --side-surface: color-mix(in srgb, var(--surface) 88%, transparent);
  --alignment-primary: var(--side-primary);
  --alignment-glow: var(--side-glow);
  --alignment-accent: var(--side-accent);
  --alignment-surface: var(--side-surface);
}

[data-alignment="solar"] {
  --side-primary: #f6d57a;
  --side-glow: rgba(246, 213, 122, 0.42);
  --side-accent: #4cc9f0;
  --side-surface: color-mix(in srgb, #fff7e8 18%, var(--surface));
  --alignment-primary: var(--side-primary);
  --alignment-glow: var(--side-glow);
  --alignment-accent: var(--side-accent);
  --alignment-surface: var(--side-surface);
}

[data-alignment="eclipse"] {
  --side-primary: #8b7cf8;
  --side-glow: rgba(139, 124, 248, 0.38);
  --side-accent: #4cc9f0;
  --side-surface: color-mix(in srgb, #120f24 22%, var(--surface));
  --alignment-primary: var(--side-primary);
  --alignment-glow: var(--side-glow);
  --alignment-accent: var(--side-accent);
  --alignment-surface: var(--side-surface);
}

html[data-alignment="solar"] body.theme-light {
  --bg: #e9eef8;
  --bg-page: #e3eaf6;
  --surface: #f7f9ff;
  --surface-strong: #fcfdff;
  --border: rgba(11, 18, 32, 0.09);
  --ring: rgba(76, 201, 240, 0.14);
  --ring-accent: color-mix(in srgb, var(--gold) 28%, transparent);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse 120% 70% at 50% -20%, rgba(246, 213, 122, 0.16), transparent 58%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(76, 201, 240, 0.1), transparent 55%),
    linear-gradient(180deg, #edf2fb 0%, #e5ecf8 48%, #e8eef8 100%);
}

html[data-alignment="solar"] body.theme-light::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(76, 201, 240, 0.55) 0, transparent 100%),
    radial-gradient(1px 1px at 28% 62%, rgba(246, 213, 122, 0.45) 0, transparent 100%),
    radial-gradient(1px 1px at 46% 34%, rgba(255, 255, 255, 0.75) 0, transparent 100%),
    radial-gradient(1px 1px at 63% 78%, rgba(76, 201, 240, 0.35) 0, transparent 100%),
    radial-gradient(1px 1px at 81% 24%, rgba(246, 213, 122, 0.4) 0, transparent 100%),
    radial-gradient(1px 1px at 92% 58%, rgba(255, 255, 255, 0.55) 0, transparent 100%),
    radial-gradient(ellipse 55% 35% at 78% 12%, rgba(76, 201, 240, 0.08), transparent 70%),
    radial-gradient(circle at 18% 82%, rgba(246, 213, 122, 0.07), transparent 42%);
}

html[data-alignment="solar"] body.theme-light .card,
html[data-alignment="solar"] body.theme-light .site-header {
  background: color-mix(in srgb, var(--surface) 92%, rgba(255, 248, 235, 0.45));
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--side-primary) 12%, transparent),
    0 18px 40px rgba(76, 201, 240, 0.06);
}

html[data-alignment="solar"] body.theme-light .btn-primary {
  box-shadow: 0 10px 28px rgba(246, 213, 122, 0.18);
}

.astro-side-picker-character {
  display: block;
  position: relative;
  min-height: 160px;
  border-radius: 12px;
  overflow: hidden;
}

.astro-side-picker-character-img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center bottom;
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, color-mix(in srgb, var(--side-primary) 16%, transparent), transparent 70%),
    color-mix(in srgb, var(--side-surface) 88%, transparent);
}

.astro-side-picker-character-fallback {
  display: block;
  min-height: 160px;
}

.alignment-invite-banner {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: min(640px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--elev);
}

.alignment-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 8, 18, 0.72);
}

.alignment-picker-dialog {
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
}

.alignment-picker-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.alignment-picker-header h2 {
  margin: 0 0 10px;
}

.alignment-picker-options {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.alignment-picker-option {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: var(--alignment-surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.alignment-picker-option:hover {
  border-color: color-mix(in srgb, var(--alignment-primary) 45%, var(--border));
}

.alignment-picker-option:focus-visible {
  outline: 2px solid var(--alignment-primary);
  outline-offset: 3px;
}

.alignment-picker-option.is-selected {
  border-color: var(--alignment-primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--alignment-primary) 35%, transparent);
}

.alignment-picker-preview {
  display: block;
  min-height: 140px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--alignment-primary) 25%, var(--border));
  overflow: hidden;
  position: relative;
}

.astro-side-theme-preview {
  display: grid;
  grid-template-rows: 18px 1fr;
  padding: 0;
}

.astro-side-preview-chrome {
  display: block;
  height: 18px;
  background: color-mix(in srgb, var(--alignment-primary) 18%, rgba(255, 255, 255, 0.08));
  border-bottom: 1px solid color-mix(in srgb, var(--alignment-primary) 20%, transparent);
}

.astro-side-preview-body {
  display: block;
  min-height: 118px;
}

.astro-side-preview-body--solar {
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.95) 0 12%, transparent 13%),
    radial-gradient(circle at 72% 68%, rgba(76, 201, 240, 0.35), transparent 48%),
    linear-gradient(180deg, #fff9ef 0%, #f4df9b 52%, #dff6ff 100%);
}

.astro-side-preview-body--eclipse {
  background:
    radial-gradient(circle at 50% 42%, rgba(8, 6, 18, 0.96) 0 18%, transparent 19%),
    radial-gradient(circle at 22% 24%, rgba(139, 124, 248, 0.55), transparent 42%),
    radial-gradient(circle at 78% 72%, rgba(76, 201, 240, 0.28), transparent 45%),
    linear-gradient(180deg, #0a0d1a 0%, #1a1434 55%, #0d2230 100%);
}

.alignment-picker-option-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--alignment-primary);
}

.header-nav #themeToggle .header-btn-label {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.alignment-picker-preview--solar {
  background:
    radial-gradient(circle at 30% 30%, rgba(246, 213, 122, 0.85), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(76, 201, 240, 0.45), transparent 50%),
    linear-gradient(145deg, #fff8ea, #f2d27b 55%, #4cc9f0);
}

.alignment-picker-preview--eclipse {
  background:
    radial-gradient(circle at 50% 50%, rgba(12, 10, 24, 0.95) 34%, transparent 36%),
    radial-gradient(circle at 20% 20%, rgba(139, 124, 248, 0.55), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(76, 201, 240, 0.35), transparent 50%),
    linear-gradient(160deg, #0d1020, #241b3f 55%, #10283a);
}

.alignment-picker-option-title {
  display: block;
  font-size: 1.05rem;
}

.alignment-picker-option-desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.alignment-picker-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--alignment-primary) 40%, var(--border));
  font-size: 0.8125rem;
  font-weight: 700;
}

.alignment-picker-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.alignment-account-current {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 12px 0;
}

.alignment-account-badge {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid var(--alignment-primary);
  box-shadow: 0 0 18px var(--alignment-glow);
}

.alignment-account-badge--solar {
  background: radial-gradient(circle at 35% 35%, #fff6dc, #f0c85f 58%, #4cc9f0);
}

.alignment-account-badge--eclipse {
  background:
    radial-gradient(circle at 50% 50%, #0a0816 36%, transparent 38%),
    radial-gradient(circle at 25% 25%, #8b7cf8, #1a1430 70%);
}

.alignment-account-badge.is-unset {
  background: var(--surface);
  box-shadow: none;
}

.alignment-account-label strong {
  color: var(--alignment-primary);
}

.astro-companion[data-alignment="solar"] .astro-companion-visual {
  filter: drop-shadow(0 0 10px rgba(246, 213, 122, 0.35));
}

.astro-companion[data-alignment="eclipse"] .astro-companion-visual {
  filter: drop-shadow(0 0 12px rgba(139, 124, 248, 0.35));
}

.instant-win-reveal-overlay.alignment-fx-solar.is-revealing {
  background:
    radial-gradient(circle at 50% 12%, rgba(246, 213, 122, 0.16), transparent 42%),
    rgba(4, 8, 18, 0.78);
}

.instant-win-reveal-overlay.alignment-fx-eclipse.is-revealing {
  background:
    radial-gradient(circle at 50% 18%, rgba(139, 124, 248, 0.2), transparent 45%),
    rgba(2, 4, 12, 0.82);
}

.instant-win-reveal-overlay.alignment-fx-solar .iw-reveal-outcome-sparkles {
  color: #f6d57a;
}

.instant-win-reveal-overlay.alignment-fx-eclipse .iw-reveal-outcome-sparkles {
  color: #8b7cf8;
}

.iw-reveal-outcome-burst-label {
  font-weight: 800;
  letter-spacing: 0.04em;
}

html[data-motion='reduced'] .alignment-picker-preview,
html[data-motion='reduced'] .instant-win-reveal-overlay.alignment-fx-solar,
html[data-motion='reduced'] .instant-win-reveal-overlay.alignment-fx-eclipse,
html[data-motion='reduced'] .astro-companion[data-alignment] .astro-companion-visual {
  filter: none;
  animation: none;
}

@media (max-width: 640px) {
  .alignment-picker-options {
    grid-template-columns: 1fr;
  }

  .alignment-invite-banner {
    flex-direction: column;
    align-items: stretch;
  }
}
