/* Black Bull Coin — comic stampede craft */
:root {
  --night: #0d0718;
  --night-2: #1a0c2e;
  --purple: #3a1658;
  --ink: #f7f1e6;
  --muted: #cbb8e0;
  --gold: #ffe566;
  --gold-2: #f5b942;
  --silver: #d5dae3;
  --red: #e6392e;
  --green: #2ee36a;
  --stroke: #0a0612;
  --glass: rgba(18, 8, 32, 0.72);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Bangers", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(245, 185, 66, 0.18), transparent 55%),
    radial-gradient(900px 600px at 10% 20%, rgba(88, 30, 140, 0.45), transparent 50%),
    linear-gradient(180deg, var(--night-2), var(--night) 40%, #140a22);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.6rem;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker i {
  margin-right: 0.35rem;
}

.sub {
  margin: 0.4rem auto 1.75rem;
  max-width: 40rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.comic-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--gold);
  text-shadow:
    3px 3px 0 var(--stroke),
    -2px 0 0 var(--stroke),
    0 -2px 0 var(--stroke),
    2px 0 0 var(--stroke),
    0 2px 0 var(--stroke),
    5px 6px 0 rgba(0, 0, 0, 0.35);
  text-align: center;
}

.comic-title--md {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.sec {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.sec .kicker,
.sec .comic-title {
  text-align: center;
}

/* Gate */
.gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 229, 102, 0.18), transparent 40%),
    radial-gradient(ellipse at center, var(--purple), var(--night));
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.gate.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate__orb {
  position: absolute;
  width: min(70vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 229, 102, 0.35), transparent 65%);
  filter: blur(8px);
  animation: breathe 3.6s ease-in-out infinite;
}

.gate__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 1.5rem;
  text-align: center;
}

.gate__kicker {
  margin: 0;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--gold);
}

.gate__coin {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  animation: floaty 2.8s ease-in-out infinite;
}

.gate__tag {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow: 2px 2px 0 var(--stroke);
}

.gate__meter {
  width: min(280px, 70vw);
  height: 14px;
  border: 3px solid var(--stroke);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.gate__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--green));
  transition: width 0.12s linear;
}

.gate__pct {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.gate__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes livepulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(230, 57, 46, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(230, 57, 46, 0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border: 3px solid var(--stroke);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--stroke);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 6px 0 var(--stroke);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 var(--stroke);
}

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 1rem;
}

.btn--buy {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--stroke);
}

.btn--chart {
  background: linear-gradient(135deg, #163528, #1f4d38);
  color: var(--ink);
  border-color: var(--green);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.btn__ico {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
}

.btn__ico--invert {
  filter: invert(1) brightness(1.2);
}

.icon-btn {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
  transition: transform 0.18s var(--ease), border-color 0.18s;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 1.75rem);
  background: linear-gradient(180deg, rgba(8, 4, 16, 0.92), rgba(8, 4, 16, 0.35) 80%, transparent);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

body:not(.is-loading) .topbar {
  opacity: 1;
  transform: none;
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--stroke);
  background: #fff;
}

.topbar__nav {
  display: none;
  gap: 1.1rem;
  margin-left: auto;
  font-weight: 800;
  font-size: 0.92rem;
}

.topbar__nav a {
  position: relative;
  color: var(--muted);
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.topbar__nav a:hover {
  color: var(--ink);
}

.topbar__nav a:hover::after {
  transform: scaleX(1);
}

.topbar__cta {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.menu-toggle {
  margin-left: auto;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
}

.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
}

.stripe-menu {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  align-content: center;
  background: var(--night);
}

.stripe-menu[hidden] {
  display: none;
}

.stripe-menu a {
  display: block;
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  letter-spacing: 0.05em;
  background: repeating-linear-gradient(
    180deg,
    var(--red) 0 50%,
    var(--ink) 50% 100%
  );
  background-size: 100% 200%;
  color: var(--stroke);
  border-bottom: 3px solid var(--stroke);
  text-align: center;
}

.stripe-menu a:nth-child(odd) {
  background: var(--red);
  color: var(--ink);
}

.stripe-menu a:nth-child(even) {
  background: var(--ink);
  color: var(--stroke);
}

.stripe-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.8rem;
  line-height: 1;
  border: 3px solid var(--stroke);
  background: var(--gold);
  color: var(--stroke);
}

/* Hero */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 0;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 4, 16, 0.92) 0%, rgba(8, 4, 16, 0.72) 42%, rgba(8, 4, 16, 0.2) 72%, rgba(8, 4, 16, 0.45) 100%),
    linear-gradient(180deg, rgba(8, 4, 16, 0.35) 0%, transparent 28%, rgba(8, 4, 16, 0.88) 100%);
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto 0 0;
  padding: clamp(5.5rem, 12vw, 7rem) clamp(1.25rem, 4vw, 3rem) 2.5rem;
  text-align: left;
}

.hero__copy .kicker,
.hero__copy .comic-title {
  text-align: left;
}

.hero__lede {
  margin: 0.65rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow: 2px 2px 0 var(--stroke);
}

.hero__bio {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.55;
}

.ca-row {
  margin-bottom: 1.1rem;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.ca-pill:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.ca-pill--center {
  margin: 1.2rem auto 0;
}

.ca-pill__label {
  flex: none;
  padding: 0.15rem 0.4rem;
  background: var(--gold);
  color: var(--stroke);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.ca-pill__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--silver);
}

.ca-warn {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cta-row--center {
  justify-content: center;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  animation: floaty 2.4s ease-in-out infinite;
}

/* Lore */
.lore__grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.lore__art {
  border: 4px solid var(--stroke);
  box-shadow: 8px 8px 0 var(--stroke);
  background: #000;
  overflow: hidden;
}

.lore__art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.lore__copy p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.lore__copy strong {
  color: var(--gold);
}

.bubble {
  position: relative;
  margin-bottom: 1.25rem !important;
  padding: 1rem 1.15rem;
  background: var(--ink);
  color: var(--stroke) !important;
  border: 3px solid var(--stroke);
  box-shadow: 5px 5px 0 var(--stroke);
  font-weight: 800;
  font-size: 1.05rem;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  bottom: -14px;
  border: 8px solid transparent;
  border-top-color: var(--stroke);
}

.disclaimer-inline {
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 229, 102, 0.08);
  font-size: 0.9rem;
  color: var(--ink) !important;
}

/* Gallery rail */
.rail-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
  width: min(1200px, calc(100% - 1rem));
  margin-inline: auto;
}

.rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.5rem 0.25rem 1rem;
  cursor: grab;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.panel {
  flex: 0 0 min(78vw, 320px);
  scroll-snap-align: start;
  padding: 0;
  border: 4px solid var(--stroke);
  box-shadow: 6px 6px 0 var(--stroke);
  background: #111;
  overflow: hidden;
  transition: transform 0.2s var(--ease);
}

.panel:hover {
  transform: translateY(-4px);
}

.panel img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #0a0612;
}

.rail-btn {
  width: 2.6rem;
  height: 2.6rem;
  border: 3px solid var(--stroke);
  background: var(--gold);
  color: var(--stroke);
  box-shadow: 3px 3px 0 var(--stroke);
}

/* How to */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 3px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
}

.step h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.step__ico {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.step__ico--round {
  border-radius: 50%;
  border: 2px solid var(--stroke);
  background: #fff;
}

.howto__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Specs */
.spec-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.spec {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 3px solid var(--stroke);
  background: linear-gradient(135deg, rgba(255, 229, 102, 0.08), rgba(255, 255, 255, 0.03));
}

.spec__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 900;
}

.spec__value {
  font-size: 1.15rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.spec__value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--silver);
}

.inline-ico {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.specs__art {
  width: min(220px, 50vw);
  margin: 0 auto;
}

.specs__art img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
}

/* Chart */
.jumbotron__frame {
  position: relative;
  border: 4px solid var(--stroke);
  box-shadow: 8px 8px 0 var(--stroke);
  background: #0a0a0f;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.jumbotron__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.live-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  background: var(--red);
  border: 2px solid var(--stroke);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  animation: livepulse 1.8s infinite;
}

.jumbotron__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  background: rgba(8, 4, 16, 0.82);
  text-align: center;
  padding: 1rem;
}

.jumbotron__overlay[hidden] {
  display: none;
}

.jumbotron__overlay img {
  object-fit: contain;
}

.jumbotron__overlay p {
  margin: 0;
  color: var(--muted);
}

/* Join */
.join {
  min-height: 70svh;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.join__bg {
  position: absolute;
  inset: 0;
}

.join__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.join__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(13, 7, 24, 0.35), rgba(13, 7, 24, 0.88) 70%),
    linear-gradient(180deg, rgba(13, 7, 24, 0.55), rgba(13, 7, 24, 0.92));
}

.join__copy {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  text-align: center;
}

/* Footer */
.footer {
  padding: 2.5rem 0 3rem;
  border-top: 4px solid var(--stroke);
  background: #080410;
}

.footer__inner {
  display: grid;
  gap: 1.25rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand img {
  border-radius: 50%;
  border: 2px solid var(--stroke);
  background: #fff;
  object-fit: contain;
}

.footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.footer__brand span {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 1rem;
  font-weight: 800;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: 58rem;
}

.footer__legal strong {
  color: var(--ink);
}

/* Lightbox / toast */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(960px, 100%);
  max-height: 85svh;
  object-fit: contain;
  border: 4px solid var(--stroke);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #111;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.8rem;
  border: 3px solid var(--stroke);
  background: var(--gold);
  color: var(--stroke);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 4000;
  transform: translateX(-50%);
  padding: 0.7rem 1.1rem;
  border: 3px solid var(--stroke);
  background: var(--gold);
  color: var(--stroke);
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--stroke);
}

.toast[hidden] {
  display: none;
}

/* Responsive */
@media (min-width: 720px) {
  .lore__grid {
    grid-template-columns: 1fr 1.05fr;
  }

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

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

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .topbar__nav,
  .topbar__cta {
    display: flex;
  }

  .topbar__nav {
    margin-left: auto;
  }

  .topbar__cta {
    margin-left: 1rem;
  }

  .hero__copy {
    margin-left: clamp(1.5rem, 6vw, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .scroll-cue {
    animation: none;
  }
}
