/* PumpDuck design tokens - locked off the approved avatar art + BRIEF's LANE.
   Flat blue page, no gradients, no soft blurred shadows: hard-edged "cheap game asset" chrome. */
:root {
  --blue-bg: #389EE3;
  --blue-deep: #2A84BF;
  --mint: #6FE3A6;
  --mint-deep: #2F9C68;
  --white-belly: #F5F8F1;
  --beak: #FDA225;
  --pump-red: #F0503A;
  --pump-red-deep: #C93A28;
  --pump-dark: #16262B;
  --ink: #0B2136;
  --ink-soft: #2C4B63;
  --panel: #FFFFFF;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--blue-bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

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

.stage {
  min-height: 100dvh;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(14px, 3vh, 28px) 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vh, 18px);
  text-align: center;
}

.topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 4vw, 20px);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.wordmark .ticker {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6em;
  background: var(--panel);
  color: var(--blue-deep);
  padding: 3px 7px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  vertical-align: middle;
}

.sound-toggle {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 5px;
  padding: 6px 10px;
  box-shadow: 3px 3px 0 var(--blue-deep);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.sound-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--blue-deep);
}

.sound-toggle[aria-pressed="true"] {
  background: var(--mint);
}

.tagline {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(13px, 2.6vw, 15px);
  line-height: 1.4;
  color: var(--ink-soft);
  font-weight: 400;
}

.scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pump-btn {
  padding: 0;
  line-height: 0;
  border-radius: 12px;
}

.pump-btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.duck-img {
  display: block;
  width: min(320px, 62vw);
  height: auto;
  transform-origin: 78% 84%;
  filter: drop-shadow(0 10px 0 rgba(11, 33, 54, 0.12));
}

.duck-img.pumping {
  animation: swell 1100ms cubic-bezier(0.22, 1, 0.36, 1) 1;
}

@keyframes swell {
  0%   { transform: scale(1); }
  12%  { transform: scale(1.085); }
  35%  { transform: scale(1.04); }
  60%  { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 400ms ease;
}

.hint.faded {
  opacity: 0.35;
}

.readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.counter-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 4px 4px 0 var(--blue-deep);
}

.counter-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--pump-red-deep);
}

.counter-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(18px, 4vw, 22px);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.counter-value.bump {
  animation: bump 260ms ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.flavor {
  margin: 0;
  min-height: 1.4em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.ca-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--pump-dark);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 9px 14px;
  box-shadow: 4px 4px 0 var(--blue-deep);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.ca-chip:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--blue-deep);
}

.ca-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--beak);
}

.ca-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(11px, 2.6vw, 13px);
  color: var(--white-belly);
  word-break: break-all;
}

.ca-copied {
  position: absolute;
  top: -26px;
  right: 8px;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.ca-copied.show {
  opacity: 1;
  transform: translateY(0);
}

.links {
  display: flex;
  gap: 10px;
}

.link-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--blue-deep);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.link-chip:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--blue-deep);
}

#buyLink { background: var(--mint); color: var(--ink); }
#xLink { background: var(--panel); color: var(--ink); }
#chartLink { background: var(--beak); color: var(--ink); }

@media (max-width: 420px) {
  .stage { gap: 10px; padding: 14px 14px; }
  .links { gap: 8px; }
  .link-chip { padding: 8px 12px; font-size: 12px; }
}

@media (min-width: 920px) {
  .stage { max-width: 720px; gap: 20px; }
  .duck-img { width: min(400px, 34vw); }
}

@media (prefers-reduced-motion: reduce) {
  .duck-img.pumping { animation: none; }
  .counter-value.bump { animation: none; }
  .sound-toggle, .ca-chip, .link-chip { transition: none; }
}
