:root {
  --bg: #06050d;
  --panel: #100b19;
  --green: #c9a9f4;
  --electric: #dbc0ff;
  --muted: #8f849e;
  --line: #473658;
  --white: #f1edf7;
  --red: #f1a9b6;
}
body {
  background: radial-gradient(ellipse at 76% 12%, rgba(72, 38, 103, .23), transparent 28%),
              radial-gradient(ellipse at 13% 66%, rgba(45, 25, 74, .17), transparent 31%),
              var(--bg);
}
#voidfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .8; pointer-events: none; }
.grain { opacity: .12; }
.scanline { opacity: .035; background: repeating-linear-gradient(transparent 0 4px, #baa0d7 5px); }
.topbar { border-color: #382b49; }
.brand-mark span { color: #f3e9ff; }
.top-code, .eyebrow-index { color: #877999; }
.status-dot { background: #b58add; box-shadow: 0 0 14px #b58add; }
.hero h1 { font-size: clamp(100px, 11vw, 205px); line-height: .82; }
.hero h1 em { -webkit-text-stroke: 2px var(--white); text-shadow: 0 0 38px rgba(205, 159, 255, .16); }
.hero-deck { color: #bcb2cb; }
.primary-btn { background: #c9a5ee; color: #140b20; }
.primary-btn:hover { background: #e7d1ff; }
.aside-note { color: #9b8cac; }
.hero-art {
  background: radial-gradient(circle at center, rgba(95, 52, 131, .27) 0%, rgba(48, 26, 77, .15) 34%, transparent 69%);
  isolation: isolate;
}
.hero-art::before { border-color: #5d446d; opacity: .38; }
.hero-art::after { border-color: #5d446d; opacity: .19; }
.outer-ring, .mid-ring, .inner-ring {
  border-color: rgba(190, 150, 236, .42);
  box-shadow: 0 0 38px rgba(142, 69, 205, .09), inset 0 0 28px rgba(142, 69, 205, .07);
}
.outer-ring { border-color: rgba(172, 129, 219, .3); }
.mid-ring::before, .mid-ring::after { background: #e7c5ff; box-shadow: 0 0 19px #c286ff; }
.inner-ring { border-color: rgba(220, 189, 255, .26); }
.core {
  width: 27%;
  background: radial-gradient(circle, #010106 0 54%, #0b0712 58%, #5d3777 64%, #d3a8fa 67%, #4f2d6b 72%, #0a0712 78%);
  box-shadow: 0 0 20px rgba(222, 174, 255, .75), 0 0 62px 17px rgba(137, 70, 185, .38), 0 0 130px 44px rgba(95, 44, 135, .2);
  animation: eclipse-breath 5s ease-in-out infinite;
}
.core::before { inset: -15%; border-color: #a175bf; opacity: .34; }
.core::after {
  content: "";
  position: absolute;
  left: -35%; right: -35%; top: 40%; height: 19%;
  border: 2px solid rgba(222, 170, 255, .7);
  border-left-color: rgba(222, 170, 255, .18);
  border-right-color: rgba(222, 170, 255, .18);
  border-radius: 50%;
  transform: rotate(-24deg);
  box-shadow: 0 0 19px rgba(192, 113, 242, .35);
}
.core-eye { display: none; }
.crosshair { background: #e1b5fa; opacity: .13; }
.art-label span { color: #9e8caf; }
.art-index span { color: #6e567e; }
.scroll-cue { color: #9687a5; }
.marquee { background: #c3a0e9; color: #170f22; border-color: #a477ce; }
.section-head { border-color: #4e395f; }
.section-coordinate { color: #847393; }
.protocol-copy p { color: #bdb2c8; }
.protocol-copy strong { color: #f2e7ff; }
.sequence-item, .sequence-item:last-child { border-color: #4b365b; }
.sequence-item:hover { background: #160f21; }
.seq-label { color: #9b8aaa; }
.sequence-item p { color: #aa9bb6; }
.vault {
  background: linear-gradient(125deg, #1b1029, #090711 65%);
  border-color: #634979;
  box-shadow: 0 0 100px rgba(155, 83, 218, .08);
}
.vault .section-head { border-color: #634979; }
.vault-description { color: #c4b4d0; }
.wallet-shell { border-color: #735b87; background: #1b1228; }
.wallet-shell div:nth-child(2) span { color: #ad97bd; }
.wallet-lock { color: #f0b4c4; border-color: #a26981; }
.vault-side { border-color: #4c365d; }
.vault-side::before {
  background: repeating-linear-gradient(90deg, transparent 0 35px, #67457744 36px),
              repeating-linear-gradient(0deg, transparent 0 35px, #67457744 36px);
}
.signal-stack { color: #4c355c; text-shadow: 0 0 30px rgba(186, 130, 255, .15); }
.signal-stack .active-line { text-shadow: 0 0 25px #b676ed; }
.vault-side-note { color: #a995bc; }
.closing p { color: #b4a5bf; }
.footer { border-color: #4b365b; color: #92819f; }
.details-dialog { background: #110b1b; border-color: #ad85ce; }
.details-dialog p, .details-dialog li { color: #c6b8d2; }
.details-dialog .dialog-foot { color: #aa95bc; border-color: #57416c; }
@keyframes eclipse-breath { 50% { transform: scale(1.045); filter: brightness(1.15); } }
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(76px, 17vw, 120px); }
  .hero h1 em { -webkit-text-stroke: 1.2px var(--white); }
  .hero-art { background: radial-gradient(circle, rgba(95, 52, 131, .29), transparent 66%); }
}
@media (max-width: 420px) { .hero h1 { font-size: 18vw; } }
@media (prefers-reduced-motion: reduce) { #voidfield { display: none; } }

/* One-screen relay preview */
.hero { min-height: 0; height: auto; max-height: none; padding-top: 44px; padding-bottom: 38px; }
.hero-copy { padding-bottom: 0; }
.eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 24px; }
.hero-deck { font-size: 23px; color: #d5c7e3; margin-bottom: 24px; }
.hero-art { height: min(570px, 70vh); background-position: center 60%; }
.art-countdown { position: absolute; top: 20px; left: 0; right: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; font-family: Consolas, 'Courier New', monospace; }
.art-countdown span { color: #c9a9f4; font-size: 10px; letter-spacing: .25em; }
.art-countdown strong { color: #f2e7ff; font-size: clamp(25px, 2.5vw, 38px); letter-spacing: -.045em; line-height: 1; text-shadow: 0 0 24px rgba(190, 130, 255, .4); white-space: nowrap; }
.art-countdown small { color: #a89ab8; font-size: 10px; letter-spacing: .12em; }
.orbital-system { position: absolute; inset: 0; display: grid; place-items: center; transform: translateY(45px) scale(.88); }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 650px; border-top: 1px solid #705487; border-bottom: 1px solid #705487; }
.entry-cell { min-height: 120px; padding: 17px 17px 14px 0; display: flex; flex-direction: column; }
.entry-cell + .entry-cell { border-left: 1px solid #4b365b; padding-left: 17px; }
.entry-cell span, .entry-cell small, .entry-note, .relay-marker, .relay-state>span:last-child, .relay-social>span:last-child { font-family: Consolas, 'Courier New', monospace; }
.entry-cell span { color: #ab91c1; font-size: 10px; letter-spacing: .13em; white-space: nowrap; }
.entry-cell strong { color: #f2e7ff; font-size: clamp(37px, 3.7vw, 58px); line-height: 1; letter-spacing: -.07em; margin-top: 10px; }
.entry-cell:first-child strong { font-size: clamp(30px, 3vw, 46px); }
.entry-cell small { color: #a89ab8; font-size: 10px; margin-top: 10px; line-height: 1.4; }
.entry-note { color: #a998b7; font-size: 11px; letter-spacing: .04em; line-height: 1.5; max-width: 630px; margin-top: 14px; }
.pay-button { margin-top: 17px; min-width: 260px; }
.pay-button:disabled { cursor: not-allowed; background: #3b2c49; color: #b9a8c8; border: 1px solid #6b517d; transform: none; }
.pay-feedback { max-width: 530px; margin-top: 14px; border-left: 2px solid #a77ac7; padding: 8px 0 8px 13px; color: #cbbbd9; font: 11px/1.5 Consolas, 'Courier New', monospace; }
.pay-feedback[hidden] { display: none; }
.pay-feedback a { color: #ead1ff; text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }
.wallet-strip { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; border-top: 1px solid #6b5080; padding: 18px 0 20px; }
.wallet-strip .relay-marker, .wallet-strip code, .wallet-strip small { grid-column: 1; }
.wallet-strip code { font: 16px Consolas, 'Courier New', monospace; color: #e9d9fa; overflow-wrap: anywhere; }
.wallet-strip small { font: 10px Consolas, 'Courier New', monospace; color: #a89ab8; line-height: 1.5; }
.wallet-strip button { grid-column: 2; grid-row: 1 / 4; color: #dbc0ff; border: 1px solid #705487; background: #160e22; padding: 10px 17px; font: 11px Consolas, 'Courier New', monospace; letter-spacing: .15em; cursor: pointer; }
.wallet-strip button:hover { background: #30203e; }
.relay-bottom { border-top: 1px solid #6b5080; border-bottom: 1px solid #6b5080; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; }
.relay-state, .relay-social { display: flex; flex-direction: column; gap: 10px; padding: 19px 22px 20px 0; min-height: 110px; }
.relay-social { border-left: 1px solid #4b365b; padding-left: 25px; }
.relay-marker { font-size: 10px; letter-spacing: .2em; color: #ab91c1; }
.relay-state strong, .relay-social strong { font-size: 19px; letter-spacing: -.02em; }
.relay-social a:hover { color: #dbc0ff; text-decoration: underline; text-underline-offset: 4px; }
.relay-state>span:last-child, .relay-social>span:last-child { font-size: 11px; color: #a89ab8; line-height: 1.5; }
.footer { padding-top: 18px; padding-bottom: 20px; }
@media (max-width: 1100px) { .entry-grid { max-width: 560px; } .entry-cell span { font-size: 9px; } }
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; padding-top: 42px; padding-bottom: 28px; }
  .hero h1 { margin-bottom: 19px; }
  .hero-deck { font-size: 18px; margin-bottom: 19px; }
  .entry-grid { max-width: none; }
  .entry-cell { min-height: 108px; padding-right: 9px; }
  .entry-cell + .entry-cell { padding-left: 11px; }
  .entry-cell strong { font-size: 30px; }
  .entry-cell span { font-size: 8px; white-space: normal; }
  .entry-cell small { font-size: 8px; line-height: 1.3; }
  .entry-note { font-size: 10px; }
  .hero-art { height: 380px; margin-top: 14px; }
  .art-countdown { top: 20px; gap: 6px; }
  .art-countdown strong { font-size: clamp(23px, 6.2vw, 30px); }
  .orbital-system { transform: translateY(40px) scale(.78); }
  .wallet-strip { grid-template-columns: 1fr auto; }
  .wallet-strip .relay-marker { grid-column: 1; grid-row: 1; }
  .wallet-strip code { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
  .wallet-strip small { grid-column: 1 / -1; grid-row: 3; font-size: 9px; }
  .wallet-strip button { grid-column: 2; grid-row: 1; padding: 9px 10px; }
  .relay-bottom { grid-template-columns: 1fr; margin-bottom: 22px; }
  .relay-state, .relay-social { min-height: 0; padding: 16px 0; }
  .relay-social { border-left: 0; border-top: 1px solid #4b365b; }
}
