/* Candy From Area 51 — website design system (docs/ARCHITECTURE.md §4). Mobile first. */

/* ============ tokens ============ */
:root {
  --void: #000; --s1: #0c0c0a; --s2: #121212; --s3: #181818; --s4: #1f1f1f; --s5: #272727; --s6: #313131;
  --text: #F4FFE9; --muted: #A9B79D; --line: #ffffff1f; --line-2: #ffffff33; --field: #5A5A5A;
  --slime: #7CFF2B; --slime-2: #39E600; --slime-deep: #0B2A00; --yellow: #FFE600; --tongue: #FF6FA5;
  --orange: #FF7A00; --blue: #1E9BFF; --cherry: #FF1E3C; --melon: #FF2E9A; --grape: #8A2BE2;
  --grape-ink: #B98CFF; --cherry-ink: #FF5A6E; --blue-ink: #4FB4FF; --danger: #FF7A8A;
  --display: 'Bungee', 'Poppins', system-ui, sans-serif;
  --body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-in: cubic-bezier(.55, 0, 1, .45); --ease-inout: cubic-bezier(.65, 0, .35, 1); --ease-sine: cubic-bezier(.37, 0, .63, 1);
  --d-press: 60ms; --d-hover: .25s; --d-state: .45s; --d-enter: .65s;
  --r-field: 12px; --r-card: 20px; --wrap: 1200px; --gutter: 20px;
  --hdr-h: 64px; --sec: 64px;
  color-scheme: dark; accent-color: var(--slime);
}
@media (min-width: 900px) { :root { --gutter: 32px; --hdr-h: 72px; --sec: 96px; } }

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--void); color: var(--text); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
html.locked { overflow: hidden; }
body { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); } /* landscape notch */
main { flex: 1; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 600; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--slime); color: #000; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.on-light :focus-visible, .btn:focus-visible { outline-color: var(--yellow); }
.on-light .btn:focus-visible, .btn.yellow:focus-visible { outline-color: #000; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 999; background: var(--yellow); color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: var(--ease-out); }

/* ============ type ============ */
.display { font: 400 clamp(40px, 9vw, 72px)/1.02 var(--display); letter-spacing: .005em; }
.h1 { font-size: clamp(32px, 6.4vw, 56px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; }
.h2 { font-size: clamp(26px, 4.6vw, 40px); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
.h3 { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -.015em; font-weight: 600; }
.h4 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--muted); }
.small { font-size: 14px; line-height: 1.45; }
.caption { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.yellow { color: var(--yellow); }
.slime { color: var(--slime); }
.measure { max-width: 68ch; }
.logo-type { font-family: var(--display); color: var(--yellow); line-height: .88; -webkit-text-stroke: .08em #000; paint-order: stroke fill; text-shadow: 0 .06em 0 #000, 0 .1em 0 var(--slime-deep); }
.wordmark { display: inline-flex; flex-direction: column; font-size: var(--wm, 48px); }
.wordmark span { display: block; }
.wordmark .a51 { font-size: 1.25em; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: 22px; line-height: 1.3; }
.prose h3 { margin-top: 1.6em; font-size: 18px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--slime); text-decoration: underline; text-underline-offset: 3px; }
/* placeholder content that must be confirmed before launch */
.tbc { display: inline; background: repeating-linear-gradient(-45deg, #ffe60014 0 8px, transparent 8px 16px); outline: 1px dashed #ffe60088; outline-offset: 2px; border-radius: 4px; color: #fff3a0; font-family: var(--mono); font-size: .92em; }

/* ============ layout ============ */
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap.narrow { --wrap: 760px; }
.sec { padding-block: var(--sec); }
.sec.tight { padding-block: calc(var(--sec) * .6); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); flex-wrap: wrap; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.wide-l { grid-template-columns: 1.2fr 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/16px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slime); }
.eyebrow.y { color: var(--yellow); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.divider-beam { height: 1px; background: linear-gradient(90deg, transparent, #7cff2b66, transparent); border: 0; }

/* ============ buttons & links ============ */
.btn {
  --bg: var(--slime); --fg: #000; --sh: #000;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px;
  border-radius: 999px; border: 3px solid #000; background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: -.005em; white-space: nowrap;
  box-shadow: 0 4px 0 var(--sh); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform var(--d-hover) var(--ease-out), box-shadow var(--d-hover) var(--ease-out), background-color var(--d-hover) var(--ease-out);
}
.btn .i { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sh); } }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sh); transition-duration: var(--d-press); }
.btn.yellow { --bg: var(--yellow); }
.btn.ghost { --bg: transparent; --fg: var(--text); border: 2px solid var(--line-2); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover { border-color: var(--slime); box-shadow: none; transform: none; background: #7cff2b12; } }
.btn.ghost:active { transform: scale(.98); box-shadow: none; }
.btn.lg { min-height: 56px; padding: 14px 32px; font-size: 18px; }
.btn.sm { min-height: 40px; padding: 6px 16px; font-size: 14px; border-width: 2px; box-shadow: 0 3px 0 var(--sh); }
@media (pointer: coarse) { .btn.sm { min-height: 44px; } } /* touch: keep small buttons at a 44px tap target */
.btn.wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.link { color: var(--slime); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--slime); }
.arrow-link .i { width: 18px; height: 18px; transition: transform var(--d-hover) var(--ease-out); }
@media (hover: hover) { .arrow-link:hover .i { transform: translateX(4px); } }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--text); transition: background-color var(--d-hover) var(--ease-out); }
@media (hover: hover) { .icon-btn:hover { background: #ffffff14; } }
.icon-btn:active { background: #ffffff24; transition-duration: var(--d-press); }
.i { width: 22px; height: 22px; flex: none; }
.ico { width: var(--size, 48px); height: auto; aspect-ratio: 100/110; flex: none; }
.ufo { width: var(--size, 160px); aspect-ratio: 2/1; flex: none; }

/* ============ chips, pills, cards ============ */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-inline: -2px; }
.chips::-webkit-scrollbar { display: none; }
/* phones: scrolling chip rows run edge to edge (no hard cut at the gutter) and snap to the gutter */
@media (max-width: 899px) { .wrap .chips { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scroll-snap-type: x proximity; } .wrap .chips > * { scroll-snap-align: start; } }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line-2); font-size: 15px; font-weight: 500; transition: border-color var(--d-hover) var(--ease-out), background-color var(--d-hover) var(--ease-out); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--text); color: #000; border-color: var(--text); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 11px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1.5px solid currentColor; }
.tag.solid { background: var(--yellow); color: #000; border-color: var(--yellow); }
.panel { background: var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.panel.slime { border-color: #7cff2b55; }

/* ============ forms ============ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--s3); border: 2px solid var(--field); border-radius: var(--r-field); font-size: 16px; caret-color: var(--slime); transition: border-color var(--d-hover) var(--ease-out), box-shadow var(--d-hover) var(--ease-out); }
.input::placeholder { color: #8d9a83; }
@media (hover: hover) { .input:hover:not(:focus) { border-color: #777; } }
.input:focus { outline: none; border-color: var(--slime); box-shadow: 0 0 0 4px #7cff2b33; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input:autofill { -webkit-box-shadow: 0 0 0 100px var(--s3) inset; -webkit-text-fill-color: var(--text); }
.err { color: var(--danger); font-size: 13px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; }

/* ============ header ============ */
.hdr { position: sticky; top: 0; z-index: 40; height: var(--hdr-h); background: #000000d9; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { height: 100%; width: min(1320px, 100% - var(--gutter) * 2 + 16px); margin-inline: auto; display: flex; align-items: center; gap: 16px; }
.hdr-logo { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-right: 8px; margin-right: auto; }
.hdr-word { font: 400 15px/1 var(--display); color: var(--yellow); letter-spacing: .02em; }
.hdr-links { display: none; }
.hdr-actions { display: flex; align-items: center; gap: 4px; }
.hdr-icon { display: none; }
.hdr-cart, .hdr-menu { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background-color var(--d-hover) var(--ease-out); }
.hdr-cart { background: var(--slime); color: #000; border: 2px solid #000; }
.hdr-cart-label { display: none; }
.hdr-menu { border: 2px solid var(--line-2); }
.hdr-menu:active, .hdr-cart:active { transform: scale(.97); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #000; color: var(--slime); font: 600 12px/22px var(--mono); text-align: center; }
.menu .cart-count { background: var(--slime); color: #000; margin-left: 8px; }
@media (min-width: 480px) { .hdr-cart-label { display: inline; } }
@media (min-width: 1100px) {
  .hdr-links { display: flex; gap: 2px; }
  .hdr-links a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: #ffffffcc; transition: color var(--d-hover) var(--ease-out), background-color var(--d-hover) var(--ease-out); }
  .hdr-links a:hover { color: #fff; background: #ffffff10; }
  .hdr-links a[aria-current="page"] { color: #000; background: var(--slime); }
  .hdr-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; }
  .hdr-icon:hover { background: #ffffff10; }
  .hdr-icon[aria-current="page"] { background: #ffffff1f; }
  .hdr-menu { display: none; }
  .hdr-logo { margin-right: 24px; }
  .hdr-links { margin-right: auto; }
}

/* ============ menu (full-height sheet, list in the thumb zone) ============ */
dialog { color: var(--text); }
dialog::backdrop { background: #000000b3; backdrop-filter: blur(4px); }
.menu { margin: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; background: var(--void); border: 0; padding: 12px var(--gutter) max(24px, env(safe-area-inset-bottom)); display: none; flex-direction: column; }
.menu[open] { display: flex; animation: sheet-in var(--d-state) var(--ease-out); }
.menu.closing { animation: sheet-out .18s var(--ease-in) forwards; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.menu-list { margin-top: auto; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu-list a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.menu-list a .i { color: var(--muted); transition: transform var(--d-hover) var(--ease-out), color var(--d-hover); }
.menu-list a:active .i, .menu-list a:hover .i { color: var(--slime); transform: translateX(4px); }
.menu-list a[aria-current="page"] { color: var(--slime); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 20px; }
.menu-foot a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 15px; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(12px); } }

/* ============ cart drawer ============ */
.drawer { margin: 0 0 0 auto; width: min(440px, 100%); height: 100dvh; max-height: 100dvh; background: var(--s2); border: 0; border-left: 1px solid var(--line); padding: 0; display: none; flex-direction: column; }
.drawer[open] { display: flex; animation: drawer-in var(--d-state) var(--ease-out); }
.drawer.closing { animation: drawer-out .18s var(--ease-in) forwards; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.ship-meter { padding: 0 20px; }
.ship-meter:not(:empty) { padding-block: 14px; border-bottom: 1px solid var(--line); }
.meter { height: 6px; border-radius: 6px; background: var(--s5); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--slime); border-radius: inherit; transition: width var(--d-state) var(--ease-out); }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px; }
.drawer-foot { padding: 16px 20px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: var(--s2); }
.drawer-foot:empty { display: none; }
/* short phones (e.g. 375×667): the totals + buttons took half the drawer, leaving ~2 lines visible; tighten the foot and put the two buttons side by side */
@media (max-height: 760px) and (min-width: 360px) and (max-width: 899px) {
  .drawer-top { padding-block: 6px; }
  .drawer-foot { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 12px; }
  .drawer-foot > :not(.btn) { grid-column: 1 / -1; }
  .drawer-foot .sum { gap: 2px; }
  .drawer-foot .mission-note { padding: 8px 10px; font-size: 13px; }
  .drawer-foot .btn { padding-inline: 16px; font-size: 15px; }
  .drawer-foot .btn.ghost { width: auto; }
}
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-thumb { display: grid; place-items: center; width: 64px; height: 72px; border-radius: 12px; background: var(--s4); overflow: hidden; }
.line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line-info b { font-size: 15px; line-height: 1.3; }
.line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 2px solid var(--line-2); border-radius: 999px; width: fit-content; }
.qty button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; }
.qty button .i { width: 18px; height: 18px; }
.qty button:active { background: #ffffff1a; }
.qty output { min-width: 28px; text-align: center; font: 600 15px var(--mono); }
.sum { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; }
.sum dt { color: var(--muted); }
.sum .tot { font-weight: 600; font-size: 17px; padding-top: 6px; border-top: 1px solid var(--line); }
.sum .tot dt { color: var(--text); }
.mission-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--s4); color: var(--muted); }
.mission-note .i { color: var(--tongue); width: 18px; height: 18px; margin-top: 2px; }
.mission-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 48px 0; }
.empty .btn { margin-top: 12px; }
.thumb-plush { width: var(--size); height: var(--size); display: grid; place-items: center; }
.thumb-kit { width: var(--size); height: var(--size); display: flex; align-items: center; justify-content: center; }
.thumb-kit i { width: 28%; height: 60%; border-radius: 4px; border: 2px solid #000; margin-left: -6%; }
.fly { position: fixed; z-index: 100; width: 22px; height: 22px; border-radius: 50%; background: var(--slime); border: 2px solid #000; pointer-events: none; }

/* ============ toast ============ */
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 14px; background: var(--text); color: #000; font-weight: 600; font-size: 15px; pointer-events: none; transition: opacity .2s var(--ease-in), transform .2s var(--ease-in); }
.toast.on { opacity: 1; transform: translate(-50%, 0); transition: opacity var(--d-state) var(--ease-out), transform var(--d-state) var(--ease-out); }

/* ============ sticky bottom action bar (product, cart, checkout) ============ */
.actionbar { position: sticky; bottom: 0; z-index: 30; background: #000000e6; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .actionbar.mobile-only { display: none; } }
@media (max-width: 899px) { html:has(.actionbar) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); } } /* focused inputs / anchors land above the sticky bar */

/* ============ footer ============ */
.ftr { margin-top: var(--sec); padding-block: 56px max(40px, calc(env(safe-area-inset-bottom) + 24px)); background: var(--s1); border-top: 1px solid var(--line); }
.ftr-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.ftr-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; }
.ftr-col { display: flex; flex-direction: column; gap: 2px; }
.ftr-col b { color: var(--text); margin-bottom: 6px; }
.ftr-col a { min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: 15px; transition: color var(--d-hover); }
.ftr-col a:hover { color: var(--slime); }
.ftr-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 900px) { .ftr-col a { min-height: 36px; } .ftr-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .ftr-brand { grid-column: auto; } .ftr-base { flex-direction: row; justify-content: space-between; } }

/* ============ candy bag illustration ============ */
.gummy { --c: var(--slime); width: var(--s, 40px); aspect-ratio: 1; border-radius: 46% 46% 50% 50%; position: relative; flex: none; background: radial-gradient(circle at 34% 28%, #ffffffaa 0 9%, transparent 10%), radial-gradient(circle at 50% 55%, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: inset 0 -4px 8px #0006, 0 2px 0 #0008; }
.gummy::before { content: ""; position: absolute; inset: 38% 22% 34%; background: radial-gradient(ellipse 22% 42% at 24% 50%, #000a 98%, transparent), radial-gradient(ellipse 22% 42% at 76% 50%, #000a 98%, transparent); }
.gummy::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(#ffffffcc .8px, transparent 1.2px) 0 0 / 5px 5px; opacity: .55; }
/* reserve the bag's box before site.js draws it (no layout shift) */
[data-pack]:not(.pack) { width: var(--w, 220px); aspect-ratio: 3 / 4; flex: none; }
.pack { --c: var(--blue); --c2: #00E0FF; width: var(--w, 220px); aspect-ratio: 3 / 4; container-type: inline-size; position: relative; flex: none; background: repeating-linear-gradient(118deg, #0000 0 7%, #0004 7% 11%, #0000 11% 19%, color-mix(in srgb, var(--c2) 40%, transparent) 19% 21%), var(--c); border: 3px solid #000; border-radius: 10px 10px 18px 18px; overflow: hidden; color: #fff; display: flex; flex-direction: column; align-items: center; box-shadow: 0 14px 30px #000a, inset 0 0 0 2px #fff3; }
.pack-top { width: 100%; height: 10cqw; display: grid; place-items: center; background: repeating-linear-gradient(-45deg, var(--yellow) 0 3cqw, #000 3cqw 6cqw); position: relative; }
.pack-top::before { content: ""; position: absolute; width: 14cqw; height: 4cqw; border-radius: 4cqw; background: #000; top: 3cqw; left: 43cqw; box-shadow: 0 0 0 1cqw var(--yellow); }
.pack-top b { position: absolute; right: 3cqw; font: 3cqw/1 var(--display); background: var(--yellow); color: #000; padding: .6cqw 1.2cqw; }
.pack-logo { font-size: 10.5cqw; margin-top: 4cqw; text-align: center; }
.pack-logo .a51 { font-size: 1.25em; }
.pack-alien { position: absolute; left: 2cqw; top: 13cqw; width: 22cqw; transform: rotate(-12deg); }
.pack-ufo { position: absolute; right: 1cqw; top: 12cqw; width: 26cqw; transform: rotate(14deg); }
.pack-flav { margin-top: 3cqw; display: flex; align-items: baseline; gap: 2cqw; background: #000c; padding: 1.5cqw 3.5cqw; border-radius: 2cqw; transform: rotate(-2deg); }
.pack-flav .sour { font: 7cqw/1 'Rubik Wet Paint', var(--display); color: var(--yellow); }
.pack-flav .fn { font: 5.4cqw/1 var(--display); white-space: nowrap; }
.pack-win { margin: 3cqw 8cqw 0; flex: 1; width: calc(100% - 16cqw); border-radius: 6cqw; background: #ffffff26; border: .8cqw solid #fff8; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 1cqw; padding: 2cqw; --s: 15cqw; }
.pack-foot { width: 100%; display: flex; justify-content: space-between; align-items: end; padding: 2cqw 4cqw 3cqw; }
.pack-badge { width: 15cqw; aspect-ratio: 1; border-radius: 50%; background: var(--slime); color: #000; border: .8cqw solid #000; display: grid; place-items: center; text-align: center; font: 3.4cqw/1 var(--display); }
.pack-foot svg { width: 14cqw; }
.art-note { font: 500 11px/1.3 var(--mono); color: #8d9a83; letter-spacing: .02em; }

/* sour meter (1–5 rings) */
.sour-meter { display: inline-flex; gap: 4px; align-items: center; }
.sour-meter i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--yellow); }
.sour-meter i.on { background: var(--yellow); }

/* ============ motion ============ */
.float { animation: float 4s var(--ease-sine) infinite alternate; }
@keyframes float { from { transform: translateY(-6px) rotate(-2deg); } to { transform: translateY(6px) rotate(2deg); } }
.beam { position: absolute; clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); background: linear-gradient(#7cff2b40, #7cff2b10 80%, transparent); pointer-events: none; }
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity var(--d-enter) var(--ease-out), transform var(--d-enter) var(--ease-out); transition-delay: var(--delay, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* 'ordering opens soon' (catalog.js ORDERING_OPEN = false) */
.soon-bar { position: relative; z-index: 60; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; padding: 10px 16px; background: var(--yellow); color: #000; font-weight: 600; font-size: 14px; line-height: 1.35; text-align: center; }
.soon-bar a { color: #000; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.btn.is-soon { opacity: .55; cursor: not-allowed; pointer-events: none; box-shadow: none; transform: none; }
