/* ============================================================
   BOOFY WHOMPS — Private Boutique
   Palette: obsidian black, charcoal, champagne gold, ivory
   ============================================================ */

:root {
  --black: #0a0a0b;
  --coal: #141416;
  --coal-2: #1c1c1f;
  --line: rgba(79, 224, 140, 0.18);
  --gold: #4fe08c;
  --gold-soft: #8ff0b8;
  --ivory: #f5f0e6;
  --muted: #9a948a;
  --serif: "Didot", "Bodoni 72", "Playfair Display", "Georgia", serif;
  --sans: "Avenir Next", "Futura", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--black); }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, #2aa565);
  border: none;
  padding: 1.05rem 2.4rem;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79, 224, 140, 0.35);
  filter: brightness(1.06);
}
.btn.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn.ghost:hover { box-shadow: 0 12px 30px rgba(79, 224, 140, 0.18); }

/* ---------- gold dust canvas ---------- */
#dust {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* smoke drifts above the card but never blocks clicks */
#smoke {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

/* ============================================================
   GATE (login) PAGE
   ============================================================ */

.gate {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  gap: 2.8rem;
}

.gate-logo {
  perspective: 1200px;
  width: min(560px, 88vw);
}
.gate-logo img, .hero-logo {
  -webkit-mask-image: radial-gradient(ellipse 70% 68% at center, #000 52%, transparent 84%);
  mask-image: radial-gradient(ellipse 70% 68% at center, #000 52%, transparent 84%);
}

.gate-logo img {
  width: 100%;
  display: block;
  transform-style: preserve-3d;
  animation: logoFloat 9s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(79, 224, 140, 0.22));
}
@keyframes logoFloat {
  0%, 100% { transform: rotateX(6deg) rotateY(-4deg) translateY(0); }
  50%      { transform: rotateX(-4deg) rotateY(5deg) translateY(-14px); }
}

.gate-tag {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.gate-card {
  position: relative;
  width: min(420px, 92vw);
  background: linear-gradient(180deg, rgba(28,28,31,0.92), rgba(16,16,18,0.92));
  border: 1px solid var(--line);
  padding: 2.6rem 2.4rem 2.8rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6);
}

.gate-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.gate-tabs button {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.9rem 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.gate-tabs button.active { color: var(--gold); border-bottom-color: var(--gold); }

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.field input {
  width: 100%;
  background: rgba(10,10,11,0.7);
  border: 1px solid rgba(245,240,230,0.12);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(79,224,140,0.12);
}

.gate-card .btn { width: 100%; margin-top: 0.4rem; }

.gate-msg {
  min-height: 1.4rem;
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.gate-msg.error { color: #e07a6a; }
.gate-msg.ok { color: var(--gold-soft); }

/* ---------- the joint IS the enter button ---------- */
.light-up {
  margin-top: 1.9rem;
  text-align: center;
}
.joint-btn {
  position: relative;
  display: inline-block;
  width: min(310px, 96%);
  height: 46px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6));
  transition: transform 0.35s ease;
}
.joint-btn:hover { transform: scale(1.045) rotate(-1.2deg); }
.joint-btn:active { transform: scale(0.98); }

/* filter crutch at the mouth end */
.joint-btn .crutch {
  position: absolute;
  left: 4px; top: 14px;
  width: 34px; height: 18px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.07) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #fdfaf1, #ded5bd);
  border-radius: 5px 3px 3px 5px;
  box-shadow: inset 0 -3px 4px rgba(0,0,0,0.18), inset 0 2px 2px rgba(255,255,255,0.5);
}
.joint-btn .crutch-tip {
  position: absolute;
  left: 2px; top: 14px;
  width: 6px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #b8ad92 20%, #8f8468 70%, #6b614a 100%);
}

/* tapered cone body with wrinkle texture */
.joint-btn .paper {
  position: absolute;
  left: 36px; right: 40px; top: 0; bottom: 0;
  background:
    repeating-linear-gradient(112deg, rgba(120,105,75,0.12) 0 2px, transparent 2px 15px),
    repeating-linear-gradient(96deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #fcf8ed 0%, #f2ead6 42%, #d9cfb2 82%, #c4b895 100%);
  clip-path: polygon(0 30%, 100% 6%, 100% 94%, 0 70%);
}
/* glued seam running the length */
.joint-btn .seam {
  position: absolute;
  left: 38px; right: 42px; top: 44%;
  height: 2px;
  background: linear-gradient(90deg, rgba(140,125,90,0.35), rgba(140,125,90,0.6));
  transform: rotate(-1.4deg);
}

/* charred, twisted lit end */
.joint-btn .char {
  position: absolute;
  right: 24px; top: 3px; bottom: 3px;
  width: 22px;
  background:
    repeating-linear-gradient(80deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, #55493a 0%, #2c241a 45%, #120d08 100%);
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
}
.joint-btn .ember {
  position: absolute;
  right: 6px; top: 50%;
  width: 24px; height: 24px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffe9b8 0%, #ffb050 28%, #f25c1d 58%, #5a1608 88%);
  animation: emberPulse 2.4s ease-in-out infinite;
}
.joint-btn.lit .ember {
  animation: none;
  box-shadow: 0 0 40px 16px rgba(255,150,55,0.95);
  filter: brightness(1.65);
}
@keyframes emberPulse {
  0%, 100% { box-shadow: 0 0 12px 4px rgba(255,122,42,0.45); filter: brightness(1); }
  50%      { box-shadow: 0 0 26px 10px rgba(255,148,58,0.8); filter: brightness(1.3); }
}

.light-cap {
  margin-top: 0.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8fd8ac;
}

/* hidden real submit so Enter key still works */
.sr-submit {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* exit veil — page fades while the smoke blast rises over it */
#veil {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: #050506;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.15s ease 0.3s;
}
body.exiting #veil { opacity: 1; }

.gate-foot {
  color: rgba(154,148,138,0.55);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}

/* ============================================================
   SHOP PAGE
   ============================================================ */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.2rem;
  background: linear-gradient(180deg, rgba(10,10,11,0.92), rgba(10,10,11,0.65) 70%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(79,224,140,0.1);
}
.brandmark {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
}
.brandmark span { color: var(--gold); }
.topnav { display: flex; gap: 0.55rem; align-items: center; }

/* quiet text links — the nav shouldn't shout over the product grid */
.topnav .nav-link {
  position: relative;
  color: rgba(233,255,241,0.72);
  text-decoration: none;
  font-size: 0.63rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  transition: color 0.25s ease;
}
.topnav .nav-link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.28rem;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s ease;
}
.topnav .nav-link:hover { color: var(--ivory); }
.topnav .nav-link:hover::after { transform: scaleX(1); }

/* cart is the one emphasised control */
.topnav .nav-cart {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(79,224,140,0.1);
  border: 1px solid rgba(79,224,140,0.42);
  border-radius: 999px;
  color: #f4fff8;
  font-size: 0.63rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.topnav .nav-cart:hover {
  border-color: var(--gold); background: rgba(79,224,140,0.16);
  box-shadow: 0 0 18px rgba(79,224,140,0.22);
}
.cart-pip {
  min-width: 1.35rem; padding: 0.1rem 0.35rem;
  border-radius: 999px; background: var(--gold); color: #0a0a0b;
  font-size: 0.62rem; letter-spacing: 0; text-align: center; font-weight: 700;
}
.topnav .nav-ghost {
  background: none; border: none;
  color: rgba(154,148,138,0.75);
  font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 0.5rem 0.5rem; cursor: pointer;
  transition: color 0.25s ease;
}
.topnav .nav-ghost:hover { color: var(--ivory); }

/* hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.4rem 1.5rem 1.4rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(79,224,140,0.08), transparent 55%);
  pointer-events: none;
}
.hero-logo {
  width: min(540px, 90vw);
  will-change: transform;
  filter: drop-shadow(0 40px 80px rgba(79,224,140,0.18));
}
.hero h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.18em;
  margin-top: 1.4rem;
  color: var(--ivory);
}
.hero p.sub {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.hero p.sub-pop {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 0.5rem 0.9rem;
  perspective: 600px;
}
.hero p.sub-pop b { color: var(--gold); opacity: 0.5; font-weight: 400; }
.hero p.sub-pop span {
  display: inline-block;
  opacity: 0;
  animation:
    popIn 0.75s cubic-bezier(0.2, 1.4, 0.35, 1) forwards,
    lightUp 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.22s), calc(1.2s + var(--i) * 2s);
}
@keyframes popIn {
  0%   { opacity: 0; transform: translateY(14px) rotateX(-70deg) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}
@keyframes lightUp {
  0%, 82%, 100% { color: var(--muted); text-shadow: none; transform: scale(1); }
  88%           { color: #eaffef; text-shadow: 0 0 18px rgba(79,224,140,0.85); transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .hero p.sub-pop span { opacity: 1; animation: none; }
  .brand-slogan { animation: none; opacity: 1; }
}
.hero .scrollcue {
  position: absolute;
  bottom: 2.2rem;
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(8px); opacity: 1; } }

/* story sections */
.story {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.story.alt { direction: rtl; }
.story.alt > * { direction: ltr; }
.story h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 1.2rem 0 1.6rem;
}
.story h2 em { color: var(--gold); font-style: italic; }
.story p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.98rem;
  margin-bottom: 1.1rem;
}
.story-visual {
  perspective: 1100px;
}
.story-visual .pane {
  border: 1px solid var(--line);
  background: var(--coal);
  padding: 0.9rem;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.story-visual img { width: 100%; display: block; }

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
  margin-top: 2rem;
}
.spec .n {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold);
}
.spec .l {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* collection */
.collection { max-width: 1280px; margin: 0 auto; padding: 1.4rem 2rem 5rem; }
.collection-head { text-align: center; margin-bottom: 1.3rem; }
.collection-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-top: 1.1rem; }

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

.card {
  position: relative;
  background: var(--coal);
  border: 1px solid rgba(79,224,140,0.12);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}
.card:hover {
  border-color: rgba(79,224,140,0.45);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 10px 40px rgba(79,224,140,0.12);
}
.card .imgwrap { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.card .imgwrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.card:hover .imgwrap img { transform: scale(1.05); }
.card .glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover .glare { opacity: 1; }
.card .meta { padding: 1.5rem 1.6rem 1.7rem; }
.card .meta .name { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.06em; }
.card .meta .line2 {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 0.55rem;
}
.card .meta .finish {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.card .meta .price { color: var(--gold); font-size: 0.95rem; letter-spacing: 0.08em; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- product modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5,5,6,0.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-back.open { display: flex; }
.modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(920px, 96vw);
  max-height: 90vh;
  background: var(--coal);
  border: 1px solid var(--line);
  overflow: hidden;
}
.modal .m-img { position: relative; }
.modal .m-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal .m-body { padding: 2.6rem 2.4rem; overflow-y: auto; }
.modal .m-body h3 { font-size: 1.9rem; margin: 0.8rem 0 1rem; }
.modal .m-body p.desc { color: var(--muted); line-height: 1.85; font-size: 0.92rem; }
.modal .m-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: rgba(10,10,11,0.6);
  border: 1px solid var(--line);
  color: var(--ivory);
  width: 2.4rem; height: 2.4rem;
  cursor: pointer;
  font-size: 1rem;
}
.opt-label {
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); margin: 1.6rem 0 0.7rem;
}
.opts { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.opts button {
  background: rgba(79,224,140,0.06);
  border: 1px solid rgba(79,224,140,0.4);
  border-radius: 999px;
  color: var(--ivory);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.62rem 1.15rem;
  cursor: pointer;
  transition: all 0.22s ease;
}
.opts button:hover {
  border-color: #8ff0b8;
  color: #8ff0b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79,224,140,0.25);
}
.opts button.sel {
  background: linear-gradient(135deg, #8ff0b8, #4fe08c);
  border-color: transparent;
  color: #07130c;
  font-weight: 600;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(79,224,140,0.45), 0 0 34px rgba(79,224,140,0.25);
}
.m-price { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); margin: 1.8rem 0 1.4rem; }
.m-price small { font-family: var(--sans); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- cart drawer ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(420px, 94vw);
  background: var(--coal);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.6rem 1.8rem;
  border-bottom: 1px solid var(--line);
}
.drawer header h3 { font-size: 1.2rem; letter-spacing: 0.14em; }
.drawer header button { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.drawer .items { flex: 1; overflow-y: auto; padding: 1.2rem 1.8rem; }
.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(245,240,230,0.07);
}
.cart-row img { width: 64px; height: 80px; object-fit: cover; }
.cart-row .cn { font-family: var(--serif); font-size: 0.98rem; }
.cart-row .cs { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 0.25rem; }
.cart-row .qty { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.cart-row .qty button {
  background: none; border: 1px solid rgba(245,240,230,0.18); color: var(--ivory);
  width: 1.5rem; height: 1.5rem; cursor: pointer; font-size: 0.8rem; line-height: 1;
}
.cart-row .cp { color: var(--gold); font-size: 0.88rem; }
.drawer footer { padding: 1.6rem 1.8rem 2rem; border-top: 1px solid var(--line); }
.drawer .total-row {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.2rem;
}
.drawer .total-row strong { color: var(--gold); font-size: 1.05rem; }
.drawer footer .btn { width: 100%; }
.empty-cart { color: var(--muted); text-align: center; padding: 3rem 0; font-size: 0.85rem; letter-spacing: 0.15em; }

/* footer */
.site-foot {
  border-top: 1px solid rgba(79,224,140,0.1);
  padding: 3.5rem 2rem 4rem;
  text-align: center;
  color: rgba(154,148,138,0.6);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 2.4;
}
.site-foot .serif { color: var(--ivory); font-size: 1rem; letter-spacing: 0.4em; margin-bottom: 0.6rem; }

/* toast */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 120;
  background: var(--coal-2);
  border: 1px solid var(--gold);
  color: var(--ivory);
  padding: 0.9rem 1.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  max-width: min(90vw, 34rem);
  text-align: center;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   GATE PALETTE — matched to the Boofy Whomps logo
   green · white · red · black
   ============================================================ */
.gate .gate-tag { color: #4fe08c; }
.gate .gate-card {
  border-color: rgba(79, 224, 140, 0.28);
  box-shadow: 0 40px 90px rgba(0,0,0,0.65), 0 0 60px rgba(79,224,140,0.05);
}
.gate .gate-tabs { border-bottom-color: rgba(255,255,255,0.12); }
.gate .gate-tabs button { color: #9aa39c; }
.gate .gate-tabs button.active { color: #4fe08c; border-bottom-color: #4fe08c; }
.gate .field label { color: #e8ece9; }
.gate .field input {
  background: rgba(5, 8, 6, 0.75);
  border-color: rgba(255,255,255,0.18);
  color: #f4f7f4;
}
.gate .field input:focus {
  border-color: #4fe08c;
  box-shadow: 0 0 0 3px rgba(79,224,140,0.14);
}
.gate .gate-msg.ok { color: #4fe08c; }
.gate .gate-msg.error { color: #ff5252; }
.gate ::selection { background: #4fe08c; color: #0a0a0b; }

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 1.5rem; }
  .story.alt { direction: ltr; }
  .modal { grid-template-columns: 1fr; overflow-y: auto; }
  .modal .m-img { max-height: 42vh; overflow: hidden; }
  .topnav a.hide-m { display: none; }
}

/* ============================================================
   SHOP 2.0 — trippy weed-shop restyle
   ============================================================ */

/* zippo cursor — closed while roaming, flips open & lights while you click */
body, a, button, .card, .imgwrap img, .topnav button {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><rect x="11" y="5" width="12" height="10" rx="2" fill="%23dde3e9" stroke="%23464b51" stroke-width="1"/><rect x="11" y="15" width="12" height="13" rx="2" fill="%23c6cdd4" stroke="%23464b51" stroke-width="1"/><rect x="13" y="7" width="2.2" height="19" rx="1" fill="%23f4f8fb" opacity=".55"/><rect x="9.6" y="12.6" width="2.4" height="4.8" rx="1" fill="%23989fa6" stroke="%23464b51" stroke-width=".6"/></svg>') 17 5, auto;
}
body.zippo-lit, body.zippo-lit a, body.zippo-lit button, body.zippo-lit .card, body.zippo-lit .imgwrap img, body.zippo-lit .topnav button {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><path d="M17 0c2.1 2.7 3.2 4.5 3.2 6.1a3.2 3.2 0 0 1-6.4 0C13.8 4.5 14.9 2.7 17 0z" fill="%23ffb02e"/><path d="M17 3c1 1.3 1.6 2.3 1.6 3.1a1.6 1.6 0 0 1-3.2 0c0-.8.6-1.8 1.6-3.1z" fill="%23ffe27a"/><rect x="13.2" y="9.6" width="7.6" height="5.4" rx="1" fill="%23aab2ba" stroke="%23464b51" stroke-width=".8"/><circle cx="15.4" cy="12.3" r=".8" fill="%236c7278"/><circle cx="18.6" cy="12.3" r=".8" fill="%236c7278"/><rect x="12" y="15" width="10" height="13" rx="2" fill="%23c6cdd4" stroke="%23464b51" stroke-width="1"/><rect x="13.6" y="16.6" width="2" height="10" rx="1" fill="%23f4f8fb" opacity=".55"/><rect x="1.5" y="12" width="9" height="7" rx="2" fill="%23dde3e9" stroke="%23464b51" stroke-width="1"/><rect x="10" y="13.6" width="2.4" height="4" rx="1" fill="%23989fa6" stroke="%23464b51" stroke-width=".6"/></svg>') 17 1, auto;
}
input, textarea { cursor: text; }

/* trippy portal background */
.trip-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.trip-bg .blob {
  position: absolute;
  width: 65vmax; height: 65vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
}
.trip-bg .b1 { background: radial-gradient(circle, #35e08c, transparent 62%); top: -22vmax; left: -18vmax; animation: blobDrift 26s ease-in-out infinite alternate; }
.trip-bg .b2 { background: radial-gradient(circle, #8a3cff, transparent 62%); bottom: -26vmax; right: -16vmax; animation: blobDrift 31s ease-in-out infinite alternate-reverse; }
.trip-bg .b3 { background: radial-gradient(circle, #ff4fa3, transparent 62%); top: 32%; left: 52%; animation: blobDrift 23s ease-in-out infinite alternate; animation-delay: -12s; }
@keyframes blobDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(9vmax, -7vmax) scale(1.25); } }

/* The spinning sun. Rays are brighter than before and the whole disc cycles
   through the spectrum, so it drifts green -> cyan -> violet -> magenta ->
   gold and back rather than sitting on one flat green. Spin and hue run on
   separate clocks (70s / 26s) so the two never sync into a visible pattern. */
.trip-bg .swirl {
  position: absolute;
  top: -10vmin; left: 50%;
  width: 130vmin; height: 130vmin;
  margin-left: -65vmin;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(79,224,140,0.16) 0deg 14deg, transparent 14deg 32deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  animation: swirlSpin 70s linear infinite, swirlHue 26s linear infinite;
}
@keyframes swirlSpin { to { transform: rotate(360deg); } }
@keyframes swirlHue {
  from { filter: blur(3px) hue-rotate(0deg)   saturate(1.7); }
  to   { filter: blur(3px) hue-rotate(360deg) saturate(1.7); }
}
@media (prefers-reduced-motion: reduce) {
  .trip-bg .swirl, .trip-bg .blob { animation: none; }
  .trip-bg .swirl { filter: blur(3px) saturate(1.7); }
}

.collection, .site-foot { position: relative; z-index: 1; }

/* header logo */
.brand-logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand-logo img { height: 54px; width: auto; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6)); }
.brand-logo .brand-mascot { height: 52px; margin-right: -0.4rem; filter: drop-shadow(0 0 10px rgba(79,224,140,0.35)); animation: mascotBob 3.4s ease-in-out infinite; }
.brand-tags { display: flex; flex-direction: column; gap: 0.2rem; }
.brand-tag { color: #8ff0b8; font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase; white-space: nowrap; }
.brand-slogan {
  color: var(--gold);
  font-size: 0.55rem; letter-spacing: 0.42em; text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(212,175,55,0.45);
  animation: sloganGlow 3.6s ease-in-out infinite;
}
@keyframes sloganGlow {
  0%, 100% { opacity: 0.68; text-shadow: 0 0 10px rgba(212,175,55,0.3); }
  50%      { opacity: 1;    text-shadow: 0 0 20px rgba(212,175,55,0.75); }
}

/* category tabs */
.cat-tabs {
  position: sticky;
  top: 72px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 2.2rem;
  row-gap: 0.2rem;
  padding: 1.05rem 1rem 0.15rem;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, rgba(10,10,11,0.94), rgba(10,10,11,0.72) 82%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cat-tabs button {
  background: none;
  border: none;
  position: relative;
  color: rgba(214,224,217,0.5);
  padding: 0.55rem 0.1rem 0.95rem;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.cat-tabs button::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8ff0b8 30%, #8ff0b8 70%, transparent);
  transition: left 0.35s ease, right 0.35s ease;
}
.cat-tabs button:hover { color: var(--ivory, #ece9df); }
.cat-tabs button.on {
  color: var(--ivory, #ece9df);
  text-shadow: 0 0 18px rgba(143,240,184,0.25);
}
.cat-tabs button.on::after { left: 0; right: 0; }

/* strain badges */
.badge {
  display: inline-block;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.34rem 0.7rem;
  border: 1px solid;
  background: rgba(8,10,8,0.75);
}
.badge.sativa { color: #ffb02e; border-color: #ffb02e; }
.badge.indica { color: #b06cff; border-color: #b06cff; }
.badge.hybrid { color: #4fe08c; border-color: #4fe08c; }
.badge.preroll { color: #ff6ea9; border-color: #ff6ea9; }
.badge.accessory { color: #6ec8ff; border-color: #6ec8ff; }
.badge.on-img { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2; }

/* more-info click-down */
.more-info {
  margin-top: 0.9rem;
  background: none;
  border: none;
  color: #8ff0b8;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.3rem 0;
}
.more-info:hover { color: #4fe08c; }
.info-panel { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.card.expanded .info-panel { max-height: 340px; }
.info-panel p { color: var(--muted); font-size: 0.82rem; line-height: 1.7; margin: 0.7rem 0 0.9rem; }
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  color: #d9ded9;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(79,224,140,0.12);
}
.info-row span { color: #7f887f; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.6rem; }

/* modal strain stats */
.strain-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 1rem; }
.strain-stats span {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: #cfe8d6;
  border: 1px solid rgba(79,224,140,0.3);
  padding: 0.4rem 0.8rem;
}

/* modal actions: mini joint + police cancel */
.m-actions { margin-top: 1.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.m-actions .light-cap { margin-top: 0; }
.joint-btn.mini { width: 240px; height: 38px; }
.joint-btn.mini .crutch { left: 3px; top: 11px; width: 27px; height: 15px; }
.joint-btn.mini .crutch-tip { left: 1px; top: 11px; width: 5px; height: 15px; }
.joint-btn.mini .paper { left: 29px; right: 34px; }
.joint-btn.mini .seam { left: 31px; right: 36px; }
.joint-btn.mini .char { right: 20px; width: 18px; }
.joint-btn.mini .ember { right: 5px; width: 20px; height: 20px; }

.police-btn {
  margin-top: 0.9rem;
  background: rgba(20,20,24,0.9);
  border: 1px solid rgba(255,255,255,0.22);
  color: #e8e8ee;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.75rem 1.7rem;
  transition: all 0.25s ease;
}
.police-btn:hover { animation: police 0.55s linear infinite; border-color: transparent; color: #fff; }
.police-btn.strobe { animation: police 0.16s linear infinite; border-color: transparent; color: #fff; }
@keyframes police {
  0%, 49%  { background: #d21f2c; box-shadow: 0 0 26px 6px rgba(255,45,60,0.9); }
  50%, 100% { background: #6e0d15; box-shadow: 0 0 12px 2px rgba(255,45,60,0.35); }
}

/* smoke puffs off the modal joint */
.mini-puff {
  position: fixed;
  z-index: 120;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,220,230,0.5), rgba(220,220,230,0) 70%);
  pointer-events: none;
  animation: puffRise 1.5s ease-out forwards;
}
@keyframes puffRise {
  from { transform: translateY(0) scale(0.6); opacity: 0.85; }
  to   { transform: translateY(-140px) scale(2.5); opacity: 0; }
}

/* trippy gradient word */
.trip-word {
  background: linear-gradient(90deg, #4fe08c, #ffb02e, #ff4fa3, #8a3cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 640px) {
  .brand-tag { display: none; }

  /* topbar: one tight row */
  .topbar { padding: 0.65rem 0.9rem; }
  .brand-logo img { height: 40px; }
  .brand-logo .brand-mascot { height: 42px; }
  .topnav { gap: 0.5rem; }
  .topnav button {
    white-space: nowrap;
    font-size: 0.62rem;
    padding: 0.55rem 0.9rem;
    letter-spacing: 0.14em;
  }

  /* hero: compact, menu right below */
  .hero { padding: 4.6rem 1rem 1.6rem; }
  .hero h1 { margin-top: 1rem; }
  .hero p.sub { font-size: 0.62rem; letter-spacing: 0.22em; }

  /* category menu: single swipeable rail */
  .cat-tabs {
    top: 56px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    column-gap: 1.5rem;
    padding: 0.7rem 1.1rem 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tabs button {
    flex: 0 0 auto;
    scroll-snap-align: center;
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    padding-bottom: 0.8rem;
  }

  .collection { padding: 0.4rem 1rem 6rem; }
  .collection-head { display: none; }
  .hero { padding-bottom: 0.8rem; }
  .card .meta { padding: 1.1rem 1.15rem 1.25rem; }
  .drawer { width: 100vw; border-left: none; }
}

/* drawer checkout — mascot + joint */
.checkout-zone {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.drawer-mascot {
  width: 62px;
  flex: 0 0 auto;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, #000 76%, transparent 96%);
  mask-image: linear-gradient(90deg, #000 76%, transparent 96%);
  filter: drop-shadow(0 4px 10px rgba(79,224,140,0.25));
  animation: mascotBob 3.4s ease-in-out infinite;
}
@keyframes mascotBob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-5px) rotate(1.5deg); }
}
.got-you {
  color: var(--gold-soft);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin: -0.25rem 0 0.7rem;
}
.checkout-joint-wrap { flex: 1; min-width: 0; }
.ready-line {
  color: var(--gold-soft);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.55rem;
}
.checkout-joint-wrap .joint-btn.mini { width: 100%; max-width: 250px; }
.checkout-joint-wrap .light-cap { margin-top: 0.5rem; }

/* ============================================================
   PER-SECTION THEMES
   Each category shifts the accent; Mushrooms goes full hippie.
   ============================================================ */
body[data-theme]{transition:background-color 1.2s ease}
.trip-bg{transition:opacity 1s ease, filter 1.2s ease}

body[data-theme="sativa"]{--gold:#ffc046;--gold-soft:#ffe09a}
body[data-theme="indica"]{--gold:#b06cff;--gold-soft:#d6b3ff}
body[data-theme="preroll"]{--gold:#ff6ea9;--gold-soft:#ffb3d1}
body[data-theme="accessory"]{--gold:#6ec8ff;--gold-soft:#b3e2ff}
body[data-theme="thc-vape"]{--gold:#2ff2d0;--gold-soft:#a6fff0}
body[data-theme="nicotine-vape"]{--gold:#9fb6c9;--gold-soft:#d6e3ec}

/* ---------- MUSHROOMS: hippie mode ---------- */
.hippie{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  animation:hippieFade 1.6s ease forwards}
@keyframes hippieFade{from{opacity:0}to{opacity:1}}

/* slow-turning rainbow kaleidoscope */
.hippie .kaleido{position:absolute;top:50%;left:50%;width:190vmax;height:190vmax;
  margin:-95vmax 0 0 -95vmax;border-radius:50%;
  background:repeating-conic-gradient(
    #ff2e88 0deg 12deg,#ff9a2e 12deg 24deg,#ffe92e 24deg 36deg,
    #43e97b 36deg 48deg,#38bdf8 48deg 60deg,#a855f7 60deg 72deg);
  opacity:.20;filter:blur(28px);
  animation:kaleidoSpin 90s linear infinite, hueCycle 22s linear infinite}
@keyframes kaleidoSpin{to{transform:rotate(360deg)}}
@keyframes hueCycle{to{filter:blur(28px) hue-rotate(360deg)}}

/* breathing sun behind it all */
.hippie .sunburst{position:absolute;top:6%;left:50%;width:70vmax;height:70vmax;
  margin-left:-35vmax;border-radius:50%;
  background:radial-gradient(circle,rgba(255,236,140,.5),rgba(255,148,60,.22) 42%,transparent 68%);
  animation:sunBreathe 9s ease-in-out infinite}
@keyframes sunBreathe{0%,100%{transform:scale(1);opacity:.75}50%{transform:scale(1.13);opacity:1}}

/* forest silhouette along the bottom */
.hippie .treeline{position:absolute;bottom:0;left:0;width:100%;height:30vh;
  color:rgba(11,32,20,.82);
  filter:drop-shadow(0 -6px 26px rgba(120,255,190,.25))}

/* the whole shop brightens in this section */
body[data-theme="mushroom"]{--gold:#ffd93d;--gold-soft:#fff3a8;--ivory:#fffdf6;--muted:#c9bfa8}
body[data-theme="mushroom"] .trip-bg{opacity:.25;filter:saturate(2.2) hue-rotate(40deg)}
body[data-theme="mushroom"] .card{
  background:linear-gradient(165deg,rgba(38,20,58,.92),rgba(14,26,22,.92));
  border-color:rgba(255,190,80,.45);
  box-shadow:0 22px 60px rgba(0,0,0,.5),0 0 34px rgba(255,120,220,.18)}
body[data-theme="mushroom"] .card:hover{
  border-color:#ffd93d;
  box-shadow:0 26px 70px rgba(0,0,0,.55),0 0 46px rgba(255,140,230,.35)}
body[data-theme="mushroom"] .cat-tabs button.on{
  background:linear-gradient(120deg,#ff2e88,#ff9a2e 35%,#ffe92e 60%,#43e97b 85%);
  color:#22102e;box-shadow:0 8px 30px rgba(255,140,60,.45);
  animation:tabShimmer 6s linear infinite;background-size:280% 100%}
@keyframes tabShimmer{to{background-position:280% 0}}
body[data-theme="mushroom"] .collection-head h2,
body[data-theme="mushroom"] .card .name{
  background:linear-gradient(92deg,#ffe92e,#ff9a2e,#ff2e88,#a855f7,#38bdf8,#43e97b);
  background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;
  animation:tabShimmer 9s linear infinite}
body[data-theme="mushroom"] .price{color:#ffd93d}

@media (prefers-reduced-motion: reduce){
  .hippie .kaleido,.hippie .sunburst,
  body[data-theme="mushroom"] .cat-tabs button.on,
  body[data-theme="mushroom"] .card .name{animation:none}
}

/* sold-out + empty states */
.sold-flag{position:absolute;top:.9rem;right:.9rem;z-index:2;background:rgba(10,10,11,.85);
  border:1px solid var(--red,#ff5252);color:#ff8a8a;font-size:.56rem;letter-spacing:.2em;
  text-transform:uppercase;padding:.34rem .7rem}
.card.is-sold .imgwrap img{filter:grayscale(.55) brightness(.75)}
.no-img{width:100%;height:100%;background:linear-gradient(135deg,#141614,#0c0e0c)}
.shop-empty{grid-column:1/-1;padding:4rem 1rem;text-align:center;color:var(--muted);
  font-size:.9rem;letter-spacing:.1em}

/* out-of-stock flavour chips */
.opts button.out{opacity:.35;text-decoration:line-through;cursor:not-allowed;border-color:rgba(245,240,230,.15);background:none}
.opts button.out:hover{border-color:rgba(245,240,230,.15);color:var(--ivory);transform:none;box-shadow:none}

/* section banner */
.cat-banner{position:relative;margin:0 0 1.5rem;overflow:hidden;border:1px solid var(--line);
  border-radius:2px;animation:bannerIn .8s ease}
@keyframes bannerIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.cat-banner img{width:100%;display:block;aspect-ratio:3/1;object-fit:cover}
.cat-banner .banner-cap{position:absolute;inset:0;display:flex;align-items:flex-end;
  padding:1.4rem 1.8rem;background:linear-gradient(90deg,rgba(6,8,6,.78),rgba(6,8,6,.15) 55%,transparent)}
.cat-banner .banner-cap span{font-family:var(--serif);font-size:clamp(1.3rem,3vw,2rem);
  letter-spacing:.12em;color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.7)}
@media (max-width:640px){.cat-banner img{aspect-ratio:2/1}}

/* Exotic Smokes — warm gold accent for the collab section */
body[data-theme="exotic-smokes"]{--gold:#e8c46a;--gold-soft:#f6e2ab}

/* flavor rotation frames — stacked, crossfading */
.card .imgwrap img.rot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.card .imgwrap img.rot.on { opacity: 1; }

/* cannabis-leaf currency sign */
.leaf-sign {
  height: 0.92em;
  width: auto;
  vertical-align: -0.08em;
  display: inline-block;
}

/* footer logo + back-room joint */
.site-foot .foot-logo {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto 0.9rem;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.55));
}
.site-foot .backroom-joint {
  display: block;
  margin: 1.6rem auto 0;
  transform: scale(0.55);
  opacity: 0.45;
  transition: opacity 0.4s, transform 0.4s;
}
.site-foot .backroom-joint:hover { opacity: 1; transform: scale(0.62) rotate(-2deg); }

/* the back room overlay */
.backroom-back {
  position: fixed; inset: 0; z-index: 80;
  background: #070608;
  display: none;
  overflow-y: auto;
  padding: 3.5rem 1.5rem;
}
.backroom-back::before {          /* the acid melt lives back here now */
  content: "";
  position: fixed; inset: 0;
  background: url("assets/footer-trip.jpg") center / cover no-repeat;
  animation: meltHue 16s linear infinite alternate;
  pointer-events: none;
}
.backroom-back::after {           /* dark veil so the cards stay readable */
  content: "";
  position: fixed; inset: 0;
  background: rgba(5,4,6,0.78);
  pointer-events: none;
}
.backroom-back > .backroom { position: relative; z-index: 2; }
.backroom-back.open { display: block; }
.backroom { max-width: 1100px; margin: 0 auto; position: relative; }
.backroom > .m-close { position: absolute; top: -1.6rem; right: 0; }
.backroom h2 {
  text-align: center;
  color: var(--ivory);
  font-size: 2rem;
  letter-spacing: 0.35em;
  text-shadow: 0 0 26px rgba(216,80,60,0.35);
}
.backroom .br-sub {
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin: 0.7rem 0 2.4rem;
}
.backroom .grid { margin-top: 0; }

/* ============ the club footer ============ */
.club-foot {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 3.5rem;
  background: radial-gradient(120% 90% at 50% 110%, #17091b 0%, #0b0710 45%, #070608 100%);
}
.club-foot .foot-logo { display: none; }

/* neon sign */
.club-sign {
  font-size: 2rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #ffe9f6;
  text-shadow:
    0 0 6px rgba(255,110,220,0.9),
    0 0 18px rgba(255,60,200,0.7),
    0 0 42px rgba(255,40,190,0.45),
    0 0 80px rgba(255,40,190,0.3);
  animation: neonFlicker 7s infinite;
}
@keyframes neonFlicker {
  0%, 41%, 45%, 100% { opacity: 1; }
  42%, 44% { opacity: 0.62; }
  43% { opacity: 0.85; }
}
.club-sub {
  margin-top: 0.8rem;
  color: rgba(214,224,217,0.45);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* the door */
.club-door {
  position: relative;
  display: block;
  width: 132px;
  height: 176px;
  margin: 2.6rem auto 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.club-door .door-frame {
  position: absolute; inset: 0;
  border: 2px solid #3a2b1c;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: #120d14;
  box-shadow: 0 0 0 4px #0a0709, 0 18px 50px rgba(0,0,0,0.7);
  overflow: hidden;
}
.club-door .door-half {
  position: absolute; top: 4px; bottom: 0; width: calc(50% - 5px);
  background: linear-gradient(175deg, #241627 0%, #180f1c 60%, #120a15 100%);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.7s cubic-bezier(.6,0,.3,1);
  z-index: 2;
}
.club-door .door-half.left  { left: 5px;  border-radius: 7px 0 0 0; }
.club-door .door-half.right { right: 5px; border-radius: 0 7px 0 0; }
.club-door .door-half::after {           /* handle */
  content: "";
  position: absolute; top: 52%; width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a8, #8a6b2f);
}
.club-door .door-half.left::after  { right: 9px; }
.club-door .door-half.right::after { left: 9px; }
.club-door .door-crack {
  position: absolute; top: 6px; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, #ffdf9e, #ff9d5c);
  filter: blur(1px);
  opacity: 0.55;
  transition: opacity 0.4s, width 0.4s;
  z-index: 1;
}
.club-door .door-spill {
  position: absolute; left: 50%; bottom: -12px;
  width: 190px; height: 46px;
  transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 0%, rgba(255,190,110,0.35), transparent 70%);
  opacity: 0.45;
  transition: opacity 0.5s;
  pointer-events: none;
}
.club-door:hover .door-crack { opacity: 1; width: 4px; }
.club-door:hover .door-spill { opacity: 0.85; }
.club-door.lit .door-half.left  { transform: translateX(-108%); }
.club-door.lit .door-half.right { transform: translateX(108%); }
.club-door.lit .door-crack { width: 100%; left: 0; margin: 0; opacity: 0.9; filter: blur(6px); }
.club-door.lit .door-spill { opacity: 1; }

/* velvet rope */
.club-door .stanchion {
  position: absolute; bottom: -4px; width: 7px; height: 46px;
  background: linear-gradient(180deg, #d8b45e, #7d5f26);
  border-radius: 4px 4px 2px 2px;
  z-index: 3;
}
.club-door .stanchion::before {
  content: ""; position: absolute; top: -6px; left: -2.5px;
  width: 12px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #8a6b2f);
}
.club-door .s-l { left: -34px; }
.club-door .s-r { right: -34px; }
.club-door .rope {
  position: absolute; bottom: 26px; left: -30px; right: -30px; height: 26px;
  border-bottom: 5px solid #8e1f2f;
  border-radius: 0 0 55% 55%;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.6));
  z-index: 3;
}

.club-cap {
  margin-top: 1.6rem;
  color: rgba(214,224,217,0.28);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* lasers */
.club-foot .lasers { position: absolute; inset: 0; pointer-events: none; }
.club-foot .lasers i {
  position: absolute; bottom: 8px; height: 2px; width: 130%;
  opacity: 0.4;
  filter: drop-shadow(0 0 6px currentColor);
}
.club-foot .lasers i::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, currentColor 30%, currentColor 70%, transparent);
}
.club-foot .lasers i:nth-child(odd)  { left: -15%;  transform-origin: 0% 50%;  animation: laserL 5.2s ease-in-out infinite alternate; }
.club-foot .lasers i:nth-child(even) { right: -15%; transform-origin: 100% 50%; animation: laserR 6.1s ease-in-out infinite alternate; }
.club-foot .lasers i:nth-child(1) { color: #4fe08c; animation-duration: 5.2s; }
.club-foot .lasers i:nth-child(2) { color: #ff3fae; animation-duration: 6.3s; }
.club-foot .lasers i:nth-child(3) { color: #3fd2ff; animation-duration: 7.1s; animation-delay: -2s; }
.club-foot .lasers i:nth-child(4) { color: #b45cff; animation-duration: 5.7s; animation-delay: -3s; }
.club-foot .lasers i:nth-child(5) { color: #ffd93d; animation-duration: 8.2s; animation-delay: -1.2s; }
.club-foot .lasers i:nth-child(6) { color: #ff5c5c; animation-duration: 6.8s; animation-delay: -4s; }
@keyframes laserL { from { transform: rotate(-24deg); } to { transform: rotate(-3deg); } }
@keyframes laserR { from { transform: rotate(24deg); }  to { transform: rotate(3deg); } }

/* haze so the beams have something to cut through */
.club-foot .haze {
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: radial-gradient(80% 100% at 50% 100%, rgba(160,80,200,0.12), transparent 70%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .club-foot .lasers i, .club-sign { animation: none; }
}

/* ============ trippy melt footer ============ */
.trip-foot {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 3.5rem;
  background: #070608;
}
.trip-foot .trip-melt {
  position: absolute;
  left: 0; right: 0; bottom: -2%;
  height: 62%;
  background: url("assets/footer-trip.jpg") center bottom / cover no-repeat;
  animation: meltHue 16s linear infinite alternate;
  pointer-events: none;
}
.trip-foot .trip-melt::before {         /* keep the seam soft where art meets page */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #070608 0%, transparent 34%);
}
@keyframes meltHue {
  from { filter: hue-rotate(0deg) saturate(1); }
  to   { filter: hue-rotate(70deg) saturate(1.25); }
}

.trip-foot .shroom-btn {
  position: relative;
  z-index: 2;
  display: block;
  margin: 2.4rem auto 0;
  background: none;
  border: none;
  cursor: pointer;
  animation: shroomBob 3.6s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.trip-foot .shroom-btn img { width: 128px; height: auto; display: block; }
.trip-foot .shroom-btn:hover {
  transform: scale(1.12) rotate(-3deg);
  filter: drop-shadow(0 0 22px rgba(255,80,200,0.55)) drop-shadow(0 0 34px rgba(80,255,160,0.35));
}
.trip-foot .shroom-btn.lit { animation: shroomPop 0.5s ease; }
@keyframes shroomBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@keyframes shroomPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.trip-foot .club-sign, .trip-foot .club-sub, .trip-foot .club-cap { position: relative; z-index: 2; }
.trip-foot .club-cap { margin-top: 1.2rem; margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .trip-foot .trip-melt, .trip-foot .shroom-btn { animation: none; }
}

/* ============ minimal footer: big logo, hidden mushroom ============ */
.trip-foot {
  padding: 4rem 1.5rem 4.5rem;
}
.trip-foot .foot-logo-big {
  display: block;
  margin: 0 auto;
  width: min(340px, 72vw);
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.6));
}
.trip-foot .shroom-btn.subtle {
  position: absolute;
  right: clamp(1.2rem, 7vw, 4rem);
  bottom: clamp(1.2rem, 5vw, 2.4rem);
  margin: 0;
  animation: none;
  opacity: 0.22;
  filter: saturate(0.55);
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}
.trip-foot .shroom-btn.subtle img { width: clamp(34px, 6vw, 48px); }
.trip-foot .shroom-btn.subtle:hover,
.trip-foot .shroom-btn.subtle:focus-visible {
  opacity: 1;
  filter: saturate(1.2)
          drop-shadow(0 0 14px rgba(255,80,200,0.6))
          drop-shadow(0 0 24px rgba(80,255,160,0.4));
  transform: scale(1.15);
}

/* back room: let the melt burn bright neon */
.backroom-back::before {
  animation: meltHueBright 14s linear infinite alternate;
}
.backroom-back::after {
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(5,4,6,0.72) 35%, rgba(5,4,6,0.3) 100%);
}
@keyframes meltHueBright {
  from { filter: hue-rotate(0deg) saturate(1.6) brightness(1.2); }
  to   { filter: hue-rotate(90deg) saturate(1.9) brightness(1.35); }
}
.backroom h2 {
  text-shadow:
    0 0 10px rgba(255,110,220,0.9),
    0 0 30px rgba(120,255,190,0.5),
    0 2px 20px rgba(0,0,0,0.8);
}

/* mobile */
@media (max-width: 640px) {
  .trip-foot { padding: 3rem 1rem 4.5rem; }
  .trip-foot .foot-logo-big { width: min(260px, 78vw); }
  .backroom { padding-top: 0.5rem; }
  .backroom h2 { font-size: 1.4rem; letter-spacing: 0.22em; }
}

/* ============ mario set footer ============ */
.mario-foot {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.5rem 0;
  background: linear-gradient(180deg, #070608 0%, #0a0d0b 70%, #0c100e 100%);
}
.mario-foot .foot-logo-big {
  display: block;
  margin: 0 auto;
  width: min(320px, 66vw);
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.6));
}

.mario-set {
  position: relative;
  height: 250px;
  margin-top: 0;
}

/* the ground: two courses of muted pixel bricks */
.mario-set .ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  --b1: #1a2420; --b2: #121a17; --mortar: #0a0f0d;
  background:
    linear-gradient(90deg, var(--mortar) 2px, transparent 2px) 0 0 / 44px 22px,
    linear-gradient(90deg, var(--mortar) 2px, transparent 2px) 22px 22px / 44px 22px,
    linear-gradient(180deg, var(--mortar) 2px, transparent 2px) 0 0 / 44px 22px,
    linear-gradient(180deg, var(--b1), var(--b2));
  border-top: 2px solid #243129;
  box-shadow: 0 -10px 40px rgba(79,224,140,0.06);
}

/* the ? block */
.mario-set .q-block {
  position: absolute; left: 50%; bottom: 96px;
  width: 52px; height: 52px; margin-left: -26px;
  background: linear-gradient(180deg, #b4933f, #7e6527);
  border: 3px solid #3c2e10;
  box-shadow:
    inset 3px 3px 0 rgba(255,230,160,0.35),
    inset -3px -3px 0 rgba(0,0,0,0.35),
    0 0 0 2px #0b0a07,
    0 10px 26px rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  font-family: "Courier New", monospace;
  font-weight: 900;
  font-size: 28px;
  color: #f6e7b8;
  text-shadow: 2px 2px 0 #3c2e10;
  animation: blockPulse 3s ease-in-out infinite;
}
.mario-set .q-block::before, .mario-set .q-block::after {   /* rivet dots */
  content: ""; position: absolute; width: 4px; height: 4px; background: #3c2e10;
}
.mario-set .q-block::before { top: 4px; left: 4px; box-shadow: 38px 0 0 #3c2e10; }
.mario-set .q-block::after  { bottom: 4px; left: 4px; box-shadow: 38px 0 0 #3c2e10; }
.mario-set .q-shadow {
  position: absolute; left: 50%; bottom: 46px;
  width: 60px; height: 8px; margin-left: -30px;
  background: radial-gradient(closest-side, rgba(0,0,0,0.55), transparent);
}
@keyframes blockPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

/* the ? block is the button */
.mario-set .q-block { cursor: pointer; padding: 0; font-family: "Courier New", monospace; }
.mario-set .q-block:hover { filter: brightness(1.3); }
.mario-set .q-block.bump { animation: blockBump 0.35s ease; }
@keyframes blockBump {
  0%, 100% { translate: 0 0; }
  40% { translate: 0 -14px; }
}

/* the mushroom: hidden inside the block until the block is hit */
.mario-set .shroom-btn.power-up {
  position: absolute; left: 50%; bottom: 100px;
  width: 64px; margin-left: -32px;
  background: none; border: none; padding: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.6));
  transition: translate 0.7s cubic-bezier(.2,.9,.3,1.2), opacity 0.2s ease, filter 0.4s ease, scale 0.4s ease;
}
.mario-set .q-block, .mario-set .warp-door { z-index: 1; }
.mario-set.pop .shroom-btn.power-up { opacity: 1; translate: 0 -70px; }
.mario-set.lit .shroom-btn.power-up {
  scale: 1.18;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.6))
          drop-shadow(0 0 18px rgba(255,80,200,0.9))
          drop-shadow(0 0 34px rgba(80,255,160,0.7));
  animation: shroomFlash 0.5s ease 2;
}
@keyframes shroomFlash {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(255,80,200,0.6)) drop-shadow(0 0 20px rgba(80,255,160,0.4)); }
  50%      { filter: drop-shadow(0 0 26px rgba(255,255,255,0.95)) drop-shadow(0 0 44px rgba(255,80,200,1)); }
}
.mario-set.walk .shroom-btn.power-up {
  z-index: 2;
  translate: 150px 18px;
  transition: translate 1s ease-in-out, opacity 0.25s ease, scale 0.4s ease;
  animation: shroomWaddle 0.3s ease-in-out infinite;
}
.mario-set.gone .shroom-btn.power-up { opacity: 0; scale: 0.6; translate: 150px 20px; }
@keyframes shroomWaddle {
  0%, 100% { rotate: -6deg; }
  50% { rotate: 6deg; }
}

/* the warp door, a few blocks to the right on the ground */
.mario-set .warp-door {
  position: absolute; left: 50%; bottom: 46px;
  width: 56px; height: 92px; margin-left: 122px;
  background: linear-gradient(180deg, #2b3a30, #16201b);
  border: 3px solid #0b0a07;
  border-radius: 28px 28px 4px 4px;
  box-shadow: inset 0 0 0 3px #3d5244, 0 10px 26px rgba(0,0,0,0.6);
  overflow: hidden;
}
.mario-set .warp-door i {                       /* the door itself, swings open */
  position: absolute; inset: 3px;
  background: linear-gradient(180deg, #8a6a2e, #5a4418);
  border-radius: 24px 24px 2px 2px;
  box-shadow: inset 0 0 0 2px #3c2e10;
  transform-origin: left center;
  transition: transform 0.45s ease;
}
.mario-set .warp-door i::after {                /* knob */
  content: ""; position: absolute; right: 8px; top: 50%; width: 6px; height: 6px;
  border-radius: 50%; background: #f6e7b8; box-shadow: 0 0 6px #ffd93d;
}
.mario-set.door-open .warp-door i { transform: perspective(200px) rotateY(-105deg); }
.mario-set.door-open .warp-door {
  box-shadow: inset 0 0 0 3px #3d5244, 0 10px 26px rgba(0,0,0,0.6),
              0 0 28px rgba(255,80,200,0.55), inset 0 0 30px rgba(255,80,200,0.5);
}
.mario-set .shroom-btn.power-up img { width: 100%; height: auto; display: block; }
.mario-set .shroom-btn.power-up:hover {
  transform: none;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.6))
          drop-shadow(0 0 18px rgba(255,80,200,0.6))
          drop-shadow(0 0 30px rgba(80,255,160,0.4));
}
.mario-set .shroom-btn.power-up.lit { animation: shroomPop 0.5s ease; }
@keyframes powerUp {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@media (max-width: 640px) {
  .mario-foot { padding-top: 3rem; }
  .mario-set { height: 210px; }
  .mario-set .q-block { bottom: 84px; width: 44px; height: 44px; margin-left: -22px; font-size: 24px; }
  .mario-set .q-block::before { box-shadow: 32px 0 0 #3c2e10; }
  .mario-set .q-block::after  { box-shadow: 32px 0 0 #3c2e10; }
  .mario-set .shroom-btn.power-up { bottom: 88px; width: 54px; margin-left: -27px; }
  .mario-set .warp-door { margin-left: 84px; width: 46px; height: 76px; }
  .mario-set.walk .shroom-btn.power-up, .mario-set.gone .shroom-btn.power-up { translate: 106px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mario-set .shroom-btn.power-up, .mario-set .q-block { animation: none; }
}

/* modal photo crossfades when a flavor is picked */
#mImg { transition: opacity 0.16s ease, transform 0.16s ease; }
#mImg.swap { opacity: 0; transform: scale(0.97); }


/* ============================================================
   THE MISSION — brand statement, mid-scroll
   ============================================================ */
.mission {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 3.4rem;
  text-align: center;
  position: relative;
}
.mission::before,
.mission::after {
  content: "";
  display: block;
  width: 60px; height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6), transparent);
}
.mission::before { margin-bottom: 1.8rem; }
.mission::after  { margin-top: 2rem; }
.mission h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: 0.12em;
  color: var(--ivory);
  margin: 0.6rem 0 1.3rem;
}
.mission p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}
.mission .mission-sign {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-top: 1.4rem;
}
@media (max-width: 640px) {
  .mission { padding: 2.4rem 1.2rem 2.6rem; }
  .mission p { font-size: 0.88rem; }
}

/* ============================================================
   ORDER CONFIRMATION — last look before it hits Boofy's phone
   ============================================================ */
.confirm-back {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 1.2rem;
  background: rgba(6,6,7,0.82);
  backdrop-filter: blur(6px);
}
.confirm-back.open { display: flex; }
.confirm-box {
  width: min(30rem, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--coal-2);
  border: 1px solid rgba(212,175,55,0.4);
  box-shadow: 0 24px 70px rgba(0,0,0,0.7), 0 0 40px rgba(79,224,140,0.08);
  padding: 1.8rem 1.6rem 1.5rem;
  text-align: center;
  animation: confirmIn 0.28s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes confirmIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.confirm-box h3 {
  color: var(--ivory);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
}
.confirm-sub {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.3rem;
}
.confirm-lines {
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.8rem 0;
}
.confirm-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.4rem 0;
  font-size: 0.84rem;
}
.confirm-row .cl-qty { color: var(--gold); }
.confirm-row .cl-name { color: var(--ivory); }
.confirm-row .cl-name em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  margin-top: 0.12rem;
}
.confirm-row .cl-price { color: #8ff0b8; white-space: nowrap; }
.confirm-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 0 0.2rem;
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted);
}
.confirm-total strong { color: var(--ivory); font-size: 1.15rem; letter-spacing: 0; }
.confirm-who {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 0.5rem 0 1.4rem;
}
.confirm-who .cw-note { color: rgba(154,148,138,0.7); font-style: italic; margin-top: 0.2rem; }
.confirm-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.confirm-yes {
  background: rgba(79,224,140,0.12);
  border: 1px solid rgba(79,224,140,0.6);
  color: #f4fff8;
  text-shadow: 0 0 10px rgba(79,224,140,0.4);
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.confirm-yes:hover {
  background: rgba(79,224,140,0.2);
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(79,224,140,0.25);
}
.confirm-no {
  background: none;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--muted);
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.confirm-no:hover { color: var(--ivory); border-color: rgba(255,255,255,0.3); }
@media (prefers-reduced-motion: reduce) { .confirm-box { animation: none; } }

/* checkout details sheet — shares .confirm-back / .confirm-box */
.co-form { margin-top: 1.1rem; text-align: left; }
.co-field { display: block; margin-bottom: 0.85rem; }
.co-field > span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.co-field > span em {
  font-style: normal;
  color: rgba(154,148,138,0.6);
  letter-spacing: 0.1em;
}
.co-field input,
.co-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--ivory);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.co-field textarea { resize: vertical; min-height: 2.6rem; }
.co-field input:focus,
.co-field textarea:focus {
  outline: none;
  border-color: rgba(79,224,140,0.65);
  box-shadow: 0 0 0 3px rgba(79,224,140,0.12);
}
.co-err {
  color: #ff8f7a;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  min-height: 1.1rem;
  margin: 0 0 0.5rem;
}

/* ---------- admin return button ----------
   Injected by shop.js only when the signed-in session is an admin. Bottom-left:
   the toast owns bottom-centre, the cart drawer owns the right edge. */
.admin-return{
  position: fixed;
  left: 1rem; bottom: 1.1rem;
  z-index: 80;
  display: flex; align-items: center; gap: .55rem;
  padding: .72rem 1.1rem;
  border-radius: 999px;
  background: rgba(10,12,11,0.88);
  border: 1px solid rgba(79,224,140,0.55);
  color: #eafff2;
  font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 22px rgba(79,224,140,0.22), 0 6px 20px rgba(0,0,0,0.45);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.admin-return:hover{
  transform: translateY(-2px);
  border-color: rgba(79,224,140,0.95);
  box-shadow: 0 0 34px rgba(79,224,140,0.42), 0 10px 26px rgba(0,0,0,0.5);
}
.admin-return:active{ transform: translateY(0) scale(.98); }
.admin-return .ar-dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: #4fe08c;
  box-shadow: 0 0 8px rgba(79,224,140,0.9);
  animation: arPulse 2.4s ease-in-out infinite;
}
@keyframes arPulse{
  0%,100%{ opacity: .55; transform: scale(.85); }
  50%    { opacity: 1;   transform: scale(1.15); }
}
@media (max-width: 640px){
  .admin-return{ left: .7rem; bottom: .8rem; padding: .62rem .9rem; font-size: .55rem; }
}
@media (prefers-reduced-motion: reduce){
  .admin-return{ transition: none; }
  .admin-return .ar-dot{ animation: none; }
}

/* ============================================================
   CATEGORY TABS — swipeable on a phone, and they light up on tap
   ============================================================ */

/* Flower — Indica and Hybrid merged into one section (2026-08-29).
   Keeps the green Hybrid wore; the old slugs stay defined so any cached page
   or archived product still renders its badge instead of an unstyled box. */
.badge.flower { color: #4fe08c; border-color: #4fe08c; }
body[data-theme="flower"]{--gold:#4fe08c;--gold-soft:#8ff0b8}

/* the browser's grey tap box would fight the glow below */
.cat-tabs button { -webkit-tap-highlight-color: transparent; }

/* Hover only where a pointer can actually hover. On a touchscreen :hover
   sticks to whatever you tapped last, so a stale tab stayed lit. */
@media (hover: hover) and (pointer: fine) {
  .cat-tabs button:hover { color: var(--ivory, #ece9df); }
}

/* pressed, on any device */
.cat-tabs button:active { color: var(--ivory, #ece9df); }

/* the tap flash — a real light-up, since a phone has no hover to give you one.
   JS adds .tap for the length of this animation. */
.cat-tabs button.tap {
  color: var(--ivory, #ece9df);
  animation: tabFlash 0.5s ease-out;
}
.cat-tabs button.tap::after { left: 0; right: 0; }
@keyframes tabFlash {
  0%   { text-shadow: 0 0 26px rgba(143,240,184,0.95), 0 0 6px rgba(143,240,184,0.8); }
  100% { text-shadow: 0 0 18px rgba(143,240,184,0.25); }
}

/* On a phone the strip scrolls sideways instead of stacking into rows —
   grab it and spin through the menu. */
@media (max-width: 900px) {
  .cat-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;          /* don't drag the page with it */
    -webkit-overflow-scrolling: touch;       /* momentum on iOS */
    scroll-snap-type: x proximity;
    scrollbar-width: none;                   /* Firefox */
    column-gap: 1.75rem;
    padding: 1.05rem 1.1rem 0.15rem;
    /* fade the ends so it reads as "there is more over there" */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  }
  .cat-tabs::-webkit-scrollbar { display: none; }   /* Safari / Chrome */
  .cat-tabs button {
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding-bottom: 1.05rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cat-tabs { scroll-behavior: auto; }
  .cat-tabs button.tap { animation: none; }
}

/* ============================================================
   HERO SUBTITLE IN GOLD
   "Top Shelf Smokes · Private Wholesale · Members Only" — the one line that
   says what this place is, so it gets the metal treatment. Note --gold in this
   sheet is actually the neon green; this is real gold, deliberately hard-coded.
   ============================================================ */
.hero p.sub-pop b { color: #c9a227; opacity: 0.6; }
.hero p.sub-pop span {
  color: #e3c15a;                       /* stands alone if background-clip fails */
  background: linear-gradient(96deg,
    #8a6a1f 0%, #e9cf76 26%, #fff6d6 46%, #e9cf76 64%, #a37f26 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.30));
  animation:
    popIn 0.75s cubic-bezier(0.2, 1.4, 0.35, 1) forwards,
    goldSheen 6.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.22s), calc(1.1s + var(--i) * 0.9s);
}
/* the shine travels across the words instead of a flat colour flash */
@keyframes goldSheen {
  0%, 100% { background-position: 118% 0; }
  50%      { background-position: -18% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero p.sub-pop span {
    opacity: 1;
    animation: none;
    background-position: 50% 0;
  }
}

/* ============================================================
   GOLD PASS 2 + the headline that has to carry the page
   ============================================================ */

/* "The Best Loud" in the header — real gold, keeping its slow pulse.
   Solid colour rather than a clipped gradient here, because sloganGlow
   animates text-shadow and a transparent fill would double the glow. */
.brand-slogan {
  color: #e3c15a;
  text-shadow: 0 0 14px rgba(212,175,55,0.5);
}

/* the sign-off at the foot of the Mission — "Stay blessed & safe. — Boofy" */
.mission .mission-sign {
  color: #e3c15a;
  background: linear-gradient(96deg,
    #9a7726 0%, #e9cf76 30%, #fff6d6 50%, #e9cf76 70%, #a37f26 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 9px rgba(212,175,55,0.28));
  font-size: 1rem;
}

/* "Quality over quantity." — the line the whole shop is built on.
   Cool neon green against the gold below it: opposite temperature, same
   family as the leaf and the ember, so it reads as the loudest thing in the
   hero without fighting the metal. */
.hero h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.7rem);
  letter-spacing: 0.2em;
  color: #8ff0b8;
  background: linear-gradient(180deg, #eafff2 0%, #8ff0b8 52%, #35c97a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(79,224,140,0.45))
          drop-shadow(0 2px 10px rgba(0,0,0,0.55));
  animation: qGlow 5s ease-in-out infinite;
}
@keyframes qGlow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(79,224,140,0.35))
                     drop-shadow(0 2px 10px rgba(0,0,0,0.55)); }
  50%      { filter: drop-shadow(0 0 26px rgba(79,224,140,0.70))
                     drop-shadow(0 2px 10px rgba(0,0,0,0.55)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; }
}

/* the add-on deal, called out in the cart */
.cart-deal {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0.2rem 0.2rem;
  border-top: 1px dashed rgba(212,175,55,0.35);
  margin-top: 0.5rem;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #e3c15a;
}
.cart-deal b { font-weight: 600; white-space: nowrap; }

/* live stock, for products where the count is the selling point.
   Reads products.quantity, which log_order() now decrements on every order —
   so it can't go stale the way a number typed into a description does. */
.stock-flag {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
  padding: 0.32rem 0.62rem;
  font-size: 0.52rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #04140b;
  background: linear-gradient(140deg, #f6e2ab, #d4af37);
  box-shadow: 0 3px 12px rgba(212,175,55,0.35);
  border-radius: 4px;
}

/* checkout line: minus button, flavour leads, product underneath */
.confirm-row .cl-minus {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  margin-right: .1rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);
  color: var(--ivory, #ece9df);
  font-size: 1rem; line-height: 1;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.confirm-row .cl-minus:hover {
  border-color: #ff6b5e; color: #ff9b91; background: rgba(255,107,94,0.12);
}
.confirm-row .cl-minus:active { transform: scale(.9); }
.confirm-row .cl-qty { font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-hint {
  display: block;
  margin-top: .35rem;
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: none;
}

/* ============================================================
   CHECKOUT SHEETS — white frame, joint to send, red way out
   ============================================================ */

/* the frame was gold; bright white reads cleaner against the black */
.confirm-box { border-color: rgba(255,255,255,0.85); }

/* the brand, at the moment of sending */
.confirm-logo {
  display: block;
  width: min(190px, 56%);
  margin: 0 auto 0.9rem;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6));
}

/* step controls: − 30× + */
.confirm-row.editable { grid-template-columns: auto 1fr auto; }
.cl-step { display: flex; align-items: center; gap: 0.4rem; }
.cl-step-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);
  color: var(--ivory, #ece9df);
  font-size: 0.95rem; line-height: 1;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.cl-step-btn:active { transform: scale(.88); }
.cl-plus:hover  { border-color: #4fe08c; color: #b8ffd5; background: rgba(79,224,140,0.14); }
.cl-minus:hover { border-color: #ff6b5e; color: #ff9b91; background: rgba(255,107,94,0.12); }

/* the send joint */
.send-joint-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.send-joint-wrap .joint-btn.mini { width: 100%; max-width: 250px; }
.send-joint-wrap .light-cap {
  margin: 0;
  font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
  min-height: 0.9rem;
}

/* the way out is red — it cancels a real order */
.confirm-no.danger {
  border-color: rgba(255,107,94,0.45);
  color: #ff9b91;
}
.confirm-no.danger:hover {
  color: #fff;
  border-color: #ff6b5e;
  background: rgba(255,107,94,0.12);
}

/* after the joint is lit: the sheet goes quiet and thanks them */
.confirm-back.sent .confirm-lines,
.confirm-back.sent .confirm-total,
.confirm-back.sent .confirm-who,
.confirm-back.sent .confirm-no { opacity: 0.25; pointer-events: none; transition: opacity .35s ease; }
.confirm-back.sent .confirm-logo { animation: thanksPulse 1.1s ease-out; }
.confirm-back.sent #confirmTitle { color: #8ff0b8; text-shadow: 0 0 22px rgba(79,224,140,0.5); }
@keyframes thanksPulse {
  0%   { transform: scale(1);    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6)); }
  40%  { transform: scale(1.06); filter: drop-shadow(0 0 26px rgba(79,224,140,0.55)); }
  100% { transform: scale(1);    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6)); }
}
@media (prefers-reduced-motion: reduce) {
  .confirm-back.sent .confirm-logo { animation: none; }
}

/* "Thank you" drifting up inside the smoke after the joint is lit */
.thanks-plume {
  position: absolute;
  left: 0; right: 0;
  top: 42%;
  display: flex; justify-content: center;
  pointer-events: none;
  z-index: 3;
}
.thanks-plume span {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  letter-spacing: 0.06em;
  color: #eafff2;
  text-shadow: 0 0 26px rgba(79,224,140,0.75), 0 0 60px rgba(255,255,255,0.35);
  animation: thanksRise 4.5s ease-out forwards;
}
@keyframes thanksRise {
  0%   { opacity: 0; transform: translateY(28px) scale(0.94); filter: blur(6px); }
  18%  { opacity: 1; transform: translateY(6px)  scale(1);    filter: blur(0); }
  70%  { opacity: 1; transform: translateY(-26px); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-72px) scale(1.05); filter: blur(3px); }
}
/* the box has to be a positioning context for the plume */
.confirm-box { position: relative; }

/* the smoke should keep rising for the whole gesture, not pop and vanish */
.confirm-back.sent .mini-puff { animation-duration: 2.6s; }

@media (prefers-reduced-motion: reduce) {
  .thanks-plume span { animation: none; opacity: 1; }
}

/* ---- Mission: the words that carry the pitch go gold ----
   The eyebrow and the "Everyone wins." headline keep their own colours; it is
   the body copy, from "Everyone wins, or it isn't worth doing" down to
   "I'm always open ears", that turns gold. */
.mission p:not(.mission-sign) {
  color: #e3c15a;
  background: linear-gradient(96deg,
    #b08c2c 0%, #e9cf76 30%, #fff6d6 50%, #e9cf76 70%, #b08c2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.22));
}

/* The logo art is rendered on its own near-black ground. On the page and the
   topbar that is invisible, but the send sheet is #1c1c1f — light enough that a
   hard rectangle would show. Feather the edges so it dissolves instead.
   (The admin sidebar already does this with the same trick.) */
.confirm-logo {
  -webkit-mask-image: radial-gradient(ellipse 78% 74% at center, #000 55%, transparent 92%);
  mask-image: radial-gradient(ellipse 78% 74% at center, #000 55%, transparent 92%);
}

/* ---- LOGIN IS STATIC, ON EVERY DEVICE ----
   It was motion-free on phones and animated on desktop, which meant the owner
   could not review one and trust the other. Now both are identical: nothing on
   the login moves until you light the joint. Scoped to `.gate` so the shop's
   own joints keep their ember. */
.gate-logo img { animation: none; }            /* logoFloat */
.gate .joint-btn .ember { animation: none; }   /* emberPulse */
#dust { display: none; }
