@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/space-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime: #CCFF00;
  --ink: #0a0a0a;
  --paper: #f4f4ec;
  --r1: #ff3b3b;
  --r2: #ff9f1c;
  --r3: #ffe500;
  --r4: #39ff6a;
  --r5: #00e5ff;
  --r6: #7a5cff;
  --r7: #ff3ec9;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--ink);
  font-family: "Space Mono", ui-monospace, "Courier New", monospace;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
.mono { font-family: "Space Mono", ui-monospace, monospace; }

.noscript-banner {
  position: fixed; inset: 0; z-index: 99998;
  background: var(--ink); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; font-size: 1.2rem;
}

/* ---------- rainbow background ---------- */
.rainbow-bg {
  position: fixed; inset: -10vmax;
  z-index: -2;
  background: linear-gradient(115deg,
    var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r7), var(--r1));
  background-size: 200% 200%;
  animation: hue-cycle 20s linear infinite, drift 30s ease-in-out infinite;
}
@keyframes hue-cycle { to { filter: hue-rotate(360deg); } }
@keyframes drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.scanline {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0.08) 0px, rgba(0,0,0,0.08) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.section {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
.section-eyebrow {
  font-family: "Anton", ui-sans-serif, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--ink);
  -webkit-text-stroke: 1px var(--lime);
  margin: 0 0 1.75rem;
  text-align: center;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
}
.hero-inner {
  max-width: 640px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.hero-cuke {
  width: min(70vw, 320px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(204,255,0,0.65));
  animation: glitch-pulse 6s ease-in-out infinite;
}
@keyframes glitch-pulse {
  0%, 92%, 100% { filter: drop-shadow(0 0 24px rgba(204,255,0,0.65)); transform: translateX(0); }
  93% { filter: drop-shadow(2px 0 0 #ff3ec9) drop-shadow(-2px 0 0 #00e5ff); transform: translateX(-2px); }
  94% { filter: drop-shadow(-2px 0 0 #ff3ec9) drop-shadow(2px 0 0 #00e5ff); transform: translateX(2px); }
  95% { filter: drop-shadow(0 0 24px rgba(204,255,0,0.65)); transform: translateX(0); }
}
.hero-title {
  font-family: "Anton", ui-sans-serif, sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 5rem);
  line-height: 0.95;
  margin: 0.5rem 0 0;
  color: var(--ink);
  -webkit-text-stroke: 2px var(--lime);
  text-shadow: 0 0 18px rgba(204,255,0,0.5);
}
.hero-sub {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: clamp(0.9rem, 3vw, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  -webkit-text-stroke: 0;
  margin-top: 0.6rem;
  background: var(--paper);
  padding: 0.15rem 0.6rem;
  display: inline-block;
}
.hero-tag {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: var(--lime);
  padding: 0.35rem 0.9rem;
  margin: 0.25rem 0 0;
}
.freshness {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(10,10,10,0.85);
  color: var(--lime);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--lime);
}
.freshness-label { opacity: 0.7; text-transform: uppercase; }

/* ---------- sticker ---------- */
.sticker-section { text-align: center; }
.sticker {
  appearance: none;
  border: none;
  cursor: pointer;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 0 0 4px var(--lime);
  transition: transform 0.15s ease;
  font-family: "Space Mono", monospace;
}
.sticker:hover { transform: scale(1.03) rotate(-1deg); }
.sticker:active { transform: scale(0.98) rotate(0deg); }
.sticker-badge {
  font-family: "Anton", ui-sans-serif, sans-serif;
  font-size: 1.4rem;
  color: #d9440a;
  text-transform: uppercase;
}
.sticker-plu { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; }
.sticker-barcode {
  position: relative;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 34px;
  margin: 0.3rem 0;
  overflow: hidden;
}
.sticker-barcode .bar { width: 3px; height: 100%; background: var(--ink); }
.sticker-barcode .bar:nth-child(2n) { height: 70%; }
.sticker-barcode .bar:nth-child(3n) { height: 85%; }
.laser {
  position: absolute; top: 0; left: -20%;
  width: 2px; height: 100%;
  background: #ff2b2b;
  box-shadow: 0 0 8px 2px rgba(255,43,43,0.8);
  opacity: 0;
}
.sticker:hover .laser {
  opacity: 1;
  animation: laser-sweep 1.1s linear infinite;
}
@keyframes laser-sweep {
  from { left: -5%; }
  to { left: 105%; }
}
.sticker-country { font-size: 0.7rem; text-transform: uppercase; opacity: 0.75; }
.sticker-copy-hint {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--lime);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.ca-readout {
  margin: 0.8rem auto 0;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--paper);
  display: block;
  width: fit-content;
  padding: 0.25rem 0.7rem;
}
.ca-readout:empty { background: none; padding: 0; margin-top: 0; }

/* ---------- nutrition ---------- */
.nutrition-label {
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 1.1rem 1.3rem 1.4rem;
  max-width: 380px;
  margin: 0 auto;
  font-family: "Space Mono", monospace;
}
.nutrition-title {
  font-family: "Anton", ui-sans-serif, sans-serif;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}
.nutrition-serving { font-size: 0.85rem; margin-top: 0.3rem; }
.nutrition-thick-rule { height: 8px; background: var(--ink); margin: 0.5rem 0; }
.nutrition-rows { margin: 0; }
.nutrition-row {
  display: flex; justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  padding: 0.35rem 0;
  font-size: 0.95rem;
}
.nutrition-row dt, .nutrition-row dd { margin: 0; font-weight: 700; }
.nutrition-row--big { font-size: 1.2rem; }
.nutrition-footnote { font-size: 0.7rem; margin-top: 0.6rem; opacity: 0.8; }

/* ---------- the stretch ---------- */
.stretch-section { text-align: center; }
.stretch-instructions { font-size: 0.9rem; max-width: 42ch; margin: 0 auto 2rem; opacity: 0.9;
  background: rgba(10,10,10,0.8); color: var(--paper); padding: 0.5rem 0.8rem; }
.stretch-stage {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  position: relative;
}
.stretch-cuke-wrap { position: relative; height: 660px; display: flex; align-items: flex-end; }
.stretch-cuke {
  width: 46px;
  height: 90px;
  transform-origin: bottom center;
  transition: height 0.05s linear;
  display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 0 14px rgba(204,255,0,0.7));
}
.stretch-cuke-cap {
  width: 32px; height: 16px; border-radius: 50% 50% 40% 40%;
  background: #2e5a1a; flex-shrink: 0;
}
.stretch-cuke-cap--top { border-radius: 40% 40% 50% 50%; }
.stretch-cuke-body {
  flex: 1; width: 46px;
  background: repeating-linear-gradient(90deg, #3f7d1f 0 6px, #4c9424 6px 12px);
  border: 2px solid var(--lime);
  border-radius: 8px;
}
.stretch-cuke.is-popping { animation: pop-shake 0.4s ease; opacity: 0; transition: opacity 0.2s ease 0.15s; }
@keyframes pop-shake {
  0% { transform: scaleX(1); }
  30% { transform: scaleX(1.6) scaleY(0.8); }
  100% { transform: scaleX(0.2) scaleY(0.2); }
}
.pop-burst {
  position: absolute; left: 50%; top: 0; width: 4px; height: 4px;
  pointer-events: none;
}
.pop-burst.is-active .spark {
  position: absolute; width: 6px; height: 6px; background: var(--lime); border-radius: 50%;
  animation: spark-fly 0.6s ease-out forwards;
}
@keyframes spark-fly {
  to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}
.stretch-readout {
  font-family: "Anton", ui-sans-serif, sans-serif;
  color: var(--ink);
}
.stretch-cm { font-size: 3rem; -webkit-text-stroke: 1.5px var(--lime); }
.stretch-unit { font-size: 1.2rem; margin-left: 0.3rem; }
.stretch-btn {
  margin-top: 1.5rem;
  font-family: "Anton", ui-sans-serif, sans-serif;
  text-transform: uppercase;
  font-size: 1.3rem;
  background: var(--lime);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  transition: transform 0.1s ease;
}
.stretch-btn:active { transform: scale(0.95); }
.stretch-btn.is-holding { animation: btn-throb 0.5s ease-in-out infinite; }
@keyframes btn-throb { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.3); } }
.stretch-result {
  margin: 1rem auto 0; font-weight: 700;
  background: var(--paper); display: block; width: fit-content; padding: 0.3rem 0.8rem;
}
.stretch-result:empty { background: none; padding: 0; }
.share-btn {
  margin-left: 0.6rem;
  font-family: "Space Mono", monospace; font-weight: 700;
  background: var(--ink); color: var(--lime);
  border: none; padding: 0.3rem 0.7rem; cursor: pointer;
  border-radius: 4px;
}
.leaderboard { margin-top: 2.5rem; }
.leaderboard-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.leaderboard-list {
  list-style: none; padding: 0; margin: 0.6rem auto 0; max-width: 280px;
  background: rgba(10,10,10,0.85); color: var(--paper);
}
.leaderboard-list li {
  display: flex; justify-content: space-between; padding: 0.35rem 0.8rem;
  border-bottom: 1px solid rgba(244,244,236,0.15); font-size: 0.9rem;
}
.leaderboard-list li:last-child { border-bottom: none; }
.leaderboard-empty { justify-content: center !important; opacity: 0.6; }

/* ---------- roadmap ---------- */
.roadmap-line {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem 1.25rem;
  position: relative;
}
.roadmap-stage { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 90px; }
.roadmap-mark {
  width: 30px; height: 30px; border: 2px solid var(--ink);
  background: var(--lime);
}
.roadmap-mark--seed { border-radius: 50%; width: 14px; height: 14px; }
.roadmap-mark--sprout { border-radius: 50% 50% 0 0 / 100% 100% 0 0; height: 22px; }
.roadmap-mark--vine { border-radius: 40%; transform: rotate(20deg); }
.roadmap-mark--harvest { border-radius: 40% 40% 50% 50%; height: 34px; }
.roadmap-mark--wrap { border-radius: 6px; background: repeating-linear-gradient(45deg, var(--lime) 0 4px, var(--paper) 4px 8px); }
.roadmap-mark--export { border-radius: 4px; clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.roadmap-label {
  font-size: 0.75rem; text-transform: uppercase; text-align: center;
  background: rgba(10,10,10,0.85); color: var(--paper); padding: 0.15rem 0.4rem;
}

/* ---------- pickle jar ---------- */
.jar-section { text-align: center; }
.jar-copy { max-width: 46ch; margin: 0 auto 2rem; background: rgba(10,10,10,0.8); color: var(--paper); padding: 0.5rem 0.8rem; }
.jar-stage { display: flex; justify-content: center; }
.jar {
  position: relative;
  width: 160px; height: 190px;
  border: 4px solid var(--ink);
  border-radius: 0 0 24px 24px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.jar-brine {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: linear-gradient(180deg, rgba(180,220,40,0.55), rgba(120,160,10,0.75));
}
.jar-lid { position: absolute; top: -14px; left: -8px; right: -8px; height: 20px; background: var(--ink); border-radius: 4px; }
.jar-pickles { position: absolute; inset: 0; }
.jar-pickle {
  position: absolute; bottom: 8%; width: 16px; height: 52px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, #5f8a1f 0 4px, #7fae32 4px 8px);
  border: 2px solid var(--ink);
  box-shadow: 0 0 6px rgba(204,255,0,0.5);
  animation: pickle-drop 0.6s cubic-bezier(.3,1.4,.6,1) forwards;
}
@keyframes pickle-drop {
  from { transform: translateY(-160px) rotate(0deg); }
  to { transform: translateY(0) rotate(var(--rot)); }
}
.jar-btn {
  margin-top: 1.5rem;
  font-family: "Space Mono", monospace; font-weight: 700;
  background: var(--paper); border: 3px solid var(--ink);
  padding: 0.7rem 1.3rem; cursor: pointer; border-radius: 999px;
}
.jar-count { margin-top: 0.75rem; font-size: 0.85rem; background: rgba(10,10,10,0.8); color: var(--paper); display: inline-block; padding: 0.25rem 0.7rem; }

/* ---------- taglines / banner ---------- */
.taglines-section { text-align: center; max-width: 100%; padding-left: 0; padding-right: 0; }
.banner-img { width: 100%; max-height: 320px; object-fit: cover; }
.taglines {
  list-style: none; margin: 1.75rem auto 0; padding: 0 1.25rem;
  max-width: 640px;
  font-family: "Anton", ui-sans-serif, sans-serif;
  text-transform: uppercase;
  display: grid; gap: 0.6rem;
}
.taglines li {
  font-size: clamp(1rem, 3.6vw, 1.5rem);
  background: var(--ink); color: var(--lime);
  padding: 0.4rem 0.8rem;
}

/* ---------- footer ---------- */
.footer {
  text-align: center; padding: 3rem 1.25rem 4rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.footer-ca {
  background: var(--paper); padding: 0.4rem 0.9rem; display: inline-flex; gap: 0.5rem;
  font-size: 0.8rem; max-width: 100%; overflow-wrap: anywhere;
}
.footer-ca-label { font-weight: 700; opacity: 0.6; }
.footer-links { display: flex; gap: 1rem; }
.footer-link {
  color: var(--ink); background: var(--lime); border-radius: 50%;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.footer-link:hover { transform: scale(1.1) rotate(-6deg); }
.footer-fine { font-size: 0.7rem; opacity: 0.85; color: var(--paper); }

@media (min-width: 640px) {
  .hero-cuke { width: min(40vw, 340px); }
  .stretch-cuke { width: 56px; }
  .stretch-cuke-body { width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .rainbow-bg { animation: none; }
  .hero-cuke { animation: none; }
  .sticker:hover .laser { animation: none; opacity: 0; }
  .stretch-btn.is-holding { animation: none; }
  * { scroll-behavior: auto !important; }
}
