:root {
  --ink: #14110a;
  --ink-soft: #5a4a24;
  --cream: #f4edd6;
  --paper: #fff8e6;
  --gold: #e3b31a;
  --gold-deep: #c08c08;
  --terra: #c24d22;
  --clover: #1d4a28;
  --night: #07140c;
  --shade: rgba(7, 20, 12, 0.72);
  --card: #fffaf1;
  --line: rgba(20, 17, 10, 0.14);
  --shadow: 0 18px 40px rgba(20, 17, 10, 0.18);
  --font-display: "Bungee", sans-serif;
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(227, 179, 26, 0.22), transparent 55%),
    radial-gradient(900px 400px at 0% 20%, rgba(29, 74, 40, 0.12), transparent 50%),
    var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
button, input, a { font-family: inherit; }
button { cursor: pointer; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.top {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 6vw;
  background: rgba(246, 234, 212, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
}
.brand strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}
.brand small {
  display: block;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  align-items: center;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
nav a:hover { color: var(--terra); }
.adopt-link {
  background: var(--terra);
  color: var(--paper) !important;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
}

.hero {
  background: #050d08;
  border-bottom: 2px solid var(--ink);
}
.hero-poster {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #050d08;
}
.hero-copy {
  padding: 2.2rem 6vw 2.8rem;
  color: var(--paper);
  max-width: 52rem;
}
.eyebrow {
  margin: 0 0 0.4rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
}
.ticker-word {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 0.9;
  color: #ffd56a;
  text-shadow: 4px 6px 0 #3a2408;
  display: inline-block;
  animation: bounce-in 0.7s ease-out;
}
.tag {
  margin: 0.4rem 0 1rem;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
}
.lede {
  font-size: 1.12rem;
  max-width: 38rem;
}
.lede em { color: #ffd56a; font-style: normal; font-weight: 800; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 0.8rem;
}
.hero-actions button,
.hero-actions .hero-buy,
.ca-row button,
.big-adopt {
  border: 2px solid #1a0e08;
  background: #ffd56a;
  color: var(--ink);
  font-weight: 800;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #1a0e08;
}
.hero-actions .ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.35);
}
.hero-actions .hero-buy {
  background: var(--terra);
  color: var(--paper);
  text-decoration: none;
  display: inline-block;
}
.hero-actions button:hover,
.hero-actions .hero-buy:hover,
.ca-row button:hover,
.big-adopt:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #1a0e08;
}
.say { opacity: 0.9; margin: 0; }

.notice {
  padding: 1rem 6vw;
  background: #2b170c;
  color: var(--cream);
  font-size: 0.95rem;
}
.notice a { color: #ffd56a; }

.ticker-block, .story, .herd, .luck, .adopt {
  padding: 4.5rem 6vw;
}
.kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--terra);
  margin: 0 0 0.4rem;
}
h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
}

.ticker-card {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.hero-bust {
  width: 100%;
  border-radius: 22px;
  border: 2px solid var(--ink);
}

.hits {
  padding-left: 1.1rem;
  margin: 0 0 1.4rem;
}
.hits li { margin: 0.45rem 0; }

.ca-box label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.ca-row, .chain-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.ca-row input, .chain-row input {
  flex: 1;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: var(--paper);
  font-size: 0.95rem;
}
.chain-row { align-items: center; }
.chain-row label { margin: 0; min-width: 4rem; }
.ca-hint { margin: 0 0 0.8rem; color: var(--ink-soft); font-size: 0.9rem; }
.ca-row input[readonly], .chain-row input[readonly] { cursor: text; }
.buy-link {
  display: inline-block;
  border: 2px solid var(--ink);
  background: var(--terra);
  color: var(--paper);
  text-decoration: none;
  font-weight: 800;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}

.chapters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.chapters article {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 1.3rem 1.2rem 1.5rem;
  box-shadow: 4px 4px 0 var(--ink);
}
.chapters span {
  font-family: var(--font-display);
  color: var(--gold-deep);
}
.chapters h3 {
  font-family: var(--font-title);
  margin: 0.3rem 0 0.5rem;
}

.vibes {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.2rem;
  align-items: start;
}
.vibes figure {
  margin: 0;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.vibes figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0b1c12;
}
.vibes figcaption { padding: 1.1rem 1.2rem 1.3rem; }
.vibes h3, .vibe-grid h3 {
  font-family: var(--font-title);
  margin: 0 0 0.4rem;
}
.vibe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.vibe-grid article {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 1rem;
}

.luck {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 2rem;
  align-items: center;
  background: #2b170c;
  color: var(--cream);
}
.luck .kicker { color: #ffd56a; }
.luck-readout {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  color: #ffd56a;
  margin: 0.6rem 0 0.2rem;
}
.luck-line { font-size: 1.1rem; }
.luck-btn {
  border: 4px solid #ffd56a;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  width: min(42vw, 260px);
  height: min(42vw, 260px);
  overflow: hidden;
  box-shadow: 0 0 0 8px rgba(255, 213, 106, 0.18);
}
.luck-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.luck-btn:active { transform: scale(0.96) rotate(-6deg); }
.luck-btn.pop { animation: pop 0.35s ease; }

.adopt {
  background: #fff3dc;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 1.6rem;
  align-items: center;
}
.real-shot {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.big-adopt {
  display: inline-block;
  text-decoration: none;
  margin-top: 0.6rem;
}

footer {
  padding: 2rem 6vw 6rem;
  background: var(--night);
  color: #f0dcc2;
  font-size: 0.92rem;
}
footer strong { color: #ffd56a; font-family: var(--font-display); }

.dock {
  position: sticky;
  bottom: 0;
  z-index: 7;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 6vw;
  background: #ffd56a;
  border-top: 2px solid var(--ink);
  font-weight: 800;
}
.dock span { font-family: var(--font-display); }
.dock code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}
.dock button {
  border: 2px solid var(--ink);
  background: var(--terra);
  color: var(--paper);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

@keyframes bounce-in {
  0% { transform: scale(0.4) rotate(-8deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
@keyframes pop {
  50% { transform: scale(1.08) rotate(8deg); }
}

@media (max-width: 900px) {
  .ticker-card, .chapters, .vibes, .luck, .vibe-grid, .adopt {
    grid-template-columns: 1fr;
  }
  nav a:not(.adopt-link) { display: none; }
  .luck-btn { justify-self: center; }
}
