:root {
  --paper: #fffdf7;
  --ink: #2b2033;
  --pink: #ff4f9a;
  --pink-soft: #ffb3d4;
  --pink-mist: #ffe9f3;
  --green: #3ecf8e;
  --green-soft: #bdf2d7;
  --green-mist: #e3f9ee;
  --tape-yellow: #ffd94d;
  --shadow-hard: rgba(43, 32, 51, 0.16);

  --font-display: "Chewy", "Comic Sans MS", cursive;
  --font-hand: "Gochi Hand", "Comic Sans MS", cursive;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── background: dotted granny's-notepad + blobs ─────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(rgba(255, 158, 196, 0.22) 1.6px, transparent 1.6px),
    radial-gradient(60vw 60vh at 8% 4%, rgba(255, 158, 196, 0.18), transparent 60%),
    radial-gradient(55vw 55vh at 95% 15%, rgba(165, 236, 196, 0.22), transparent 60%),
    var(--paper);
  background-size: 26px 26px, auto, auto, auto;
}

.bg::before {
  content: "✿";
  position: fixed;
  top: 8vh;
  right: 6vw;
  font-size: 3.2rem;
  transform: rotate(24deg);
  color: var(--pink-soft);
  opacity: 0.5;
  z-index: -1;
}
.bg::after {
  content: "✎";
  position: fixed;
  bottom: 10vh;
  left: 5vw;
  font-size: 3rem;
  transform: rotate(-18deg);
  color: var(--green-soft);
  opacity: 0.6;
  z-index: -1;
}

.bg .heart {
  position: fixed;
  bottom: -10vh;
  font-size: var(--size, 20px);
  opacity: 0.5;
  animation: floatUp var(--dur, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
  z-index: -1;
  pointer-events: none;
  filter: drop-shadow(0 4px 0 rgba(255, 79, 154, 0.15));
}

@keyframes floatUp {
  0%   { transform: translateY(120vh) translateX(0) rotate(0deg); }
  50%  { transform: translateY(55vh) translateX(4vw) rotate(18deg); }
  100% { transform: translateY(-15vh) translateX(-3vw) rotate(-14deg); }
}

/* ── hero ────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 3.6rem 1.2rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.mascot {
  font-size: 2.8rem;
  line-height: 1;
  animation: bounce 1.3s ease-in-out infinite;
  filter: drop-shadow(0 6px 0 rgba(255, 79, 154, 0.22));
  margin: 0.4rem 0 0.4rem;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-9px) rotate(6deg); }
}

.tag {
  font-family: var(--font-hand);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  margin: 0;
}

/* the chalkboard-poster name */
.banner {
  position: relative;
  display: inline-block;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 7px 8px 0 var(--shadow-hard);
  padding: 1.5rem 2.3rem;
  transform: rotate(-1.4deg);
  animation: settle 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  margin: 1.1rem 0 0.6rem;
}
.banner::before,
.banner::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 26px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.5) 0 6px, rgba(255, 255, 255, 0.12) 6px 12px), var(--tape-yellow);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  opacity: 0.95;
}
.banner::before { top: -13px; left: 50%; transform: translateX(-50%) rotate(2deg); }
.banner::after  { bottom: -13px; left: 22%;  transform: rotate(-5deg); width: 70px; }

.banner pre {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(0.82rem, 2.6vw, 1.25rem);
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
  text-shadow: 0 2px 0 var(--pink-mist);
  white-space: pre;
}

.corner { display: none; }

@keyframes settle {
  from { transform: rotate(-6deg) scale(1.08); opacity: 0; }
  to   { transform: rotate(-1.4deg) scale(1); opacity: 1; }
}

.hero-sub {
  max-width: 540px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0.6rem 0 1.3rem;
  font-weight: 800;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.pill {
  font-family: var(--font-hand);
  font-size: 1.02rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.15rem 0.85rem 0;
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 3px 3px 0 var(--shadow-hard);
  color: var(--ink);
}
.pill:nth-child(1) { --tilt: -1.5deg; border-color: var(--pink); }
.pill:nth-child(2) { --tilt: 1.2deg;  border-color: var(--green); }
.pill:nth-child(3) { --tilt: -1deg;   border-color: var(--pink); }
.pill:nth-child(4) { --tilt: 1.6deg;  border-color: var(--green); }

.btn-special {
  font-family: var(--font-display);
  font-size: 1.05rem;
  border: 3px solid var(--ink);
  cursor: pointer;
  padding: 0.55rem 1.4rem;
  border-radius: 12px;
  color: var(--ink);
  background: var(--green-soft);
  box-shadow: 4px 5px 0 var(--shadow-hard);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-special:hover { transform: translate(-1px, -1px) rotate(-1deg); box-shadow: 6px 7px 0 var(--shadow-hard); }
.btn-special:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--shadow-hard); }

.bubble {
  max-width: 380px;
  margin: 1rem auto 0;
  background: #fff;
  border: 3px solid var(--green);
  border-radius: 14px 14px 14px 4px;
  padding: 0.75rem 1.1rem;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 5px 6px 0 var(--shadow-hard);
  transform: rotate(0.5deg);
  animation: pop 0.3s ease both;
  position: relative;
}
.bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: -8px;
  border: 6px solid transparent;
  border-top-color: var(--green);
  border-left-color: var(--green);
  transform: rotate(0deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.chips a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 0.3rem 1rem;
  box-shadow: 3px 4px 0 var(--shadow-hard);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.chips a:nth-child(odd)  { --tilt: -1.2deg; border-color: var(--pink); }
.chips a:nth-child(even) { --tilt: 1.2deg;  border-color: var(--green); }
.chips a:hover { transform: translate(-1px, -1px) rotate(0deg); box-shadow: 5px 6px 0 var(--shadow-hard); }

/* ── ticker ──────────────────────────────────────────────────── */
.ticker {
  width: min(680px, 100%);
  margin: 1.6rem 0 0.4rem;
  overflow: hidden;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 5px 6px 0 rgba(255, 79, 154, 0.3);
  transform: rotate(-0.6deg);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
}
.tgroup { display: flex; gap: 1.6rem; padding: 0.4rem 0.8rem; white-space: nowrap; }
.tgroup span { font-family: var(--font-display); font-size: 0.95rem; color: #fff; }

@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}

.hand-note {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.75;
  margin: 0.5rem 0 0;
  transform: rotate(1deg);
}

/* ── main ────────────────────────────────────────────────────── */
main { max-width: 1120px; margin: 0 auto; padding: 1rem 1.2rem 10rem; }

.pack { padding: 2.4rem 0 0.4rem; }

.pack-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 400;
  font-variant: small-caps;
  text-align: center;
  margin: 0 0 1.9rem;
  color: var(--ink);
  text-shadow: 3px 3px 0 rgba(255, 79, 154, 0.18);
  position: relative;
}
.pack-title span { color: var(--pink); }
.chaos .pack-title span { color: var(--green); }
.pack-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%) rotate(-0.6deg);
  width: 220px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='14' viewBox='0 0 220 14'%3E%3Cpath d='M2 10 Q 30 2 60 8 T 120 7 T 180 8 T 218 6' fill='none' stroke='%23ff4f9a' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.8;
}
.chaos .pack-title::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='14' viewBox='0 0 220 14'%3E%3Cpath d='M2 10 Q 30 2 60 8 T 120 7 T 180 8 T 218 6' fill='none' stroke='%233ecf8e' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem 1.2rem;
}
.grid.three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.three { gap: 1.2rem; }

/* ── sticker-cards ───────────────────────────────────────────── */
.card {
  position: relative;
  background: #fff;
  border: 3px solid var(--pink-soft);
  border-radius: 14px;
  padding: 1.5rem 1.4rem 1.1rem;
  box-shadow: 5px 7px 0 var(--shadow-hard);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.grid > .card:nth-child(odd)  { --tilt: -1.1deg; }
.grid > .card:nth-child(even) { --tilt: 1.15deg; }

.card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 86px;
  height: 24px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.55) 0 6px, rgba(255, 255, 255, 0.15) 6px 12px), var(--tape, var(--tape-yellow));
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
  z-index: 3;
}
.grid > .card:nth-child(3n + 2)::before { --tape: #c7edff; transform: translateX(-50%) rotate(4deg); }
.grid > .card:nth-child(3n)::before     { --tape: var(--green-soft); transform: translateX(-50%) rotate(-2deg); }

.card::after {
  content: "♡";
  position: absolute;
  right: 4px;
  bottom: -14px;
  font-size: 4rem;
  color: var(--pink-soft);
  opacity: 0.35;
  transform: rotate(14deg);
  pointer-events: none;
}

.card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 8px 11px 0 var(--shadow-hard);
  border-color: var(--pink);
}

.chaos .card { border-color: var(--green-soft); }
.chaos .card:hover { border-color: var(--green); }
.chaos .card::after { content: "✦"; color: var(--green-soft); }

.card-emoji {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.7rem;
  width: fit-content;
  background: var(--pink-mist);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--shadow-hard);
}
.chaos .card-emoji { background: var(--green-mist); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.45rem;
  padding-right: 1.4rem;
}

.card .desc {
  margin: 0 0 1rem;
  color: var(--ink);
  opacity: 0.72;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 700;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}

.price {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--pink);
  transform: rotate(-2deg);
  white-space: nowrap;
}
.chaos .price { color: var(--green); }

.add {
  font-family: var(--font-display);
  font-size: 1rem;
  border: 3px solid var(--ink);
  cursor: pointer;
  color: #fff;
  background: var(--pink);
  padding: 0.45rem 1.05rem;
  border-radius: 10px;
  box-shadow: 3px 4px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}
.add:hover { transform: translate(-1px, -1px) rotate(-1deg); box-shadow: 5px 6px 0 var(--ink); }
.add:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.add.in-cart { background: var(--green); color: #083b22; }

/* ── premium / hot cards ─────────────────────────────────────── */
.premium { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card.hot { background: linear-gradient(160deg, #fff 55%, var(--pink-mist)); border-color: var(--pink); }
.card.hot::before { --tape: var(--tape-yellow); }
.card.hot .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--tape-yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.15rem 0.55rem;
  transform: rotate(5deg);
  box-shadow: 2px 3px 0 var(--shadow-hard);
  z-index: 4;
}
.card.hot .card-emoji { background: #fff; }

/* ── deal boxes ──────────────────────────────────────────────── */
.deal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}
.deal-box {
  background: #fff;
  border: 3px solid var(--green);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: 6px 8px 0 var(--shadow-hard);
  transform: rotate(-0.8deg);
  position: relative;
}
.deal-box::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 16px;
  width: 74px;
  height: 22px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.5) 0 6px, rgba(255, 255, 255, 0.12) 6px 12px), var(--tape-yellow);
  border-radius: 2px;
  transform: rotate(-6deg);
}
.deal-box h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 0.4rem 0; font-weight: 400; }
.deal-box .desc { color: var(--ink); opacity: 0.75; margin: 0 0 0.8rem; font-weight: 700; }
.deal-tag {
  font-family: var(--font-display);
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.95rem;
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 0.25rem 0.9rem;
  box-shadow: 3px 4px 0 var(--ink);
  transform: rotate(1.5deg);
}
.deal-box.terms {
  text-align: left;
  border-color: var(--pink);
  transform: rotate(0.7deg);
}
.deal-box.terms::before { left: auto; right: 16px; transform: rotate(5deg); background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.5) 0 6px, rgba(255, 255, 255, 0.12) 6px 12px), var(--pink-soft); }
.deal-box.terms ul { margin: 0.6rem 0 0; padding-left: 1.25rem; color: var(--ink); font-weight: 700; line-height: 1.9; font-size: 0.92rem; }

/* ── contact ─────────────────────────────────────────────────── */
.contact {
  text-align: center;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 2.4rem 1.4rem;
  box-shadow: 8px 10px 0 rgba(255, 79, 154, 0.2);
  margin: 1.4rem 0 2.2rem;
  transform: rotate(-0.5deg);
  position: relative;
}
.contact::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 120px;
  height: 26px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.5) 0 6px, rgba(255, 255, 255, 0.12) 6px 12px), var(--tape-yellow);
  border-radius: 2px;
}
.contact h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.3rem;
  font-weight: 400;
}
.contact p { color: var(--ink); opacity: 0.75; font-weight: 700; margin: 0 0 1.3rem; }

/* ── buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-decoration: none;
  color: #fff;
  border: 3px solid var(--ink);
  cursor: pointer;
  background: var(--pink);
  padding: 0.55rem 1.5rem;
  border-radius: 12px;
  box-shadow: 4px 5px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-primary:hover { transform: translate(-1px, -1px) rotate(-0.5deg); box-shadow: 6px 7px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.btn-primary.discord {
  background: #7289da;
}

.ghost {
  font-family: var(--font-display);
  font-size: 0.98rem;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 3px 4px 0 var(--shadow-hard);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.ghost:hover { transform: translate(-1px, -1px); box-shadow: 5px 6px 0 var(--shadow-hard); }
.ghost:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--shadow-hard); }

/* ── reviews ─────────────────────────────────────────────────── */
.review { text-align: center; }
.review .stars { color: var(--pink); font-size: 1.1rem; letter-spacing: 0.1em; margin-bottom: 0.6rem; transform: rotate(-2deg); }
.review p { margin: 0 0 0.8rem; color: var(--ink); font-weight: 800; line-height: 1.55; }
.review cite { font-style: normal; color: var(--ink); opacity: 0.6; font-family: var(--font-hand); font-size: 1rem; }

/* ── footer ──────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 1rem 1.2rem 8.8rem;
  color: var(--ink);
  opacity: 0.85;
}
.foot-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--pink);
  margin: 0 0 0.2rem;
}
footer p { margin: 0.2rem 0; font-weight: 700; }
.foot-note { font-size: 0.9rem; opacity: 0.75; font-family: var(--font-hand); }

/* ── cart bar ────────────────────────────────────────────────── */
.cartbar {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%) rotate(-0.4deg);
  width: min(640px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 8px 0 rgba(43, 32, 51, 0.28);
  padding: 0.55rem 0.7rem 0.55rem 1.1rem;
  z-index: 50;
}
.cart-info {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
}
.cart-icon { font-size: 1.3rem; }
.cart-info .dot { opacity: 0.4; }
.total { color: var(--green); font-family: var(--font-display); font-size: 1.05rem; text-shadow: 1px 1px 0 rgba(62, 207, 142, 0.25); }
.cart-actions { display: flex; gap: 0.45rem; flex-shrink: 0; }
.cart-actions .ghost { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.cart-actions .btn-primary { padding: 0.45rem 1.1rem; font-size: 0.95rem; }

/* ── modal ───────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(43, 32, 51, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}
.modal[hidden] { display: none; }

.modal-box {
  position: relative;
  width: min(460px, 100%);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 1.8rem 1.5rem 1.5rem;
  box-shadow: 8px 10px 0 rgba(62, 207, 142, 0.35);
  animation: pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-box::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 110px;
  height: 26px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.5) 0 6px, rgba(255, 255, 255, 0.12) 6px 12px), var(--tape-yellow);
  border-radius: 2px;
}
.modal-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 1rem;
  text-align: center;
  font-weight: 400;
}
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 3px solid var(--ink);
  background: var(--pink-mist);
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 2px 3px 0 var(--shadow-hard);
  transition: transform 0.12s ease;
}
.close:hover { transform: rotate(8deg) scale(1.05); }
.close:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--shadow-hard); }

.order-list {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.order-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  background: var(--pink-mist);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-weight: 800;
  font-size: 0.9rem;
  transform: rotate(var(--tilt, 0deg));
}
.order-list li:nth-child(even) { background: var(--green-mist); transform: rotate(0.8deg); }
.order-list li:nth-child(odd)  { transform: rotate(-0.6deg); }
.order-list .lname { flex: 1; }
.order-list .lprice { font-family: var(--font-hand); font-size: 1.1rem; color: var(--pink); white-space: nowrap; }

.freebie {
  background: linear-gradient(120deg, var(--green-mist), var(--pink-mist));
  border: 3px dashed var(--green);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  font-weight: 800;
  font-size: 0.9rem;
  margin: 0 0 0.9rem;
  transform: rotate(-0.5deg);
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.65rem 0;
  border-top: 3px dashed var(--ink);
  font-family: var(--font-hand);
}
.order-total b { color: var(--pink); font-family: var(--font-display); font-size: 1.3rem; }
.order-total.promo-total { border-top: none; padding-top: 0.15rem; margin-top: -0.5rem; }
.order-total.promo-total span { font-size: 0.85rem; }
.order-total.promo-total b { color: var(--green); font-size: 1.05rem; }

.promo-row {
  display: flex;
  gap: 0.5rem;
  margin: 0.7rem 0 0.4rem;
}
.promo-row input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  background: #fff;
  box-shadow: 2px 3px 0 var(--shadow-hard);
  color: var(--ink);
}
.promo-row input:focus { outline: none; border-color: var(--green); background: var(--green-mist); }
.promo-row .ghost { padding: 0.5rem 1rem; flex-shrink: 0; }
#promoNote { color: var(--green); opacity: 1; margin: 0.2rem 0 0; }

.fine-print {
  color: var(--ink);
  opacity: 0.6;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  margin: 0.4rem 0 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── notifications ──────────────────────────────────────────── */
.notifs {
  position: fixed;
  right: 1rem;
  bottom: 5.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 120;
  width: min(340px, calc(100vw - 2rem));
  pointer-events: none;
}
.notifs .notif { pointer-events: auto; }

.notif {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  box-shadow: 4px 5px 0 var(--shadow-hard);
  animation: notifIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  max-width: 100%;
}
.notif-green { border-color: var(--green); background: var(--green-mist); }
.notif .n-icon { font-size: 1.25rem; line-height: 1.2; flex-shrink: 0; }
.notif .n-body { min-width: 0; }
.notif .n-body b {
  display: block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.3;
}
.notif .n-body p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.75;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.notif .n-x {
  margin-left: auto;
  flex-shrink: 0;
  border: 2px solid var(--ink);
  background: var(--pink-mist);
  color: var(--ink);
  width: 22px;
  height: 22px;
  line-height: 1;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}
@keyframes notifIn {
  from { opacity: 0; transform: translateX(30px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── account zone ───────────────────────────────────────────── */
.account-zone {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.5rem 0.3rem 0.45rem;
  box-shadow: 4px 5px 0 var(--shadow-hard);
  max-width: calc(100vw - 2rem);
}
.account-zone[hidden] { display: none; }

.acc-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
}
.acc-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-logout {
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--ink);
  background: var(--pink-mist);
  border: 2px solid var(--ink);
  border-radius: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}
.acc-login {
  font-family: var(--font-display);
  text-decoration: none;
  color: #fff;
  background: #7289da;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.35rem 1rem 0.25rem;
  box-shadow: 3px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.acc-login:hover { transform: translate(-1px, -1px); box-shadow: 5px 6px 0 var(--ink); }

/* ── checkout page ──────────────────────────────────────────── */
.checkout-main {
  max-width: 620px;
  margin: 0 auto;
  padding: 6.5rem 1.2rem 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.back-link {
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 0.3rem 1rem;
  box-shadow: 3px 4px 0 var(--shadow-hard);
  align-self: flex-start;
  transform: rotate(-1.5deg);
}
.back-link:hover { transform: translate(-1px, -1px) rotate(-1.5deg); }

.banner-sm {
  margin: 1.4rem 0 0.4rem;
  transform: rotate(-1deg);
  padding: 1rem 2rem;
}
.banner-sm pre {
  font-size: clamp(1.2rem, 4vw, 1.9rem);
  text-align: center;
}

.checkout-wrap { width: 100%; margin-top: 1.6rem; }

.ck-cart,
.ck-empty-card,
.ck-gate-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 8px 10px 0 var(--shadow-hard);
  transform: rotate(-0.5deg);
  position: relative;
}
.ck-cart::before,
.ck-empty-card::before,
.ck-gate-card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 110px;
  height: 26px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.5) 0 6px, rgba(255, 255, 255, 0.12) 6px 12px), var(--tape-yellow);
  border-radius: 2px;
}

.ck-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 1rem;
  text-align: center;
  font-weight: 400;
}

.ck-empty-card,
.ck-gate-card {
  text-align: center;
  padding: 2.4rem 1.8rem;
}
.ck-empty-card h2,
.ck-gate-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0.4rem 0 0.4rem;
}
.ck-empty-card p,
.ck-gate-card p {
  font-weight: 700;
  opacity: 0.75;
  margin: 0 0 1.4rem;
  line-height: 1.5;
}
.ck-empty-card .card-emoji,
.ck-gate-card .card-emoji { margin: 0 auto; }

.footer-plain {
  text-align: center;
  padding: 1rem 1.2rem 2.5rem;
  color: var(--ink);
  opacity: 0.85;
}

/* ── confetti + sparkles ─────────────────────────────────────── */
.confetti {
  position: fixed;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9998;
  animation: confettiFly 0.9s ease-out forwards;
}
@keyframes confettiFly {
  from { opacity: 1; transform: translate(0, 0) rotate(0); }
  to   { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, -80px)) rotate(var(--rot, 180deg)); }
}

.spark {
  position: fixed;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 9999;
  animation: sparkFade 0.6s ease-out forwards;
}
@keyframes sparkFade {
  from { opacity: 1; transform: translate(-50%, -50%) scale(0.4) rotate(-10deg); }
  to   { opacity: 0; transform: translate(-50%, -180%) scale(1.2) rotate(15deg); }
}

/* ── animations ──────────────────────────────────────────────── */
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .banner { padding: 1.1rem 1.3rem; }
  .cartbar { flex-wrap: wrap; border-radius: 14px; padding: 0.6rem 0.8rem; }
  .cart-info { font-size: 0.88rem; }
  .cart-actions { width: 100%; justify-content: space-between; }
  .cart-actions .btn-primary { flex: 1; text-align: center; }
  main { padding-bottom: 12rem; }
  footer { padding-bottom: 11rem; }
  .notifs { left: 1rem; right: 1rem; bottom: 11rem; width: auto; }
  .checkout-main { padding-top: 5.8rem; }
  .account-zone { top: 0.5rem; right: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}