:root {
  color-scheme: light;
  --ink: #090506;
  --panel: #11100d;
  --panel-2: #181611;
  --muted: #b7ad92;
  --paper: #080807;
  --white: #ffffff;
  --gold: #d8a72a;
  --gold-light: #f3d77a;
  --gold-soft: rgba(216, 167, 42, 0.14);
  --line: rgba(216, 167, 42, 0.26);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--white);
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
.brand,
.nav,
.button,
.section-kicker,
.status-chip,
.chain-chip,
.raffle-type-tabs,
.raffle-card-title,
.raffle-stats dd {
  font-family: var(--font-display);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'><filter id='stipple'><feTurbulence type='fractalNoise' baseFrequency='1.45' numOctaves='2' stitchTiles='stitch' result='noise'/><feColorMatrix in='noise' type='luminanceToAlpha' result='alpha'/><feComponentTransfer in='alpha' result='cut'><feFuncA type='discrete' tableValues='0 0 0 .18 .46 .72 .86 1'/></feComponentTransfer><feFlood flood-color='%23d8a72a' result='ink'/><feComposite in='ink' in2='cut' operator='in'/></filter><rect width='100%' height='100%' filter='url(%23stipple)'/></svg>");
  background-size: 260px 260px;
  mix-blend-mode: screen;
  opacity: 0.42;
}

body::after {
  content: none;
}

body > * {
  position: relative;
  z-index: 3;
}

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(216, 167, 42, 0.38);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.78);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 7, 0.94);
  border-color: rgba(216, 167, 42, 0.5);
}

.brand,
.nav,
.header-join,
.header-actions,
.auth-actions,
.auth-user-mini {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding-left: 8px;
  font-weight: 900;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(216, 167, 42, 0.42);
}

.nav {
  gap: 4px;
  justify-content: center;
}

.mobile-nav-toggle {
  display: none;
}

.nav a,
.nav-dropdown-toggle,
.header-join,
.button {
  min-height: 40px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.72em;
  line-height: 1;
  transition: transform 160ms ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
  color: var(--gold-light);
  background: rgba(216, 167, 42, 0.1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 12px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 20;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(216, 167, 42, 0.38);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  justify-content: flex-start;
  white-space: nowrap;
}

.header-join {
  justify-content: center;
  padding: 11px 16px;
  background: var(--gold);
  color: var(--ink);
}

.header-actions {
  justify-self: end;
  gap: 8px;
}

.auth-actions {
  gap: 8px;
}

.auth-login,
.auth-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.08);
  color: var(--gold-light);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.auth-user-mini {
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(216, 167, 42, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.auth-user-mini img,
.auth-user-mini span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.auth-user-mini img {
  object-fit: cover;
}

.auth-user-mini strong {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

.hero {
  position: relative;
  min-height: min(780px, 82vh);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 26%, rgba(216, 167, 42, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(216, 167, 42, 0.04), rgba(216, 167, 42, 0.04)),
    #080807;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: 110px max(24px, calc((100vw - 1120px) / 2)) 58px;
}

.hero::before,
section:not(.hero)::before,
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'><filter id='stipple'><feTurbulence type='fractalNoise' baseFrequency='1.45' numOctaves='2' stitchTiles='stitch' result='noise'/><feColorMatrix in='noise' type='luminanceToAlpha' result='alpha'/><feComponentTransfer in='alpha' result='cut'><feFuncA type='discrete' tableValues='0 0 0 .18 .46 .72 .86 1'/></feComponentTransfer><feFlood flood-color='%23d8a72a' result='ink'/><feComposite in='ink' in2='cut' operator='in'/></filter><rect width='100%' height='100%' filter='url(%23stipple)'/></svg>");
  background-size: 260px 260px;
  mix-blend-mode: screen;
  opacity: 0.52;
}

.hero > *,
section:not(.hero) > *,
footer > * {
  position: relative;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.36) 0%, rgba(8, 8, 7, 0.14) 100%),
    linear-gradient(0deg, rgba(8, 8, 7, 0.28) 0%, rgba(8, 8, 7, 0.04) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
  color: var(--white);
}

.hero-mascot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: min(48vw, 500px);
  isolation: isolate;
}

.hero-mascot::before {
  content: "";
  position: absolute;
  width: min(520px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(216, 167, 42, 0.2), rgba(216, 167, 42, 0.07) 44%, transparent 72%);
  filter: blur(10px);
  animation: none;
}

.hero-mascot img,
.hero-mascot video {
  position: relative;
  width: min(118%, 620px);
  height: auto;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.42));
}

.hero-mascot video {
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
}

@keyframes mascotFlight {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }

  45% {
    transform: translate3d(34px, -24px, 0) rotate(4deg);
  }

  72% {
    transform: translate3d(24px, -14px, 0) rotate(2deg);
  }
}

@keyframes mascotGlow {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes mascotTrail {
  0%,
  100% {
    opacity: 0.24;
    transform: translate3d(-18px, 10px, 0) scaleX(0.78);
  }

  50% {
    opacity: 0.72;
    transform: translate3d(6px, -4px, 0) scaleX(1);
  }
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  width: min(590px, 100%);
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.header-join:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(216, 167, 42, 0.24);
}

.button.secondary {
  border-color: rgba(216, 167, 42, 0.34);
  background: rgba(216, 167, 42, 0.08);
  color: var(--white);
}

@keyframes pulseDotGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 5px rgba(79, 255, 145, 0.12),
      0 0 10px rgba(79, 255, 145, 0.7);
  }

  50% {
    box-shadow:
      0 0 0 8px rgba(79, 255, 145, 0.05),
      0 0 22px rgba(79, 255, 145, 1);
  }
}

section:not(.hero) {
  position: relative;
  overflow: hidden;
  padding: 80px max(24px, calc((100vw - 1120px) / 2));
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

/* App-page title promoted from h2 to h1 for document outline/SEO; keeps the
   exact h2 look so nothing shifts visually. */
.page-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

/* Homepage section headings are a design choice to stay visually quiet, but
   they must remain in the DOM for SEO and screen readers — so hide them
   visually (sr-only) rather than display:none, which removes them entirely. */
main#top > section:not(.hero) h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Intro and join deliberately show their heading — restore normal flow. */
main#top > section.intro h2,
main#top > section.join h2 {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}

.intro p,
.crew-copy p,
.join p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  font-weight: 650;
  line-height: 1.65;
}

.about-copy {
  display: grid;
  gap: 18px;
}

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

.cory-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: center;
  padding-top: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 76% 44%, rgba(216, 167, 42, 0.14), transparent 32%),
    rgba(9, 5, 6, 0.1);
}

.cory-copy {
  max-width: 520px;
}

.cory-copy p:not(.section-kicker) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  font-weight: 700;
  line-height: 1.62;
}

.cory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.cory-tags span {
  padding: 9px 11px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.08);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cory-video {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 36vw, 520px);
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 167, 42, 0.24), transparent 38%),
    rgba(0, 0, 0, 0.58);
  box-shadow: var(--shadow);
}

.cory-video video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}


.cory-sound-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  min-width: 92px;
  padding: 10px 13px;
  border: 1px solid rgba(216, 167, 42, 0.5);
  border-radius: 6px;
  background: rgba(6, 5, 3, 0.82);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.cory-sound-toggle:hover,
.cory-sound-toggle:focus-visible {
  border-color: var(--gold);
  background: rgba(216, 167, 42, 0.14);
}

.cory-gallery {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(230px, 0.52fr) minmax(0, 1.48fr);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 8px;
  background: rgba(4, 3, 2, 0.52);
}

.cory-gallery-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
}

.cory-gallery-copy strong {
  color: var(--white);
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.12;
}

.cory-gallery-copy p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}

.cory-gallery-stage {
  position: relative;
  display: grid;
  min-height: 500px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 52% 50%, rgba(216, 167, 42, 0.24), transparent 42%),
    rgba(0, 0, 0, 0.3);
}

.cory-gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 30px 70px 38px;
  place-items: center;
}

.cory-gallery-slide.is-active {
  display: grid;
}

.cory-gallery-slide img {
  width: min(100%, 620px);
  height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 24px 25px rgba(0, 0, 0, 0.55));
}

.cory-gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(216, 167, 42, 0.36);
  border-radius: 50%;
  background: rgba(6, 5, 3, 0.78);
  color: var(--gold-light);
  cursor: pointer;
  transform: translateY(-50%);
}

.cory-gallery-arrow.previous {
  left: 18px;
}

.cory-gallery-arrow.next {
  right: 18px;
}

.cory-gallery-dots {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 50%;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.cory-gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.cory-gallery-dots button.is-active {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(216, 167, 42, 0.13);
}

.feature-grid article,
.opportunity-grid article,
.partner-card,
.wins-grid div,
.faq-list details,
.role-board div,
.team-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.feature-grid article {
  min-height: 240px;
  padding: 24px;
}

.opportunities {
  background: rgba(9, 5, 6, 0.08);
}

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

.opportunity-grid article {
  min-height: 230px;
  padding: 22px;
}

.opportunity-grid span,
.wins-grid span {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.raffles {
  background: rgba(9, 5, 6, 0.08);
}

.standalone-main {
  padding-top: 90px;
}

.standalone-main > section section:not(.hero) {
  padding: 18px;
}

.standalone-main > section section:not(.hero)::before {
  display: none;
}

.raffles-page .raffles {
  min-height: calc(100vh - 90px);
}

.raffle-preview {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 40%, rgba(216, 167, 42, 0.14), transparent 30%),
    rgba(9, 5, 6, 0.16);
}

.raffle-preview div {
  width: min(720px, 100%);
}

.raffle-preview p:not(.section-kicker) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  font-weight: 650;
  line-height: 1.65;
}

.raffle-heading {
  align-items: flex-start;
}

/* Pill segmented control — the shared switch style used across the site
   (raffle type, admin sections). Matches the leaderboard's .lb-tabs. */
.raffle-type-switch {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 7, 4, 0.5);
  /* With many tabs (admin sections) the row can exceed the viewport on mobile;
     scroll horizontally instead of wrapping labels into oversized pills. */
  overflow-x: auto;
  scrollbar-width: none;
}

.raffle-type-switch::-webkit-scrollbar {
  display: none;
}

.raffle-type-switch a {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 34px;
  padding: 8px 20px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.raffle-type-switch a:hover:not(.is-active) {
  color: var(--gold-light);
}

.raffle-type-switch a.is-active {
  background: linear-gradient(160deg, #f3d77a, #d8a72a);
  color: #241804;
}

.auth-panel,
.wallet-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 26%, rgba(216, 167, 42, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.wallet-panel {
  align-items: start;
}

.wallet-panel[hidden] {
  display: none;
}

.auth-panel[hidden] {
  display: none;
}

.raffle-readiness-bar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 12px 14px;
}

.raffle-readiness-balance,
.raffle-readiness-state {
  display: grid;
  gap: 3px;
}

.raffle-readiness-balance {
  min-width: 118px;
}

.raffle-readiness-balance span,
.raffle-readiness-state span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.raffle-readiness-balance strong {
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
}

.raffle-readiness-state strong {
  color: var(--gold-light);
  font-size: 0.9rem;
}

.auth-panel h3,
.wallet-panel h3 {
  margin: 0;
  font-size: clamp(1.18rem, 1.9vw, 1.9rem);
  line-height: 1.12;
}

.auth-panel p:not(.section-kicker),
.wallet-panel p:not(.section-kicker) {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.auth-panel > .button {
  justify-self: end;
}

.account-status-panel {
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr) auto;
  gap: 14px;
  padding: 14px 16px;
}

.account-status-panel .profile-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.account-status-panel .profile-status-grid div {
  min-height: 48px;
  padding: 8px 10px;
}

.account-status-panel .profile-status-grid span {
  font-size: 0.66rem;
}

.account-status-panel .profile-status-grid strong {
  margin-top: 4px;
  font-size: 0.86rem;
}

.account-profile-link {
  align-self: center;
  white-space: nowrap;
}

.account-setup-link {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 16px;
}

.account-setup-link p:not(.section-kicker) {
  margin-top: 8px;
}

.profile-accordion {
  overflow: hidden;
}

.profile-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.profile-accordion-summary::-webkit-details-marker {
  display: none;
}

.profile-accordion-summary .raffle-subheading {
  margin: 0;
  border: 0;
  padding: 0;
}

.profile-accordion-summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-right: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.profile-accordion[open] .profile-accordion-summary::after {
  transform: rotate(-135deg);
}

.profile-accordion-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(216, 167, 42, 0.3);
  background: rgba(216, 167, 42, 0.1);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
}

.profile-accordion[open] .profile-table {
  margin-top: 16px;
}

.setup-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 16px;
}

.setup-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 250, 240, 0.62);
}

.setup-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.setup-chip.is-connected {
  color: #7ff0a6;
  border-color: rgba(79, 255, 145, 0.28);
}

.setup-chip.is-connected::before {
  background: #4fff91;
  box-shadow: 0 0 9px rgba(79, 255, 145, 0.7);
}

.profile-empty.has-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.profile-empty .empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 9px;
  border: 1px solid rgba(216, 167, 42, 0.4);
  background: rgba(216, 167, 42, 0.1);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.profile-empty .empty-cta:hover {
  background: rgba(216, 167, 42, 0.18);
}

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

.wallet-form label {
  display: grid;
  gap: 8px;
}

.wallet-form label span {
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-form input {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid rgba(216, 167, 42, 0.26);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.52);
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.wallet-form input:focus {
  outline: 2px solid rgba(243, 215, 122, 0.4);
  outline-offset: 2px;
}

.wallet-form label span em {
  color: rgba(255, 250, 240, 0.4);
  font-style: normal;
  font-weight: 700;
  text-transform: none;
}

.wallet-chain {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(216, 167, 42, 0.14);
  border-radius: 10px;
  background: rgba(8, 8, 7, 0.28);
}

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

.wallet-form .wallet-default {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.wallet-form .wallet-chain.has-alt .wallet-default {
  display: flex;
}

.wallet-default-label {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wallet-default select {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(216, 167, 42, 0.26);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.52);
  color: var(--white);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.wallet-default select:focus {
  outline: 2px solid rgba(243, 215, 122, 0.4);
  outline-offset: 2px;
}

.wallet-form-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.wallet-form-actions p {
  margin: 0;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 800;
}

.x-verification-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.34);
}

.x-verification-card h4 {
  margin: 5px 0 0;
  color: var(--white);
  font-size: 1rem;
}

.x-verification-card p:not(.section-kicker) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
}

.x-verification-card code {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(207, 226, 196, 0.55);
  border-radius: 4px;
  background: rgba(207, 226, 196, 0.12);
  color: #dff5d4;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.x-verification-card.is-verified {
  border-color: rgba(98, 217, 139, 0.52);
}

.x-verification-status {
  padding: 8px 10px;
  border: 1px solid rgba(98, 217, 139, 0.72);
  border-radius: 6px;
  color: #62d98b;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.x-verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.x-verification-unavailable {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.x-verification-card > [data-x-verification-message] {
  grid-column: 1 / -1;
  margin: 0;
}

.ticket-buy {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.ticket-buy label {
  display: grid;
  gap: 6px;
  min-width: 96px;
}

.ticket-buy label span {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-buy input {
  width: 96px;
  min-height: 40px;
  padding: 10px;
  border: 1px solid rgba(216, 167, 42, 0.3);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.56);
  color: var(--white);
  font: inherit;
  font-weight: 800;
}

.raffle-card .ticket-buy label {
  min-width: 64px;
}

.raffle-card .ticket-buy input {
  width: 64px;
}

.raffle-card .button {
  min-height: 36px;
  padding: 8px 11px;
}

.raffle-card .raffle-actions {
  display: grid;
  justify-items: center;
}

.raffle-card .ticket-buy {
  justify-content: center;
}

.ticket-status,
.ticket-count {
  margin: 10px 0 0;
  color: var(--gold-light);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.35;
}

.ticket-count {
  margin-top: 4px;
  color: var(--muted);
}

.raffle-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
}

.raffle-card-meta .ticket-status,
.raffle-card-meta .ticket-count {
  margin: 0;
  font-size: 0.82rem;
}

.ticket-status:empty,
.ticket-count:empty {
  display: none;
}

.raffle-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.raffle-type-tabs a {
  min-height: 88px;
  padding: 18px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.raffle-type-tabs a:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 215, 122, 0.52);
  background: rgba(216, 167, 42, 0.1);
}

.raffle-type-tabs span {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1;
}

.raffle-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.raffle-hub-card {
  display: grid;
  align-content: space-between;
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(216, 167, 42, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(216, 167, 42, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.raffle-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 215, 122, 0.58);
  background:
    radial-gradient(circle at 78% 18%, rgba(216, 167, 42, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.13);
}

.raffle-hub-card span {
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.raffle-hub-card h3 {
  max-width: 620px;
  margin: 14px 0 0;
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  line-height: 1.08;
}

.raffle-hub-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.55;
}

.raffle-hub-card strong {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
}

.raffle-subsection {
  scroll-margin-top: 110px;
}

.raffle-subsection + .raffle-subsection {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.raffle-subheading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.raffle-subheading h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.1;
}

.raffle-subheading > p {
  width: min(420px, 100%);
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.profile-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-status-grid div {
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.36);
}

.profile-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-status-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.12;
}

.profile-email-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.profile-email-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-email-toggle i {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid rgba(216, 167, 42, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 160ms ease;
}

.profile-email-toggle i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.profile-email-toggle input:checked + i {
  background: rgba(110, 231, 135, 0.22);
  border-color: rgba(110, 231, 135, 0.62);
}

.profile-email-toggle input:checked + i::after {
  transform: translateX(20px);
  background: #6ee787;
}

.profile-email-toggle input:focus-visible + i {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.profile-email-toggle input:disabled + i {
  opacity: 0.55;
}

.profile-email-status {
  padding: 14px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.36);
}

.profile-email-status span,
.profile-email-status strong {
  display: block;
}

.profile-email-status span {
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-email-status strong {
  margin-top: 7px;
  color: var(--white);
  overflow-wrap: anywhere;
}

.profile-email-status p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.profile-email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.profile-email-form[hidden] {
  display: none;
}

.profile-email-form label,
.profile-email-form label > span {
  display: block;
}

.profile-email-form label > span {
  margin-bottom: 7px;
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-email-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 8px;
  outline: none;
  background: rgba(8, 8, 7, 0.64);
  color: var(--white);
  font: inherit;
  font-weight: 750;
}

.profile-email-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 167, 42, 0.12);
}

.profile-email-code-form input {
  max-width: 220px;
  letter-spacing: 0.18em;
}

.raffle-readonly {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.08);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.raffle-readonly span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #6ee787;
  box-shadow: 0 0 0 6px rgba(110, 231, 135, 0.18);
  animation: liveDotBlink 1.25s ease-in-out infinite;
}

.raffle-readonly.is-loading span {
  animation: rafflePulse 1s ease-in-out infinite;
}

.raffle-readonly.is-live {
  color: #f7e7a8;
}

/* Leaderboard "Public" indicator: just the live dot + label, no box. */
[data-leaderboard-page] .raffle-readonly {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* raffles-page adds a black noise overlay to .raffle-readonly — kill it here
   so the badge is only the dot + text. */
[data-leaderboard-page] .raffle-readonly::before {
  content: none;
}

/* Small ghost link back to a sibling section (e.g. Raffles -> Campaigns). */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: start;
  margin-bottom: 14px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.back-link:hover {
  color: var(--gold-light);
  border-color: rgba(216, 167, 42, 0.5);
}

.back-link::before {
  content: "\2190";
  font-size: 0.95rem;
  line-height: 1;
}

.raffle-state {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 140px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 24%, rgba(216, 167, 42, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.raffle-state > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216, 167, 42, 0.32);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.1);
}

.raffle-state > span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--gold-light);
  box-shadow: 0 0 0 10px rgba(216, 167, 42, 0.16);
}

.raffle-loading > span::before {
  animation: rafflePulse 1s ease-in-out infinite;
}

.raffle-state h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  line-height: 1.12;
}

.raffle-state p:not(.section-kicker) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

@keyframes rafflePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes liveDotBlink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 5px rgba(110, 231, 135, 0.16);
    transform: scale(1);
  }

  50% {
    opacity: 0.52;
    box-shadow: 0 0 0 9px rgba(110, 231, 135, 0.08);
    transform: scale(0.82);
  }
}

.raffle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
  align-items: stretch;
}

.raffle-card,
.raffle-panel,
.raffle-detail-card,
.winner-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.raffle-card-featured {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
}

.raffle-media {
  position: relative;
  min-height: 260px;
  background: rgba(216, 167, 42, 0.08);
}

.raffle-card:not(.raffle-card-featured) .raffle-media {
  height: 120px;
  min-height: 0;
}

.raffle-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  filter: saturate(0.98) contrast(1.04);
}

.raffle-detail-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  margin-top: 18px;
}

.raffle-detail-card > * {
  min-width: 0;
}

.raffle-detail-media {
  position: relative;
  min-height: 400px;
  background: rgba(216, 167, 42, 0.08);
}

.raffle-detail-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.status-chip,
.chain-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--ink);
}

.status-open {
  background: var(--gold-light);
}

.status-drawn {
  background: #d8d2c0;
}

.status-refunded {
  background: #8b836f;
  color: var(--white);
}

.chain-chip {
  flex: 0 0 auto;
  background: var(--gold-soft);
  color: var(--gold-light);
}

.raffle-card-body,
.raffle-panel,
.raffle-detail-body {
  padding: 22px;
}

.raffle-card-body {
  padding: 11px;
}

.raffle-detail-body {
  display: grid;
  align-content: start;
  gap: 18px;
}

.raffle-detail-body h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.55vw, 2.55rem);
  line-height: 1.08;
}

.raffle-detail-body p:not(.section-kicker) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.58;
}

.raffle-card-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.raffle-card-title p {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.raffle-card-title h3,
.raffle-panel h3 {
  margin: 0;
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  line-height: 1.12;
}

.raffle-card-body > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.58;
}

.raffle-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 0;
}

.raffle-stats.compact {
  grid-template-columns: repeat(3, minmax(0, 78px));
  gap: 6px;
  justify-content: start;
}

.raffle-stats.compact > div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 7px;
}

.raffle-stats.compact dd {
  margin-top: 0;
  font-size: 0.8rem;
  white-space: nowrap;
}

.raffle-stats.detail {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
}

.raffle-stats div {
  min-height: 46px;
  padding: 7px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.42);
}

.raffle-stats dt,
.raffle-stats dd {
  margin: 0;
}

.raffle-stats dt {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.raffle-stats dd {
  margin-top: 3px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 900;
}

.stat-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.raffle-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.raffle-requirements span {
  padding: 8px 10px;
  border: 1px solid rgba(216, 167, 42, 0.24);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.08);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
}

.raffle-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.button.disabled,
.button:disabled {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.54);
  cursor: not-allowed;
  box-shadow: none;
}

.button.disabled:hover,
.button:disabled:hover {
  transform: none;
}

.raffle-panel {
  scroll-margin-top: 100px;
  background:
    linear-gradient(180deg, rgba(216, 167, 42, 0.12), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.raffle-panel ul {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.raffle-panel li {
  padding-left: 18px;
  border-left: 3px solid rgba(216, 167, 42, 0.55);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.raffle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 0;
}

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

.access-hero-panel,
.access-detail-shell,
.access-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 167, 42, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.access-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
}

.access-hero-panel h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.1vw, 2.1rem);
  line-height: 1.1;
}

.access-hero-panel p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 720;
  line-height: 1.55;
}

.access-hero-panel dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.access-hero-panel dl div {
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.38);
}

.access-hero-panel dt,
.access-hero-panel dd {
  margin: 0;
}

.access-hero-panel dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-hero-panel dd {
  margin-top: 8px;
  color: var(--white);
  font-weight: 900;
}

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

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

.access-card {
  overflow: hidden;
}

.access-card-featured {
  display: block;
  grid-column: auto;
}

.access-card-media,
.access-detail-media {
  position: relative;
  background: rgba(216, 167, 42, 0.08);
}

.access-card-media {
  min-height: 0;
  aspect-ratio: 16 / 7;
}

.access-card-media img,
.access-detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.access-card-featured .access-card-media {
  min-height: 0;
}

.access-mode-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(8, 8, 7, 0.72);
  border-radius: 7px;
  background: #cfe2c4;
  color: #11130f;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
}

.access-card-identities,
.access-detail-identities {
  position: relative;
  z-index: 2;
  display: flex;
}

.access-card-identities {
  height: 30px;
  margin-top: -24px;
  padding-left: 15px;
}

.access-card-identities img,
.access-detail-identities img {
  border: 3px solid #17150e;
  border-radius: 50%;
  background: #0b0b09;
  object-fit: cover;
}

.access-card-identities img {
  width: 48px;
  height: 48px;
}

.access-card-identities img + img,
.access-detail-identities img + img {
  margin-left: -13px;
}

.access-card-body {
  padding: 14px 15px 15px;
}

.access-card-body .section-kicker {
  margin: 0 0 6px;
}

.access-card-body h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.18;
}

.access-detail-body > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.access-card-metrics,
.access-detail-summary {
  display: grid;
  margin: 16px 0 0;
}

.access-card-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.access-card-metrics > div {
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 8px 5px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 7px;
  text-align: center;
}

.access-card-metrics dt,
.access-card-metrics dd,
.access-detail-summary dt,
.access-detail-summary dd {
  margin: 0;
}

.access-card-metrics dt,
.access-detail-summary dt {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-card-metrics dd {
  margin-top: 4px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.access-card .raffle-actions {
  margin-top: 16px;
}

.access-card-enter {
  width: 100%;
  justify-content: center;
  border-color: rgba(139, 106, 31, 0.38);
  background: transparent;
  color: var(--white);
}

.access-card.is-open .access-card-enter {
  border-color: rgba(89, 150, 95, 0.5);
  background: #cfe2c4;
  color: #11130f;
}

.access-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.access-requirements span {
  padding: 8px 10px;
  border: 1px solid rgba(216, 167, 42, 0.24);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.08);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
}

.access-eligibility-panel {
  margin-top: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(216, 167, 42, 0.28);
  border-bottom: 1px solid rgba(216, 167, 42, 0.28);
}

.access-eligibility-panel > .button {
  margin-top: 18px;
}

.access-eligibility-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.access-eligibility-heading h3,
.access-eligibility-panel > div > h3 {
  margin: 0;
  font-size: 1.3rem;
}

.access-eligibility-heading p,
.access-eligibility-panel > div > p,
.eligibility-note,
.access-social-tasks > p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.eligibility-result {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eligibility-result.is-eligible,
.access-eligibility-checks .is-passed > span {
  color: #62d98b;
}

.eligibility-result.is-blocked,
.access-eligibility-checks .is-needed > span {
  color: var(--gold-light);
}

.access-eligibility-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin-top: 18px;
}

.access-eligibility-checks > div {
  min-height: 112px;
  padding: 14px 0 14px 14px;
  border-left: 3px solid rgba(216, 167, 42, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.access-eligibility-checks > div.is-passed {
  border-left-color: rgba(98, 217, 139, 0.72);
}

.access-eligibility-checks span {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-eligibility-checks strong {
  display: block;
  margin-top: 8px;
}

.access-eligibility-checks p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
}

.access-social-tasks {
  margin-top: 20px;
}

.access-social-tasks > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.access-social-tasks span {
  padding: 8px 10px;
  border: 1px solid rgba(216, 167, 42, 0.24);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
}

.access-entry-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.access-social-confirm {
  display: flex;
  flex: 1 1 100%;
  gap: 10px;
  align-items: center;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
}

.access-social-confirm input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.access-entry-form [data-access-entry-status] {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Honour-system X task buttons: each opens the action on X, no verification. */
.access-social-note {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.access-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

/* Fine checklist rows: hairline borders, small quiet labels, an SVG stroke
   tick (geometry-perfect — no CSS-rotate checkmark hacks) and a small mono
   state word on the right instead of a pill. */
.access-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(216, 167, 42, 0.24);
  border-radius: 9px;
  background: rgba(9, 7, 4, 0.5);
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.access-task:hover {
  border-color: rgba(216, 167, 42, 0.5);
  background: rgba(216, 167, 42, 0.06);
}

.access-task-main {
  display: flex;
  align-items: center;
  gap: 9px;
  /* Must be allowed to shrink below its text width or the nowrap state text
     pushes the row past the card edge on phones. */
  flex: 1 1 auto;
  min-width: 0;
}

.access-task-tick {
  flex: none;
  width: 15px;
  height: 15px;
}

.access-task-tick circle {
  fill: none;
  stroke: rgba(216, 167, 42, 0.55);
  stroke-width: 1.3;
}

.access-task-tick path {
  fill: none;
  stroke: transparent;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-task-label {
  min-width: 0;
  font-size: 0.74rem;
}

.access-task.is-done {
  border-color: rgba(110, 231, 135, 0.35);
  background: rgba(110, 231, 135, 0.05);
  color: #cfefd6;
}

.access-task.is-done .access-task-tick circle {
  stroke: #6ee787;
}

.access-task.is-done .access-task-tick path {
  stroke: #6ee787;
}

.access-task-status {
  flex: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.access-task.is-done .access-task-status {
  color: #6ee787;
}

.access-task-status.is-checking {
  color: var(--gold-light);
  animation: access-check-pulse 1.1s ease-in-out infinite;
}

@keyframes access-check-pulse {
  50% { opacity: 0.45; }
}

.access-task-status.is-verified {
  color: #6ee787;
}

.access-task-status.is-failed {
  color: #e8b4b4;
}

.access-task.is-failed {
  border-color: rgba(232, 120, 120, 0.3);
}

@media (max-width: 480px) {
  .access-task {
    gap: 8px;
    padding: 8px 10px;
  }

  .access-task-main {
    gap: 8px;
  }

  .access-task-tick {
    width: 14px;
    height: 14px;
  }

  .access-task-label {
    font-size: 0.7rem;
  }

  .access-task-status {
    font-size: 0.55rem;
  }
}

.access-verify-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.access-verify-row[hidden],
.access-verify-note[hidden] {
  display: none !important;
}

.access-verify-note {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}

.access-entry-success h3 {
  margin: 0;
}

.access-entry-success p:last-child {
  margin: 10px 0 0;
}

.access-detail-shell {
  width: min(980px, 100%);
  margin-inline: auto;
  overflow: hidden;
}

.access-detail-media {
  min-height: 0;
  aspect-ratio: 16 / 5;
}

.access-detail-body {
  padding: 0 30px 30px;
}

.access-detail-body p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.access-detail-identities {
  justify-content: center;
  height: 48px;
  margin-top: -42px;
}

.access-detail-identities img {
  width: 90px;
  height: 90px;
}

.access-detail-heading {
  padding-top: 30px;
  text-align: center;
}

.access-detail-heading h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.access-detail-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.access-detail-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.access-detail-summary > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  background: rgba(8, 8, 7, 0.28);
  text-align: center;
}

.access-detail-summary dd {
  margin-top: 7px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 900;
}

.access-detail-copy {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(216, 167, 42, 0.24);
}

.access-detail-copy > p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.58;
}

.access-detail-copy > .button {
  margin-top: 16px;
}

.access-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.access-checklist div {
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.36);
}

.access-checklist span {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
}

.access-checklist strong {
  display: block;
  margin-top: 12px;
  font-size: 1.12rem;
}

.access-checklist p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.winner-preview {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.08);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.winner-preview span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.winner-preview.muted {
  background: rgba(255, 255, 255, 0.06);
}

.raffle-notice {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(216, 167, 42, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.raffle-notice span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.winner-section {
  margin-top: 18px;
  padding: 22px;
}

.winner-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.winner-list div {
  padding: 14px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.38);
}

.winner-list span {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
}

.winner-list strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: 1.1rem;
}

.winner-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.profile-shell {
  min-height: calc(100vh - 90px);
  background: rgba(9, 5, 6, 0.08);
}

.profile-hero,
.profile-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 20%, rgba(216, 167, 42, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 0.28fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid rgba(216, 167, 42, 0.42);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.12);
  color: var(--gold-light);
  font-size: 2rem;
  font-weight: 900;
}

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

.profile-hero h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.35vw, 2.35rem);
  line-height: 1.08;
}

.profile-hero p:not(.section-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.profile-points {
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(216, 167, 42, 0.24);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.42);
}

.profile-points span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-points strong {
  display: block;
  margin-top: 9px;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

.profile-section {
  margin-top: 12px;
  padding: 18px;
}

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

.profile-table {
  display: grid;
  gap: 10px;
}

.profile-table a,
.profile-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(240px, 0.65fr);
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.36);
  color: var(--white);
}

.profile-table a:hover {
  border-color: rgba(243, 215, 122, 0.58);
  background: rgba(216, 167, 42, 0.1);
}

.profile-table span {
  font-weight: 900;
}

.profile-table strong {
  color: var(--gold-light);
  font-size: 0.95rem;
  white-space: nowrap;
}

.profile-table em {
  color: var(--muted);
  font-style: normal;
  font-weight: 720;
  line-height: 1.35;
}

.profile-empty {
  padding: 13px;
  border: 1px solid rgba(216, 167, 42, 0.2);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.28);
  color: var(--muted);
  font-weight: 760;
}

.leaderboard-note {
  margin: -10px 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 780;
}

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

.leaderboard-podium article {
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 18%, rgba(216, 167, 42, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.leaderboard-rank {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.leaderboard-avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(216, 167, 42, 0.42);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.12);
  color: var(--gold-light);
  font-size: 1.55rem;
  font-weight: 900;
}

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

.leaderboard-podium h3 {
  margin: 14px 0 0;
  font-size: clamp(1.22rem, 2vw, 1.9rem);
  line-height: 1.1;
}

.leaderboard-podium strong {
  display: block;
  margin-top: 12px;
  color: var(--gold-light);
  font-size: 1.25rem;
}

.leaderboard-table {
  display: grid;
  gap: 10px;
}

.leaderboard-table div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  padding: 11px 14px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.36);
}

.leaderboard-table span {
  color: var(--gold-light);
  font-weight: 900;
}

.leaderboard-table strong {
  color: var(--white);
}

.leaderboard-table em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

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

.campaigns-page .leaderboard-note {
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.campaign-card,
.campaign-detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 167, 42, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.campaign-card {
  display: grid;
  align-content: start;
  min-height: 0;
  padding: 12px;
}

.campaign-card-head,
.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.campaign-card-head .status-chip {
  min-height: 28px;
  padding: 7px 10px;
  font-size: 0.68rem;
}

.campaign-card-head .status-chip,
.campaign-actions .status-chip {
  position: static;
}

.campaign-card-head a {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.campaign-card h3 {
  margin: 14px 0 0;
  font-size: clamp(1.08rem, 1.45vw, 1.45rem);
  line-height: 1.08;
}

.campaign-detail-main h3,
.campaign-proof-panel h3 {
  margin: 14px 0 0;
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  line-height: 1.12;
}

@media (max-width: 620px) {
  .claim-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .claim-form-actions {
    justify-content: flex-start;
  }

  .claim-form-actions .button.primary {
    width: 100%;
  }
}

.campaign-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.campaign-tasks span {
  display: inline-grid;
  gap: 3px;
  min-width: 92px;
  padding: 7px 9px;
  border: 1px solid rgba(216, 167, 42, 0.24);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.08);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 900;
}

.campaign-tasks strong {
  color: var(--white);
  font-size: 0.82rem;
}

.campaign-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}

.list-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.campaign-meta.detail {
  margin-bottom: 0;
}

.campaign-meta div {
  display: grid;
  min-height: 48px;
  align-content: center;
  padding: 7px 8px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.38);
}

.campaign-meta dt,
.campaign-meta dd {
  margin: 0;
}

.campaign-meta dt {
  color: var(--muted);
  overflow: hidden;
  font-size: 0.6rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.campaign-meta dd {
  margin-top: 5px;
  color: var(--white);
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-card > .button {
  min-height: 34px;
  padding: 9px 12px;
  font-size: 0.78rem;
}

.campaigns-page .campaign-card {
  position: relative;
  overflow: hidden;
  padding: 10px;
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 167, 42, 0.1), transparent 34%),
    rgba(8, 7, 5, 0.86);
  isolation: isolate;
}

.campaigns-page .campaign-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'><filter id='stipple'><feTurbulence type='fractalNoise' baseFrequency='1.45' numOctaves='2' stitchTiles='stitch' result='noise'/><feColorMatrix in='noise' type='luminanceToAlpha' result='alpha'/><feComponentTransfer in='alpha' result='cut'><feFuncA type='discrete' tableValues='0 0 0 .18 .46 .72 .86 1'/></feComponentTransfer><feFlood flood-color='%23000000' result='ink'/><feComposite in='ink' in2='cut' operator='in'/></filter><rect width='100%' height='100%' filter='url(%23stipple)'/></svg>");
  background-size: 220px 220px;
  opacity: 0.46;
}

.campaigns-page .campaign-card > * {
  position: relative;
  z-index: 1;
}

.campaigns-page .campaign-card h3 {
  margin-top: 10px;
  font-size: clamp(1rem, 1.18vw, 1.22rem);
}

.campaigns-page .campaign-tasks {
  margin-top: 10px;
}

.campaigns-page .campaign-meta {
  margin: 10px 0;
}

body.raffles-page .auth-panel,
body.raffles-page .wallet-panel,
body.raffles-page .account-status-panel,
body.raffles-page .account-setup-link,
body.raffles-page .profile-status-grid div,
body.raffles-page .raffle-readonly,
body.raffles-page .raffle-state,
body.raffles-page .raffle-hub-card,
body.raffles-page .raffle-card,
body.raffles-page .raffle-panel,
body.raffles-page .raffle-detail-card,
body.raffles-page .winner-section,
body.raffles-page .raffle-stats div,
body.raffles-page .access-hero-panel,
body.raffles-page .access-detail-shell,
body.raffles-page .access-card,
body.raffles-page .access-hero-panel dl div,
body.raffles-page .access-card-metrics > div,
body.raffles-page .access-detail-summary > div,
body.raffles-page .access-eligibility-panel,
body.raffles-page .access-eligibility-checks > div,
body.raffles-page .profile-hero,
body.raffles-page .profile-section,
body.raffles-page .profile-points,
body.raffles-page .profile-table a,
body.raffles-page .profile-table > div,
body.raffles-page .profile-empty,
body.raffles-page .leaderboard-podium article,
body.raffles-page .leaderboard-table div,
body.raffles-page .campaign-card,
body.raffles-page .campaign-detail-card,
body.raffles-page .campaign-proof-panel,
body.raffles-page .campaign-tasks span,
body.raffles-page .campaign-meta div,
body.raffles-page .claim-form,
body.raffles-page .admin-summary-grid div,
body.raffles-page .admin-report article,
body.raffles-page .admin-filters,
body.raffles-page .admin-batch-bar,
body.raffles-page .admin-claim-card,
body.raffles-page .access-admin-form,
body.raffles-page .access-admin-requirements,
body.raffles-page .access-admin-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(139, 106, 31, 0.24);
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 167, 42, 0.035), transparent 34%),
    rgba(6, 6, 5, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  isolation: isolate;
}

/* Gate/state boxes sit directly on the page — no fill, border, or box. */
body.raffles-page .raffle-state {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Drop the pill and border behind the raffle/admin tab switcher. */
/* Keep the pill container on raffles pages too (only the noise overlay is
   stripped elsewhere); a flat, borderless switch loses the segmented look. */
body.raffles-page .raffle-type-switch {
  background: rgba(9, 7, 4, 0.5);
}

/* Remove the box around the status dot. */
body.raffles-page .raffle-state > span {
  border: 0;
  background: transparent;
}

body.raffles-page .raffle-state > span::before {
  width: 9px;
  height: 9px;
  background: #4fff91;
  box-shadow:
    0 0 0 6px rgba(79, 255, 145, 0.14),
    0 0 14px rgba(79, 255, 145, 0.9);
  animation: pulseDotGlow 1.8s ease-in-out infinite;
}

/* Kill the texture/overlay box behind the admin gate content. */
body.raffles-page .raffle-state::before {
  display: none;
}

body.raffles-page .auth-panel::before,
body.raffles-page .wallet-panel::before,
body.raffles-page .account-status-panel::before,
body.raffles-page .account-setup-link::before,
body.raffles-page .profile-status-grid div::before,
body.raffles-page .raffle-readonly::before,
body.raffles-page .raffle-state::before,
body.raffles-page .raffle-hub-card::before,
body.raffles-page .raffle-card::before,
body.raffles-page .raffle-panel::before,
body.raffles-page .raffle-detail-card::before,
body.raffles-page .winner-section::before,
body.raffles-page .raffle-stats div::before,
body.raffles-page .access-hero-panel::before,
body.raffles-page .access-detail-shell::before,
body.raffles-page .access-card::before,
body.raffles-page .access-hero-panel dl div::before,
body.raffles-page .access-card-metrics > div::before,
body.raffles-page .access-detail-summary > div::before,
body.raffles-page .access-eligibility-panel::before,
body.raffles-page .access-eligibility-checks > div::before,
body.raffles-page .profile-hero::before,
body.raffles-page .profile-section::before,
body.raffles-page .profile-points::before,
body.raffles-page .profile-table a::before,
body.raffles-page .profile-table > div::before,
body.raffles-page .profile-empty::before,
body.raffles-page .leaderboard-podium article::before,
body.raffles-page .leaderboard-table div::before,
body.raffles-page .campaign-card::before,
body.raffles-page .campaign-detail-card::before,
body.raffles-page .campaign-proof-panel::before,
body.raffles-page .campaign-tasks span::before,
body.raffles-page .campaign-meta div::before,
body.raffles-page .claim-form::before,
body.raffles-page .admin-summary-grid div::before,
body.raffles-page .admin-report article::before,
body.raffles-page .admin-filters::before,
body.raffles-page .admin-batch-bar::before,
body.raffles-page .admin-claim-card::before,
body.raffles-page .access-admin-form::before,
body.raffles-page .access-admin-requirements::before,
body.raffles-page .access-admin-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'><filter id='stipple'><feTurbulence type='fractalNoise' baseFrequency='1.45' numOctaves='2' stitchTiles='stitch' result='noise'/><feColorMatrix in='noise' type='luminanceToAlpha' result='alpha'/><feComponentTransfer in='alpha' result='cut'><feFuncA type='discrete' tableValues='0 0 0 .18 .46 .72 .86 1'/></feComponentTransfer><feFlood flood-color='%23000000' result='ink'/><feComposite in='ink' in2='cut' operator='in'/></filter><rect width='100%' height='100%' filter='url(%23stipple)'/></svg>");
  background-size: 220px 220px;
  opacity: 0.56;
}

body.raffles-page.campaigns-page .raffle-readonly {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.raffles-page.campaigns-page .raffle-readonly::before {
  content: none;
}

body.raffles-page .raffle-readonly[data-raffles-source],
body.raffles-page .raffle-readonly[data-access-raffles-source] {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: auto;
}

body.raffles-page .raffle-readonly[data-raffles-source]::before,
body.raffles-page .raffle-readonly[data-access-raffles-source]::before {
  content: none;
}

body.raffles-page .raffle-readonly[data-raffles-source].is-live span,
body.raffles-page .raffle-readonly[data-access-raffles-source].is-live span {
  background: #6ee787;
  box-shadow: 0 0 0 6px rgba(110, 231, 135, 0.18);
  animation: liveDotBlink 1.25s ease-in-out infinite;
}

body.raffles-page .auth-panel > *,
body.raffles-page .wallet-panel > *,
body.raffles-page .account-status-panel > *,
body.raffles-page .account-setup-link > *,
body.raffles-page .profile-status-grid div > *,
body.raffles-page .raffle-readonly > *,
body.raffles-page .raffle-state > *,
body.raffles-page .raffle-hub-card > *,
body.raffles-page .raffle-card > *,
body.raffles-page .raffle-panel > *,
body.raffles-page .raffle-detail-card > *,
body.raffles-page .winner-section > *,
body.raffles-page .raffle-stats div > *,
body.raffles-page .access-hero-panel > *,
body.raffles-page .access-detail-shell > *,
body.raffles-page .access-card > *,
body.raffles-page .access-hero-panel dl div > *,
body.raffles-page .access-card-metrics > div > *,
body.raffles-page .access-detail-summary > div > *,
body.raffles-page .access-eligibility-panel > *,
body.raffles-page .access-eligibility-checks > div > *,
body.raffles-page .profile-hero > *,
body.raffles-page .profile-section > *,
body.raffles-page .profile-points > *,
body.raffles-page .profile-table a > *,
body.raffles-page .profile-table > div > *,
body.raffles-page .profile-empty > *,
body.raffles-page .leaderboard-podium article > *,
body.raffles-page .leaderboard-table div > *,
body.raffles-page .campaign-card > *,
body.raffles-page .campaign-detail-card > *,
body.raffles-page .campaign-proof-panel > *,
body.raffles-page .campaign-tasks span > *,
body.raffles-page .campaign-meta div > *,
body.raffles-page .claim-form > *,
body.raffles-page .admin-summary-grid div > *,
body.raffles-page .admin-report article > *,
body.raffles-page .admin-filters > *,
body.raffles-page .admin-batch-bar > *,
body.raffles-page .admin-claim-card > *,
body.raffles-page .access-admin-form > *,
body.raffles-page .access-admin-requirements > *,
body.raffles-page .access-admin-card > * {
  position: relative;
  z-index: 1;
}

body.raffles-page .campaign-tasks span,
body.raffles-page .campaign-meta div,
body.raffles-page .raffle-stats div,
body.raffles-page .profile-status-grid div,
body.raffles-page .access-card-metrics > div,
body.raffles-page .access-detail-summary > div,
body.raffles-page .access-hero-panel dl div,
body.raffles-page .access-eligibility-checks > div,
body.raffles-page .profile-table a,
body.raffles-page .profile-table > div,
body.raffles-page .leaderboard-table div,
body.raffles-page .button {
  border-color: rgba(139, 106, 31, 0.28);
}

.campaigns-page .campaign-card-head a,
.campaigns-page .campaign-tasks span,
.campaigns-page .campaign-meta dt {
  color: #d9bf70;
}

.campaign-detail-card {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 22px;
}

.campaign-detail-main,
.campaign-summary,
.campaign-proof-panel {
  min-width: 0;
}

/* Sticky summary sidebar (Option B). Stays visible while the tasks scroll. */
.campaign-summary {
  position: sticky;
  top: 14px;
  padding: 16px;
  border: 1px solid rgba(216, 167, 42, 0.24);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.4);
}

.campaign-summary h3 {
  margin: 4px 0 12px;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.12;
}

.campaign-summary-tweet {
  width: 100%;
  margin-bottom: 14px;
}

.campaign-summary-stats {
  display: grid;
  gap: 0;
  margin: 0;
}

.campaign-summary-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(216, 167, 42, 0.16);
}

.campaign-summary-stats dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campaign-summary-stats dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: right;
}

.campaign-summary-stats .status-chip {
  position: static;
  min-height: 24px;
  padding: 4px 9px;
  font-size: 0.62rem;
}

.campaign-proof-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.campaign-proof-note::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #5fbf7f;
  vertical-align: middle;
}

.claim-form-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.campaign-proof-panel {
  padding: 18px;
  border: 1px solid rgba(216, 167, 42, 0.24);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.34);
}

.campaign-proof-panel p:not(.section-kicker),
.claim-form p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.claim-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.claim-form-info {
  min-width: 0;
}

.claim-proof-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.claim-proof-input span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.claim-proof-input input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 0.85rem;
}

.claim-proof-input input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
}

.claim-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.claim-form-actions .button.secondary {
  padding: 8px 14px;
  font-size: 0.78rem;
}

.claim-form-actions .button.primary {
  min-width: 140px;
}

.claim-form .ticket-status {
  grid-column: 1 / -1;
}

.claim-form .ticket-status:empty {
  display: none;
}

.claim-form-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.claim-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.claim-task-actions .button {
  padding: 8px 14px;
  font-size: 0.78rem;
}

.claim-form div > span,
.claim-form label span {
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.claim-form strong {
  display: block;
  margin-top: 6px;
}

.claim-form p {
  margin: 8px 0 0;
}

.claim-form label {
  display: grid;
  gap: 8px;
}

.claim-form input {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid rgba(216, 167, 42, 0.26);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.56);
  color: var(--white);
  font: inherit;
  font-weight: 700;
}

.claim-form input:disabled {
  opacity: 0.58;
}

.claim-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  margin-left: 8px;
  margin-top: 0;
  padding: 6px 9px;
  border: 1px solid rgba(216, 167, 42, 0.24);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.1);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.claim-form-head .claim-chip {
  margin-left: 0;
}

.claim-approved {
  border-color: rgba(126, 217, 137, 0.4);
  background: rgba(126, 217, 137, 0.14);
  color: #baf2bd;
}

.claim-rejected {
  border-color: rgba(255, 120, 120, 0.42);
  background: rgba(255, 120, 120, 0.13);
  color: #ffc2c2;
}

.claim-skipped {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.claim-empty {
  color: var(--muted);
}

.claim-proof-link {
  width: fit-content;
  color: var(--gold-light);
  font-size: 0.86rem;
  font-weight: 900;
}

.claims-table strong {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-message {
  min-height: 24px;
}

.admin-heading-actions,
.raffle-heading-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.admin-type-switch {
  margin-bottom: 18px;
}

.admin-pending-indicator {
  display: inline-flex;
  min-height: 40px;
  gap: 9px;
  align-items: center;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-pending-indicator span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #6ee787;
  box-shadow: 0 0 0 6px rgba(110, 231, 135, 0.18);
  animation: liveDotBlink 1.25s ease-in-out infinite;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-summary-grid div,
.admin-report article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-summary-grid span {
  display: block;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-summary-grid strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.admin-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-filters label {
  display: grid;
  gap: 8px;
}

.admin-filters span {
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-filters select,
.admin-filters input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 167, 42, 0.26);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.72);
  color: var(--white);
  font: inherit;
  font-weight: 800;
}

.admin-report {
  margin-bottom: 18px;
}

.admin-report-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-report-head h3,
.admin-report article h4 {
  margin: 0;
}

.admin-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-report article h4 {
  font-size: 1rem;
}

.admin-report article p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-winner-card strong {
  color: var(--gold-light);
}

.admin-winner-identity {
  overflow-wrap: anywhere;
}

.admin-export-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(216, 167, 42, 0.34);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-export-link:hover {
  background: rgba(216, 167, 42, 0.12);
}

button.admin-export-link {
  cursor: pointer;
  font-family: inherit;
  background: rgba(216, 167, 42, 0.1);
}

/* Profile · Member Card ------------------------------------------------------ */
.pf-card {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid rgba(216, 167, 42, 0.45);
  border-radius: 18px;
  background:
    radial-gradient(130% 180% at 100% 0%, rgba(216, 167, 42, 0.14), transparent 44%),
    linear-gradient(150deg, #191307, #0c0a07 55%, #14110b);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(243, 215, 122, 0.16);
}

/* Slow holographic sheen sweeping across the card. */
.pf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(243, 215, 122, 0.09) 45%, rgba(255, 255, 255, 0.05) 50%, transparent 66%);
  transform: translateX(-100%);
  animation: pfSheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pfSheen {
  0%, 55% { transform: translateX(-100%); }
  85%, 100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .pf-card::before {
    animation: none;
  }
}

/* Faint mascot watermark on the right edge. */
.pf-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -74px;
  width: 190px;
  height: 190px;
  background: url("/assets/xd-engage-hub-mascot.png") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.pf-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 26px 18px;
}

.pf-card-id {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.pf-avatar {
  flex: none;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #f3d77a, #d8a72a 45%, #6b5312);
  box-shadow: 0 10px 26px rgba(216, 167, 42, 0.24);
}

.pf-avatar img,
.pf-avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #221b0d;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.pf-card-who {
  min-width: 0;
}

.pf-card-who h3 {
  margin: 0 0 2px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-card-who > p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.84rem;
}

.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-chip {
  padding: 3.5px 10px;
  border: 1px solid rgba(216, 167, 42, 0.24);
  border-radius: 999px;
  color: #9c937f;
  font-size: 0.68rem;
  font-weight: 600;
}

.pf-chip.is-on {
  border-color: rgba(110, 231, 135, 0.34);
  color: #6ee787;
}

.pf-card-balance {
  text-align: right;
}

.pf-card-balance span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pf-card-balance strong {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 34px rgba(216, 167, 42, 0.35);
}

.pf-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 26px 14px;
  border-top: 1px solid rgba(216, 167, 42, 0.2);
  color: #8d8672;
  font-family: "JetBrains Mono", "Space Grotesk", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

/* Stats ------------------------------------------------------------------------- */
.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pf-stat {
  display: grid;
  gap: 2px;
  padding: 15px 17px;
  border: 1px solid rgba(216, 167, 42, 0.16);
  border-radius: 13px;
  background: linear-gradient(160deg, #13100b, #0d0b08);
}

.pf-stat b {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.pf-stat.is-win b {
  color: #6ee787;
}

.pf-stat span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pf-stat small {
  color: #8d8672;
  font-size: 0.7rem;
}

/* Wins wall ------------------------------------------------------------------------ */
.pf-wins {
  margin-top: 4px;
}

.pf-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.pf-section-head h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.pf-count {
  padding: 2px 10px;
  border: 1px solid rgba(110, 231, 135, 0.34);
  border-radius: 999px;
  color: #6ee787;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.pf-win-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 12px;
}

.pf-win {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid rgba(110, 231, 135, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(110, 231, 135, 0.07), transparent 46%),
    linear-gradient(160deg, #12140e, #0c0a07);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.pf-win:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 135, 0.44);
}

.pf-win-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pf-win-badge {
  color: #6ee787;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pf-win-type {
  padding: 2.5px 9px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
}

.pf-win h4 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
}

.pf-win-meta {
  margin: 0;
  color: #9c937f;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pf-win-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  padding: 8px 11px;
  border: 1px solid rgba(216, 167, 42, 0.18);
  border-radius: 9px;
  background: rgba(8, 7, 4, 0.55);
}

.pf-win-wallet span {
  color: #8d8672;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex: none;
}

.pf-win-wallet code {
  color: var(--gold-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.pf-win-wallet.is-missing code {
  color: #9c937f;
  font-weight: 500;
}

.pf-win-wallet button {
  flex: none;
  margin-left: auto;
  padding: 4px 11px;
  border: 1px solid rgba(216, 167, 42, 0.34);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.pf-win-wallet button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pf-win-wallet button.is-copied {
  border-color: rgba(110, 231, 135, 0.5);
  color: #6ee787;
}

.pf-wallet-note {
  margin: 10px 0 0;
  color: #8d8672;
  font-size: 0.74rem;
}

.pf-none {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 22px;
  border: 1px dashed rgba(216, 167, 42, 0.3);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pf-none p {
  margin: 0;
}

/* Entries + ledger -------------------------------------------------------------------- */
.pf-entries {
  display: grid;
}

.pf-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 92px;
  gap: 14px;
  align-items: center;
  padding: 11px 4px;
  border-top: 1px solid rgba(216, 167, 42, 0.1);
  text-decoration: none;
}

.pf-entry:hover {
  background: rgba(216, 167, 42, 0.04);
}

.pf-entry-name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-entry-name i {
  flex: none;
  padding: 2px 8px;
  border: 1px solid rgba(216, 167, 42, 0.26);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 600;
}

.pf-entry-detail {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.pf-entry-status {
  color: #9c937f;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
  text-transform: capitalize;
}

.pf-entry-status.is-live {
  color: #6ee787;
}

.pf-ledger {
  display: grid;
}

.pf-ledger-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 9px 4px;
  border-top: 1px solid rgba(216, 167, 42, 0.1);
}

.pf-ledger-row span {
  color: #8d8672;
  font-size: 0.74rem;
}

.pf-ledger-row em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-ledger-row b {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
}

.pf-ledger-row b.is-up {
  color: #6ee787;
}

.pf-ledger-row b.is-down {
  color: #c9c1ae;
}

/* Responsive --------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .pf-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pf-card-body {
    padding: 20px 20px 14px;
  }

  .pf-card-balance {
    text-align: left;
  }

  .pf-card-foot {
    padding: 10px 20px 13px;
    letter-spacing: 0.14em;
  }

  .pf-entry {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pf-entry-detail {
    display: none;
  }
}

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

/* Payout desk · vault grid ----------------------------------------------------- */
.wallet-panel.is-vault {
  display: block;
}

.pf-email-forms[hidden] {
  display: none;
}

.vault-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vault-heading h3 {
  margin: 4px 0 4px;
}

.vault-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

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

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

.vault-card {
  display: grid;
  gap: 11px;
  align-content: start;
  padding: 16px 18px;
  border: 1px solid rgba(216, 167, 42, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(216, 167, 42, 0.06), transparent 46%),
    linear-gradient(160deg, #13100b, #0c0a07);
  transition: border-color 0.16s ease;
}

.vault-card:focus-within {
  border-color: rgba(216, 167, 42, 0.44);
}

.vault-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vault-coin {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(216, 167, 42, 0.4);
  background: radial-gradient(120% 120% at 30% 25%, #2a2110, #14100a);
  color: var(--gold-light);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(243, 215, 122, 0.2);
}

.vault-title {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.vault-title b {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.vault-title small {
  color: #8d8672;
  font-size: 0.7rem;
}

.vault-dot {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b463c;
  flex: none;
}

.vault-dot.is-on {
  background: #6ee787;
  animation: marqueeRadar 2.2s ease-out infinite;
}

.vault-field {
  display: grid;
  gap: 5px;
}

.vault-field span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vault-field span em {
  color: #8d8672;
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.vault-field input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 10px;
  background: rgba(8, 7, 4, 0.6);
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.vault-field input:focus {
  outline: none;
  border-color: var(--gold);
}

.vault-field input::placeholder {
  color: #6f6853;
  font-family: var(--font-body);
}

/* Collapsed state: a saved wallet shows a one-line summary until Edit. */
.vault-summary {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(216, 167, 42, 0.18);
  border-radius: 10px;
  background: rgba(8, 7, 4, 0.55);
}

.vault-card.is-collapsed .vault-summary {
  display: flex;
}

.vault-card.is-collapsed .vault-field,
.vault-card.is-collapsed .vault-alt,
.vault-card.is-collapsed .vault-alt-toggle,
.vault-card.is-collapsed .vault-primary-line,
.vault-card.is-collapsed .vault-alts,
.vault-card.is-collapsed .vault-alt-add {
  display: none;
}

.vault-summary code {
  color: var(--gold-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.vault-summary-alt {
  flex: none;
  color: #8d8672;
  font-size: 0.7rem;
}

.vault-edit {
  flex: none;
  margin-left: auto;
  padding: 4px 13px;
  border: 1px solid rgba(216, 167, 42, 0.34);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.vault-edit:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Alternate + default stay hidden until an alternate exists or is requested. */
.vault-alt {
  display: none;
  gap: 11px;
}

.vault-card.has-alt .vault-alt,
.vault-card.is-alt-open .vault-alt {
  display: grid;
}

.vault-card.has-alt .vault-alt-toggle {
  display: none;
}

.vault-default {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Raffle entry wallet picker + change-after-entry control. Reuses the
   .vault-default select styling; these rules add layout/spacing. */
.raffle-wallet-slot:empty {
  display: none;
}

.raffle-wallet-pick.vault-default {
  margin: 10px 0;
  flex-wrap: wrap;
}

.raffle-wallet-pick.vault-default select {
  max-width: 100%;
}

.raffle-wallet-change {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.raffle-wallet-change .button.secondary {
  padding: 8px 14px;
  font-size: 0.78rem;
}

.raffle-wallet-change-status {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.76rem;
}

.raffle-wallet-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.raffle-wallet-locked span {
  color: var(--muted);
  font-size: 0.78rem;
}

.raffle-wallet-locked strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.86rem;
}

/* Profile: multiple alternate wallets per chain. */

/* Primary wallet + its default toggle on one aligned line. */
.vault-primary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.vault-primary-line .vault-field {
  min-width: 0;
}

/* No circles: "default" is a text affordance — a gold "Default" badge on the
   chosen wallet, a muted "Set default" pill on the others. The real radio (from
   `.wallet-form input`, 100%/44px) is overlaid transparently as the click
   target; the visible state is driven purely by :checked. */
.vault-def {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 60px;
  cursor: pointer;
  user-select: none;
}

.vault-def input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

/* `.vault-def` prefix so font-size/weight beat `.wallet-form label span`
   (which forces 0.76rem/900 on these). */
.vault-def .vault-def-on,
.vault-def .vault-def-off {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
}

.vault-def-on {
  display: none;
  color: #d8a72a;
  background: rgba(216, 167, 42, 0.16);
  border: 1px solid rgba(216, 167, 42, 0.55);
}

.vault-def-off {
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.vault-def:hover .vault-def-off {
  color: var(--white);
  border-color: rgba(216, 167, 42, 0.55);
}

.vault-def input:checked ~ .vault-def-on {
  display: inline-block;
}

.vault-def input:checked ~ .vault-def-off {
  display: none;
}

/* One aligned grid line per alternate: address · label · default · remove. */
.vault-alt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto auto;
  gap: 8px;
  align-items: center;
}

.vault-alt-addr,
.vault-alt-lbl {
  width: 100%;
  min-width: 0;
}

/* Phones: address + default + remove on top, label spans the line below. */
@media (max-width: 640px) {
  .vault-alt-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .vault-alt-lbl {
    grid-column: 1 / -1;
  }
}

.vault-alts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0;
}

.vault-alt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vault-alt-def {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

.vault-alt-addr {
  flex: 1 1 220px;
  min-width: 0;
}

.vault-alt-lbl {
  flex: 0 1 140px;
  min-width: 0;
}

/* Match the primary wallet field: warm near-black box, thin gold border,
   gold text like the collapsed summary. Compact — smaller than the primary.
   Two-class selectors so these beat `.wallet-form input` (which sets a 44px
   min-height, 12px padding, white bold text). */
.vault-alt-row .vault-alt-addr,
.vault-alt-row .vault-alt-lbl {
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid rgba(216, 167, 42, 0.22);
  background: rgba(8, 7, 4, 0.6);
  color: var(--gold-light);
  font-size: 0.76rem;
}

.vault-alt-row .vault-alt-addr {
  font-family: "JetBrains Mono", monospace;
}

.vault-alt-row input:focus {
  outline: none;
  border-color: var(--gold);
}

.vault-alt-row input::placeholder {
  color: #6f6853;
  font-family: var(--font-body);
}

.vault-alt-remove {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 6px 8px;
  border-radius: 8px;
}

.vault-alt-remove:hover {
  color: var(--gold);
  background: rgba(216, 167, 42, 0.1);
}

.vault-alt-add {
  align-self: flex-start;
  border: 1px dashed rgba(216, 167, 42, 0.34);
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.vault-alt-add:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.vault-default span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vault-default select {
  padding: 7px 11px;
  border: 1px solid rgba(216, 167, 42, 0.3);
  border-radius: 999px;
  background: rgba(8, 7, 4, 0.7);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
}

.vault-alt-toggle {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9c937f;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.vault-alt-toggle:hover {
  color: var(--gold-light);
}

.vault-x-connected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(110, 231, 135, 0.24);
  border-radius: 10px;
  background: rgba(8, 7, 4, 0.55);
}

.vault-x-connected strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.vault-x-connected span {
  color: #6ee787;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vault-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.vault-hint.is-dim {
  color: #8d8672;
}

.vault-link {
  justify-self: start;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.vault-link:hover {
  color: var(--gold);
}

.vault-x-connect {
  justify-self: start;
}

.vault-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Winner-email card (full-width strip under the wallet grid). */
.vault-card.is-email {
  margin-top: 12px;
}

.vault-summary.is-open {
  display: flex;
  flex-wrap: wrap;
}

.vault-card.is-email .vault-summary code {
  font-size: 0.84rem;
}

.vault-card.is-email .profile-email-toggle {
  margin-left: auto;
}

.vault-card.is-email .profile-email-toggle ~ .vault-edit,
.vault-card.is-email .vault-edit:only-of-type {
  margin-left: 0;
}

.vault-card.is-email .vault-summary code:only-child,
.vault-card.is-email .vault-summary > code:first-child:nth-last-child(2) {
  margin-right: auto;
}

/* Stub rack (raffles entered + point history, side by side) --------------------- */
.pf-rack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.pf-stub {
  display: grid;
  gap: 0;
  align-content: start;
  padding: 18px 20px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, #13100b, #0c0a07);
}

.pf-stub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pf-stub-head h3 {
  margin: 2px 0 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.pf-count.is-gold {
  border-color: rgba(216, 167, 42, 0.4);
  color: var(--gold-light);
}

.pf-stub-tear {
  height: 1px;
  margin: 12px 0 2px;
  background: repeating-linear-gradient(90deg, rgba(216, 167, 42, 0.35) 0 5px, transparent 5px 11px);
}

.pf-show-all {
  justify-self: center;
  margin-top: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(216, 167, 42, 0.26);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.pf-show-all:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Compact winner-email bar -------------------------------------------------------- */
.pf-email {
  margin-top: 14px;
  padding: 14px 20px;
  border: 1px solid rgba(216, 167, 42, 0.18);
  border-radius: 14px;
  background: rgba(12, 10, 7, 0.6);
}

.pf-email-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pf-email-glyph {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(216, 167, 42, 0.34);
  color: var(--gold-light);
  font-size: 0.95rem;
}

.pf-email-who {
  display: grid;
  gap: 1px;
  min-width: 0;
  margin-right: auto;
}

.pf-email-who b {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-email-who small {
  color: #8d8672;
  font-size: 0.74rem;
}

.pf-email-edit {
  flex: none;
  padding: 7px 15px;
  border: 1px solid rgba(216, 167, 42, 0.34);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pf-email-edit:hover,
.pf-email-edit[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

.pf-email-forms {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(216, 167, 42, 0.24);
}

/* Responsive ------------------------------------------------------------------------ */
@media (max-width: 900px) {
  .vault-grid,
  .pf-rack {
    grid-template-columns: 1fr;
  }
}

/* Admin analytics dashboard */
.analytics-section {
  margin-top: 26px;
}

.analytics-section > .section-kicker {
  margin-bottom: 10px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.analytics-tile {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 8, 5, 0.72);
}

.analytics-tile span {
  color: #8d8672;
  font-family: "JetBrains Mono", "Space Grotesk", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.analytics-tile strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  line-height: 1.05;
  color: var(--white);
}

.analytics-tile small {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.74rem;
}

.analytics-charts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.analytics-chart-card {
  padding: 14px 16px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 8, 5, 0.72);
}

.analytics-chart-card.is-wide {
  grid-column: 1 / -1;
}

.analytics-chart-card h4 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  color: var(--white);
}

.analytics-chart-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.analytics-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 10px 0 4px;
  color: #c9c1ae;
  font-size: 0.76rem;
  font-weight: 700;
}

.analytics-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: baseline;
}

.analytics-legend .analytics-range {
  margin-left: auto;
  color: #8d8672;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

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

.analytics-columns h4 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  color: var(--white);
}

.analytics-ranked {
  margin: 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 8px;
}

.analytics-ranked li {
  color: #c9c1ae;
  font-size: 0.85rem;
}

.analytics-ranked li span {
  display: block;
  color: var(--white);
  font-weight: 800;
}

.analytics-ranked li b {
  color: var(--gold-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.analytics-ranked li small {
  margin-left: 8px;
  color: #8d8672;
  font-size: 0.72rem;
}

.analytics-empty {
  margin: 4px 0 0;
  color: #8d8672;
  font-size: 0.85rem;
}

.admin-export-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-export-actions .admin-export-link {
  margin-top: 0;
}

.admin-export-csv {
  border-color: rgba(216, 167, 42, 0.2);
  color: var(--muted);
  font-size: 0.74rem;
}

[data-sheet-export][aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.admin-batch-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.08);
}

.admin-select-all,
.admin-claim-select {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--gold-light);
  font-weight: 900;
}

.admin-batch-actions,
.admin-claim-tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-claim-list {
  display: grid;
  gap: 12px;
}

.admin-claim-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 16%, rgba(216, 167, 42, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.admin-claim-head,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-claim-head h3 {
  margin: 0;
  font-size: clamp(1.18rem, 1.8vw, 1.8rem);
  line-height: 1.1;
}

.admin-actions {
  justify-content: flex-start;
  margin-top: 16px;
}

.access-admin-editor {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(216, 167, 42, 0.28);
}

.access-admin-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.raffles-page.admin-page .access-admin-form {
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

body.raffles-page.admin-page .access-admin-form::before {
  content: none;
}

.access-admin-form-section {
  padding: 22px;
  border-bottom: 1px solid rgba(216, 167, 42, 0.18);
}

.access-admin-form-section h4 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1.06rem;
}

.access-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.access-admin-form label {
  display: grid;
  gap: 8px;
}

.access-admin-form label > span,
.access-admin-segmented legend {
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-admin-form input,
.access-admin-form select,
.access-admin-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.72);
  color: var(--white);
  font: inherit;
  font-weight: 700;
}

.access-admin-form textarea {
  resize: vertical;
}

/* Chrome/WebKit renders the datetime-local calendar icon in dark grey by
   default — invisible against this site's dark inputs until inverted.
   Applies everywhere, not just the access-raffle form — every datetime-local
   input on the site has the same problem. */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.access-admin-form .field-wide {
  grid-column: 1 / -1;
}

.access-admin-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}

.access-admin-segmented legend {
  margin-bottom: 8px;
}

.access-admin-segmented label {
  position: relative;
  display: block;
}

.access-admin-segmented input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.access-admin-segmented label span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(216, 167, 42, 0.24);
  background: rgba(8, 8, 7, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: none;
  cursor: pointer;
}

.access-admin-segmented label:first-of-type span {
  border-radius: 8px 0 0 8px;
}

.access-admin-segmented label:last-of-type span {
  border-radius: 0 8px 8px 0;
}

.access-admin-segmented input:checked + span {
  border-color: var(--gold);
  background: var(--gold);
  color: #0b0b09;
}

.access-admin-segmented input:focus-visible + span {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.access-admin-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.access-admin-form .access-admin-toggle {
  display: flex;
  min-height: 48px;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.62);
  cursor: pointer;
}

.access-admin-toggle input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.access-admin-toggle i {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 160ms ease;
}

.access-admin-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.access-admin-toggle input:checked + i {
  background: var(--gold);
}

.access-admin-toggle input:checked + i::after {
  background: #0b0b09;
  transform: translateX(16px);
}

.access-admin-toggle input:focus-visible + i {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.access-admin-conditional-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.access-admin-role-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.access-admin-conditional-fields > [hidden],
.access-admin-role-field[hidden] {
  display: none;
}

.access-admin-optional-section {
  border-bottom: 1px solid rgba(216, 167, 42, 0.18);
}

.access-admin-optional-section summary {
  display: flex;
  padding: 18px 22px;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.access-admin-optional-section summary span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.access-admin-optional-section .access-admin-form-grid {
  padding: 0 22px 22px;
}

.access-admin-form-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  padding: 16px 22px;
  gap: 12px;
  align-items: center;
  background: transparent;
}

.access-admin-form-actions p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

/* Login dialog — Discord OAuth or member email code ------------------------- */
.login-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 1px solid rgba(216, 167, 42, 0.32);
  border-radius: 10px;
  background: #0b0b09;
  color: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
}

.login-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
}

.login-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(216, 167, 42, 0.18);
}

.login-dialog h3 {
  margin: 0;
  font-size: 1rem;
}

.login-dialog-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.login-dialog-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.login-dialog-body form {
  display: grid;
  gap: 10px;
}

/* display: grid above would defeat the hidden attribute that swaps the
   email step for the code step. */
.login-dialog [hidden] {
  display: none !important;
}

.login-dialog .button {
  width: 100%;
}

.login-dialog label {
  display: grid;
  gap: 6px;
}

.login-dialog label span {
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-dialog input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(216, 167, 42, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font: inherit;
  font-size: 0.9rem;
}

.login-dialog input:focus {
  outline: 2px solid rgba(216, 167, 42, 0.55);
  outline-offset: 1px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #8d8672;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(216, 167, 42, 0.2);
}

.login-hint {
  margin: 0;
  color: #8d8672;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
}

.login-restart {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.login-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(216, 167, 42, 0.3);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
}

.login-status.is-error {
  border-color: rgba(232, 120, 120, 0.5);
  background: rgba(190, 60, 60, 0.16);
  color: #ffd9d9;
}

.access-role-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: min(720px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 167, 42, 0.32);
  border-radius: 8px;
  background: #0b0b09;
  color: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
}

.access-role-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
}

.access-role-dialog-shell {
  display: grid;
  max-height: inherit;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.access-role-dialog header,
.access-role-dialog footer {
  display: flex;
  padding: 18px 20px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(216, 167, 42, 0.18);
}

.access-role-dialog footer {
  justify-content: flex-end;
  border-top: 1px solid rgba(216, 167, 42, 0.18);
  border-bottom: 0;
}

.access-role-dialog h3,
.access-role-dialog p {
  margin: 0;
}

.access-role-dialog-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(216, 167, 42, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.access-role-list {
  display: grid;
  gap: 8px;
  padding: 14px 20px;
  overflow: auto;
}

.access-role-option {
  display: flex;
  min-height: 46px;
  padding: 10px 12px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(216, 167, 42, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 800;
  cursor: pointer;
}

.access-role-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.access-role-dialog [data-access-role-status] {
  padding: 0 20px;
  color: var(--muted);
}

.access-admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.access-admin-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

/* Master show/hide for the whole access-raffle list. Closed by default so the
   raffle editor underneath is reachable without scrolling past every raffle. */
.access-admin-list-fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.access-admin-list-fold > summary::-webkit-details-marker {
  display: none;
}

.access-admin-list-fold > summary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(184, 137, 26, 0.5);
}

.access-admin-list-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.access-admin-list-toggle::before {
  content: "\25B8";
  color: var(--gold, #b8891a);
  transition: transform 0.15s ease;
}

.access-admin-list-fold[open] > summary .access-admin-list-toggle::before {
  transform: rotate(90deg);
}

/* Swap the label rather than restyling one: a pseudo-element would render
   after the count badge and reorder the row. */
.access-admin-label-hide {
  display: none;
}

.access-admin-list-fold[open] > summary .access-admin-label-show {
  display: none;
}

.access-admin-list-fold[open] > summary .access-admin-label-hide {
  display: inline;
}

.access-admin-list-count {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(184, 137, 26, 0.22);
  color: var(--gold, #b8891a);
}

.access-admin-list-live {
  margin-left: auto;
  font-size: 0.8rem;
  color: #6fc08d;
  font-weight: 700;
}

.access-admin-list-fold[open] > summary {
  margin-bottom: 14px;
}

/* Collapsible admin raffle cards. Finished raffles fold away so the "create
   raffle" editor below the list stays reachable without a long scroll. */
.access-admin-fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.access-admin-fold > summary::-webkit-details-marker {
  display: none;
}

/* The heading already carries a status chip on the right, so the twisty sits
   inline before the title rather than floating in the corner. */
.access-admin-fold > summary .section-kicker::before {
  content: "\25B8";
  display: inline-block;
  margin-right: 8px;
  color: var(--gold, #b8891a);
  transition: transform 0.15s ease;
}

.access-admin-fold[open] > summary .section-kicker::before {
  transform: rotate(90deg);
}

.access-admin-fold > summary:hover h3 {
  color: var(--gold, #b8891a);
}

.access-admin-fold-summary {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

/* Once expanded the stats row repeats what the summary line said. */
.access-admin-fold[open] .access-admin-fold-summary {
  display: none;
}

.access-admin-fold[open] > summary {
  margin-bottom: 14px;
}

.access-admin-card-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.access-admin-card-heading > div {
  min-width: 0;
}

.access-admin-card-heading h3 {
  margin: 0;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.access-admin-card-heading .status-chip {
  position: static;
  flex: 0 0 auto;
}

.access-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
}

.access-admin-actions:empty {
  display: none;
}

.access-admin-actions .button {
  min-height: 38px;
  padding: 9px 11px;
}

.access-admin-actions .button.is-danger {
  color: #ff8080;
  border-color: rgba(255, 92, 92, 0.35);
}

.access-admin-actions .button.is-danger:hover {
  background: rgba(255, 92, 92, 0.12);
  border-color: rgba(255, 92, 92, 0.65);
}

.access-admin-export-menu {
  position: relative;
  margin-left: auto;
}

.access-admin-export-menu summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gold-light);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.access-admin-export-menu summary::-webkit-details-marker {
  display: none;
}

.access-admin-export-menu nav {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: calc(100% + 7px);
  width: 168px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0c0b08;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.access-admin-export-menu a,
.access-admin-export-menu nav button {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.access-admin-export-menu nav > * + * {
  border-top: 1px solid var(--line);
}

.access-admin-export-menu a:hover,
.access-admin-export-menu nav button:hover {
  background: rgba(232, 179, 30, 0.12);
}

.access-admin-export-menu nav button[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

h3 {
  margin: 28px 0 10px;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.feature-grid p,
.opportunity-grid p,
.partner-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.wins {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.wins-copy p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  font-weight: 650;
  line-height: 1.65;
}

/* The lead-paragraph rules above also match the .section-kicker <p>; restore it
   to match every other section kicker (gold, small, bold). */
.wins-copy .section-kicker,
.crew-copy .section-kicker {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: normal;
}

.wins-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.wins-grid div {
  min-height: 160px;
  padding: 22px;
}

.wins-grid strong {
  display: block;
  margin-top: 32px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.partnerships {
  background: rgba(9, 5, 6, 0.08);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 30px;
}

.partner-list {
  display: grid;
  gap: 12px;
}

.partner-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.partner-card span {
  display: grid;
  place-items: center;
  min-height: 68px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold-light);
  font-weight: 900;
}

.partner-card h3 {
  margin: 0 0 8px;
}

.partner-cta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.08);
}

.partner-cta p {
  margin: 0;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
}

.partner-cta-copy {
  display: grid;
  gap: 5px;
}

.partner-cta .partner-cta-sub {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  max-width: 520px;
}

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

.section-heading .section-intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  max-width: 640px;
}

.crew {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.crew-copy p {
  margin-top: 24px;
}

.role-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.role-board div {
  min-height: 148px;
  padding: 22px;
}

.role-board span {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-board strong {
  display: block;
  margin-top: 14px;
  font-size: 1.4rem;
  line-height: 1.18;
}

.role-board div p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.team {
  background: rgba(9, 5, 6, 0.08);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.team-card {
  display: block;
  min-height: 210px;
  padding: 22px;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease;
}

.team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 215, 122, 0.58);
}

img.team-avatar {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(216, 167, 42, 0.5);
}

.team-card p {
  margin: 26px 0 0;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-card h3 {
  margin: 10px 0;
}

.team-card span {
  display: block;
  color: var(--gold-light);
  font-weight: 800;
  margin-bottom: 14px;
}

.team-card strong {
  display: block;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.faq {
  background: rgba(9, 5, 6, 0.08);
}

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

.faq-list details {
  padding: 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 900;
}

.faq-list summary::marker {
  color: var(--gold-light);
}

.faq-list p {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.6;
}

.faq-list .faq-more > summary {
  color: var(--gold-light);
}

.faq-more-list {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.faq-list .faq-more-list details {
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.faq-list .faq-more-list summary {
  font-size: 1rem;
}

.faq-list .faq-more-list p {
  margin-top: 10px;
  font-size: 0.92rem;
}

.join {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 5, 6, 0.28);
  color: var(--white);
}

.join div {
  width: min(660px, 100%);
}

.join p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 20px;
}

footer {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(9, 5, 6, 0.34);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .brand span:last-child {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-join {
    display: none;
  }

  .auth-user-mini strong {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 980px;
    align-items: start;
    padding-top: 122px;
    padding-bottom: 230px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(12, 16, 18, 0.94) 0%, rgba(12, 16, 18, 0.78) 44%, rgba(12, 16, 18, 0.38) 100%);
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .hero-mascot {
    justify-self: center;
    width: min(100%, 420px);
    min-height: auto;
    margin-top: 18px;
  }

  .hero-mascot img {
    width: min(112%, 460px);
  }

  .intro,
  .crew,
  .wins,
  .raffle-layout,
  .raffle-detail-card,
  .access-hero-panel,
  .access-raffle-grid,
  .access-card-featured,
  .access-detail-shell,
  .access-checklist,
  .access-eligibility-checks,
  .feature-grid,
  .opportunity-grid,
  .raffle-grid,
  .raffle-hub-grid,
  .winner-list,
  .leaderboard-podium,
  .campaign-grid,
  .campaign-detail-card,
  .admin-summary-grid,
  .admin-filters,
  .admin-report-grid,
  .access-admin-form,
  .access-admin-list,
  .cory-section,
  .wins-grid,
  .role-board,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .cory-gallery {
    grid-template-columns: 1fr;
  }

  .cory-gallery-copy {
    padding-bottom: 10px;
  }

  .cory-gallery-stage {
    min-height: 410px;
  }

  .cory-gallery-slide {
    padding: 22px 52px 34px;
  }

  .cory-gallery-slide img {
    height: 350px;
  }

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

  .raffle-type-tabs,
  .raffle-subheading {
    grid-template-columns: 1fr;
    display: grid;
  }

  .raffle-subheading {
    align-items: start;
  }

  .profile-email-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .profile-email-form .button {
    width: fit-content;
  }

  .auth-panel,
  .wallet-panel,
  .wallet-form,
  .wallet-chain-inputs {
    grid-template-columns: 1fr;
  }

  .wallet-default-label {
    flex-basis: 100%;
  }

  .x-verification-card {
    grid-template-columns: 1fr;
  }

  .x-verification-actions {
    justify-content: flex-start;
  }

  .profile-hero,
  .setup-grid,
  .profile-table a,
  .profile-table > div,
  .leaderboard-table div {
    grid-template-columns: 1fr;
  }

  .campaign-meta,
  .campaign-meta.detail {
    grid-template-columns: 1fr;
  }

  .auth-panel > .button {
    justify-self: start;
  }

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

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

  .access-card-media {
    aspect-ratio: 16 / 8;
  }

  .access-card-body {
    padding: 12px 16px 16px;
  }

  .access-card-identities {
    padding-left: 16px;
  }

  .access-detail-media {
    aspect-ratio: 16 / 7;
  }

  .access-detail-identities img {
    width: 76px;
    height: 76px;
  }

  .access-detail-identities {
    height: 40px;
    margin-top: -36px;
  }

  .access-detail-body {
    padding: 0 16px 22px;
  }

  .access-detail-heading {
    padding-top: 26px;
  }

  .access-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    display: flex;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

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

  .nav a,
  .nav-dropdown-toggle {
    padding: 10px 9px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* Scoped to .nav so this legacy full-width dropdown treatment applies only
     to the header navigation menus, not the account chip's own dropdown. */
  .nav .nav-dropdown {
    position: static;
  }

  .nav .nav-dropdown-menu {
    position: fixed;
    top: 74px;
    left: 50%;
    width: min(calc(100vw - 32px), 320px);
  }

  section:not(.hero) {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-heading,
  .partner-cta,
  .raffle-preview,
  .join,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-card {
    grid-template-columns: 64px 1fr;
  }

  .partner-card span {
    min-height: 58px;
  }

  .cory-video {
    min-height: 320px;
  }
}

.sketch-page {
  min-height: 100vh;
}

.sketch-board {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

.sketch-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 18px 0 30px;
}

.sketch-header a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(216, 167, 42, 0.32);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.08);
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 900;
}

.sketch-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  line-height: 0.94;
  text-align: right;
}

.sketch-option {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  margin-top: 24px;
  border: 1px solid rgba(216, 167, 42, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 74% 22%, rgba(216, 167, 42, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(216, 167, 42, 0.11), rgba(8, 8, 7, 0.96) 45%),
    var(--paper);
  box-shadow: var(--shadow);
}

.sketch-option::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'><filter id='stipple'><feTurbulence type='fractalNoise' baseFrequency='1.45' numOctaves='2' stitchTiles='stitch' result='noise'/><feColorMatrix in='noise' type='luminanceToAlpha' result='alpha'/><feComponentTransfer in='alpha' result='cut'><feFuncA type='discrete' tableValues='0 0 0 .18 .46 .72 .86 1'/></feComponentTransfer><feFlood flood-color='%23d8a72a' result='ink'/><feComposite in='ink' in2='cut' operator='in'/></filter><rect width='100%' height='100%' filter='url(%23stipple)'/></svg>");
  background-size: 260px 260px;
  mix-blend-mode: screen;
  opacity: 0.52;
}

.sketch-option > * {
  position: relative;
  z-index: 1;
}

.sketch-hero-first {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: 72px;
}

.sketch-copy {
  max-width: 560px;
}

.sketch-copy > span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(216, 167, 42, 0.34);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.08);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sketch-copy h2 {
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
}

.sketch-copy p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  font-weight: 750;
  line-height: 1.58;
}

.sketch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.sketch-visual {
  min-height: 500px;
  display: grid;
  place-items: center;
}

.hero-mascot-preview img {
  width: min(100%, 480px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(216, 167, 42, 0.4);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(216, 167, 42, 0.2);
}

.sketch-split {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
  padding: 64px;
}

.mini-layout {
  display: grid;
  gap: 16px;
}

.mini-layout article {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.mini-layout img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(216, 167, 42, 0.3);
}

.mini-layout strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1.02;
}

.mini-layout p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.sketch-character-led {
  min-height: 700px;
  padding: 70px;
  display: flex;
  align-items: flex-end;
}

.character-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.character-bg img {
  position: absolute;
  right: -2%;
  bottom: -22%;
  width: min(780px, 66vw);
  opacity: 0.88;
  filter: saturate(1.08) contrast(1.06);
}

.sketch-character-led .sketch-copy {
  width: min(560px, 100%);
  padding-bottom: 86px;
}

.sketch-stat-row {
  position: absolute;
  left: 70px;
  right: 70px;
  bottom: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sketch-stat-row div {
  min-height: 90px;
  padding: 16px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.72);
  backdrop-filter: blur(12px);
}

.sketch-stat-row span {
  display: block;
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sketch-stat-row strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

@media (max-width: 900px) {
  .sketch-header {
    display: grid;
    align-items: start;
  }

  .sketch-header h1 {
    text-align: left;
  }

  .sketch-hero-first,
  .sketch-split {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .sketch-visual {
    min-height: auto;
  }

  .mini-layout article {
    grid-template-columns: 120px 1fr;
    min-height: 150px;
  }

  .sketch-character-led {
    min-height: 760px;
    padding: 28px;
  }

  .character-bg img {
    right: -28%;
    bottom: -5%;
    width: 620px;
  }

  .sketch-character-led .sketch-copy {
    padding-bottom: 190px;
  }

  .sketch-stat-row {
    left: 28px;
    right: 28px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .sketch-board {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .sketch-option {
    min-height: auto;
  }

  .sketch-hero-first,
  .sketch-split,
  .sketch-character-led {
    padding: 20px;
  }

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

  .mini-layout img {
    max-height: 280px;
  }

  .character-bg img {
    right: -42%;
    width: 520px;
  }

  .sketch-stat-row {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mascot,
  .hero-mascot::before {
    animation: none;
  }
}

.flight-sketch-page {
  min-height: 100vh;
}

.flight-sketch {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.flight-back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(216, 167, 42, 0.32);
  border-radius: 8px;
  background: rgba(216, 167, 42, 0.08);
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 900;
}

.flight-stage {
  position: relative;
  min-height: 760px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(216, 167, 42, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 75% 30%, rgba(216, 167, 42, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(216, 167, 42, 0.1), rgba(8, 8, 7, 0.96) 48%),
    var(--paper);
  box-shadow: var(--shadow);
}

.flight-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'><filter id='stipple'><feTurbulence type='fractalNoise' baseFrequency='1.45' numOctaves='2' stitchTiles='stitch' result='noise'/><feColorMatrix in='noise' type='luminanceToAlpha' result='alpha'/><feComponentTransfer in='alpha' result='cut'><feFuncA type='discrete' tableValues='0 0 0 .18 .46 .72 .86 1'/></feComponentTransfer><feFlood flood-color='%23d8a72a' result='ink'/><feComposite in='ink' in2='cut' operator='in'/></filter><rect width='100%' height='100%' filter='url(%23stipple)'/></svg>");
  background-size: 260px 260px;
  mix-blend-mode: screen;
  opacity: 0.48;
}

.flight-copy {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  padding: 82px 64px;
}

.flight-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.8vw, 5.2rem);
  line-height: 0.94;
}

.flight-copy p:last-child {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.5;
}

.flight-mascot {
  position: absolute;
  right: 9%;
  bottom: 64px;
  z-index: 2;
  width: min(470px, 42vw);
  animation: sketchFlight 4.4s ease-in-out infinite;
}

.flight-mascot::before {
  content: "";
  position: absolute;
  inset: 18% 4% 2%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 167, 42, 0.24), rgba(216, 167, 42, 0.06) 52%, transparent 72%);
  filter: blur(14px);
  animation: sketchFlightGlow 2.8s ease-in-out infinite;
}

.flight-mascot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 54px rgba(0, 0, 0, 0.5));
}

.flight-path {
  position: absolute;
  right: 18%;
  bottom: 250px;
  z-index: 1;
  width: 360px;
  height: 180px;
  opacity: 0.75;
}

.flight-path span {
  position: absolute;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(243, 215, 122, 0.66), transparent);
  animation: flightTrail 1.7s ease-in-out infinite;
}

.flight-path span:nth-child(1) {
  top: 18px;
  left: 0;
  width: 210px;
}

.flight-path span:nth-child(2) {
  top: 82px;
  left: 54px;
  width: 280px;
  animation-delay: 0.24s;
}

.flight-path span:nth-child(3) {
  top: 142px;
  left: 18px;
  width: 180px;
  animation-delay: 0.48s;
}

@keyframes sketchFlight {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }

  45% {
    transform: translate3d(42px, -26px, 0) rotate(4deg);
  }

  70% {
    transform: translate3d(30px, -16px, 0) rotate(2deg);
  }
}

@keyframes sketchFlightGlow {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes flightTrail {
  0%,
  100% {
    opacity: 0.16;
    transform: translateX(-18px) scaleX(0.72);
  }

  50% {
    opacity: 0.78;
    transform: translateX(14px) scaleX(1);
  }
}

@media (max-width: 760px) {
  .flight-stage {
    min-height: 820px;
  }

  .flight-copy {
    padding: 42px 24px;
  }

  .flight-mascot {
    right: 7%;
    bottom: 88px;
    width: min(390px, 86vw);
  }

  .flight-path {
    right: 6%;
    bottom: 260px;
    width: 280px;
  }
}

@media (max-width: 760px) {
  body.has-mobile-nav .site-header {
    grid-template-columns: auto auto 1fr;
    gap: 6px;
  }

  body.has-mobile-nav .mobile-nav-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 10px;
    place-content: center;
    gap: 4px;
    border: 1px solid rgba(216, 167, 42, 0.28);
    border-radius: 8px;
    background: rgba(216, 167, 42, 0.08);
    cursor: pointer;
  }

  body.has-mobile-nav .mobile-nav-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    background: var(--gold-light);
  }

  body.has-mobile-nav .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 96px);
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(216, 167, 42, 0.38);
    border-radius: 8px;
    background: rgba(8, 8, 7, 0.98);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  }

  body.has-mobile-nav .site-header.mobile-nav-open .nav {
    display: grid;
  }

  body.has-mobile-nav .nav > a,
  body.has-mobile-nav .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 11px 12px;
    text-align: left;
  }

  /* Scoped to .nav so these hamburger rules don't also hijack the account
     chip's dropdown (which is a .nav-dropdown living in .auth-actions). */
  body.has-mobile-nav .nav .nav-dropdown {
    position: static;
  }

  body.has-mobile-nav .nav .nav-dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 4px 8px 8px;
    border: 0;
    background: rgba(216, 167, 42, 0.06);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  body.has-mobile-nav .nav .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
    transform: none;
  }

  body.has-mobile-nav .auth-actions > .auth-login[href="/admin"],
  body.has-mobile-nav .auth-actions > .auth-logout {
    display: none;
  }

  body.has-mobile-nav .auth-user-mini {
    padding: 5px;
  }

  .account-status-panel,
  .account-setup-link {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .account-status-panel .profile-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-status-panel .profile-status-grid div {
    min-width: 0;
    min-height: 46px;
    padding: 7px;
  }

  .account-status-panel .profile-status-grid strong {
    overflow-wrap: anywhere;
  }

  .account-profile-link,
  .account-setup-link .button {
    justify-self: start;
  }

  .raffle-detail-card,
  .raffle-detail-card > *,
  .raffle-detail-media,
  .raffle-detail-body {
    width: 100%;
    min-width: 0;
  }

  .raffle-detail-media {
    min-height: 240px;
  }

  .raffle-detail-body {
    padding: 16px;
  }

  .access-hero-panel {
    padding: 16px;
  }

  .access-hero-panel dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .access-hero-panel dl div {
    min-width: 0;
    min-height: 56px;
    padding: 8px;
  }

  .access-hero-panel dd {
    overflow-wrap: anywhere;
    font-size: 0.82rem;
  }

  .leaderboard-podium {
    gap: 8px;
  }

  .leaderboard-podium article {
    display: grid;
    grid-template-columns: auto 44px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 0;
    align-items: center;
    padding: 12px;
  }

  .leaderboard-rank {
    min-height: 30px;
    padding: 6px 8px;
  }

  .leaderboard-avatar {
    width: 44px;
    height: 44px;
    margin: 0;
    font-size: 1rem;
  }

  .leaderboard-podium h3,
  .leaderboard-podium strong {
    margin: 0;
  }

  .leaderboard-podium h3 {
    min-width: 0;
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .leaderboard-podium strong {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .leaderboard-table div {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 52px;
    padding: 9px 10px;
  }

  .leaderboard-table strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .leaderboard-table em {
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .campaign-card {
    min-height: 0;
    padding: 10px;
  }

  .campaign-meta,
  .campaign-meta.detail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .campaign-meta div {
    min-width: 0;
    min-height: 46px;
    padding: 6px;
  }

  .campaign-meta dd {
    font-size: 0.78rem;
  }

  .access-admin-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .access-admin-form-grid,
  .access-admin-conditional-fields {
    grid-template-columns: 1fr;
  }

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

  .access-admin-role-field {
    grid-template-columns: 1fr;
  }

  .access-admin-form input,
  .access-admin-form select {
    min-width: 0;
    padding-inline: 9px;
    font-size: 0.78rem;
  }
}

/* Point + access raffle boards — contained-media ticket cards */
.raffle-card-marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 167, 42, 0.18);
  border-radius: 14px;
  background: #0b0906;
  box-shadow: none;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.raffle-card-marquee[data-card-href] {
  cursor: pointer;
}

.raffle-card-marquee:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 167, 42, 0.5);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

/* artwork sits in its own contained region — 3:1 matches an X/Twitter banner */
.marquee-media {
  position: relative;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: #0f0c07;
}

.marquee-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.raffle-card-marquee:hover .marquee-art {
  transform: scale(1.04);
}

/* soft fade so the media melts into the body panel */
.marquee-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 68%, rgba(11, 9, 6, 0.85));
}

.marquee-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.marquee-live {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(4px);
  color: #6ee787;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.marquee-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: marqueeRadar 2.2s ease-out infinite;
}

@keyframes marqueeRadar {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 135, 0.5); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(110, 231, 135, 0); }
}

.marquee-live.is-ended {
  color: #9c937f;
}

.marquee-live.is-ended::before {
  animation: none;
  box-shadow: none;
}

.marquee-chain {
  padding: 4px 12px;
  border: 1px solid rgba(216, 167, 42, 0.45);
  border-radius: 999px;
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.marquee-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px;
}

.marquee-body h3 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
}

.marquee-kick {
  margin: 0 0 14px;
  color: #8d8672;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.marquee-stats {
  display: flex;
  gap: 12px;
  margin: 0 0 14px;
}

.marquee-stats div {
  display: grid;
  flex: 1 1 0;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.marquee-stats dt {
  margin: 0;
  color: #8d8672;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.marquee-stats dd {
  margin: 0;
  color: var(--gold-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  font-weight: 700;
}

.marquee-rule {
  position: relative;
  height: 1px;
  margin-top: auto;
  background: linear-gradient(90deg, transparent, rgba(216, 167, 42, 0.4) 16%, rgba(216, 167, 42, 0.4) 84%, transparent);
}

.marquee-rule::after {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 8px;
  background: #0b0906;
  color: var(--gold);
  font-size: 0.48rem;
}

.marquee-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
}

.marquee-foot .ticket-count {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #8d8672;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.marquee-go {
  display: inline-flex;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, color 180ms ease;
}

.marquee-go:hover {
  transform: translateX(3px);
  color: var(--gold-light);
}

.marquee-code {
  width: 58px;
  height: 20px;
  flex: none;
  opacity: 0.45;
  background:
    repeating-linear-gradient(90deg, rgba(216, 167, 42, 0.5) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(216, 167, 42, 0.4) 0 2px, transparent 2px 7px);
}

.raffle-card-marquee .ticket-buy {
  margin-top: 12px;
}

.raffle-card-marquee .ticket-status {
  margin: 8px 0 0;
  color: #8d8672;
  font-size: 0.68rem;
  font-weight: 700;
}

.raffle-card-marquee .ticket-status:empty {
  display: none;
}

/* Marquee cards opt out of the raffles-page stipple/box treatment. */
body.raffles-page .raffle-card-marquee {
  border-color: rgba(216, 167, 42, 0.18);
  background: #0b0906;
  box-shadow: none;
}

body.raffles-page .raffle-card-marquee:hover {
  border-color: rgba(216, 167, 42, 0.5);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

/* kill the page's stipple-noise overlay on these cards */
body.raffles-page .raffle-card-marquee::before {
  display: none;
}

/* ============================================================
   Boarding Pass — raffle detail pages (points + access)
   ============================================================ */
.bp-detail {
  border: 1px solid rgba(216, 167, 42, 0.18);
  border-radius: 16px;
  overflow: hidden;
  background: #0b0906;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

.bp-detail-banner {
  position: relative;
  aspect-ratio: 4 / 1;
  overflow: hidden;
  background: #0f0c07;
}

.bp-detail-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-detail-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(11, 9, 6, 0.92));
}

.bp-detail-banner .bp-live,
.bp-detail-banner .bp-chain {
  position: absolute;
  top: 16px;
  z-index: 2;
}
.bp-detail-banner .bp-live { left: 18px; }
.bp-detail-banner .bp-chain { right: 18px; }

.bp-live {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(4px);
  color: #6ee787;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.bp-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: marqueeRadar 2.2s ease-out infinite;
}
.bp-live.is-ended { color: #d8d2c0; }
.bp-live.is-ended::before { animation: none; box-shadow: none; }

.bp-chain {
  padding: 5px 13px;
  border: 1px solid rgba(216, 167, 42, 0.45);
  border-radius: 999px;
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bp-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 1px minmax(300px, 0.86fr);
}

.bp-detail-left {
  display: flex;
  flex-direction: column;
  padding: 28px 32px 30px;
  /* Grid children must be allowed to shrink — otherwise one unbroken string
     (e.g. a long URL in the description) widens the whole card past the
     viewport and the right edge gets clipped on phones. */
  min-width: 0;
}

.bp-detail-left h3 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
}

.bp-serial {
  margin: 0;
  color: #8d8672;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bp-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}
.bp-detail-stats > div {
  flex: 1 1 90px;
  display: grid;
  gap: 3px;
  justify-items: center;
  text-align: center;
  padding: 13px 8px;
  border: 1px solid rgba(216, 167, 42, 0.16);
  border-radius: 10px;
}
.bp-detail-stats dt {
  margin: 0;
  color: #8d8672;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bp-detail-stats dd {
  margin: 0;
  color: var(--gold-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
}

.bp-rule {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 167, 42, 0.4) 16%, rgba(216, 167, 42, 0.4) 84%, transparent);
}
.bp-rule::after {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 8px;
  background: #0b0906;
  color: var(--gold);
  font-size: 0.48rem;
}

.bp-desc {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.bp-reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.bp-chip {
  padding: 5px 13px;
  border: 1px solid rgba(216, 167, 42, 0.45);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.bp-left-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dashed rgba(216, 167, 42, 0.18);
}
.bp-left-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bp-code {
  width: 128px;
  height: 22px;
  flex: none;
  opacity: 0.45;
  background:
    repeating-linear-gradient(90deg, rgba(216, 167, 42, 0.5) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(216, 167, 42, 0.4) 0 2px, transparent 2px 7px);
}

.bp-detail-vrule {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(216, 167, 42, 0.4) 12%, rgba(216, 167, 42, 0.4) 88%, transparent);
}
.bp-detail-vrule::after {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 0;
  background: #0b0906;
  color: var(--gold);
  font-size: 0.48rem;
}

.bp-detail-stub {
  padding: 26px 26px 28px;
  background: rgba(216, 167, 42, 0.03);
  min-width: 0;
}
.bp-detail-stub .section-kicker {
  color: #8d8672;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.bp-detail-stub h3 {
  margin: 2px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--white);
}

/* winner's own wallet callout, shown to the logged-in winner */
.bp-you-won {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(110, 231, 135, 0.4);
  background: rgba(110, 231, 135, 0.06);
  border-radius: 2px;
}
.bp-you-won-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #6ee787;
}
.bp-you-won-label {
  margin: 12px 0 4px;
  color: #8d8672;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bp-you-won-wallet {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--white);
  word-break: break-all;
  line-height: 1.4;
}
.bp-you-won-note {
  margin: 10px 0 0;
  color: #a49c88;
  font-size: 0.8rem;
  line-height: 1.5;
}
.bp-you-won-note a {
  color: #e1ad24;
}

/* eligibility panel, reskinned to a ledger inside the stub */
.bp-detail-stub .access-eligibility-panel { margin: 0; }
.bp-detail-stub .access-eligibility-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bp-detail-stub .eligibility-result {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bp-detail-stub .eligibility-result.is-eligible { color: #6ee787; border: 1px solid rgba(110, 231, 135, 0.4); }
.bp-detail-stub .eligibility-result.is-blocked { color: #f3d77a; border: 1px solid rgba(216, 167, 42, 0.45); }

.bp-detail-stub .access-eligibility-checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 10px 0 0;
}
.bp-detail-stub .access-eligibility-checks > div {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 12px;
  align-items: baseline;
  min-height: 0;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px dashed rgba(216, 167, 42, 0.14);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.bp-detail-stub .access-eligibility-checks > div::before { display: none; }
.bp-detail-stub .access-eligibility-checks > div:last-child { border-bottom: 0; }
.bp-detail-stub .access-eligibility-checks span {
  grid-row: 1 / span 2;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bp-detail-stub .access-eligibility-checks .is-passed span { color: #6ee787; }
.bp-detail-stub .access-eligibility-checks .is-needed span { color: #e8b4b4; }
.bp-detail-stub .access-eligibility-checks strong {
  grid-column: 2;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--white);
}
.bp-detail-stub .access-eligibility-checks p {
  grid-column: 2;
  margin: 1px 0 0;
  color: #8d8672;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.45;
}

.bp-detail-stub .access-social-tasks { margin-top: 18px; }
.bp-detail-stub .access-social-tasks > div { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.bp-detail-stub .access-social-tasks span {
  padding: 5px 12px;
  border: 1px solid rgba(216, 167, 42, 0.45);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 0.66rem;
  font-weight: 800;
}
.bp-detail-stub .access-social-tasks p { color: #8d8672; font-size: 0.7rem; font-weight: 600; }
.bp-detail-stub .access-social-note { font-size: 0.72rem; }
/* Neutralise the legacy chip styling for the new action-button task spans. */
.bp-detail-stub .access-task span {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}
/* span.<class> selectors so these outlive the span neutraliser above.
   The tick is an SVG, so the neutraliser never touches it. */
.bp-detail-stub .access-task span.access-task-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.bp-detail-stub .access-task span.access-task-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.bp-detail-stub .access-task.is-done span.access-task-status {
  color: #6ee787;
}
.bp-detail-stub .access-task span.access-task-status.is-checking {
  color: var(--gold-light);
}
.bp-detail-stub .access-task span.access-task-status.is-verified {
  color: #6ee787;
}
.bp-detail-stub .access-task span.access-task-status.is-failed {
  color: #e8b4b4;
}
.bp-detail-stub .access-verify-row .button {
  padding: 8px 14px;
  font-size: 0.72rem;
}
.bp-detail-stub .access-verify-note { font-size: 0.68rem; }

.bp-detail-stub .access-entry-form,
.bp-detail-stub .bp-cta { display: grid; gap: 12px; margin-top: 18px; }
.bp-detail-stub .access-entry-form .button,
.bp-detail-stub .bp-cta .button,
.bp-detail-stub > .button { width: 100%; }
.bp-detail-stub [data-access-entry-status],
.bp-detail-stub .ticket-status,
.bp-detail-stub .ticket-count { color: #8d8672; font-size: 0.72rem; font-weight: 700; text-align: center; }

/* points ticket-buy stub */
.bp-buy { display: grid; gap: 14px; margin-top: 16px; }
.bp-buy .ticket-buy {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
}
.bp-buy .ticket-buy label { display: grid; gap: 6px; }
.bp-buy .ticket-buy label span {
  color: #8d8672; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.bp-buy .ticket-buy input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(216, 167, 42, 0.3);
  border-radius: 10px;
  background: rgba(6, 5, 4, 0.6);
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
}
.bp-buy .button { width: 100%; }

.bp-cost-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(216, 167, 42, 0.16);
}
.bp-cost-line b { color: var(--gold-light); font-family: "JetBrains Mono", monospace; font-size: 1.4rem; font-weight: 700; }
.bp-cost-line span { color: #8d8672; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }

@media (max-width: 860px) {
  .bp-detail-main { grid-template-columns: 1fr; }
  .bp-detail-vrule { display: none; }
  .bp-detail-stub { border-top: 1px dashed rgba(216, 167, 42, 0.2); }
  .bp-detail-banner { aspect-ratio: 3 / 1; }
}

@media (max-width: 620px) {
  .bp-detail-left { padding: 20px 16px 22px; }
  .bp-detail-stub { padding: 20px 16px 24px; }

  .bp-detail-left h3 { font-size: 1.55rem; }

  .bp-detail-stats {
    gap: 8px;
    margin: 16px 0;
  }
  /* Two tidy columns instead of four squeezed tiles. */
  .bp-detail-stats > div {
    flex: 1 1 calc(50% - 8px);
    padding: 10px 6px;
  }
  .bp-detail-stats dd { font-size: 0.9rem; }

  .bp-desc { font-size: 0.82rem; }

  .bp-chip {
    padding: 4px 10px;
    font-size: 0.62rem;
  }

  .bp-left-foot { gap: 12px; }
  .bp-code { width: 84px; }
}

/* Leaderboard — tabbed podium + ranked table --------------------------------- */
.lb {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.lb-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 7, 4, 0.5);
  justify-self: start;
}

.lb-tab {
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.lb-tab:hover:not(.is-active):not([disabled]) {
  color: var(--gold-light);
}

.lb-tab.is-active {
  background: linear-gradient(160deg, #f3d77a, #d8a72a);
  color: #241804;
}

.lb-tab[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* Podium — 2nd · 1st · 3rd, winner raised */
.lb-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 14px;
}

.lb-podium-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 22px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, #17140d, #0c0a07);
  text-align: center;
}

.lb-podium-card.lb-p1 {
  padding-top: 30px;
  border-color: rgba(216, 167, 42, 0.55);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(216, 167, 42, 0.2), transparent 55%),
    linear-gradient(165deg, #221a0d, #0f0c07);
  box-shadow: 0 20px 46px rgba(216, 167, 42, 0.16);
}

.lb-medal {
  font-size: 1.5rem;
  line-height: 1;
}

.lb-p1 .lb-medal {
  font-size: 1.9rem;
}

.lb-podium-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(145deg, #6a6152, #3a352a);
  overflow: hidden;
}

.lb-p1 .lb-podium-avatar {
  width: 74px;
  height: 74px;
  background: linear-gradient(145deg, #f3d77a, #d8a72a 45%, #6b5312);
  box-shadow: 0 8px 22px rgba(216, 167, 42, 0.28);
}

.lb-p2 .lb-podium-avatar { background: linear-gradient(145deg, #d8d8d8, #8f8f8f); }
.lb-p3 .lb-podium-avatar { background: linear-gradient(145deg, #d79a63, #9a6a3a); }

.lb-podium-avatar img,
.lb-podium-avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #211a0f;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.lb-podium-card h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-podium-card strong {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.lb-p1 strong {
  font-size: 2rem;
  text-shadow: 0 0 28px rgba(216, 167, 42, 0.35);
}

.lb-podium-card small {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lb-podium-card.is-you {
  outline: 1px solid rgba(216, 167, 42, 0.5);
  outline-offset: 2px;
}

.lb-you-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #241804;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Ranked table (4th onward) */
.lb-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.lb-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-top: 1px solid rgba(216, 167, 42, 0.1);
}

.lb-row:first-child {
  border-top: 0;
}

.lb-row:hover {
  background: rgba(216, 167, 42, 0.04);
}

.lb-row.is-you {
  background: rgba(216, 167, 42, 0.1);
  box-shadow: inset 3px 0 0 var(--gold);
}

.lb-rank {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.lb-cell-name {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(216, 167, 42, 0.28);
}

.lb-avatar img,
.lb-avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #211a0f;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.lb-value {
  flex: none;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lb-value em {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lb-you-banner {
  display: grid;
  gap: 4px;
}

.lb-you-banner-label {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lb-you-banner .lb-row {
  border: 1px solid rgba(216, 167, 42, 0.4);
  border-radius: 12px;
  background: rgba(216, 167, 42, 0.1);
}

@media (max-width: 620px) {
  .lb-tabs { align-self: stretch; justify-self: stretch; justify-content: center; }
  .lb-tab { flex: 1; padding: 8px 10px; }
  .lb-podium {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .lb-podium-card.lb-p1 { order: -1; }
  .lb-podium-card {
    grid-template-columns: auto auto 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
    padding: 14px 16px;
    gap: 14px;
  }
  .lb-podium-card h3 { margin: 0; }
  .lb-podium-card strong { grid-column: 3; justify-self: end; }
  .lb-podium-card small { display: none; }
  .lb-podium-avatar,
  .lb-p1 .lb-podium-avatar { width: 46px; height: 46px; }
}

/* Point Raffles admin ---------------------------------------------------------- */
.praffle {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.praffle-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.praffle-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.praffle-summary b {
  color: #6ee787;
}

.praffle-msg {
  margin: 0;
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 600;
}

.praffle-bar .button {
  margin-left: auto;
}

/* Create / edit form */
.praffle-form {
  padding: 20px 22px;
  border: 1px solid rgba(216, 167, 42, 0.4);
  border-radius: 14px;
  background: linear-gradient(165deg, #16120b, #0d0b07);
}

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

.praffle-form-head h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.praffle-cancel {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9c937f;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.praffle-cancel:hover {
  color: var(--gold-light);
}

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

.praffle-grid label {
  display: grid;
  gap: 5px;
}

.praffle-grid label.is-wide {
  grid-column: 1 / -1;
}

.praffle-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.praffle-grid span em {
  color: #8d8672;
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.praffle-grid input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 10px;
  background: rgba(8, 7, 4, 0.6);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.86rem;
}

.praffle-grid input:focus {
  outline: none;
  border-color: var(--gold);
}

.praffle-grid input::placeholder {
  color: #6f6853;
}

.praffle-reqs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(216, 167, 42, 0.24);
}

.praffle-reqs > span {
  color: #8d8672;
  font-size: 0.74rem;
  font-weight: 600;
}

.praffle-reqs label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
}

.praffle-reqs input {
  accent-color: #d8a72a;
}

.praffle-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.praffle-form-msg {
  margin: 0;
  color: #e08a8a;
  font-size: 0.8rem;
}

/* Raffle list */
.praffle-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(165deg, #12100a, #0b0a07);
}

.praffle-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 130px 130px auto;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-top: 1px solid rgba(216, 167, 42, 0.1);
}

.praffle-row:first-child {
  border-top: 0;
}

.praffle-row:hover {
  background: rgba(216, 167, 42, 0.04);
}

.praffle-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9c937f;
}

.praffle-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.praffle-status.is-live {
  color: #6ee787;
}

.praffle-status.is-live::before {
  animation: marqueeRadar 2.2s ease-out infinite;
}

.praffle-status.is-drawn {
  color: var(--gold-light);
}

.praffle-status.is-refunded {
  color: #8d8672;
}

.praffle-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.praffle-name b {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.praffle-name small {
  color: #8d8672;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.praffle-wait {
  color: #d8a72a;
  font-style: normal;
  font-weight: 600;
}

.praffle-nums {
  display: grid;
  gap: 1px;
  text-align: right;
}

.praffle-nums b {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.praffle-nums small {
  color: #8d8672;
  font-size: 0.68rem;
}

.praffle-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.praffle-act {
  padding: 6px 14px;
  border: 1px solid rgba(216, 167, 42, 0.34);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.praffle-act:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.praffle-act.is-gold {
  color: var(--gold-light);
}

.praffle-act.is-danger:hover {
  color: #e08a8a;
  border-color: rgba(224, 138, 138, 0.6);
}

.praffle-act.is-armed {
  background: var(--gold);
  border-color: var(--gold);
  color: #241804;
}

.praffle-act.is-armed.is-danger {
  background: #b4544a;
  border-color: #b4544a;
  color: #fff;
}

.praffle-act[disabled] {
  opacity: 0.5;
  cursor: default;
}

.praffle-done {
  color: #6f6853;
  font-size: 0.8rem;
}

.praffle-empty {
  margin: 0;
  padding: 22px;
  color: #8d8672;
  font-size: 0.88rem;
}

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

  .praffle-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 8px;
  }

  .praffle-status {
    order: -1;
  }

  .praffle-nums {
    text-align: left;
  }

  .praffle-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Claims review queue ------------------------------------------------------- */
.cq {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.cq-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cq-stat {
  display: grid;
  gap: 2px;
  padding: 15px 17px;
  border: 1px solid rgba(216, 167, 42, 0.16);
  border-radius: 13px;
  background: linear-gradient(160deg, #13100b, #0d0b08);
}

.cq-stat b {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.cq-stat.is-pending {
  border-color: rgba(216, 167, 42, 0.45);
}

.cq-stat.is-pending b {
  color: var(--gold-light);
}

.cq-stat span {
  color: var(--muted);
  font-size: 0.76rem;
}

/* Filters — one clean row */
.cq-filters {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 130px minmax(0, 1.2fr);
  gap: 12px;
  align-items: end;
}

.cq-filters label {
  display: grid;
  gap: 5px;
}

.cq-filters span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cq-filters select,
.cq-filters input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 10px;
  background: rgba(8, 7, 4, 0.6);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.84rem;
}

.cq-filters select:focus,
.cq-filters input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Review queue rows */
.cq-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(165deg, #12100a, #0b0a07);
}

.cq-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) max-content max-content max-content max-content;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-top: 1px solid rgba(216, 167, 42, 0.1);
}

.cq-row:first-child {
  border-top: 0;
}

.cq-row.is-pending {
  background: rgba(216, 167, 42, 0.03);
}

.cq-row:hover {
  background: rgba(216, 167, 42, 0.06);
}

.cq-check {
  display: flex;
  justify-content: center;
}

.cq-check input {
  width: 16px;
  height: 16px;
  accent-color: #d8a72a;
  cursor: pointer;
}

.cq-what {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cq-what b {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-what small {
  color: #8d8672;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-task {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cq-proof {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cq-proof:hover {
  color: var(--gold);
}

.cq-acts {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cq-act {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.14s ease;
}

.cq-act.is-approve {
  background: linear-gradient(160deg, #f3d77a, #d8a72a);
  color: #241804;
}

.cq-act.is-reject {
  background: transparent;
  border-color: rgba(216, 167, 42, 0.34);
  color: var(--muted);
}

.cq-act.is-reject:hover {
  color: #e08a8a;
  border-color: rgba(224, 138, 138, 0.6);
}

.cq-act:hover:not([disabled]) {
  filter: brightness(1.08);
}

.cq-act.is-armed,
.admin-batch-actions .button.is-armed {
  background: #b4544a !important;
  border-color: #b4544a !important;
  color: #fff !important;
}

.cq-act.is-approve.is-armed,
.admin-batch-actions .button.primary.is-armed {
  background: #1f8a4c !important;
  border-color: #1f8a4c !important;
  color: #fff !important;
}

.cq-batch-msg {
  margin-left: auto;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
}

.cq-batch-msg:empty {
  display: none;
}

.cq-act[disabled] {
  opacity: 0.4;
  cursor: default;
}

.cq-note {
  grid-column: 2 / -1;
  margin: 0;
}

.cq-note:empty {
  display: none;
}

/* Campaign totals fold */
.cq-reports {
  border: 1px solid rgba(216, 167, 42, 0.18);
  border-radius: 13px;
  background: rgba(12, 10, 7, 0.6);
  overflow: hidden;
}

.cq-reports summary {
  padding: 13px 18px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.cq-reports summary::-webkit-details-marker {
  display: none;
}

.cq-reports summary::before {
  content: "▸ ";
  color: var(--gold);
}

.cq-reports[open] summary::before {
  content: "▾ ";
}

.cq-report-list {
  display: grid;
  padding: 0 18px 14px;
}

.cq-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid rgba(216, 167, 42, 0.1);
}

.cq-report-row b {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-report-row span {
  color: #8d8672;
  font-size: 0.74rem;
  white-space: nowrap;
}

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

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

  .cq-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    row-gap: 8px;
  }

  .cq-task,
  .cq-proof,
  .cq-row .claim-chip {
    grid-column: 2;
    justify-self: start;
  }

  .cq-acts {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .cq-report-row {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
}

/* Profile page — Espresso surfaces (lifted from near-black; team-selected 2026-07-10) */
/* Base page: espresso instead of near-black */
body.profile-page {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(216, 167, 42, 0.10), transparent 55%),
    #221b11 !important;
}

body.profile-page .site-header {
  background: rgba(46, 37, 22, 0.9);
}

/* Member card — lifted */
body.profile-page .pf-card {
  background:
    radial-gradient(130% 180% at 100% 0%, rgba(216, 167, 42, 0.16), transparent 44%),
    linear-gradient(150deg, #332917, #241d12 55%, #2c2415);
  border-color: rgba(216, 167, 42, 0.55);
}
body.profile-page .pf-card-foot { border-top-color: rgba(216, 167, 42, 0.3); }
body.profile-page .pf-avatar img,
body.profile-page .pf-avatar span { background: #3a2f1a; }

/* Stats */
body.profile-page .pf-stat {
  background: linear-gradient(160deg, #2e2515, #251e11);
  border-color: rgba(216, 167, 42, 0.24);
}

/* Setup panel */
body.profile-page .wallet-panel {
  background:
    radial-gradient(circle at 84% 26%, rgba(216, 167, 42, 0.14), transparent 30%),
    #2a2213;
}
body.profile-page .wallet-panel::before { opacity: 0.25; }
body.profile-page .vault-card {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(216, 167, 42, 0.09), transparent 46%),
    linear-gradient(160deg, #322817, #282013);
  border-color: rgba(216, 167, 42, 0.28);
}
body.profile-page .vault-coin { background: radial-gradient(120% 120% at 30% 25%, #4a3b1c, #2c2413); }
body.profile-page .vault-summary,
body.profile-page .vault-x-connected { background: rgba(30, 24, 12, 0.6); }
body.profile-page .vault-field input,
body.profile-page .vault-alt-addr,
body.profile-page .vault-alt-lbl {
  background: rgba(28, 22, 11, 0.65);
  border-color: rgba(216, 167, 42, 0.3);
}
body.profile-page .setup-chip { background: rgba(46, 37, 20, 0.7); }

/* Wins */
body.profile-page .pf-win {
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(110, 231, 135, 0.08), transparent 46%),
    linear-gradient(160deg, #28271a, #241f12);
  border-color: rgba(110, 231, 135, 0.28);
}
body.profile-page .pf-win-wallet { background: rgba(28, 22, 11, 0.6); }

/* Stub rack */
body.profile-page .pf-stub {
  background: linear-gradient(165deg, #2d2414, #251e11);
  border-color: rgba(216, 167, 42, 0.28);
}

/* Email forms */
body.profile-page .profile-email-form input {
  background: rgba(28, 22, 11, 0.65);
}

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


/* Slim logged-in header: Join hidden, account actions in an avatar menu ------- */
body.is-authed .header-join {
  display: none;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(216, 167, 42, 0.34);
  border-radius: 999px;
  background: rgba(10, 9, 6, 0.75);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.account-chip img,
.account-chip > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #211a0f;
  color: var(--gold-light);
  font-size: 0.8rem;
  flex: none;
}

.account-chip strong {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--gold);
  transition: transform 160ms ease;
}

.account-dropdown.is-open .account-caret {
  transform: rotate(180deg);
}

/* Right-align the account menu so it never overflows the viewport edge. */
.account-dropdown .nav-dropdown-menu {
  left: auto;
  right: 0;
  min-width: 184px;
  padding: 6px;
  gap: 2px;
  /* Solid, not translucent — the page's gold noise showing through read as
     muddy on mobile. */
  background: #0d0b08;
  border-color: rgba(216, 167, 42, 0.34);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
  transform: translateY(8px);
}

/* Set Logout apart from the navigation links. */
.account-menu button[data-logout] {
  margin-top: 2px;
  border-top: 1px solid rgba(216, 167, 42, 0.16);
}

/* The account chip is click-toggled via .is-open. :hover and :focus-within
   must NOT reveal the menu — on touch the button keeps focus after a tap, so
   :focus-within would pin the menu open and tapping the chip again couldn't
   close it. (The base .nav-dropdown rules open on hover/focus; override them.) */
.account-dropdown:hover .nav-dropdown-menu,
.account-dropdown:focus-within .nav-dropdown-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.account-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* The account menu sits outside .nav, so restate the dropdown-link look here. */
.account-menu a,
.account-menu button[data-logout] {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.account-menu a:hover,
.account-menu button[data-logout]:hover {
  background: rgba(216, 167, 42, 0.1);
  color: var(--gold-light);
}

/* Ops market strip on the join band ------------------------------------------ */
.join {
  flex-wrap: wrap;
}

.ops-code {
  width: 58px;
  height: 16px;
  flex: none;
  opacity: 0.45;
  background:
    repeating-linear-gradient(90deg, rgba(216, 167, 42, 0.5) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(216, 167, 42, 0.4) 0 2px, transparent 2px 7px);
}

.join .join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: auto;
  flex: none;
}

footer.ops-footer {
  align-items: center;
  gap: 18px;
}

/* The ops footer closes the page right under the join CTA; the section's
   full 80px bottom padding reads as a hole between them. */
section.join {
  padding-bottom: 42px;
}

.ops-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted);
  white-space: nowrap;
}

.ops-mono strong {
  color: #6ee787;
  font-weight: 800;
}

.ops-rule {
  position: relative;
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 167, 42, 0.4) 16%, rgba(216, 167, 42, 0.4) 84%, transparent);
}

.ops-rule::after {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 8px;
  background: #0d0b07;
  color: var(--gold);
  font-size: 0.48rem;
}

@media (max-width: 700px) {
  footer.ops-footer {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  footer.ops-footer .ops-rule,
  footer.ops-footer .ops-code:last-child {
    display: none;
  }

  /* Est./copyright keeps its place on phones as a second centered row. */
  footer.ops-footer .ops-mono:not([data-market-prices]) {
    flex-basis: 100%;
    text-align: center;
  }

  footer.ops-footer .ops-code {
    width: 36px;
  }
}

/* The join band is the page's closing CTA — the one homepage section that
   keeps its big heading (all others hide h2 and let the kicker carry it). */
main#top > section.join h2 {
  display: block;
}

/* Identity circles straddling the detail banner's bottom-left edge ----------- */
.bp-identities {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 12px;
  height: 0;
  margin: -40px 0 0 28px;
}

.bp-identities img {
  flex: none;
  width: 64px;
  height: 64px;
  border: 3px solid #0b0906;
  border-radius: 50%;
  background: #0b0b09;
  object-fit: cover;
}


/* The circles hang ~24px into the manifest; give the title room to clear them. */
.bp-identities + .bp-detail-main .bp-detail-left {
  padding-top: 58px;
}

@media (max-width: 700px) {
  .bp-identities {
    margin: -30px 0 0 20px;
  }

  .bp-identities img {
    width: 52px;
    height: 52px;
  }

  .bp-identities + .bp-detail-main .bp-detail-left {
    padding-top: 50px;
  }
}

/* --- Collab status page: submission tracker for drawn access raffles ------- */

/* Heading live indicator: just a pulsing dot + live count, no box/background. */
.collab-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.collab-live em {
  font-style: normal;
}

.collab-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #6ee787;
  box-shadow: 0 0 0 6px rgba(110, 231, 135, 0.18);
  animation: liveDotBlink 1.25s ease-in-out infinite;
}

.collab-summary {
  margin: 0 0 16px;
  padding: 12px 15px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 12px;
  background: rgba(30, 24, 12, 0.5);
  color: var(--muted);
  font-size: 0.9rem;
}

.collab-summary strong {
  color: var(--gold-light);
}

.collab-summary.is-clear {
  border-color: rgba(110, 231, 135, 0.32);
  color: #b7e6c3;
}

.collab-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.collab-search {
  flex: 1 1 240px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 10px;
  background: rgba(8, 7, 4, 0.6);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.collab-search:focus {
  outline: none;
  border-color: var(--gold);
}

.collab-search::placeholder {
  color: #6f6853;
}

.collab-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 14px;
  border: 1px solid rgba(216, 167, 42, 0.28);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.collab-filter input {
  accent-color: var(--gold);
  cursor: pointer;
}

.collab-empty-row {
  padding: 16px;
  color: #8d8672;
  font-size: 0.85rem;
  text-align: center;
  list-style: none;
}

.collab-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid rgba(216, 167, 42, 0.18);
  border-radius: 12px;
  background: linear-gradient(160deg, #14100b, #0c0a07);
}

.collab-row.is-pending {
  border-color: rgba(216, 167, 42, 0.5);
  background: linear-gradient(160deg, #1c1609, #120d06);
}

.collab-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.collab-logo {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(216, 167, 42, 0.28);
  background: #1a150c;
}

.collab-logo.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.collab-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.collab-name {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
}

.collab-meta {
  color: #8d8672;
  font-size: 0.76rem;
}

.collab-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.collab-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.collab-pill.is-done {
  color: #6ee787;
  background: rgba(110, 231, 135, 0.12);
  border: 1px solid rgba(110, 231, 135, 0.4);
}

.collab-pill.is-pending {
  color: var(--gold-light);
  background: rgba(216, 167, 42, 0.14);
  border: 1px solid rgba(216, 167, 42, 0.5);
}

.collab-project {
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.collab-project:hover {
  color: var(--gold);
}

.collab-note {
  margin: 18px 0 0;
  color: #8d8672;
  font-size: 0.82rem;
}

/* Admin: the "submitted to project" toggle in its confirmed state. */
.access-admin-actions .button.is-submitted,
.praffle-act.is-submitted {
  color: #6ee787;
  border-color: rgba(110, 231, 135, 0.45);
}

/* Community setup page: a partner server owner's self-serve raffle activation. */
.community-setup-help {
  margin: 0 0 18px;
  color: #8d8672;
  font-size: 0.82rem;
}

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

.community-setup-form h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.community-setup-status {
  margin: 0 0 14px;
  color: #8d8672;
  font-size: 0.82rem;
}

.community-raffles {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(184, 137, 26, 0.18);
}

.community-raffles h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

/* .profile-email-form's 2-column grid is built for one input + one button;
   the setup and raffle forms have several fields, so they stack instead. */
.community-setup-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.community-setup-form label {
  display: flex;
  flex-direction: column;
}

.community-setup-form label.community-raffle-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.community-setup-form label > small {
  margin-top: 5px;
  color: #8d8672;
  font-size: 0.76rem;
  line-height: 1.4;
}

.community-raffle-checkbox input {
  width: auto;
}

.community-setup-form button[type="submit"] {
  align-self: flex-start;
}

.community-weight-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.community-weight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  gap: 10px;
  align-items: center;
}

@media (max-width: 480px) {
  .community-weight-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "role role" "value remove";
  }

  .community-weight-row select {
    grid-area: role;
  }

  .community-weight-row input {
    grid-area: value;
  }

  .community-weight-row [data-community-remove-weight] {
    grid-area: remove;
  }
}

.community-weight-row select,
.community-weight-row input {
  width: 100%;
}

.community-weight-row [data-community-remove-weight] {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}

.community-winners-panel {
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.community-winners-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-winners-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 0.85rem;
}

.community-winner-wallet {
  flex-basis: 100%;
  color: #8d8672;
  font-family: monospace;
  overflow-wrap: anywhere;
}

.community-icon-preview {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-left: 6px;
}

.community-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.community-view-link {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

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

.community-setup-details {
  margin: 8px 0 18px;
}

.community-setup-details summary {
  cursor: pointer;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 0;
}

.community-setup-details[open] summary {
  margin-bottom: 10px;
}

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

.community-directory-card {
  text-decoration: none;
  color: inherit;
  justify-content: flex-start;
  transition: border-color 0.15s ease;
}

.community-directory-card:hover {
  border-color: rgba(216, 167, 42, 0.5);
}

.community-directory-icon {
  width: 36px;
  height: 36px;
  margin-left: 0;
}

[data-community-owner-actions]:not(:empty) {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Just the dot + text, no box — same stripped treatment as the
   leaderboard's "Public" live indicator. body.raffles-page .raffle-readonly
   (shared with dozens of other components) sets a dark fill at higher
   specificity than a plain .community-live-badge rule can beat, so this has
   to match that same body.raffles-page prefix to actually win. */
.community-live-badge,
body.raffles-page .community-live-badge {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.raffles-page .community-live-badge::before {
  content: none;
}

/* "You're not one of them yet" gate — same bouncer-mascot visual language as
   the xD Engage Hub's own denied state (engage/login.html), reused here for
   a partner community's raffle page so a non-member/logged-out visitor gets
   turned away with real personality instead of a bare text card. Kept as its
   own smaller namespace (not shared classes with login.html) since this
   embeds inside an existing page rather than owning the whole viewport. */
.community-gate {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.7fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: 20px 0 10px;
}

.community-gate-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-gate-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6ee787;
  box-shadow: 0 0 0 6px rgba(110, 231, 135, 0.14), 0 0 16px rgba(110, 231, 135, 0.88);
}

.community-gate-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.community-gate-title span {
  color: var(--gold-light);
}

.community-gate-lede {
  max-width: 520px;
  margin: 18px 0 0;
  color: #d5cdb9;
  font-size: clamp(0.95rem, 1.4vw, 1.06rem);
  font-weight: 700;
  line-height: 1.6;
}

.community-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  align-items: center;
}

.community-gate-actions .button.secondary {
  color: var(--muted);
  font-size: 0.78rem;
}

.community-gate-visual {
  display: grid;
  min-height: 220px;
  place-items: center;
}

.community-gate-mascot {
  width: min(100%, 240px);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}

@media (max-width: 760px) {
  .community-gate {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .community-gate-kicker,
  .community-gate-actions {
    justify-content: center;
  }

  .community-gate-lede {
    margin-right: auto;
    margin-left: auto;
  }

  .community-gate-visual {
    order: -1;
    min-height: 160px;
  }

  .community-gate-mascot {
    width: min(60vw, 200px);
  }
}
