/* HODL · Diamond Hands
   Palette sampled from the logo: sleeve, denim, ink line art, sky, window frame.
   The flat cartoon world is ink + flat fills; only diamonds get light. */

:root {
  --sleeve: #F2CC1E;
  --sleeve-deep: #D9B10E;
  --denim: #6BA5C6;
  --denim-light: #8CBCD7;
  --denim-deep: #3F7392;
  --ink: #311A00;
  --paper: #FFFDF4;
  --sky: #B5E6FA;
  --pink: #BF6A89;
  --thread: #E2C382;
  --gme: #D9362F;
  --up: #0A6B4E;
  --down: #B72F29;
  --ice-1: #EAFDFF;
  --ice-3: #62A0E4;
  --ice-4: #B9A8FF;

  --line: 3px;
  --radius: 22px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);

  --display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --body: "Recursive", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--denim);
  color: var(--ink);
  font-family: var(--body);
  font-variation-settings: "CASL" 0.6, "MONO" 0;
  font-size: 17px;
  line-height: 1.45;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, dl, dd, figure { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: 12px;
  padding: 8px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ───────── Bar ───────── */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter);
  background: var(--sleeve);
  border-bottom: var(--line) solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 var(--line) var(--ink); }
.brand span { font-family: var(--display); font-size: 22px; letter-spacing: .02em; }
.bar-nav { display: flex; gap: 22px; margin-left: auto; }
.bar-nav a {
  text-decoration: none; font-weight: 700; font-size: 15px;
  font-variation-settings: "CASL" 1, "MONO" 0;
  padding: 4px 2px; border-bottom: 2px solid transparent;
}
.bar-nav a:hover { border-bottom-color: var(--ink); }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.x-link {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px;
  color: var(--ink); background: var(--paper);
  border: var(--line) solid var(--ink); border-radius: 50%;
  transition: background-color .15s, color .15s;
}
.x-link svg { width: 17px; height: 17px; }
.x-link:hover { background: var(--ink); color: var(--sleeve); }
.buy {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 22px;
  background: var(--ink); color: var(--sleeve);
  border: var(--line) solid var(--ink); border-radius: 999px;
  font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.buy:hover { background: var(--paper); color: var(--ink); }
.buy:focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 6px var(--ink); }

/* ───────── Hero (the sleeve) ───────── */
.hero { background: var(--sleeve); }
.hero-grid {
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(40px, 7vw, 96px) clamp(36px, 5vw, 64px);
}
.hero h1 { display: grid; gap: 10px; }
.wordmark { width: 100%; height: auto; overflow: visible; }
.wordmark text {
  font-family: var(--display); font-size: 300px;
  fill: url(#facets); stroke: var(--ink); stroke-width: 14px; stroke-linejoin: round;
  paint-order: stroke fill;
}
.live {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  margin-bottom: clamp(14px, 2vw, 22px);
  font-size: clamp(15px, 1.5vw, 18px); font-weight: 500;
  font-variation-settings: "CASL" 0, "MONO" 0;
}
.live { width: fit-content; text-decoration: none; }
.live b { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.live:hover b { text-decoration-thickness: 3px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--up); box-shadow: 0 0 0 2px var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: live 2s ease-in-out infinite; }
  @keyframes live { 50% { opacity: .35; } }
}
.name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 4.2vw, 52px); line-height: 1; letter-spacing: .01em;
}

.hold { display: grid; justify-items: center; gap: 14px; }
.fist {
  --charge: 0;
  position: relative; width: min(100%, 460px); padding: 0; border: 0; background: none;
  cursor: pointer; border-radius: 9%;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  touch-action: pan-y; -webkit-tap-highlight-color: transparent;
  transform: rotate(-2deg);
}
.fist img {
  width: 100%; border-radius: 8% / 8.5%;
  transform: scale(calc(1 - var(--charge) * .035));
  filter: saturate(calc(1 + var(--charge) * .35)) brightness(calc(1 + var(--charge) * .08));
  pointer-events: none;
}
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ring rect { fill: none; }
/* viewBox units: the ring scales with the art (about 3.6px per unit at full size) */
.ring-track { stroke: var(--ink); stroke-width: 1.1; }
.ring-fill {
  stroke: url(#ice); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0;
}
.fist:focus-visible { outline: none; }
.fist:focus-visible .ring-track { stroke-width: 2.2; }
.hint {
  font-weight: 700; font-size: 15px;
  font-variation-settings: "CASL" 1, "MONO" 0;
  min-height: 1.45em;
}
.fist.is-done + .hint { font-variation-settings: "CASL" 0, "MONO" 1; }

/* sparkle burst when a hold completes */
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: var(--ice-1);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: spark .7s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes spark {
  0% { transform: translate(0, 0) scale(.2) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(45deg); opacity: 0; }
}

/* the cuff: knit ribbing between sleeve and denim */
.cuff {
  height: clamp(44px, 6vw, 72px);
  background-color: var(--sleeve);
  background-image: repeating-linear-gradient(90deg, transparent 0 44px, var(--ink) 44px 47px);
  border-block: var(--line) solid var(--ink);
}

/* ───────── Denim sections ───────── */
.pair, .market, .treasury, .details {
  padding-block: clamp(56px, 8vw, 104px) 0;
  background-color: var(--denim);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 7px);
}
.details { padding-bottom: clamp(56px, 8vw, 104px); }
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1; letter-spacing: .01em;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.card {
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
}
.label {
  display: block;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  font-variation-settings: "CASL" 1, "MONO" 0;
}
.value {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 3vw, 34px); line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.sub {
  display: block; margin-top: 4px;
  font-size: 14px; font-weight: 600;
  font-variation-settings: "CASL" 0, "MONO" 1;
}

/* Clip: a cartoon TV set */
.tv-section {
  padding-block: clamp(64px, 9vw, 112px) 0;
  background-color: var(--denim);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 7px);
}
.tv {
  position: relative;
  width: min(100%, 920px); margin-inline: auto;
  padding: clamp(12px, 2.2vw, 26px);
  background: var(--pink, #BF6A89);
  border: var(--line) solid var(--ink);
  border-radius: clamp(20px, 3vw, 36px);
}
.antenna {
  position: absolute; bottom: 100%; left: 50%;
  width: var(--line); height: clamp(44px, 7vw, 84px);
  background: var(--ink); transform-origin: bottom center;
}
.antenna::after {
  content: ""; position: absolute; left: 50%; top: -9px;
  width: 16px; height: 16px; margin-left: -8px;
  background: var(--sleeve); border: var(--line) solid var(--ink); border-radius: 50%;
}
.antenna-l { transform: rotate(-28deg); }
.antenna-r { transform: rotate(24deg); }
.screen {
  overflow: hidden;
  border: var(--line) solid var(--ink);
  border-radius: clamp(12px, 2vw, 22px);
  background: var(--ink);
}
.screen video { display: block; width: 100%; height: auto; aspect-ratio: 1986 / 1080; background: var(--ink); }

/* Pair */
.fresco .frame {
  position: relative;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  padding: clamp(8px, 1.4vw, 14px);
  background: var(--thread);
  box-shadow: inset 0 0 0 var(--line) var(--ink);
}
.fresco img {
  width: 100%; aspect-ratio: 2000 / 667; object-fit: cover;
  border: var(--line) solid var(--ink); border-radius: 6px;
}
.tag {
  position: absolute;
  padding: 6px 14px;
  border: var(--line) solid var(--ink); border-radius: 999px;
  font-family: var(--display); font-size: clamp(13px, 1.6vw, 20px); line-height: 1.1; letter-spacing: .03em;
  white-space: nowrap;
}
.tag-hodl { left: 30%; top: 12%; background: linear-gradient(135deg, var(--ice-1), var(--ice-3) 55%, var(--ice-4)); }
.tag-pool { left: 50%; top: 47%; transform: translate(-50%, -135%); background: var(--paper); font-size: clamp(11px, 1.2vw, 15px); }
.tag-gme { left: 63%; top: 72%; background: var(--gme); color: var(--paper); }

.tokens { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 20px); margin-top: clamp(16px, 2.4vw, 24px); }
.token {
  display: grid; gap: 2px; align-content: start;
  padding: 18px 20px;
  border: var(--line) solid var(--ink); border-radius: var(--radius);
  background: var(--paper);
}
.token dt { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; }
.token dd { font-weight: 600; }
.token .role {
  justify-self: start; margin-top: 8px; padding: 2px 10px;
  border: 2px solid var(--ink); border-radius: 999px;
  font-size: 13px; font-weight: 700; font-variation-settings: "CASL" 1, "MONO" 0;
}
.token-hodl { box-shadow: inset 10px 0 0 var(--ice-3); padding-left: 30px; }
.token-gme { box-shadow: inset 10px 0 0 var(--gme); padding-left: 30px; }

/* Market */
.stats {
  display: grid; gap: clamp(12px, 2vw, 20px);
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-areas: "price a b" "price c d";
}
.stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat-price { grid-area: price; justify-content: center; background: var(--sky); }
.stat-price .value { font-size: clamp(40px, 6vw, 72px); }
.delta {
  align-self: flex-start;
  padding: 3px 12px; border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 800; font-size: 15px; font-variation-settings: "CASL" 0, "MONO" 1;
  background: var(--paper);
}
.delta.up { background: var(--up); color: var(--paper); }
.delta.down { background: var(--down); color: var(--paper); }
.source { margin-top: 16px; font-weight: 600; font-size: 15px; font-variation-settings: "CASL" 1, "MONO" 0; }
.source a { font-weight: 800; }
.value.tick { animation: tick .6s ease-out; }
@keyframes tick { from { color: var(--denim-deep); } to { color: var(--ink); } }

/* Treasury: a back pocket */
.pocket { position: relative; width: min(100%, 560px); margin-inline: auto; min-height: 400px; }
.pocket-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pocket-body { fill: var(--denim-light); stroke: var(--ink); stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pocket-stitch { fill: none; stroke: var(--thread); stroke-width: 3px; stroke-dasharray: 9 7; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pocket-content {
  position: relative;
  display: grid; justify-items: center; text-align: center; gap: 6px;
  padding: 92px 36px 150px; /* clears the top stitch (drawn at 14% of the pocket height) */
}
.value.big { font-size: clamp(40px, 8vw, 80px); line-height: 1; }
/* Pocket numbers scale with the pocket, so 00:00:00 never spills past the stitching. */
.pocket-content { container-type: inline-size; }
@supports (font-size: 1cqi) {
  .pocket-content .value.big { font-size: min(80px, 17cqi); }
}
.value.big small { font-size: .34em; margin-left: .18em; letter-spacing: .02em; }
.burned { margin-top: 14px; display: grid; gap: 2px; justify-items: center; }
.burned[hidden] { display: none; }
.addr-label { margin-top: 18px; }
.addr {
  font-weight: 700; font-size: 15px;
  font-variation-settings: "CASL" 0, "MONO" 1;
}

/* Drops: countdown in the pocket, stats, wallet lookup */
[data-mode][hidden] { display: none !important; }
.drop-clock { display: grid; justify-items: center; gap: 6px; }
.clock { letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pot { font-weight: 700; font-size: 17px; font-variation-settings: "CASL" 0, "MONO" 1; }
.pot b { font-weight: 800; }
.usd { opacity: .72; font-weight: 600; }

.drop-stats {
  width: min(100%, 760px); margin: clamp(20px, 3vw, 28px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 16px);
}
.drop-stats > div { padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.drop-stats dd { margin: 0; }
.drop-stats .value { font-size: clamp(22px, 2.4vw, 30px); white-space: nowrap; }
.drop-stats small { font-size: .5em; letter-spacing: .02em; }

.lookup { width: min(100%, 760px); margin: clamp(14px, 2vw, 18px) auto 0; padding: 20px 22px 22px; }
.lookup-row { display: flex; gap: 10px; margin-top: 8px; }
.lookup input {
  flex: 1; min-width: 0; height: 50px; padding: 0 14px;
  background: #fff; color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: 14px;
  font: inherit; font-size: 15px; font-variation-settings: "CASL" 0, "MONO" 1;
}
.lookup input::placeholder { color: rgba(49, 26, 0, .45); }
.lookup input:focus-visible { outline: 3px solid var(--ice-3); outline-offset: 2px; }
.check {
  flex: none; height: 50px; padding: 0 22px;
  background: var(--ink); color: var(--sleeve);
  border: var(--line) solid var(--ink); border-radius: 14px;
  font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
}
.check:hover { background: var(--paper); color: var(--ink); }
.check:disabled { opacity: .6; cursor: progress; }
.lookup-msg { min-height: 1.45em; margin-top: 10px; font-weight: 600; font-size: 15px; font-variation-settings: "CASL" 1, "MONO" 0; }
.lookup-msg.error { color: var(--down); }
.lookup-result > div {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline;
  padding: 12px 0; border-top: 2px dashed rgba(49, 26, 0, .25);
}
.lookup-result dt { font-weight: 700; font-size: 15px; font-variation-settings: "CASL" 1, "MONO" 0; }
.lookup-result dd { margin: 0; font-weight: 600; font-variation-settings: "CASL" 0, "MONO" 1; font-size: 15px; overflow-wrap: anywhere; }
.lookup-result b { font-family: var(--display); font-weight: 400; font-size: 22px; font-variation-settings: normal; }
.lookup-result .in { white-space: nowrap; }

/* Details */
.spec { padding: 6px 24px; }
.spec > div {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: baseline;
  padding: 14px 0;
  border-bottom: 2px dashed rgba(49, 26, 0, .25);
}
.spec > div:last-child { border-bottom: 0; }
.spec dt { font-weight: 700; font-size: 15px; font-variation-settings: "CASL" 1, "MONO" 0; }
.spec dd { font-weight: 600; min-width: 0; }
.addr-row dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mono { font-variation-settings: "CASL" 0, "MONO" 1; font-size: 15px; word-break: break-all; }
.copy {
  min-height: 36px; padding: 0 16px;
  background: var(--sleeve); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 14px; font-variation-settings: "CASL" 1, "MONO" 0;
  cursor: pointer;
}
.copy:hover { background: var(--paper); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40;
  transform: translate(-50%, calc(100% + 32px)); visibility: hidden;
  padding: 10px 18px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .25s ease, visibility .25s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .fist { width: min(100%, 420px); }
  .stats { grid-template-columns: 1fr 1fr; grid-template-areas: "price price" "a b" "c d"; }
}
@media (max-width: 720px) {
  .bar { gap: 12px; }
  .bar-nav { display: none; }
  .bar-actions { margin-left: auto; }
  .fresco img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
  .tag-hodl { left: 8%; top: 10%; }
  .tag-pool { top: 50%; }
  .tag-gme { left: auto; right: 8%; top: 78%; }
  .tokens { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .pocket { min-height: 360px; }
  .pocket-content { padding: 84px 24px 130px; }
}
@media (max-width: 380px) {
  .bar-actions { gap: 8px; }
  .buy { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 355px) {
  .brand span { display: none; }
}
@media (max-width: 560px) {
  .drop-stats { grid-template-columns: 1fr; }
  .lookup-result > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; grid-template-areas: "price" "a" "b" "c" "d"; }
}
.stats > :nth-child(2) { grid-area: a; }
.stats > :nth-child(3) { grid-area: b; }
.stats > :nth-child(4) { grid-area: c; }
.stats > :nth-child(5) { grid-area: d; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .burst, .value.tick { animation: none; }
  .burst i { display: none; }
  .toast { transition: none; }
}
