:root {
  --ink: #1a1208;
  --stage: #100e0c;
  --gold: #ffd000;
  --gold-hot: #ffe566;
  --red: #ff2b2b;
  --cream: #fff4cc;
  --paper: #fff8e4;
  --table: #e0a31a;
  --muted: #ffe9b0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 14px;
  background: var(--table);
  color: var(--paper);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: min(100%, 400px);
  height: auto;
  border: 0;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--red);
  color: var(--paper);
}

.page {
  background:
    radial-gradient(ellipse 55% 32% at 50% 0%, rgba(255, 208, 0, 0.16), transparent 70%),
    radial-gradient(ellipse 42% 28% at 88% 78%, rgba(255, 43, 43, 0.14), transparent 72%),
    var(--stage);
  border: 4px solid var(--ink);
  border-radius: 26px;
  box-shadow:
    0 0 0 3px var(--gold-hot),
    0 0 0 7px #b47800,
    0 18px 36px rgba(90, 45, 0, 0.28);
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.4rem;
  padding: 0.95rem 1.2rem;
  border-bottom: 8px solid var(--gold);
  border-radius: 22px 22px 0 0;
  background: #0c0b0a;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  width: 58px;
  max-width: 58px;
}

.brand strong {
  display: block;
  font-family: "Coiny", "Arial Black", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
}

.brand em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--red);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--paper);
}

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

.hero,
.about,
.howto,
.community {
  padding: clamp(2.4rem, 6vw, 4.6rem) clamp(1.1rem, 4vw, 3.4rem);
  scroll-margin-top: 1rem;
}

.hero { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.live {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 43, 43, 0.65);
  animation: pulse 1.8s ease-out infinite;
}

h1,
.section-title {
  margin: 0;
  font-family: "Coiny", "Arial Black", sans-serif;
  font-weight: 400;
  line-height: 0.95;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 9vw, 6.1rem);
  color: var(--gold);
  text-shadow: 4px 4px 0 var(--ink);
}

.symbol {
  display: inline-block;
  margin: 0.85rem 0 1.3rem;
  padding: 0.18rem 0.95rem 0.28rem;
  background: linear-gradient(#ff5a4f, #d30d0d);
  color: #fff;
  font-family: "Coiny", "Arial Black", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.1;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.shot {
  width: min(100%, 400px);
  margin: 0 auto;
}

.shot img {
  display: block;
  width: min(100%, 400px);
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(255, 180, 30, 0.38));
}

.caption,
.bubble,
.endcard,
.contract {
  border: 4px solid var(--ink);
}

.caption {
  max-width: 40rem;
  margin: 1.35rem auto 0;
  padding: 1rem 1.15rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 7px 7px 0 var(--red);
  text-align: center;
}

.caption p { margin: 0; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.55rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-family: "Coiny", "Arial Black", sans-serif;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-buy {
  background: #14110f;
  color: var(--gold);
}

.btn-dex {
  background: var(--red);
  color: var(--paper);
}

.btn-x {
  background: var(--cream);
  color: var(--ink);
}

.btn-copy {
  background: var(--red);
  color: var(--paper);
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  font-size: 0.95rem;
}

.icon {
  width: 1.3rem;
  max-width: 1.3rem;
  height: auto;
  display: block;
  flex: none;
}

.btn .bi {
  font-size: 1.12rem;
  line-height: 1;
}

.contract {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  max-width: 46rem;
  margin: 1.35rem auto 0;
  padding: 0.8rem 0.95rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--gold);
  text-align: center;
}

.contract-label {
  font-family: "Coiny", "Arial Black", sans-serif;
  font-size: 1.15rem;
  color: var(--red);
  text-shadow: 1px 1px 0 var(--ink);
}

.contract code {
  flex: 1 1 16rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
  user-select: all;
}

.rim {
  height: 12px;
  margin: 0 clamp(1.1rem, 4vw, 3.4rem);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(#fff1a8, #ffd000 42%, #d18a00);
  box-shadow: 0 2px 0 #8a560c, inset 0 1px 0 #fff;
}

.about-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.6rem 2.4rem;
}

.bubble {
  position: relative;
  width: min(100%, 36rem);
  padding: 1.35rem 1.4rem 1.45rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 32px;
  box-shadow: 8px 8px 0 var(--ink);
  text-align: left;
}

.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.bubble::before {
  left: -22px;
  top: 46px;
  border-width: 12px 22px 12px 0;
  border-color: transparent var(--ink) transparent transparent;
}

.bubble::after {
  left: -14px;
  top: 50px;
  border-width: 8px 16px 8px 0;
  border-color: transparent var(--cream) transparent transparent;
}

.section-title {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 5vw, 3.3rem);
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--ink);
}

.bubble .section-title {
  color: var(--red);
}

.bubble p,
.cue p,
.endcard p,
.lede {
  margin: 0;
}

.howto .section-title,
.community .section-title { text-align: center; }

.lede {
  max-width: 38rem;
  margin: 0 auto 1.4rem;
  text-align: center;
  color: var(--muted);
}

.cues {
  list-style: none;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0;
}

.cue {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.05rem 0;
  border-top: 5px solid var(--gold);
}

.cue:last-child { border-bottom: 5px solid var(--gold); }

.cue .icon {
  width: 1.85rem;
  max-width: 1.85rem;
  margin-top: 0.2rem;
}

.cue h3 {
  margin: 0 0 0.2rem;
  font-family: "Coiny", "Arial Black", sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--gold);
}

.cue p { color: var(--paper); }

.endcard {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.3rem);
  background:
    radial-gradient(120% 70% at 50% -20%, rgba(255, 255, 255, 0.32), transparent 46%),
    var(--red);
  color: var(--paper);
  border-radius: 36px;
  box-shadow: 8px 8px 0 var(--ink);
  text-align: center;
}

.endcard .section-title { color: var(--gold-hot); }

.tri {
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0.35rem;
  border-style: solid;
  border-width: 0.48rem 0 0.48rem 0.85rem;
  border-color: transparent transparent transparent var(--paper);
  vertical-align: 0.12rem;
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1.2rem 2.2rem;
  text-align: center;
}

.foot img {
  width: 72px;
  max-width: 72px;
}

.foot p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.foot .icon {
  width: 1rem;
  max-width: 1rem;
}

[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .bubble::before {
    left: 42px;
    top: -22px;
    border-width: 0 12px 22px 12px;
    border-color: transparent transparent var(--ink) transparent;
  }

  .bubble::after {
    left: 46px;
    top: -14px;
    border-width: 0 8px 16px 8px;
    border-color: transparent transparent var(--cream) transparent;
  }
}

@media (min-width: 800px) {
  body { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live { animation: none; }
  .btn { transition: none; }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(255, 43, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 43, 43, 0); }
}
