/* CHAINeS shared metallic frame — keep the RGB stops identical on every route. */
:root {
  --chaines-silver: rgb(226, 232, 240);
  --chaines-champagne: rgb(245, 212, 139);
  --chaines-gold: rgb(229, 179, 92);
  --chaines-deep-gold: rgb(148, 103, 29);
  --chaines-gilded-grade: linear-gradient(
    112deg,
    var(--chaines-deep-gold) 0%,
    var(--chaines-gold) 22%,
    var(--chaines-silver) 48%,
    var(--chaines-champagne) 68%,
    var(--chaines-deep-gold) 100%
  );
}

html {
  min-height: 100%;
  background-color: rgb(5, 10, 24);
}

/* A non-interactive, viewport-safe guide rail shared by every CHAINeS page. */
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  pointer-events: none;
  border: 2px solid transparent;
  border-image: var(--chaines-gilded-grade) 1;
  box-shadow:
    inset 0 0 0 1px rgba(226, 232, 240, 0.14),
    inset 0 0 18px rgba(229, 179, 92, 0.08);
}

/* The validation gate uses the same fixed RGB grade as the site frame. */
.token-gate {
  --gold: var(--chaines-gold);
  --gold-2: var(--chaines-deep-gold);
}

.token-gate__panel {
  border: 2px solid transparent !important;
  background:
    linear-gradient(150deg, rgba(11, 20, 53, 0.98), rgba(15, 33, 74, 0.98)) padding-box,
    var(--chaines-gilded-grade) border-box !important;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(226, 232, 240, 0.15),
    0 0 46px rgba(229, 179, 92, 0.25) !important;
}

.token-gate__art {
  border: 1px solid transparent !important;
  background:
    radial-gradient(140% 120% at 80% 10%, rgba(245, 212, 139, 0.55), transparent 55%),
    linear-gradient(135deg, rgba(21, 58, 122, 0.98), rgba(14, 27, 59, 0.98)) padding-box,
    var(--chaines-gilded-grade) border-box !important;
}

.token-gate__grade {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--chaines-silver);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.token-gate__grade::after {
  content: "";
  height: 3px;
  border-radius: 999px;
  background: var(--chaines-gilded-grade);
  box-shadow: 0 0 14px rgba(229, 179, 92, 0.42);
}

.token-gate__button {
  border: 1px solid rgba(226, 232, 240, 0.48) !important;
  background: var(--chaines-gilded-grade) !important;
  box-shadow: 0 8px 26px rgba(148, 103, 29, 0.36);
}

/* Carry the same metalwork into account entry instead of stopping at the
   viewport edge. These surfaces intentionally use explicit RGB values so a
   user-selected theme cannot wash the gold grade into an unrelated hue. */
.auth-card,
.privacy-choice__card {
  position: relative;
  border: 2px solid transparent !important;
  background:
    linear-gradient(145deg, rgba(13, 24, 54, 0.98), rgba(7, 14, 34, 0.98)) padding-box,
    var(--chaines-gilded-grade) border-box !important;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.66),
    0 0 0 1px rgba(226, 232, 240, 0.12),
    0 0 42px rgba(229, 179, 92, 0.2) !important;
}

.auth-card::before,
.privacy-choice__card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(245, 212, 139, 0.13);
  border-radius: inherit;
  pointer-events: none;
}

.auth-card > *,
.privacy-choice__card > * {
  position: relative;
}

.auth-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px !important;
  color: var(--chaines-champagne) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-card__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--chaines-gilded-grade);
  box-shadow: 0 0 12px rgba(229, 179, 92, 0.48);
}

.auth-card__intro h2,
.privacy-choice__card h2 {
  color: var(--chaines-silver);
  text-shadow: 0 0 24px rgba(245, 212, 139, 0.2);
}

.auth-card__account input:focus,
.auth-card__account select:focus {
  border-color: var(--chaines-gold) !important;
  outline: 2px solid rgba(229, 179, 92, 0.18);
  outline-offset: 1px;
}

.auth-card #login,
.privacy-choice__actions .primary {
  color: rgb(20, 15, 7) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  background: var(--chaines-gilded-grade) !important;
  box-shadow: 0 9px 24px rgba(148, 103, 29, 0.34);
}

.auth-card__extras {
  border-color: rgba(229, 179, 92, 0.32) !important;
  background: rgba(4, 10, 27, 0.54) !important;
}

.face-preference {
  border-color: rgba(229, 179, 92, 0.38) !important;
}

@media (max-width: 560px), (max-height: 700px) {
  .auth-card::before { inset: 5px; }
  .auth-card__eyebrow { margin-bottom: 3px !important; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .token-gate__button { transition: none !important; }
}
