:root {
  --ink: #070707;
  --green: #2df11c;
  --green-dark: #19b80d;
  --paper: #ffffff;
  --muted: #626262;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", cursive;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 4px solid var(--ink);
  position: relative;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 6%; right: 18%; bottom: -7px;
  height: 2px;
  background: var(--ink);
  transform: rotate(.18deg);
}
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand-name { font-size: clamp(25px, 2.3vw, 40px); font-weight: 800; letter-spacing: -.04em; }
.brand-ticker { color: var(--green-dark); font-size: 18px; transform: rotate(-3deg); }
.nav { display: flex; gap: 30px; font-size: 20px; }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px;
  background: var(--green); transform: scaleX(0) rotate(-1deg); transform-origin: left; transition: transform .15s ease;
}
.nav a:hover::after { transform: scaleX(1) rotate(-1deg); }

main { width: min(1500px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(10px, 3vw, 56px);
  padding: 42px 0 60px;
}
.hero-copy { position: relative; padding-left: clamp(0px, 3vw, 40px); }
.tiny-note {
  position: absolute; top: 2%; right: 13%; font-size: 22px; color: #555; transform: rotate(8deg);
}
h1 {
  margin: 0;
  font-size: clamp(72px, 9.2vw, 150px);
  line-height: .82;
  letter-spacing: -.07em;
  font-weight: 800;
}
h1 span { margin-left: .16em; }
.green-scribble {
  width: min(620px, 92%); height: 14px; margin: 26px 0 18px 2%; position: relative;
}
.green-scribble::before,
.green-scribble::after {
  content: ""; position: absolute; left: 0; width: 100%; border-radius: 999px; background: var(--green);
}
.green-scribble::before { height: 8px; top: 1px; transform: rotate(-.5deg); }
.green-scribble::after { height: 4px; top: 8px; width: 72%; left: 14%; transform: rotate(.4deg); }
.tagline { margin: 0 0 5px 12%; font-size: clamp(24px, 2.4vw, 38px); transform: rotate(-1deg); }
.ticker { margin: 8px 0 32px 12%; font-size: clamp(24px, 2vw, 32px); color: var(--green-dark); font-weight: 800; }

.ca-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; max-width: 760px; margin: 0 0 24px; }
.ca-label { font-size: 24px; font-weight: 800; transform: rotate(-4deg); }
.ca-box {
  background: #fff; border: 4px solid var(--ink); border-radius: 12px 8px 14px 9px;
  min-height: 60px; padding: 10px 18px; font: inherit; font-size: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  cursor: pointer; box-shadow: 4px 4px 0 rgba(0,0,0,.12); transform: rotate(.15deg); overflow: hidden;
}
.ca-box:hover { transform: rotate(-.15deg) translateY(-2px); }
#caText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-mark { font-size: 28px; flex: 0 0 auto; }
.copy-toast { opacity: 0; color: var(--green-dark); font-weight: 800; transition: opacity .15s; transform: rotate(4deg); }
.copy-toast.show { opacity: 1; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; max-width: 820px; }
.doodle-btn {
  min-width: 150px; padding: 13px 20px; border: 4px solid var(--ink); border-radius: 14px 8px 12px 9px;
  font-size: 21px; text-align: center; background: #fff; box-shadow: 3px 4px 0 rgba(0,0,0,.13); transition: transform .12s ease, background .12s ease;
}
.doodle-btn:nth-child(2) { transform: rotate(-.7deg); }
.doodle-btn:nth-child(3) { transform: rotate(.8deg); }
.doodle-btn:nth-child(4) { transform: rotate(-.3deg); }
.doodle-btn:hover { background: #f4f4f4; transform: translateY(-3px) rotate(-.5deg); }
.doodle-btn.green { background: var(--green); }
.doodle-btn.disabled { pointer-events: none; opacity: .42; }

.side-scribble { display: flex; gap: 12px; margin: 26px 0 0 12%; color: #6f6f6f; font-size: 17px; }
.side-scribble span:nth-child(2) { transform: translateY(9px) rotate(2deg); }
.side-scribble span:nth-child(3) { transform: translateY(18px) rotate(-2deg); }

.hero-art { position: relative; min-width: 0; }
.hero-art img { display: block; width: min(100%, 800px); margin: 0 auto; object-fit: contain; }
.art-caption {
  position: absolute; right: 8%; bottom: 11%; font-size: clamp(22px, 2.2vw, 34px); color: var(--green-dark); transform: rotate(-7deg);
}

.chart-section { padding: 20px 0 85px; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-title-row h2 { margin: 0; font-size: clamp(48px, 5vw, 82px); letter-spacing: -.05em; }
.section-title-row span { font-size: 22px; color: var(--green-dark); transform: rotate(-2deg); margin-right: 2%; }
.chart-frame {
  min-height: 520px; border: 5px solid var(--ink); border-radius: 18px 10px 20px 12px; position: relative; overflow: hidden; box-shadow: 8px 9px 0 rgba(0,0,0,.08);
}
.chart-frame::before {
  content: ""; position: absolute; inset: 9px -4px -5px 7px; border: 2px solid var(--ink); border-radius: 12px 18px 10px 20px; pointer-events: none; z-index: 3;
}
#dexFrame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; display: none; }
.chart-doodle {
  position: absolute; inset: 0; display: flex; align-items: end; justify-content: center; gap: clamp(8px, 2vw, 28px); padding: 80px 8% 55px; background: #fff;
}
.c { width: clamp(20px, 4vw, 52px); background: var(--green); border: 4px solid var(--ink); position: relative; }
.c::before, .c::after { content: ""; position: absolute; left: 50%; width: 4px; background: var(--ink); transform: translateX(-50%); }
.c::before { height: 42px; top: -42px; } .c::after { height: 38px; bottom: -38px; }
.c1{height:75px}.c2{height:110px}.c3{height:145px}.c4{height:96px}.c5{height:174px}.c6{height:128px}.c7{height:206px}.c8{height:244px}.c9{height:292px}

footer {
  width: min(1500px, calc(100% - 40px)); margin: 0 auto 20px; border-top: 4px solid var(--ink); padding: 20px 4px 0;
  display: flex; justify-content: space-between; gap: 20px; font-size: 17px;
}
.footer-mid { color: var(--green-dark); }

@media (max-width: 900px) {
  .topbar { width: min(100% - 24px, 1500px); min-height: 70px; }
  .nav { gap: 16px; font-size: 17px; }
  main { width: min(100% - 24px, 1500px); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 46px; }
  .hero-copy { padding-left: 0; }
  .tiny-note { top: 0; right: 7%; }
  h1 { font-size: clamp(70px, 20vw, 118px); }
  .tagline, .ticker, .side-scribble { margin-left: 3%; }
  .hero-art { margin-top: -6px; }
  .hero-art img { width: min(100%, 700px); }
  .chart-frame { min-height: 430px; }
}

@media (max-width: 560px) {
  .topbar { align-items: center; }
  .brand { gap: 8px; }
  .brand-name { font-size: 24px; }
  .brand-ticker { font-size: 14px; }
  .nav { font-size: 15px; gap: 12px; }
  .hero { padding: 34px 0 42px; }
  .tiny-note { font-size: 17px; }
  h1 { font-size: clamp(66px, 22vw, 96px); }
  .green-scribble { margin-top: 20px; }
  .tagline { font-size: 24px; }
  .ca-wrap { grid-template-columns: auto 1fr; }
  .copy-toast { grid-column: 2; }
  .ca-box { font-size: 15px; min-height: 54px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .doodle-btn { min-width: 0; font-size: 17px; padding: 11px 10px; }
  .side-scribble { font-size: 14px; }
  .section-title-row span { font-size: 16px; }
  .chart-frame { min-height: 360px; }
  footer { width: min(100% - 24px, 1500px); flex-wrap: wrap; font-size: 14px; }
}
