/* Storefront redesign (2026-12-03). Loaded on every page when ui_b() is on
 * (render_page), after any page stylesheet. On the homepage it sits on top of
 * home.css (.hd, .rail, .nc, .wall…); elsewhere it carries what it needs. New:
 * the short hero with conveyor belts, the aisle cards, the Snack-o-matic,
 * the kraft box (.kbox: the warehouse packing-floor box, flattened) and the
 * dock that carries it down the page. */

:root {
	--kraft: #c4915a;
	--kraft-hi: #d9a96f;
	--kraft-lo: #9c6c3a;
	--kraft-edge: #7d5328;
	--tape: #e6cfa4;
	--stamp: #d21e2a;
	--mint: #19c2a0;
	--hb-ink: #14151a;
	/* home.css's, repeated so pages without it get them */
	--hot: #ff3b70;
	--hot-deep: #e62b5d;
	--sun: #ffcf33;
	--night: #0b1a56;
	--line: #e6e8ef;
}

body:has(.dock) { padding-bottom: 92px; }

/* --------------------------------------------------------------- boop -- */
/* The "+" on every snack. One shape everywhere so it is learned once. */
.boop {
	--sz: 36px;
	position: relative;
	display: grid;
	place-items: center;
	width: var(--sz);
	height: var(--sz);
	padding: 0;
	border: 2px solid var(--hb-ink);
	border-radius: 50%;
	background: var(--hot);
	color: #fff;
	font: 400 calc(var(--sz) * 0.62) / 1 var(--display);
	box-shadow: 0 3px 0 var(--hb-ink);
	cursor: pointer;
	transition: transform 0.12s, background-color 0.2s, box-shadow 0.12s;
}
.boop:hover { transform: translateY(-2px) rotate(90deg); box-shadow: 0 5px 0 var(--hb-ink); }
.boop:active { transform: translateY(2px) scale(0.92); box-shadow: 0 1px 0 var(--hb-ink); }
.boop:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.boop.is-booped { background: var(--mint); }
.boop.is-booped::after {
	content: '+1';
	position: absolute;
	left: 50%;
	top: -6px;
	font: 700 0.95rem/1 var(--ui);
	color: var(--hot);
	-webkit-text-stroke: 0;
	pointer-events: none;
	animation: plus-one 0.7s ease-out forwards;
}
@keyframes plus-one {
	from { opacity: 1; transform: translate(-50%, 0) scale(0.8); }
	to { opacity: 0; transform: translate(-50%, -26px) scale(1.25); }
}
.boop--sm { --sz: 28px; }
.boop--lg { --sz: 48px; }
.hb-has-boop { position: relative; }
.boop--card { position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 2; }
.wall-top-wrap .boop--card { right: 1rem; bottom: 1rem; }

.hb-textlink {
	padding: 0;
	border: 0;
	background: none;
	font: 700 1rem var(--ui);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sun);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

/* --------------------------------------------------------------- hero -- */
.hb-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background-color: var(--night);
	background-image:
		linear-gradient(100deg, rgba(11, 26, 86, 0.96) 0%, rgba(11, 26, 86, 0.86) 40%, rgba(11, 26, 86, 0.55) 100%),
		url('https://epicsnackbox-originals.b-cdn.net/images/heroes/hero-cobalt.webp');
	background-size: cover;
	background-position: center;
}
.hb-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: 2rem;
	align-items: center;
	padding-top: 2rem;
	padding-bottom: 2.1rem;
}
.hb-eyebrow {
	margin: 0 0 0.6rem;
	font: 700 0.82rem var(--ui);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sun);
}
.hb-title {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(2rem, 3.7vw, 3.15rem);
	line-height: 0.98;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
}
.hb-title span { color: var(--hot); }
.hb-sub {
	max-width: 44ch;
	margin: 0.9rem 0 1rem;
	font-size: 1.02rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}
.hb-plus {
	display: inline-grid;
	place-items: center;
	width: 1.45em;
	height: 1.45em;
	border-radius: 50%;
	background: var(--hot);
	font: 400 0.9em/1 var(--display);
	vertical-align: -0.15em;
}

/* The live ladder: lit as the real box passes each rung. */
.hb-ladder {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1.2rem;
	padding: 0;
	list-style: none;
}
.hb-ladder li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 4.6rem;
	padding: 0.35rem 0.6rem 0.4rem;
	border: 2px dashed rgba(255, 255, 255, 0.35);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	line-height: 1.05;
	transition: background-color 0.35s, border-color 0.35s, color 0.35s, transform 0.35s;
}
.hb-ladder span { font: 600 0.74rem var(--ui); letter-spacing: 0.06em; opacity: 0.8; }
.hb-ladder b { font: 700 1.02rem var(--ui); letter-spacing: 0.02em; text-transform: uppercase; color: var(--sun); }
.hb-ladder li.is-hit { border: 2px solid var(--sun); background: var(--sun); color: var(--hb-ink); }
.hb-ladder li.is-hit b { color: var(--hb-ink); }
.hb-ladder li.is-hit::after {
	content: '✓';
	position: absolute;
	top: -0.55rem;
	right: -0.45rem;
	display: grid;
	place-items: center;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: var(--mint);
	color: #fff;
	font-size: 0.7rem;
}
.hb-ladder li.is-next { border-color: var(--hot); border-style: solid; animation: rung 1.6s ease-in-out infinite; }
@keyframes rung { 50% { transform: translateY(-3px); box-shadow: 0 6px 0 rgba(255, 59, 112, 0.35); } }

.hb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }

/* The conveyor belts. */
.hb-belts { min-width: 0; }
.belt {
	position: relative;
	padding: 0.7rem 0;
	border-radius: 16px;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 28px),
		linear-gradient(#22252b, #15171b);
	border-top: 3px solid #3a3e45;
	border-bottom: 5px solid #0b0c0e;
	box-shadow: inset 0 10px 18px rgba(0, 0, 0, 0.45), 0 10px 24px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.belt + .belt { margin-top: 0.75rem; }
.belt-run {
	display: flex;
	gap: 0.75rem;
	width: max-content;
	margin: 0;
	padding: 0 0.4rem;
	list-style: none;
	animation: belt-move 70s linear infinite;
}
.belt--rev .belt-run { animation-direction: reverse; animation-duration: 82s; }
.belt:hover .belt-run, .belt:focus-within .belt-run, .belt.is-held .belt-run { animation-play-state: paused; }
@keyframes belt-move { to { transform: translateX(-50%); } }
.bt {
	position: relative;
	flex: none;
	width: 128px;
	padding: 0.45rem 0.45rem 0.5rem;
	border: 2px solid var(--hb-ink);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
	transition: transform 0.2s;
}
.bt:hover { transform: translateY(-3px) rotate(-1.5deg); }
.bt-link { display: block; color: inherit; text-decoration: none; }
.bt-link img { display: block; width: 96px; height: 96px; margin: 0 auto 0.3rem; object-fit: contain; }
.bt-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.3em;
	font-size: 0.74rem;
	line-height: 1.15;
}
.bt-price { display: block; margin-top: 0.15rem; font: 700 0.98rem var(--ui); color: var(--hot-deep); }
.bt .boop { position: absolute; right: -2px; bottom: -2px; --sz: 34px; }
.belt-hint { margin: 0.6rem 0 0; font: 600 0.8rem var(--ui); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); text-align: right; }

/* ------------------------------------------------------------ aisles -- */
.hb-aisles { background: #fff; }
.hd-sub b { color: var(--hot-deep); }
.ai-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}
.ai {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	background: var(--ai-bg, var(--cobalt));
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.ai picture, .ai > img { position: absolute; inset: 0; }
.ai picture img, .ai > img { width: 100%; height: 100%; object-fit: cover; object-position: right top; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ai-fallback { object-fit: contain !important; padding: 8% 6% 22% 50%; }
.ai:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); box-shadow: 0 16px 28px -12px rgba(11, 26, 86, 0.45); }
.ai:hover picture img { transform: scale(1.06) translate(-1.5%, 1.5%); }
.ai-link {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	max-width: 62%;
	padding: 0 0 1rem 1.1rem;
	color: var(--ai-ink, #fff);
	text-decoration: none;
}
.ai-link::after { content: ''; position: absolute; inset: -100vh -100vw; } /* clipped by the card: the whole card is the link */
.ai-name { font-family: var(--display); font-size: clamp(0.98rem, 1.45vw, 1.3rem); line-height: 1.02; letter-spacing: -0.01em; }
.ai-count { margin-top: 0.3rem; font: 700 0.85rem var(--ui); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.ai-tag {
	align-self: flex-start;
	margin-bottom: 0.45rem;
	padding: 0.2rem 0.55rem;
	border-radius: 6px;
	background: var(--sun);
	color: var(--hb-ink);
	font: 700 0.75rem var(--ui);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.ai-link:focus-visible { outline: none; }
.ai:has(.ai-link:focus-visible) { outline: 3px solid var(--hot); outline-offset: 3px; }

.ai--boxes {
	grid-column: span 2;
	aspect-ratio: auto;
	min-height: 100%;
	background:
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 14px, transparent 14px 28px),
		var(--cobalt-deep);
}
.ai--boxes picture { left: auto; width: 52%; }
.ai--boxes picture img { object-fit: cover; object-position: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.ai--boxes .ai-link { color: #fff; max-width: 50%; top: 0; justify-content: flex-end; }
.ai--boxes .ai-name { font-size: clamp(1.3rem, 2.4vw, 2rem); }

/* The tray of best sellers, top-left where the art leaves room. */
.ai-tray {
	position: absolute;
	top: 0.7rem;
	left: 0.7rem;
	z-index: 2;
	display: flex;
	gap: 0.45rem;
}
.ai-pick {
	position: relative;
	display: block;
	width: 58px;
	height: 58px;
	padding: 4px;
	border: 2px solid var(--hb-ink);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}
.ai-pick img { width: 100%; height: 100%; object-fit: contain; }
.ai-pick .boop { position: absolute; right: -9px; bottom: -9px; }
@media (hover: hover) {
	.ai-pick { opacity: 0; transform: translateY(-14px) scale(0.85); transition: opacity 0.2s, transform 0.3s cubic-bezier(0.2, 1.4, 0.4, 1); }
	.ai:hover .ai-pick, .ai:focus-within .ai-pick { opacity: 1; transform: none; }
	.ai:hover .ai-pick:nth-child(2), .ai:focus-within .ai-pick:nth-child(2) { transition-delay: 0.04s; }
	.ai:hover .ai-pick:nth-child(3), .ai:focus-within .ai-pick:nth-child(3) { transition-delay: 0.08s; }
	.ai:hover .ai-pick:nth-child(4), .ai:focus-within .ai-pick:nth-child(4) { transition-delay: 0.12s; }
}

/* ------------------------------------------------------ snack-o-matic -- */
.hb-som {
	background:
		radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.25) 0 2px, transparent 3px) 0 0 / 26px 26px,
		var(--sun);
	color: var(--hb-ink);
}
.som-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: center; }
.som-copy h2 { margin: 0.2rem 0 0.6rem; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; }
.som-copy p { margin: 0 0 1.2rem; line-height: 1.55; }
.hb-som .hd-kicker { color: var(--hot-deep); }
.som-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.som-tier {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0.65rem 0.9rem;
	border: 2px solid var(--hb-ink);
	border-radius: 12px;
	background: #fff;
	color: var(--hb-ink);
	box-shadow: 0 4px 0 var(--hb-ink);
	cursor: pointer;
	text-align: left;
	transition: transform 0.12s, box-shadow 0.12s, background-color 0.2s;
}
.som-tier b { font: 700 1.35rem/1 var(--ui); text-transform: uppercase; }
.som-tier span { font-size: 0.82rem; color: var(--grey); }
.som-tier:hover { transform: translateY(-2px); }
.som-tier[aria-checked='true'] { background: var(--hot); color: #fff; }
.som-tier[aria-checked='true'] span { color: rgba(255, 255, 255, 0.85); }
.som-tier:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.som-machine {
	position: relative;
	margin-right: 44px;
	padding: 0.9rem 1rem 1rem;
	border: 3px solid var(--hb-ink);
	border-radius: 24px;
	background: linear-gradient(170deg, var(--cobalt-lift), var(--cobalt-deep));
	box-shadow: 10px 10px 0 var(--hb-ink);
	color: #fff;
}
.som-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.som-brand { font-family: var(--display); font-size: 1.05rem; color: var(--sun); text-shadow: 2px 2px 0 var(--hb-ink); }
.som-lights { display: flex; gap: 6px; }
.som-lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 8px var(--hot); animation: bulbs 0.9s steps(1) infinite; }
.som-lights i:nth-child(even) { background: var(--sun); box-shadow: 0 0 8px var(--sun); animation-delay: 0.45s; }
@keyframes bulbs { 50% { opacity: 0.25; } }
.som-window {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
	gap: 0.55rem;
	min-height: 236px;
	padding: 0.75rem;
	border: 3px solid var(--hb-ink);
	border-radius: 14px;
	background: #fff8e6;
	box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.22);
	align-content: center;
}
.som-idle { grid-column: 1 / -1; margin: 0; text-align: center; font: 700 1.25rem var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.reel {
	position: relative;
	height: 108px;
	overflow: hidden;
	border: 2px solid var(--hb-ink);
	border-radius: 10px;
	background: #fff;
	color: var(--hb-ink);
}
.reel-strip { display: flex; flex-direction: column; will-change: transform; }
.reel-f { flex: none; display: grid; place-items: center; height: 104px; padding: 6px 6px 18px; }
.reel-f img { width: 100%; height: 76px; object-fit: contain; }
.reel-price {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1px 0 2px;
	background: var(--hb-ink);
	color: var(--sun);
	font: 700 0.85rem var(--ui);
	text-align: center;
	opacity: 0;
	transition: opacity 0.2s;
}
.reel.is-set .reel-price { opacity: 1; }
.reel-swap {
	position: absolute;
	inset: 0;
	z-index: 1;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.reel-swap:focus-visible { outline: 3px solid var(--hot); outline-offset: -3px; border-radius: 8px; }
.reel.is-set:hover::after {
	content: '↻ swap';
	position: absolute;
	top: 4px;
	right: 4px;
	padding: 1px 6px;
	border-radius: 99px;
	background: var(--hot);
	color: #fff;
	font: 700 0.72rem var(--ui);
	text-transform: uppercase;
	pointer-events: none;
}
.reel.is-landed { animation: reel-land 0.35s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes reel-land { 40% { transform: translateY(5px); } }
.som-readout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem 1rem; min-height: 3rem; margin-top: 0.75rem; }
.som-readout [data-som-sum] { font: 700 1.1rem var(--ui); letter-spacing: 0.03em; }
.som-readout [data-som-sum] b { color: var(--sun); }
.som-drop { padding: 0.6rem 1.1rem; }
.som-spin {
	position: absolute;
	right: -46px;
	bottom: 0.9rem;
	width: 86px;
	padding: 0.5rem 0;
	border: 3px solid var(--hb-ink);
	border-radius: 99px;
	background: var(--hot);
	color: #fff;
	font: 400 0.9rem var(--display);
	box-shadow: 0 4px 0 var(--hb-ink);
	cursor: pointer;
}
.som-spin:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hb-ink); }
/* The lever: a chrome stick and a red knob on the machine's side. */
.som-lever {
	position: absolute;
	top: 1.4rem;
	right: -46px;
	width: 40px;
	height: 150px;
	padding: 0;
	border: 0;
	background: none;
	cursor: grab;
}
.som-stick {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 10px;
	height: 118px;
	margin-left: -5px;
	border: 2px solid var(--hb-ink);
	border-radius: 6px;
	background: linear-gradient(90deg, #8a8f99, #f3f4f6 45%, #9aa0aa);
	transform-origin: 50% 100%;
	transition: transform 0.18s ease-in;
}
.som-knob {
	position: absolute;
	left: 50%;
	top: 0;
	z-index: 1;
	width: 38px;
	height: 38px;
	margin-left: -19px;
	border: 3px solid var(--hb-ink);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #ff8fae, var(--hot) 45%, #b3123f);
	transition: transform 0.18s ease-in;
}
.som-lever.is-pulled .som-stick { transform: scaleY(-0.15); }
.som-lever.is-pulled .som-knob { transform: translateY(132px); }
.som-lever:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 8px; }
.som-note { margin-top: 1rem; font-size: 0.82rem; color: rgba(20, 21, 26, 0.7); }

/* ------------------------------------------------------ ready boxes -- */
.hb-boxes {
	background:
		radial-gradient(circle at 90% 100%, rgba(255, 207, 51, 0.14), transparent 45%),
		radial-gradient(circle at 10% 0%, rgba(80, 96, 192, 0.55), transparent 45%),
		var(--cobalt-deep);
	color: #fff;
}
.hb-box-rail { grid-auto-columns: 270px; }
.hbx {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 2px solid var(--hb-ink);
	border-radius: 16px;
	background: #fff;
	color: var(--ink);
	box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}
.hbx-photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #f4f0e8; }
.hbx-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.hbx:hover .hbx-photo img { transform: scale(1.05); }
.hbx-photo .tile-collage { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.hbx-photo .tile-collage img { object-fit: contain; padding: 10%; }
.hbx-body { display: flex; flex-direction: column; flex: 1; padding: 0.8rem 0.9rem 0.9rem; }
.hbx-body h3 { margin: 0 0 0.5rem; font: 700 1.1rem/1.1 var(--ui); text-transform: uppercase; letter-spacing: 0.02em; }
.hbx-body h3 a { color: var(--ink); text-decoration: none; }
.hbx-inside { display: flex; align-items: center; gap: 3px; margin-bottom: 0.7rem; }
.hbx-inside img { width: 30px; height: 30px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.hbx-inside em { font: 700 0.8rem var(--ui); font-style: normal; color: var(--grey); }
.hbx-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; }
.hbx-foot .tile-price { color: var(--ink); }
.hbx-add {
	padding: 0.5rem 0.8rem;
	border: 2px solid var(--hb-ink);
	border-radius: 99px;
	background: var(--sun);
	color: var(--hb-ink);
	font: 700 0.9rem var(--ui);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 3px 0 var(--hb-ink);
	cursor: pointer;
}
.hbx-add:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--hb-ink); }
.hbx-add.is-booped { background: var(--mint); color: #fff; }

/* ------------------------------------------------------ the kraft box -- */
/* A front view of an open carton: back wall, contents peeking out, front
 * panel, two flaps hinged on the top corners, tape, and a rubber stamp. */
.kbox {
	--w: 64px;
	--h: 54px;
	position: relative;
	display: block;
	width: var(--w);
	height: var(--h);
}
.kbox--lg { --w: 180px; --h: 150px; }
.kbox-back {
	position: absolute;
	left: 4%;
	right: 4%;
	top: 6%;
	height: 50%;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(#8a5c2e, var(--kraft-lo));
	box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.35);
}
.kbox-items {
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: 52%;
	display: flex;
	justify-content: center;
	align-items: flex-end;
}
.kbox-items img {
	width: 44%;
	aspect-ratio: 1;
	margin: 0 -9%;
	object-fit: contain;
	border-radius: 18%;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
}
.kbox-front {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 64%;
	z-index: 1;
	display: grid;
	place-items: center;
	border-radius: 3px;
	background:
		repeating-linear-gradient(90deg, rgba(90, 55, 20, 0.07) 0 2px, transparent 2px 7px),
		linear-gradient(170deg, var(--kraft-hi), var(--kraft) 50%, var(--kraft-lo));
	box-shadow: inset 0 0 0 2px var(--kraft-edge), inset 0 -8px 14px rgba(70, 40, 10, 0.25);
}
.kbox-flap {
	position: absolute;
	top: calc(36% - var(--h) * 0.09);
	z-index: 2;
	width: 50%;
	height: calc(var(--h) * 0.09 + 2px);
	background: linear-gradient(var(--kraft-hi), var(--kraft-lo));
	box-shadow: inset 0 0 0 1.5px var(--kraft-edge);
	transition: transform 0.45s cubic-bezier(0.5, 0, 0.3, 1.2);
}
.kbox-flap--l { left: 0; transform-origin: 0 100%; transform: rotate(-118deg); border-radius: 2px 0 0 2px; }
.kbox-flap--r { right: 0; transform-origin: 100% 100%; transform: rotate(118deg); border-radius: 0 2px 2px 0; }
.kbox.is-closed .kbox-flap--l, .kbox.is-closed .kbox-flap--r { transform: rotate(0deg); }
.kbox.is-closed .kbox-items, .kbox.is-closed .kbox-back { opacity: 0; }
.kbox-tape {
	position: absolute;
	top: calc(36% - var(--h) * 0.09 - 1px);
	left: 42%;
	width: 16%;
	height: 34%;
	z-index: 3;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent 40%), var(--tape);
	box-shadow: 0 0 0 1px rgba(120, 90, 50, 0.3);
	transform: scaleY(0);
	transform-origin: 50% 0;
	transition: transform 0.35s ease-in-out;
}
.kbox.is-taped .kbox-tape { transform: scaleY(1); }
.kbox-stamp {
	padding: 0.15em 0.4em;
	border: 0.14em solid var(--stamp);
	border-radius: 0.3em;
	color: var(--stamp);
	font: 400 calc(var(--w) * 0.085) / 1.05 var(--display);
	text-align: center;
	text-transform: uppercase;
	mix-blend-mode: multiply;
	opacity: 0;
	transform: rotate(-9deg) scale(2.2);
	transition: opacity 0.12s, transform 0.16s cubic-bezier(0.6, 0, 1, 1);
}
.kbox--sm .kbox-stamp { font-size: 10px; white-space: nowrap; }
.kbox.is-stamped .kbox-stamp { opacity: 0.92; transform: rotate(-9deg) scale(1); }
.kbox.is-bump { animation: box-bump 0.32s ease-out; }
@keyframes box-bump {
	30% { transform: scale(1.12, 0.88); }
	60% { transform: scale(0.95, 1.06); }
}
.kbox.is-shake { animation: box-shake 0.4s; }
@keyframes box-shake {
	20% { transform: translateX(-3px) rotate(-3deg); }
	40% { transform: translateX(3px) rotate(3deg); }
	60% { transform: translateX(-2px) rotate(-1.5deg); }
	80% { transform: translateX(2px); }
}

/* ------------------------------------------------------ packing line -- */
.hb-line { background: #fffaf0; }
.line-stage { position: relative; height: 190px; margin: 0.5rem 0 1.5rem; overflow: hidden; }
.line-belt {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	height: 18px;
	border-radius: 9px;
	background: repeating-linear-gradient(90deg, #2e3238 0 22px, #1a1c20 22px 26px);
	box-shadow: 0 6px 0 #0b0c0e;
}
.line-belt::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -22px;
	height: 6px;
	background: repeating-linear-gradient(-45deg, var(--sun) 0 10px, var(--hb-ink) 10px 20px);
	opacity: 0.7;
}
.line-stage.is-running .line-belt { animation: line-belt 0.6s linear infinite; }
@keyframes line-belt { to { background-position: 26px 0; } }
.line-stage .kbox { position: absolute; left: 0; bottom: 28px; }
.line-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.line-steps li { padding: 1.1rem 1.2rem; border: 2px solid var(--hb-ink); border-radius: 14px; background: #fff; transition: transform 0.3s, background-color 0.3s; }
.line-steps li.is-on { background: var(--sun); transform: translateY(-4px); }
.line-steps h3 { margin: 0.5rem 0 0.35rem; font: 700 1.3rem var(--ui); text-transform: uppercase; }
.line-steps p { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.line-steps b { color: var(--hot-deep); }
.line-replay { margin: 1rem 0 0; text-align: center; }
.line-replay .hb-textlink { color: var(--cobalt); }

/* -------------------------------------------------------------- dock -- */
.dock {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 60;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 0.7rem;
	width: min(470px, calc(100vw - 32px));
	padding: 0.55rem 0.6rem 0.55rem 0.75rem;
	border: 2px solid var(--hb-ink);
	border-radius: 18px;
	background: #fff;
	box-shadow: 6px 6px 0 var(--hb-ink);
	transform: translateY(0);
	transition: transform 0.35s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.dock-box { position: relative; display: block; padding: 8px 12px 0; }
.dock-count {
	position: absolute;
	top: -4px;
	right: 0;
	z-index: 4;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	display: grid;
	place-items: center;
	border: 2px solid var(--hb-ink);
	border-radius: 99px;
	background: var(--hot);
	color: #fff;
	font: 700 0.85rem var(--ui);
}
.dock-count.is-pop { animation: count-pop 0.35s cubic-bezier(0.2, 1.8, 0.4, 1); }
@keyframes count-pop { 40% { transform: scale(1.45); } }
.dock-info { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.dock-info strong { font: 700 1rem/1.1 var(--ui); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-info small { font-size: 0.76rem; line-height: 1.2; color: var(--grey); }
.dock-info small b { color: var(--hot-deep); }
.dock-bar { position: relative; display: block; height: 9px; border: 1.5px solid var(--hb-ink); border-radius: 99px; background: #eef0f6; overflow: hidden; }
.dock-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--sun), var(--hot)); transition: width 0.6s cubic-bezier(0.2, 0.9, 0.3, 1); }
.dock-bar em { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(20, 21, 26, 0.35); }
.dock-go {
	padding: 0.55rem 0.8rem;
	border: 2px solid var(--hb-ink);
	border-radius: 12px;
	background: var(--hot);
	color: #fff;
	font: 700 0.95rem var(--ui);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 3px 0 var(--hb-ink);
}
.dock-go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--hb-ink); }
.dock-sound { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--grey); cursor: pointer; }
.dock-sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dock-sound svg path:first-child { fill: currentColor; }
.dock-sound .w { opacity: 0.25; }
.dock-sound[aria-pressed='true'] { color: var(--hot-deep); }
.dock-sound[aria-pressed='true'] .w { opacity: 1; }
.dock.is-unlocked { animation: dock-cheer 0.6s ease-out; }
@keyframes dock-cheer { 30% { transform: translateY(-8px) rotate(-1deg); } 60% { transform: translateY(0) rotate(0.6deg); } }

/* Things in flight. */
.fly { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; will-change: transform; }
.fly-y { will-change: transform; }
.fly img { display: block; width: 64px; height: 64px; object-fit: contain; border: 2px solid var(--hb-ink); border-radius: 12px; background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); }
.spark { position: fixed; z-index: 91; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; }

/* ------------------------------------------------------------ narrow -- */
@media (max-width: 960px) {
	.hb-hero-grid { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
	.belt-hint { text-align: left; }
	.ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.som-grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.line-steps { gap: 0.8rem; }
}
@media (max-width: 640px) {
	.hb-title { font-size: 2rem; }
	.hb-sub { font-size: 0.95rem; margin: 0.6rem 0 0.8rem; }
	.hb-ladder li { min-width: 0; flex: 1 1 0; padding: 0.3rem 0.3rem 0.35rem; }
	.hb-ladder span { font-size: 0.66rem; }
	.hb-ladder b { font-size: 0.86rem; }
	.bt { width: 112px; }
	.bt-link img { width: 80px; height: 80px; }
	.belt-hint { display: none; }
	.belt--rev { display: none; }
	.hb-eyebrow { font-size: 0.72rem; }
	.ai-grid { grid-template-columns: 1fr; }
	.ai--boxes { grid-column: auto; aspect-ratio: 16 / 9; }
	.ai-name { font-size: 1.15rem; }
	.ai-pick { width: 46px; height: 46px; }
	.ai-pick:nth-child(4) { display: none; }
	.ai-pick .boop { --sz: 26px; right: -8px; bottom: -8px; }
	.som-machine { margin-right: 0; padding: 0.7rem; }
	.som-lever { display: none; }
	.som-spin { position: static; display: block; width: 100%; margin-top: 0.7rem; padding: 0.7rem 0; font-size: 1.05rem; }
	.som-window { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; min-height: 170px; padding: 0.45rem; }
	.som-tier { padding: 0.5rem 0.7rem; }
	.som-tier b { font-size: 1.15rem; }
	.reel { height: 84px; }
	.reel-f { height: 80px; padding: 4px 4px 16px; }
	.reel-f img { height: 56px; }
	.reel-price { font-size: 0.75rem; }
	.som-readout { flex-direction: column; align-items: stretch; text-align: center; }
	.line-stage { height: 150px; }
	.kbox--lg { --w: 130px; --h: 110px; }
	.line-steps { grid-template-columns: 1fr; }
	.dock {
		right: 0;
		bottom: 0;
		width: 100%;
		border-width: 2px 0 0;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18);
		padding-bottom: calc(0.55rem + env(safe-area-inset-bottom));
	}
	.dock-sound { display: none; }
}

/* ------------------------------------------------------ reduced motion -- */
@media (prefers-reduced-motion: reduce) {
	.belt { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.belt-run { animation: none; }
	.belt-run .bt[aria-hidden='true'] { display: none; }
	.hb-ladder li.is-next, .som-lights i { animation: none; }
	.ai, .ai picture img, .ai-pick, .kbox-flap, .kbox-tape, .kbox-stamp, .dock-bar i { transition: none !important; }
	.kbox.is-bump, .kbox.is-shake, .dock.is-unlocked, .dock-count.is-pop, .reel.is-landed { animation: none; }
}

/* ------------------------------------------- fixes after the first look -- */
/* The wall's cells are wrapped so each can carry a "+" beside its link: the
 * wrapper takes the grid placement the link used to have. */
.wall-grid > .hb-has-boop { display: flex; }
.wall-grid > .hb-has-boop > a { flex: 1; min-width: 0; }
.wall-grid > .wall-top-wrap { grid-row: span 2; }
.boop--card { top: 0.6rem; right: 0.6rem; bottom: auto; }
.wall-top-wrap .boop--card { top: 1rem; right: 1rem; bottom: auto; }
.som-drop[hidden] { display: none; }
.som-spin { bottom: auto; top: 182px; }
@media (max-width: 1000px) {
	.wall-grid > .wall-top-wrap { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 820px) {
	.wall-grid > .wall-top-wrap { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 640px) {
	.som-spin { top: auto; }
}

/* --------------------------------------------- the wall, compact (12-03) --
 * The #1 card used to set the row height: a square 640px photo plus a long
 * title made each row ~425px, so the small cells were mostly white. Now the
 * small cells decide the rows and the #1 photo fills whatever is left. */
.wall-grid { align-items: stretch; }
.wall-cell { padding: 0.6rem 0.7rem 0.7rem; }
.wall-cell img { aspect-ratio: auto; height: 128px; margin: 0.2rem 0 0.45rem; }
.wall-cell .nc-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; min-height: 2.5em; }
.wall-cell .nc-price { margin-top: 0.25rem; }
.wall-top { padding: 0.8rem 1rem 1rem; }
.wall-top img { aspect-ratio: auto; flex: 1 1 0; min-height: 0; height: 0; }
.wall-top-title { font-size: 1.1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wall-top-body { margin-top: 0.6rem; }
@media (max-width: 1080px) {
	.wall-top img { flex: none; height: 240px; }
}
@media (max-width: 640px) {
	.wall-cell img { height: 110px; }
	.wall-top img { height: 200px; }
}

/* ---------------------------------------------- section headings (.hd) --
 * home.css's, for pages that do not load it. */
html[data-ui="b"] .hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
html[data-ui="b"] .hd h2 { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.05; color: var(--cobalt-deep); }
html[data-ui="b"] .hd-kicker { margin: 0 0 0.35rem; font: 700 0.9rem var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hot); }
html[data-ui="b"] .hd-sub { margin: 0.5rem 0 0; color: var(--grey); max-width: 62ch; }
html[data-ui="b"] .hd-link { font: 700 1rem var(--ui); letter-spacing: 0.05em; text-transform: uppercase; color: var(--hot); text-decoration: none; white-space: nowrap; }
html[data-ui="b"] .hd--light h2 { color: #fff; }
html[data-ui="b"] .hd--light .hd-sub { color: rgba(255, 255, 255, 0.78); }
html[data-ui="b"] .hd--light .hd-link { color: var(--sun); }

/* ------------------------------------------- ready boxes as a list (12-03) --
 * Owner: a list, not a carousel. Two columns of rows on desktop, one on a
 * phone; the photo is a square on the left, the contents strip and the
 * "+ Add box" on the right. */
.boxlist-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.boxlist-chips .chip {
	display: inline-flex; align-items: center; gap: 0.3rem;
	padding: 0.45rem 0.95rem; border: 2px solid currentColor; border-radius: 99px;
	background: transparent; color: inherit; font: 700 0.92rem var(--ui); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}
.boxlist-chips .chip span { opacity: 0.65; }
.boxlist-chips .chip.is-on { background: var(--sun); border-color: var(--sun); color: var(--hb-ink); }
.hb-boxes .boxlist-chips, .bx-page--dark .boxlist-chips { color: #fff; }
.hbx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hbx-list .hbx { flex-direction: row; min-height: 0; transition: transform 0.18s, box-shadow 0.18s; }
.hbx-list .hbx:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0, 0, 0, 0.35); }
.hbx-list .hbx.is-more, .hbx-list .hbx.is-filtered { display: none; }
.hbx-list.is-all .hbx.is-more:not(.is-filtered) { display: flex; }
.hbx-list .hbx-photo { flex: 0 0 168px; aspect-ratio: auto; border-right: 2px solid var(--hb-ink); }
.hbx-list .hbx-photo .tile-badge {
	position: absolute; left: 8px; top: 8px; padding: 0.15rem 0.5rem; border: 2px solid var(--hb-ink); border-radius: 6px;
	background: var(--sun); font: 700 0.72rem var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hb-ink);
}
.hbx-list .hbx-body { padding: 0.85rem 1rem 0.9rem; min-width: 0; }
.hbx-list .hbx-body h3 { margin-bottom: 0.2rem; font-size: 1.2rem; }
.hbx-tag { margin: 0 0 0.55rem; font-size: 0.84rem; line-height: 1.35; color: var(--grey); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hbx-list .hbx-inside { flex-wrap: wrap; margin-bottom: 0.75rem; }
.hbx-list .hbx-inside img { width: 34px; height: 34px; }
.hbx-foot .tile-price { font: 700 1.3rem var(--ui); }
.hbx-foot .tile-price s { font-size: 0.9rem; color: var(--grey); font-weight: 500; }
.hbx-n { margin-right: auto; font: 600 0.85rem var(--ui); letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey); }
.hbx-empty { color: inherit; opacity: 0.8; }
.hbx-more { margin: 1.4rem 0 0; text-align: center; }
@media (max-width: 860px) {
	.hbx-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.hbx-list .hbx-photo { flex-basis: 112px; }
	.hbx-list .hbx-body h3 { font-size: 1.02rem; }
	.hbx-tag { display: none; }
	.hbx-list .hbx-inside img { width: 28px; height: 28px; }
	.hbx-list .hbx-inside img:nth-child(n+6) { display: none; }
	.hbx-foot { flex-wrap: wrap; }
	.hbx-add { padding: 0.45rem 0.7rem; font-size: 0.82rem; }
}

/* --------------------------------------------------- card "+" (12-03) -- */
.card-wrap { position: relative; display: flex; }
.card-wrap > .card { flex: 1; min-width: 0; }
.card-wrap > .boop--card { position: absolute; top: 0.55rem; right: 0.55rem; bottom: auto; z-index: 2; }
.card-soldout {
	position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; padding: 0.15rem 0.5rem; border-radius: 6px;
	background: var(--hb-ink); color: #fff; font: 700 0.72rem var(--ui); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ============================================================ /build ==== */
/* A header a third the old height: title and the live ladder side by side,
 * then the aisles as art tiles, so the shelf starts above the fold. */
.bb-head {
	color: #fff;
	background:
		radial-gradient(circle at 92% 0%, rgba(255, 59, 112, 0.35), transparent 40%),
		radial-gradient(circle at 0% 100%, rgba(80, 96, 192, 0.6), transparent 45%),
		var(--night);
	padding: 1.6rem 0 1.1rem;
}
.bb-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2.5rem; align-items: end; }
.bb-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1; }
.bb-title span { color: var(--hot); }
.bb-sub { margin: 0.55rem 0 0; max-width: 56ch; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; line-height: 1.5; }
.bb-head .hb-ladder { margin: 0; }
.bb-aisles {
	display: flex; gap: 0.6rem; margin-top: 1.2rem; padding-bottom: 0.4rem;
	overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.bb-aisle {
	flex: 0 0 auto; scroll-snap-align: start;
	display: flex; flex-direction: column; width: 112px;
	border: 2px solid rgba(255, 255, 255, 0.18); border-radius: 12px; overflow: hidden;
	background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none;
	transition: transform 0.15s, border-color 0.15s, background-color 0.15s;
}
.bb-aisle:hover { transform: translateY(-3px); border-color: #fff; }
.bb-aisle.is-on { border-color: var(--sun); background: var(--sun); color: var(--hb-ink); box-shadow: 0 4px 0 var(--hb-ink); }
.bb-aisle-art { display: block; height: 62px; background: var(--ai-bg, var(--cobalt)); overflow: hidden; }
.bb-aisle-art img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; transition: transform 0.3s; }
.bb-aisle:hover .bb-aisle-art img { transform: scale(1.12); }
.bb-aisle-art--all { display: grid; place-items: center; background: linear-gradient(135deg, var(--hot), var(--sun)); font-size: 1.6rem; color: var(--hb-ink); }
.bb-aisle-name { padding: 0.35rem 0.5rem 0.4rem; font: 700 0.78rem/1.1 var(--ui); letter-spacing: 0.05em; text-transform: uppercase; }

.bb-som-drawer { background: var(--sun); border-bottom: 3px solid var(--hb-ink); }
.bb-som-drawer > summary {
	display: flex; align-items: center; gap: 0.6rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
	list-style: none; cursor: pointer; font: 700 1.05rem var(--ui); letter-spacing: 0.04em; text-transform: uppercase; color: var(--hb-ink);
}
.bb-som-drawer > summary::-webkit-details-marker { display: none; }
.bb-som-k { padding: 0.1rem 0.5rem; border-radius: 6px; background: var(--hb-ink); color: var(--sun); font-size: 0.8rem; }
.bb-som-arrow { margin-left: auto; transition: transform 0.2s; }
.bb-som-drawer[open] .bb-som-arrow { transform: rotate(180deg); }
.bb-som-drawer .hb-som { padding-top: 0.5rem; }
.bb-som-drawer .som-copy .hd-kicker { display: none; }

/* The shelf, in the house style: ink outline, offset shadow, a fat "+". */
html[data-ui="b"] .build { padding-top: 1.6rem; }
html[data-ui="b"] .pick {
	position: relative; cursor: pointer;
	border: 2px solid var(--hb-ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--hb-ink);
	transition: transform 0.15s, box-shadow 0.15s;
}
html[data-ui="b"] .pick:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--hot); }
html[data-ui="b"] .pick.is-in { border-color: var(--hb-ink); box-shadow: 3px 3px 0 var(--mint), 0 0 0 3px rgba(25, 194, 160, 0.25); }
html[data-ui="b"] .pick.is-booped .pick-img img { animation: pick-hop 0.4s ease-out; }
@keyframes pick-hop { 40% { transform: translateY(-8px) scale(1.06) rotate(-4deg); } }
html[data-ui="b"] .pick-img { background: #fff; }
html[data-ui="b"] .pick-price { font-weight: 700; font-size: 1.05rem; color: var(--hb-ink); }
html[data-ui="b"] .qty-btn { border: 2px solid var(--hb-ink); border-radius: 50%; box-shadow: 0 2px 0 var(--hb-ink); }
html[data-ui="b"] .qty-btn--add { background: var(--hot); border-color: var(--hb-ink); color: #fff; font-family: var(--display); font-weight: 400; }
html[data-ui="b"] .qty-btn--add:hover { background: var(--hot-deep); border-color: var(--hb-ink); transform: rotate(90deg); }
html[data-ui="b"] .qty-btn:active { transform: translateY(2px); box-shadow: none; }
html[data-ui="b"] .crate { border: 2px solid var(--hb-ink); box-shadow: 6px 6px 0 var(--hb-ink); }
html[data-ui="b"] .crate-head { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.9rem; align-items: end; }
html[data-ui="b"] .crate-head h2 { grid-column: 2; align-self: end; }
html[data-ui="b"] .crate-head .crate-count { grid-column: 2; }
.crate-kbox { grid-row: span 2; }
.kbox--md { --w: 104px; --h: 86px; }
html[data-ui="b"] .slot.is-full { border-color: var(--hb-ink); box-shadow: 0 2px 0 var(--hb-ink); }
@media (max-width: 900px) {
	.bb-head-grid { grid-template-columns: 1fr; }
	.bb-head { padding-top: 1.1rem; }
	.bb-sub { display: none; }
}
@media (max-width: 520px) {
	.bb-aisle { width: 92px; }
	.bb-aisle-art { height: 50px; }
}
html[data-ui="b"] .crate-kbox { margin-top: 18px; }
.bb-aisles { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.bb-aisles { scroll-padding-inline: 1.5rem; }
@media (max-width: 640px) {
	html[data-ui="b"] .shelf-search-wrap { display: none; }
	html[data-ui="b"] .shelf-brand-dropdown-wrap { flex: 1; }
	html[data-ui="b"] .shelf-filters:not(.is-expanded) { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: none; }
	html[data-ui="b"] .shelf-filters:not(.is-expanded) .chip { flex: 0 0 auto; }
	.bb-som-drawer > summary { font-size: 0.9rem; }
	.bb-som-k { display: none; }
}

/* ===================================================== /category/[x] ==== */
/* The aisle's own art, full bleed. The art was generated with its snacks
 * top-right and the bottom-left left empty, which is where the words go. */
.cb-banner {
	position: relative; overflow: hidden; isolation: isolate;
	min-height: 300px; display: flex; align-items: flex-end;
	background: var(--ai-bg); color: var(--ai-ink);
	border-bottom: 3px solid var(--hb-ink);
}
.cb-art { position: absolute; inset: 0; z-index: -1; }
.cb-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; animation: cb-drift 14s ease-in-out infinite alternate; }
@keyframes cb-drift { to { transform: scale(1.06) translate(-1%, 1%); } }
.cb-banner::after {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, var(--ai-bg) 0%, color-mix(in srgb, var(--ai-bg) 70%, transparent) 38%, transparent 62%);
}
.cb-inner { width: 100%; padding-top: 1.6rem; padding-bottom: 1.4rem; }
.cb-back { font: 700 0.85rem var(--ui); letter-spacing: 0.1em; text-transform: uppercase; color: inherit; opacity: 0.8; text-decoration: none; }
.cb-back:hover { opacity: 1; text-decoration: underline; }
.cb-title { margin: 0.35rem 0 0.3rem; max-width: 14ch; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 0.95; }
.cb-sub { margin: 0 0 1rem; max-width: 46ch; font-weight: 500; }
.cb-tray { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.cb-tray-k { font: 700 0.8rem var(--ui); letter-spacing: 0.12em; text-transform: uppercase; }
.cb-pick { position: relative; width: 64px; height: 64px; border: 2px solid var(--hb-ink); border-radius: 12px; background: #fff; box-shadow: 0 3px 0 var(--hb-ink); }
.cb-pick img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cb-pick .boop { position: absolute; right: -9px; bottom: -9px; }

html[data-ui="b"] .cat-nav { background: #fff; border-bottom: 2px solid var(--line); }
html[data-ui="b"] .cat-nav-chip.is-active { background: var(--hb-ink); color: #fff; }

/* Product cards anywhere in the redesign: ink outline, offset shadow. */
html[data-ui="b"] .card { border: 2px solid var(--hb-ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--hb-ink); }
html[data-ui="b"] .card:hover { transform: translate(-2px, -2px); border-color: var(--hb-ink); box-shadow: 5px 5px 0 var(--hot); }
html[data-ui="b"] .card-wrap:has(.boop:hover) .card { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--hot); }
@media (max-width: 640px) {
	.cb-banner { min-height: 250px; }
	.cb-banner::after { background: linear-gradient(0deg, var(--ai-bg) 0%, color-mix(in srgb, var(--ai-bg) 75%, transparent) 55%, transparent 85%); }
	.cb-pick { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .cb-art img { animation: none; } }

/* ================================================= /product/[slug] ==== */
html[data-ui="b"] .pdp-img {
	background:
		radial-gradient(circle at 50% 62%, #fff 0 45%, transparent 46%),
		repeating-linear-gradient(45deg, #fff6d6 0 14px, #fff 14px 28px);
	border: 2px solid var(--hb-ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--hb-ink);
}
html[data-ui="b"] .pdp-img img { filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.14)); transition: transform 0.25s; }
html[data-ui="b"] .pdp-img:hover img { transform: scale(1.04) rotate(-1.5deg); }
.pdp-inbox {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	padding: 0.35rem 0.7rem; border: 2px solid var(--hb-ink); border-radius: 10px;
	background: var(--mint); color: #fff; box-shadow: 0 3px 0 var(--hb-ink);
	font: 700 0.85rem var(--ui); letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-4deg);
}
.pdp-inbox b { font-size: 1.05rem; }
.pdp-inbox.is-hop { animation: inbox-hop 0.45s cubic-bezier(.3,1.6,.5,1); }
@keyframes inbox-hop { from { transform: rotate(-4deg) scale(0.6); } to { transform: rotate(-4deg) scale(1); } }
html[data-ui="b"] .pk-add { border: 2px solid var(--hb-ink); box-shadow: 0 4px 0 var(--hb-ink); }
html[data-ui="b"] .pk-add:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hb-ink); }
html[data-ui="b"] .pk-add.is-booped { background: var(--mint); }
html[data-ui="b"] .pk-meter { border: 2px solid var(--hb-ink); box-shadow: 4px 4px 0 var(--hb-ink); }

/* ===================================================== /bundles ==== */
.bx-facts { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.bx-facts span {
	display: flex; flex-direction: column; padding: 0.5rem 0.9rem; border: 2px dashed rgba(255, 255, 255, 0.35); border-radius: 12px;
	font: 600 0.78rem var(--ui); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8);
}
.bx-facts b { font-size: 1.15rem; color: var(--sun); }
.bx-page { padding-top: 2rem; }
.bx-own { background: #fffaf0; }
.bx-own-inner { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.bx-own-inner p { margin: 0 0 1rem; max-width: 46ch; }
.bx-own-h { margin: 0 0 0.4rem; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--cobalt-deep); }
.bx-own-box { margin-top: 30px; }

/* ===================================================== /bundle/[x] ==== */
html[data-ui="b"] .bundle-hero-media { position: relative; border: 2px solid var(--hb-ink); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 var(--hb-ink); }
.bh-stamp {
	position: absolute; left: 50%; top: 50%; z-index: 2; padding: 0.4rem 1rem;
	border: 4px solid var(--stamp); border-radius: 10px; color: var(--stamp); background: rgba(255, 255, 255, 0.78);
	font: 400 1.6rem/1 var(--display); text-transform: uppercase; white-space: nowrap;
	opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(2.2); pointer-events: none;
}
[data-bundle-hero].is-in .bh-stamp { animation: bh-stamp 0.42s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes bh-stamp { to { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } }
html[data-ui="b"] .pdp--bundle .pdp-add { border: 2px solid var(--hb-ink); box-shadow: 0 4px 0 var(--hb-ink); background: var(--hot); }
html[data-ui="b"] .pdp--bundle .pdp-add:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hb-ink); }
html[data-ui="b"] .bundle-qty-wrap { position: relative; }
html[data-ui="b"] .bundle-qty { z-index: 3; }
@media (prefers-reduced-motion: reduce) { [data-bundle-hero].is-in .bh-stamp { animation: none; opacity: 1; transform: translate(-50%, -50%) rotate(-12deg); } }
html[data-ui="b"] .build-shelf, html[data-ui="b"] .shelf-filter-bar { min-width: 0; max-width: 100%; }

/* An empty box on a phone is a corner button, not a bar: a full-width bar
 * with nothing in it only hides the page (it sat over "Add this box"). */
@media (max-width: 640px) {
	.dock.is-empty { left: auto; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; padding: 0; border-width: 2px; border-radius: 18px; box-shadow: 0 4px 0 var(--hb-ink); }
	.dock.is-empty .dock-info, .dock.is-empty .dock-go, .dock.is-empty .dock-sound { display: none; }
	.dock.is-empty .dock-box { padding: 10px 10px 4px; }
	body:has(.dock.is-empty) { padding-bottom: 0; }
}

/* ======================================================= the menu ==== */
/* nav-b.php: "Shop" opens a full-width panel under the sticky header; the
 * rest of the bar is the shortest ways in. Panel = every aisle with its art,
 * quick shelves, boxes, top brands, all live counts (Nav::data). */
.site-head .head-nav.nb { gap: 1.35rem; }
.nb-shop { position: static; }
.site-head .head-nav .nb-shop-btn {
	padding: 0.45rem 0.85rem; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 99px; gap: 8px;
}
.site-head .head-nav .nb-shop-btn:hover, .nb-shop.is-open .nb-shop-btn {
	border-color: #fff; background: #fff; color: var(--cobalt-deep); border-bottom-color: #fff;
}
.nb-burger { display: inline-grid; gap: 2.5px; }
.nb-burger i { display: block; width: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s; }
.nb-shop.is-open .nb-burger i:nth-child(1) { transform: translateX(3px); }
.nb-shop.is-open .nb-burger i:nth-child(3) { transform: translateX(-3px); }
.nb-shop.is-open .nav-caret-svg { transform: rotate(180deg); }
.nb-badge {
	display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; margin-left: 2px;
	border-radius: 99px; background: var(--sun); color: var(--hb-ink); font-size: 0.7rem; letter-spacing: 0;
}
.site-head .head-nav .nb-build {
	padding: 0.45rem 0.95rem; border: 2px solid var(--hb-ink); border-radius: 99px;
	background: var(--hot); color: #fff; opacity: 1; box-shadow: 0 3px 0 var(--hb-ink);
}
.site-head .head-nav .nb-build:hover, .site-head .head-nav .nb-build.is-active {
	color: #fff; background: var(--hot-deep); border-bottom-color: var(--hb-ink); transform: translateY(-1px);
}
@media (max-width: 1240px) { .nb-hide-md { display: none !important; } .site-head .head-nav.nb { gap: 1rem; } }
@media (max-width: 1060px) { .nb-new { display: none !important; } }

.mega {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 99;
	background: #fff; color: var(--ink); border-top: 3px solid var(--hot); border-bottom: 3px solid var(--hb-ink);
	box-shadow: 0 24px 40px rgba(11, 26, 86, 0.25);
	font-family: var(--body); font-size: 0.92rem; font-weight: 400; letter-spacing: 0; text-transform: none;
	visibility: hidden; opacity: 0; transform: translateY(-8px);
	transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s;
}
.nb-shop.is-open .mega { visibility: visible; opacity: 1; transform: none; transition: opacity 0.18s, transform 0.18s, visibility 0s; }
.mega-grid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.mega-col + .mega-col { border-left: 1px solid var(--line); padding-left: 1.6rem; }
.site-head .mega a { color: var(--ink); opacity: 1; text-decoration: none; }
.mega-h { margin: 0 0 0.7rem; font: 700 0.82rem var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hot-deep); }
.site-head .mega .mega-h a { color: var(--hot-deep); }
.mega-h--sub { margin-top: 1.2rem; }
.mega-aisle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
.mega-aisle {
	display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 0.6rem;
	padding: 0.3rem 0.5rem 0.3rem 0.3rem; border: 2px solid transparent; border-radius: 12px; transition: background-color 0.15s, border-color 0.15s;
}
.site-head .mega .mega-aisle:hover, .mega-aisle.is-current { background: #fff6d6; border-color: var(--hb-ink); }
.mega-aisle-art { display: block; width: 54px; height: 36px; border-radius: 8px; overflow: hidden; background: var(--ai-bg); }
.mega-aisle-art img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; transition: transform 0.25s; }
.mega-aisle:hover .mega-aisle-art img { transform: scale(1.18); }
.mega-aisle-name { font: 700 0.9rem/1.1 var(--ui); letter-spacing: 0.02em; text-transform: uppercase; }
.mega-aisle-n { font-size: 0.75rem; color: var(--grey); }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.mega-list a { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.5rem; border-radius: 10px; font-weight: 600; }
.site-head .mega .mega-list a:hover { background: #f1f3fb; color: var(--cobalt-deep); }
.mega-list em { margin-left: auto; font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--grey); }
.mega-ico { width: 1.4em; text-align: center; }
.mega-colors { display: flex; flex-wrap: wrap; gap: 0.45rem; padding-left: 0.5rem; }
.mega-colors a { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid var(--hb-ink); box-shadow: 0 2px 0 var(--hb-ink); transition: transform 0.15s; }
.mega-colors a:hover { transform: translateY(-3px) scale(1.08); }
.mega-brand-list { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem 0.8rem; }
.mega-brand-list a { display: flex; justify-content: space-between; gap: 0.4rem; padding: 0.28rem 0; font-size: 0.88rem; }
.site-head .mega .mega-brand-list a:hover { color: var(--hot-deep); text-decoration: underline; }
.mega-brand-list em { font-style: normal; font-size: 0.72rem; color: var(--grey); }
.site-head .mega .mega-all { display: inline-block; padding: 0.4rem 0.8rem; border: 2px solid var(--hb-ink); border-radius: 99px; font: 700 0.85rem var(--ui); letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 2px 0 var(--hb-ink); }
.site-head .mega .mega-all:hover { background: var(--sun); }
.mega-foot { background: var(--night); color: rgba(255, 255, 255, 0.88); }
.mega-foot .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; font: 600 0.85rem var(--ui); letter-spacing: 0.05em; text-transform: uppercase; }
@media (max-width: 1240px) {
	.mega-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
	.mega-brands { display: none; }
	.mega-aisle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .mega, .nb-shop.is-open .mega { transition: none; transform: none; } }

/* ------------------------------------------------- phone drawer (dr) -- */
.dr { display: flex; flex-direction: column; gap: 0.3rem; }
.dr-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.4rem; }
.dr-chips a { padding: 0.4rem 0.75rem; border: 2px solid var(--hb-ink); border-radius: 99px; background: #fff; color: var(--hb-ink); font: 700 0.85rem var(--ui); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; box-shadow: 0 2px 0 var(--hb-ink); }
.dr-chips a b { padding: 0 5px; border-radius: 99px; background: var(--sun); font-size: 0.72rem; }
.dr-h { margin: 0.9rem 0 0.35rem; font: 700 0.8rem var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hot-deep); }
.dr-h a { color: inherit; text-decoration: none; }
.dr-aisles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.dr-aisle { position: relative; display: block; height: 64px; overflow: hidden; border: 2px solid var(--hb-ink); border-radius: 12px; background: var(--ai-bg); text-decoration: none; }
.dr-aisle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; }
.dr-aisle span { position: absolute; left: 0; bottom: 0; right: 0; padding: 0.25rem 0.45rem; background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent); color: #fff; font: 700 0.78rem/1.1 var(--ui); letter-spacing: 0.03em; text-transform: uppercase; }
.dr-aisle.is-current { box-shadow: 0 0 0 3px var(--sun); }
.dr-brands { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.dr-brands a { padding: 0.3rem 0.6rem; border: 1.5px solid var(--line); border-radius: 99px; font-size: 0.82rem; color: var(--ink); text-decoration: none; }
.dr-brands a.dr-brands-all { border-color: var(--hb-ink); font-weight: 700; }

/* ======================================================= shelves ==== */
.sh-banner { min-height: 280px; }
.sh-banner::after { display: none; }
.sh-stack { position: absolute; right: max(2rem, calc((100vw - 1200px) / 2)); top: 50%; z-index: -1; width: 420px; height: 240px; transform: translateY(-50%); }
.sh-tile {
	position: absolute; width: 150px; height: 150px; padding: 10px; border: 2px solid var(--hb-ink); border-radius: 18px; background: #fff; box-shadow: 5px 5px 0 var(--hb-ink);
	left: calc(var(--i) * 66px); top: calc(((var(--i) * 37) - (var(--i) * var(--i) * 9)) * 1px + 40px);
	transform: rotate(calc((var(--i) - 2) * 6deg)); animation: sh-drop 0.6s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--i) * 90ms);
}
.sh-tile img { width: 100%; height: 100%; object-fit: contain; }
@keyframes sh-drop { from { opacity: 0; transform: translateY(-60px) rotate(0); } }
.sh-kicker { margin: 0.4rem 0 0; font: 700 0.85rem var(--ui); letter-spacing: 0.12em; text-transform: uppercase; }
.sh-others { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sh-others a { padding: 0.35rem 0.75rem; border: 2px solid var(--hb-ink); border-radius: 99px; background: #fff; color: var(--hb-ink); font: 700 0.85rem var(--ui); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; box-shadow: 0 2px 0 var(--hb-ink); }
.sh-others a:hover { background: var(--sun); }
.sh-ranked { counter-reset: rank; }
.sh-ranked > .card-wrap { counter-increment: rank; }
.sh-ranked > .card-wrap::before {
	content: counter(rank); position: absolute; top: -10px; left: -10px; z-index: 3; display: grid; place-items: center;
	min-width: 38px; height: 38px; padding: 0 6px; border: 2px solid var(--hb-ink); border-radius: 99px;
	background: var(--sun); color: var(--hb-ink); font: 400 1rem/1 var(--display); box-shadow: 0 2px 0 var(--hb-ink);
}
.sh-ranked > .card-wrap:nth-child(-n+3)::before { background: var(--hot); color: #fff; }
@media (max-width: 900px) { .sh-stack { display: none; } }
@media (prefers-reduced-motion: reduce) { .sh-tile { animation: none; } }

/* ======================================================= sort bar ==== */
.sortbar { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.sortbar-n { margin: 0; color: var(--grey); }
.sortbar-n b { color: var(--hb-ink); font: 700 1.1rem var(--ui); }
.sortbar-chips { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.sortbar-k { font: 700 0.8rem var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-right: 0.2rem; }
.sortbar-chip { padding: 0.35rem 0.8rem; border: 2px solid var(--line); border-radius: 99px; color: var(--ink); font: 700 0.85rem var(--ui); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.sortbar-chip:hover { border-color: var(--hb-ink); }
.sortbar-chip.is-on { border-color: var(--hb-ink); background: var(--hb-ink); color: #fff; }
@media (max-width: 640px) {
	.sortbar-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
	.sortbar-chip { flex: 0 0 auto; }
}

/* ======================================================= brands A-Z ==== */
.az { background: #fffaf0; scroll-margin-top: 90px; }
.az-jump { position: sticky; top: 74px; z-index: 5; display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 1.5rem; padding: 0.5rem; border: 2px solid var(--hb-ink); border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--hb-ink); }
.az-jump a, .az-jump span { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 8px; font: 700 0.95rem var(--ui); }
.az-jump a { color: var(--hb-ink); text-decoration: none; }
.az-jump a:hover { background: var(--sun); }
.az-jump span { color: #c5c8d2; }
.az-cols { columns: 4 220px; column-gap: 2rem; }
.az-group { break-inside: avoid; margin-bottom: 1.2rem; scroll-margin-top: 140px; }
.az-group h3 { margin: 0 0 0.3rem; font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--hot); }
.az-group ul { list-style: none; margin: 0; padding: 0; }
.az-group li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.22rem 0; border-bottom: 1px dashed #e8dfca; }
.az-group li a { color: var(--ink); text-decoration: none; }
.az-group li a:hover { color: var(--hot-deep); text-decoration: underline; }
.az-group li span { color: var(--grey); font-size: 0.82rem; }
@media (max-width: 640px) { .az-jump { top: 64px; } .az-jump a, .az-jump span { min-width: 26px; height: 28px; } }
/* menu, round 2: names stack over counts so an aisle reads in two lines */
.mega-grid { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5rem; }
.mega-col + .mega-col { padding-left: 1.3rem; }
.mega-aisle { grid-template-columns: 54px minmax(0, 1fr); gap: 0.55rem; }
.mega-aisle-txt { display: flex; flex-direction: column; min-width: 0; }
.mega-aisle-name { font-size: 0.86rem; line-height: 1.05; }
.mega-aisle-n { margin-top: 2px; font-size: 0.72rem; }
.mega-list a { padding: 0.38rem 0.45rem; font-size: 0.88rem; white-space: nowrap; }
.mega-brand-list { gap: 0 0.8rem; }
.mega-brand-list a { font-size: 0.84rem; align-items: baseline; }
.mega-brand-list a > em { flex: none; }
@media (max-width: 1240px) { .mega-grid { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr); } }
/* the phone drawer is navy: brand chips in white */
.dr-brands a { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.dr-brands a.dr-brands-all { border-color: var(--sun); color: var(--sun); }

/* ============================================ kraft box, redrawn ==== */
/* 2026-12-03: the flaps were thin planks pivoting on one corner, so they
 * floated beside the box. Now every panel is a polygon on the same grid
 * (front top edge at y=36%): the inner wall's top corners are the flaps'
 * inner hinge points, so flaps, wall and front all share edges. Closing
 * morphs each flap's polygon into half of the lid (same point count, so
 * clip-path interpolates). */
.kbox::before { /* the back flap, standing up behind the opening */
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(var(--kraft), var(--kraft-lo));
	clip-path: polygon(14% 18%, 86% 18%, 82% 2%, 18% 2%);
	transition: opacity 0.2s;
}
.kbox-back {
	left: 0; right: 0; top: 0; height: 100%; border-radius: 0;
	background: linear-gradient(#5e3b17, #8a5c2e 70%);
	box-shadow: none;
	clip-path: polygon(0 36%, 100% 36%, 90% 18%, 10% 18%);
}
.kbox-front {
	height: 64%;
	border-radius: 0 0 4px 4px;
	box-shadow: inset 0 3px 0 rgba(255, 236, 200, 0.45), inset 0 0 0 1.5px var(--kraft-edge), inset 0 -8px 14px rgba(70, 40, 10, 0.25);
}
.kbox-flap {
	top: 0; height: 100%; width: 160%; left: -30%; right: auto;
	border-radius: 0; box-shadow: none;
	transform: none !important;
	background: linear-gradient(160deg, var(--kraft-hi), var(--kraft) 55%, var(--kraft-lo));
	transition: clip-path 0.45s cubic-bezier(0.5, 0, 0.3, 1.15);
}
/* flap boxes span x = -30%..130% of the box: x' = (x + 30) / 1.6 */
.kbox-flap--l { clip-path: polygon(18.75% 36%, 25% 18%, 10% 4%, 2.5% 22%); }
.kbox-flap--r { clip-path: polygon(81.25% 36%, 75% 18%, 90% 4%, 97.5% 22%); background: linear-gradient(200deg, var(--kraft-hi), var(--kraft) 55%, var(--kraft-lo)); }
.kbox.is-closed .kbox-flap--l { clip-path: polygon(18.75% 36%, 25% 24%, 50% 24%, 50% 36%); }
.kbox.is-closed .kbox-flap--r { clip-path: polygon(81.25% 36%, 75% 24%, 50% 24%, 50% 36%); }
.kbox.is-closed::before { opacity: 0; }
.kbox-tape { top: 24%; left: 44%; width: 12%; height: 30%; }
.kbox--sm .kbox-items { bottom: 50%; }
@media (prefers-reduced-motion: reduce) { .kbox-flap { transition: none; } }

/* =================================================== hero: station ==== */
.hb-hero {
	background-image:
		radial-gradient(ellipse 55% 70% at 74% 58%, rgba(63, 182, 242, 0.3), transparent 70%),
		linear-gradient(100deg, rgba(11, 26, 86, 0.97) 0%, rgba(11, 26, 86, 0.93) 45%, rgba(11, 26, 86, 0.8) 100%),
		url('https://epicsnackbox-originals.b-cdn.net/images/heroes/hero-cobalt.webp');
}
.st { position: relative; min-width: 0; max-width: 600px; justify-self: end; width: 100%; }
.st-wall {
	position: relative; padding: 2.1rem 1.1rem 3.6rem;
	border: 3px solid var(--hb-ink); border-radius: 20px;
	background:
		radial-gradient(circle, rgba(70, 40, 10, 0.32) 2px, transparent 2.6px) 0 0 / 22px 22px,
		linear-gradient(#e3c493, #d4ac72);
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}
.st-sign {
	position: absolute; top: -16px; left: 50%; margin: 0; padding: 0.25rem 1rem;
	border: 2px solid var(--hb-ink); border-radius: 8px; background: var(--hot); color: #fff;
	font: 400 1rem/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.04em;
	transform: translateX(-50%) rotate(-3deg); box-shadow: 0 3px 0 var(--hb-ink); white-space: nowrap;
}
.st-restock {
	position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 0.35rem;
	padding: 0.25rem 0.6rem; border: 2px solid var(--hb-ink); border-radius: 99px; background: #fff; color: var(--hb-ink);
	font: 700 0.72rem var(--ui); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 2px 0 var(--hb-ink);
}
.st-restock:hover { background: var(--sun); }
.st-restock:hover svg { transform: rotate(-200deg); }
.st-restock svg { transition: transform 0.4s; }
.st-restock:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.st-shelf {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 132px; gap: 0 0.7rem;
	margin: 0; padding: 0 0.3rem; list-style: none;
	/* a wooden plank under each row */
	background: repeating-linear-gradient(to bottom, transparent 0 120px, #6b4420 120px 122px, #9c6c3a 122px 130px, rgba(0, 0, 0, 0.18) 130px 132px);
}
.st-item {
	position: relative; align-self: end; margin-bottom: 12px;
	transform: rotate(calc((var(--i) - 3.5) * 0.9deg));
	transition: transform 0.3s cubic-bezier(.3, 1.5, .5, 1), opacity 0.3s;
}
.st-link { display: block; padding: 6px; border: 2px solid var(--hb-ink); border-radius: 12px; background: #fff; box-shadow: 0 4px 0 rgba(60, 35, 10, 0.55); }
.st-link img { display: block; width: 100%; max-width: 92px; height: 92px; margin: 0 auto; object-fit: contain; }
.st-item:hover { transform: translateY(-6px) rotate(0deg); }
.st-price {
	position: absolute; top: -9px; left: -7px; padding: 0.05rem 0.4rem; border: 2px solid var(--hb-ink); border-radius: 6px;
	background: var(--sun); color: var(--hb-ink); font: 700 0.8rem var(--ui); transform: rotate(-6deg);
}
.st-item .boop { position: absolute; right: -9px; bottom: -9px; --sz: 34px; }
.st-item.is-wink { animation: st-wink 1.1s cubic-bezier(.3, 1.6, .5, 1); }
.st-item.is-wink .boop { animation: st-ring 1.1s ease-out; }
@keyframes st-wink { 20% { transform: translateY(-14px) rotate(-4deg); } 45% { transform: translateY(0) rotate(2deg); } 60% { transform: translateY(-5px); } }
@keyframes st-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 112, 0.7); } 100% { box-shadow: 0 0 0 16px rgba(255, 59, 112, 0); } }
.st-shelf.is-clearing .st-item { opacity: 0; transform: translateY(30px) rotate(8deg); transition-delay: calc(var(--i) * 25ms); }
.st-item.is-dropping { animation: st-drop 0.6s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes st-drop { from { opacity: 0; transform: translateY(-70px) rotate(-10deg); } }

.st-floor { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; gap: 1.4rem; margin-top: -66px; }
.st-boxlink { display: block; }
.kbox--xl { --w: 210px; --h: 176px; }
.st-box { filter: drop-shadow(0 14px 10px rgba(0, 0, 0, 0.35)); }
.st-box .kbox-items { left: 6%; right: 6%; bottom: 44%; height: 50%; display: block; }
.st-box .kbox-items img {
	position: absolute; left: var(--x); bottom: var(--b); width: 38%; margin: 0;
	border: 2px solid var(--hb-ink); border-radius: 10px; transform: rotate(var(--r));
}
.st-box .kbox-items img.is-new { animation: st-land 0.5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes st-land { from { transform: translateY(-30px) rotate(var(--r)) scale(0.7); } }
.st-brand { position: absolute; top: 22%; left: 0; right: 0; text-align: center; font: 400 calc(var(--w) * 0.1) / 0.95 var(--display); color: rgba(80, 45, 15, 0.42); letter-spacing: 0.02em; }
.st-box .kbox-front { position: absolute; }
.st-box .kbox-stamp { position: relative; z-index: 1; font-size: 26px; }
.st-box.is-waiting .kbox-flap--l { animation: st-flap-l 2.4s ease-in-out infinite; }
.st-box.is-waiting .kbox-flap--r { animation: st-flap-r 2.4s ease-in-out infinite 0.15s; }
@keyframes st-flap-l { 50% { clip-path: polygon(18.75% 36%, 25% 18%, 13% 1%, 4% 16%); } }
@keyframes st-flap-r { 50% { clip-path: polygon(81.25% 36%, 75% 18%, 87% 1%, 96% 16%); } }
.st-tag {
	position: relative; display: flex; flex-direction: column; gap: 0.2rem; width: 220px; margin-bottom: 18px;
	padding: 0.7rem 0.9rem 0.8rem 1.6rem; border: 2px solid var(--hb-ink); border-radius: 6px 14px 14px 6px;
	background: #fffaf0; color: var(--hb-ink); transform: rotate(3deg); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.st-tag-hole { position: absolute; left: 0.5rem; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: 2px solid var(--hb-ink); border-radius: 50%; background: var(--night); }
.st-tag small { font: 700 0.7rem var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hot-deep); }
.st-tag strong { font: 700 1.15rem/1.1 var(--ui); text-transform: uppercase; }
.st-tag-bar { position: relative; height: 8px; margin: 0.25rem 0; border: 1.5px solid var(--hb-ink); border-radius: 99px; background: #fff; overflow: hidden; }
.st-tag-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(-45deg, var(--hot) 0 5px, #ff7d9f 5px 10px); transition: width 0.5s; }
.st-tag-next { font-size: 0.82rem; line-height: 1.3; color: #3b3f4f; }
.st-tag-next b { color: var(--hot-deep); }

@media (max-width: 960px) { .st { justify-self: stretch; max-width: none; } }
@media (max-width: 640px) {
	.st-wall { padding: 1.8rem 0.6rem 3.2rem; }
	.st-shelf { gap: 0 0.45rem; grid-auto-rows: 106px; background: repeating-linear-gradient(to bottom, transparent 0 96px, #6b4420 96px 98px, #9c6c3a 98px 104px, rgba(0, 0, 0, 0.18) 104px 106px); }
	.st-link { padding: 4px; border-radius: 10px; }
	.st-link img { height: 66px; }
	.st-item { margin-bottom: 10px; }
	.st-item .boop { --sz: 28px; right: -7px; bottom: -7px; }
	.st-price { font-size: 0.7rem; }
	.st-restock { top: auto; bottom: 8px; right: 8px; }
	.kbox--xl { --w: 150px; --h: 126px; }
	.st-floor { gap: 0.6rem; margin-top: -48px; }
	.st-tag { width: 170px; padding-left: 1.4rem; }
	.st-tag strong { font-size: 0.95rem; }
	.st-tag-next { font-size: 0.74rem; }
	.st-box .kbox-stamp { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.st-item, .st-item.is-wink, .st-item.is-dropping, .st-box.is-waiting .kbox-flap--l, .st-box.is-waiting .kbox-flap--r, .st-box .kbox-items img.is-new { animation: none; transition: none; }
}

/* ======================================= product photo, on a stand ==== */
/* Was a yellow candy-stripe behind the photo. Now the photo is a white
 * card standing on its aisle's colour (the same palette as the aisle art),
 * with a halftone wash and a link back to that aisle. */
html[data-ui="b"] .pdp-img {
	position: sticky; overflow: hidden;
	background:
		radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.42), transparent 58%),
		radial-gradient(circle, color-mix(in srgb, var(--ai-ink, #fff) 16%, transparent) 1.6px, transparent 2px) 0 0 / 16px 16px,
		var(--ai-bg, #233B9E);
}
html[data-ui="b"] .pdp-img img {
	width: 76%; height: 76%; margin-bottom: 6%; padding: 1.1rem;
	background: #fff; border: 2px solid var(--hb-ink); border-radius: 18px;
	box-shadow: 8px 8px 0 color-mix(in srgb, var(--hb-ink) 85%, transparent);
	filter: none; transform: rotate(-2deg);
	transition: transform 0.3s cubic-bezier(.3, 1.4, .5, 1), box-shadow 0.3s;
}
html[data-ui="b"] .pdp-img:hover img { transform: rotate(0deg) translateY(-6px); box-shadow: 10px 14px 0 color-mix(in srgb, var(--hb-ink) 85%, transparent); }
.pdp-aisle {
	position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%);
	padding: 0.35rem 0.85rem; border: 2px solid var(--hb-ink); border-radius: 99px;
	background: #fff; color: var(--hb-ink); box-shadow: 0 3px 0 var(--hb-ink);
	font: 700 0.8rem var(--ui); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.pdp-aisle:hover { background: var(--sun); }
@media (max-width: 640px) { .pdp-aisle { font-size: 0.7rem; bottom: 10px; } html[data-ui="b"] .pdp-img img { padding: 0.7rem; } }
@media (prefers-reduced-motion: reduce) { html[data-ui="b"] .pdp-img img { transition: none; } }
.hb-hero {
	background-image:
		radial-gradient(ellipse 55% 70% at 74% 58%, rgba(63, 182, 242, 0.26), transparent 70%),
		linear-gradient(100deg, rgba(11, 26, 86, 0.97) 0%, rgba(11, 26, 86, 0.95) 50%, rgba(11, 26, 86, 0.9) 100%),
		url('https://epicsnackbox-originals.b-cdn.net/images/heroes/hero-cobalt.webp');
}
.st-brand { transition: opacity 0.15s; }
.st-box.is-stamped .st-brand { opacity: 0; }

/* ================================================ the box deck ==== */
/* box-deck.php on /bundles: the old homepage deck, restyled in ink. */
.bx-head .bb-head-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; }
.bx-head .bx-facts { margin-top: 1.2rem; }
.bx-head { padding-bottom: 1.8rem; overflow: hidden; }
.deck { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding-top: 0.6rem; }
.deck-stage { position: relative; width: min(100%, 330px); aspect-ratio: 1 / 1.24; outline: none; touch-action: pan-y; }
.deck-stage:focus-visible { outline: 3px solid var(--sun); outline-offset: 10px; border-radius: 20px; }
.deck-card {
	position: absolute; inset: 0 0 auto 0; display: block; overflow: hidden;
	border: 3px solid var(--hb-ink); border-radius: 18px; background: #fff; color: var(--ink);
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
	transform-origin: 50% 110%;
	transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, filter 0.45s ease;
	will-change: transform;
}
.deck-photo { position: relative; display: block; }
.deck-photo picture, .deck-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.deck-card[data-pos="0"] { z-index: 6; transform: rotate(-3deg); }
.deck-card[data-pos="1"] { z-index: 5; transform: translate(10%, 2%) rotate(5deg) scale(0.93); filter: brightness(0.8); }
.deck-card[data-pos="2"] { z-index: 4; transform: translate(19%, 4%) rotate(12deg) scale(0.86); filter: brightness(0.62); }
.deck-card:not([data-pos="0"]):not([data-pos="1"]):not([data-pos="2"]) { z-index: 1; opacity: 0; transform: translate(22%, 6%) rotate(15deg) scale(0.8); pointer-events: none; }
.deck-card[data-pos="0"]:hover { transform: rotate(-1deg) translateY(-6px); }
/* The card being dealt away is flicked off to the left, then slips in at the back. */
.deck-card.is-flick { z-index: 7; animation: deck-flick 0.6s cubic-bezier(.4, 0, .3, 1); }
@keyframes deck-flick {
	0% { transform: rotate(-3deg); opacity: 1; filter: none; }
	45% { transform: translate(-72%, -8%) rotate(-22deg); opacity: 1; filter: none; }
	100% { transform: translate(22%, 6%) rotate(15deg) scale(0.8); opacity: 0; }
}
.deck-card.is-unflick { z-index: 7; animation: deck-unflick 0.55s cubic-bezier(.2, .8, .2, 1); }
@keyframes deck-unflick { 0% { transform: translate(-72%, -8%) rotate(-22deg); } }
.deck-tag { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.7rem 0.9rem 0.8rem; background: #fff; border-top: 2px solid var(--hb-ink); }
.deck-name {
	font: 700 1.05rem/1.15 var(--ui); text-transform: uppercase; color: var(--cobalt-deep); text-decoration: none;
	display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.deck-meta { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--grey); }
.deck-price { font: 700 1.2rem var(--ui); color: var(--hot); }
.deck-add {
	margin-left: auto; padding: 0.3rem 0.75rem; border: 2px solid var(--hb-ink); border-radius: 99px;
	background: var(--sun); color: var(--hb-ink); font: 700 0.8rem var(--ui); letter-spacing: 0.04em; text-transform: uppercase;
	cursor: pointer; box-shadow: 0 2px 0 var(--hb-ink);
}
.deck-add:active { transform: translateY(2px); box-shadow: none; }
.deck-add.is-booped { background: var(--mint); color: #fff; }
.deck-new { position: absolute; top: 10px; left: 10px; padding: 0.15rem 0.55rem; border: 2px solid var(--hb-ink); border-radius: 6px; background: var(--sun); color: var(--hb-ink); font: 700 0.75rem var(--ui); letter-spacing: 0.06em; text-transform: uppercase; }
.deck-controls { position: relative; z-index: 8; display: flex; align-items: center; gap: 0.9rem; margin-top: 1.1rem; color: #fff; }
.deck-btn {
	width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.08);
	color: #fff; font-size: 1.15rem; cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.deck-btn:hover { background: var(--hot); border-color: var(--hot); transform: scale(1.06); }
.deck-btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.deck-count { font: 700 0.9rem var(--ui); letter-spacing: 0.08em; min-width: 4ch; text-align: center; }
@media (max-width: 900px) {
	.bx-head .bb-head-grid { grid-template-columns: 1fr; }
	.deck-stage { width: min(72%, 290px); }
}
@media (prefers-reduced-motion: reduce) {
	.deck-card { transition: none; }
	.deck-card.is-flick, .deck-card.is-unflick { animation: none; }
	.deck-card[data-pos="0"]:hover { transform: rotate(-3deg); }
}
@media (max-width: 900px) { html[data-ui="b"] .pdp-img { position: relative !important; } }
@media (max-width: 640px) {
	.st-item:nth-child(n+5) { display: none; }
	.st-floor { padding-left: 40px; }
	.st-tag { width: 156px; }
}
@media (max-width: 640px) {
	.st-restock { top: 8px; bottom: auto; right: 8px; font-size: 0; gap: 0; padding: 0.35rem; }
}

/* ======================================= /build: brand row in the head ==== */
/* Replaces the shelf's search + dropdown + chip cloud (2026-12-03). Ranked by
 * 30-day units sold within the open aisle (Catalog::builderBrands). */
.bb-brands { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.8rem; }
.bb-brands-k { flex: none; display: flex; flex-direction: column; font: 700 0.78rem/1.1 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun); }
.bb-brands-k small { font-size: 0.68rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.6); }
.bb-brand-scroll {
	display: flex; gap: 0.4rem; min-width: 0; overflow-x: auto; padding: 0.2rem 0.1rem 0.35rem; scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent);
}
.bb-brand-scroll::-webkit-scrollbar { display: none; }
.bb-brand {
	flex: 0 0 auto; padding: 0.35rem 0.75rem; border: 2px solid rgba(255, 255, 255, 0.25); border-radius: 99px;
	color: #fff; font: 700 0.82rem var(--ui); letter-spacing: 0.03em; text-decoration: none; white-space: nowrap;
	transition: border-color 0.15s, background-color 0.15s;
}
.bb-brand em { font-style: normal; font-weight: 600; opacity: 0.55; margin-left: 0.15rem; }
.bb-brand:hover { border-color: #fff; }
.bb-brand.is-on { border-color: var(--sun); background: var(--sun); color: var(--hb-ink); }
.bb-brand.is-on em { opacity: 0.7; }
.bb-brand-more { position: relative; flex: none; }
.bb-brand-more summary {
	list-style: none; cursor: pointer; padding: 0.35rem 0.8rem; border: 2px solid #fff; border-radius: 99px;
	background: #fff; color: var(--hb-ink); font: 700 0.82rem var(--ui); letter-spacing: 0.03em; white-space: nowrap;
}
.bb-brand-more summary::-webkit-details-marker { display: none; }
.bb-brand-more[open] summary { background: var(--sun); border-color: var(--sun); }
.bb-brand-pop {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 300px; padding: 0.7rem;
	border: 2px solid var(--hb-ink); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 6px 6px 0 var(--hb-ink);
}
.bb-brand-find { width: 100%; padding: 0.5rem 0.7rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.bb-brand-find:focus { outline: none; border-color: var(--hb-ink); }
.bb-brand-pop ul { list-style: none; margin: 0.5rem 0 0; padding: 0; max-height: 320px; overflow-y: auto; }
.bb-brand-pop li a { display: flex; justify-content: space-between; padding: 0.35rem 0.45rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.bb-brand-pop li a:hover, .bb-brand-pop li a.is-on { background: #fff6d6; }
.bb-brand-pop li em { font-style: normal; color: var(--grey); font-size: 0.78rem; }
.bb-brand-none { margin: 0.5rem 0 0; color: var(--grey); font-size: 0.85rem; }
@media (max-width: 640px) {
	.bb-brands { flex-wrap: wrap; gap: 0.45rem; }
	.bb-brands-k { flex-direction: row; gap: 0.4rem; align-items: baseline; }
	.bb-brand-scroll { order: 3; flex: 1 1 100%; }
	.bb-brand-more { margin-left: auto; }
	.bb-brand-pop { width: min(300px, calc(100vw - 2rem)); }
}

/* menu, round 3: the two middle columns carry pictures, not just links */
.mega-shelves { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.mega-shelves a { display: flex; align-items: center; gap: 0.7rem; padding: 0.35rem 0.4rem; border: 2px solid transparent; border-radius: 12px; }
.site-head .mega .mega-shelves a:hover, .mega-shelves a.is-current { background: #fff6d6; border-color: var(--hb-ink); }
.mega-fan { position: relative; flex: none; width: 74px; height: 44px; }
.mega-fan img {
	position: absolute; top: 2px; left: calc(var(--k) * 17px); width: 40px; height: 40px; padding: 2px; object-fit: contain;
	border: 1.5px solid var(--hb-ink); border-radius: 9px; background: #fff;
	transform: rotate(calc((var(--k) - 1) * 9deg)); transition: transform 0.25s cubic-bezier(.3, 1.5, .5, 1);
	z-index: calc(3 - var(--k));
}
.mega-shelves a:hover .mega-fan img { transform: translateX(calc((var(--k) - 1) * 5px)) translateY(-3px) rotate(calc((var(--k) - 1) * 14deg)); }
.mega-shelf-txt { display: flex; flex-direction: column; min-width: 0; }
.mega-shelf-txt b { font: 700 0.95rem/1.1 var(--ui); letter-spacing: 0.02em; text-transform: uppercase; }
.mega-shelf-txt small { font-size: 0.75rem; color: var(--grey); }
.mega-feature { position: relative; display: block; margin-bottom: 0.6rem; border: 2px solid var(--hb-ink); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 4px 4px 0 var(--hb-ink); transition: transform 0.2s, box-shadow 0.2s; }
.site-head .mega .mega-feature:hover { transform: translate(-2px, -2px) rotate(-0.6deg); box-shadow: 6px 6px 0 var(--hb-ink); }
.mega-feature picture, .mega-feature img { display: block; width: 100%; height: 128px; object-fit: cover; }
.mega-feature-flag { position: absolute; top: 8px; left: 8px; padding: 0.1rem 0.5rem; border: 2px solid var(--hb-ink); border-radius: 6px; background: var(--sun); font: 700 0.7rem var(--ui); letter-spacing: 0.08em; text-transform: uppercase; }
.mega-feature-tag { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.45rem 0.65rem 0.5rem; border-top: 2px solid var(--hb-ink); }
.mega-feature-tag b { font: 700 0.85rem/1.15 var(--ui); text-transform: uppercase; color: var(--cobalt-deep); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mega-feature-tag span { font-size: 0.78rem; color: var(--grey); }
.mega-feature-tag em { font: 700 0.95rem var(--ui); font-style: normal; color: var(--hot); }
.mega-list--tight a { padding: 0.28rem 0.45rem; font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .mega-fan img, .mega-feature { transition: none; } }
.mega-brand-list { grid-template-columns: 1fr; gap: 0.1rem; }
.mega-brand-list a { align-items: center; justify-content: flex-start; gap: 0.55rem; padding: 0.2rem 0.3rem; border-radius: 10px; }
.site-head .mega .mega-brand-list a:hover { background: #fff6d6; text-decoration: none; }
.site-head .mega .mega-brand-list a:hover .mega-brand-name { color: var(--hot-deep); }
.mega-brand-pic { flex: none; width: 32px; height: 32px; border: 1.5px solid var(--hb-ink); border-radius: 50%; overflow: hidden; background: #fff; }
.mega-brand-pic img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.mega-brand-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-brand-list a > em { margin-left: auto; }
/* /build crate head: the redrawn flaps reach ~26% past each side of the box,
 * so the box keeps that much clear space and the title sits right of it. */
html[data-ui="b"] .crate-head { column-gap: calc(104px * 0.3); }
html[data-ui="b"] .crate-kbox { margin-left: calc(104px * 0.27); }
html[data-ui="b"] .crate-head h2 { font-size: 1.25rem; line-height: 1.05; }
