/* =====================================================================================
   "Level Select" polish (Brian picked mockup B, 2026-10-11; designbook_shell/02-portfolio.md)
   Polish pass over the live paper-cut look. CSS-only, layered on the live stylesheets.

   Design read: indie game studio catalogue; the project grid reads like a game's
   level-select screen while the paper-cut header art, dotted wallpaper and papercut
   watermark layer stay exactly as they are.

   Shape rule (one system): panels/tiles/cards = 16-24px rounded paper; every control
   (filter chips, back button, badges) = full pill; numbers = pill medallions.
   Accent lock: rust #b34a2a everywhere. Gold is reserved for one semantic state only
   ("Live" medal). Green "live dot" retired in favour of the medal.

   Loaded from head.sub.php, i.e. BEFORE boredkiwi-portfolio.css / boredkiwi-project.css,
   which load later inside <body>. Every selector keeps the `html body` prefix so it still
   wins on specificity. Block headers name the base file each block overrides.
   ===================================================================================== */

/* Self-hosted (Google Fonts, SIL OFL, latin subset). Neither face has Hangul, so each
   family also maps the Hangul ranges to the site's own SUIT (fonts.css) at a matching
   heavy weight; otherwise Korean headings fell back to a thin regular weight. */
@font-face {
	font-family: 'Fredoka';
	font-weight: 500 700;
	font-display: swap;
	src: url(../fonts/Fredoka/Fredoka-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Fredoka';
	font-weight: 500 700;
	font-display: swap;
	src: url(../fonts/SUIT/woff/SUIT-Bold.woff2) format('woff2');
	unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF;
}
@font-face {
	font-family: 'Lilita One';
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/LilitaOne/LilitaOne-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Lilita One';
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/SUIT/woff/SUIT-Heavy.woff2) format('woff2');
	unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF;
}

/* ---- Tokens (merge into :root in boredkiwi-portfolio.css) ------------------------- */
:root {
	--ls-display: 'Lilita One', 'Outfit', 'Pretendard Variable', system-ui, sans-serif;  /* chunky headings */
	--ls-ui: 'Fredoka', 'Outfit', 'Pretendard Variable', system-ui, sans-serif;           /* chips, badges, labels */
	--ls-ink: #162019;
	--ls-paper: #f7f0e4;
	--ls-panel: #efe3cf;          /* slightly darker paper for icon wells */
	--ls-cream: #fffdf8;          /* die-cut sticker border */
	--ls-rust: #b34a2a;
	--ls-rust-deep: #85371f;
	--ls-rust-tint: #f7dfca;
	--ls-rust-soft: #ecc6b1;      /* heading offset shadow */
	--ls-gold: #f2b833;           /* "Live" medal only */
	--ls-shadow: rgba(120, 72, 40, .24);   /* warm paper shadow, tinted to the bg */
	--ls-line: rgba(22, 32, 25, .5);       /* die-cut line just outside the cream ring */
	--ls-spring: cubic-bezier(.34, 1.56, .64, 1);
	/* Sticker tile: cream ring + cut line + offset paper shadow (all box-shadow, so no
	   layout shift and nothing for overflow to clip). */
	--ls-tile-ring: 0 0 0 5px var(--ls-cream), 0 0 0 6.5px var(--ls-line);
	--ls-tile-shadow: var(--ls-tile-ring), 8px 10px 0 6.5px var(--ls-shadow);
	--ls-tile-shadow-up: var(--ls-tile-ring), 11px 15px 0 6.5px var(--ls-shadow);
	--ls-tile-shadow-down: var(--ls-tile-ring), 3px 4px 0 6.5px var(--ls-shadow);
}

/* =====================================================================================
   LIST PAGE  (boredkiwi-portfolio.css)
   ===================================================================================== */

/* ---- Catalogue intro: eyebrow becomes a rust ribbon tag, title goes chunky -------- */
html body #ProductListWrap .bk-catalogue-intro {
	gap: 40px;
	padding: 56px 0 8px;
	border-top: 0;
	border-bottom: 0;
}
html body #ProductListWrap .bk-catalogue-eyebrow {
	display: inline-block;
	margin: 0 0 18px;
	padding: 7px 14px 6px;
	border-radius: 999px;
	background: var(--ls-rust);
	color: var(--ls-cream);
	font-family: var(--ls-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .07em;
	box-shadow: 3px 3px 0 rgba(22, 32, 25, .22);
	transform: rotate(-2deg);
}
html body #ProductListWrap .bk-catalogue-title {
	font-family: var(--ls-display);
	font-size: clamp(46px, 5.6vw, 84px);
	font-weight: 400;              /* Lilita One ships one (heavy) weight */
	line-height: 1.02;
	letter-spacing: .005em;
	color: var(--ls-ink);
	text-shadow: 3px 4px 0 var(--ls-rust-soft);
}
html body #ProductListWrap .bk-catalogue-copy {
	max-width: 36ch;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.6;
	color: rgba(22, 32, 25, .82);
}

/* ---- Filter chips: chunky 3D toggle keys (sit up, press down when on) ------------- */
html body #ProductListWrap .bk-filter-wrap {
	gap: 12px;
	padding: 32px 0 56px;
}
html body #ProductListWrap .bk-filter-item {
	gap: 10px;
	min-height: 46px;
	padding: 0 18px 0 14px;
	border: 2.5px solid var(--ls-ink);
	border-radius: 999px;
	background: var(--ls-cream);
	color: var(--ls-ink);
	font-family: var(--ls-ui);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .01em;
	box-shadow: 0 4px 0 var(--ls-ink);
	cursor: pointer;
}
/* Toggle lamp: empty ring = off, filled gold = on. Conveys real state, not decoration. */
html body #ProductListWrap .bk-filter-item::before {
	content: "";
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	box-sizing: border-box;
	border: 2.5px solid currentColor;
	border-radius: 50%;
}
html body #ProductListWrap .bk-filter-item:has(input:checked) {
	background: var(--ls-rust);
	color: var(--ls-cream);
	box-shadow: 0 1px 0 var(--ls-ink);
	transform: translateY(3px);
}
html body #ProductListWrap .bk-filter-item:has(input:checked)::before {
	border-color: var(--ls-cream);
	background: var(--ls-gold);
}
html body #ProductListWrap .bk-filter-item:has(input:focus-visible) {
	outline: 3px solid var(--ls-rust);
	outline-offset: 4px;
}
@media (hover: hover) {
	html body #ProductListWrap .bk-filter-item:not(:has(input:checked)):hover {
		background: #fbeee0;
		box-shadow: 0 5px 0 var(--ls-ink);
		transform: translateY(-1px);
	}
}
html body #ProductListWrap .bk-filter-item:active {
	box-shadow: 0 0 0 var(--ls-ink);
	transform: translateY(4px);
}

/* ---- World counter + section banners ("WORLD 1" tab on a rust ribbon) ------------ */
html body #ProductListWrap .con-wrap { counter-reset: bk-world; }
html body #ProductListWrap .bk-catalogue-section { counter-increment: bk-world; }

html body #ProductListWrap .bk-section-heading {
	position: relative;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px 20px;
	margin: 0 0 48px;
	padding: 20px 0 0;
	border-top: 0;
}
/* The ribbon is the text block only: cut-paper strip with a notched (swallow) tail,
   cream die-cut edge + offset paper shadow via drop-shadow (box-shadow would be clipped).
   The "N projects" pill stays outside it, right-aligned by the live space-between. */
html body #ProductListWrap .bk-section-heading > div {
	position: relative;
	z-index: 0;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
	padding: 26px 64px 16px 22px;
	filter:
		drop-shadow(3px 0 0 var(--ls-cream))
		drop-shadow(-3px 0 0 var(--ls-cream))
		drop-shadow(0 3px 0 var(--ls-cream))
		drop-shadow(0 -3px 0 var(--ls-cream))
		drop-shadow(6px 7px 0 rgba(22, 32, 25, .2));
}
html body #ProductListWrap .bk-section-heading > div::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 6px 0 0 6px;
	/* faint paper fibres so the ribbon matches the tiles' paper rather than a flat UI bar */
	background:
		repeating-linear-gradient(115deg, rgba(255, 253, 248, .05) 0 2px, transparent 2px 7px),
		repeating-linear-gradient(25deg, rgba(22, 32, 25, .05) 0 1px, transparent 1px 9px),
		var(--ls-rust);
	clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 50%, 100% 100%, 0 100%);
}
/* World tab: sticks out of the banner's top-left edge like a stage label.
   Second `content` hides the generated text from screen readers where supported. */
html body #ProductListWrap .bk-section-heading::before {
	content: "World " counter(bk-world);
	content: "World " counter(bk-world) / "";
	position: absolute;
	top: -17px;
	left: 18px;
	padding: 7px 14px 6px;
	border-radius: 999px;
	background: var(--ls-ink);
	color: var(--ls-cream);
	font-family: var(--ls-display);
	font-size: 16px;
	letter-spacing: .04em;
	line-height: 1;
	text-transform: uppercase;
	box-shadow: 0 0 0 3px var(--ls-cream);
	transform: rotate(-3deg);
	z-index: 1;
	top: 3px;
}
html body #ProductListWrap .bk-section-heading .bk-section-kicker {
	margin: 0 0 6px;
	color: var(--ls-cream) !important;
	font-family: var(--ls-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
}
html body #ProductListWrap .bk-section-heading h2 {
	font-family: var(--ls-display);
	font-size: clamp(28px, 3.2vw, 44px);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: .005em;
	color: var(--ls-cream);
	text-shadow: 0 3px 0 rgba(22, 32, 25, .28);
}
/* Count chip ("4 projects") as a level-count pill with a star pip */
html body #ProductListWrap .bk-section-heading .bk-section-count {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 34px;
	padding: 0 14px 0 10px;
	border-radius: 999px;
	background: var(--ls-cream);
	color: var(--ls-ink);
	font-family: var(--ls-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .05em;
	box-shadow: 0 0 0 2px var(--ls-ink), 0 3px 0 2px var(--ls-ink);
}
html body #ProductListWrap .bk-section-heading .bk-section-count::before {
	content: "";
	width: 15px;
	height: 15px;
	background: var(--ls-rust);
	clip-path: polygon(50% 2%, 61.8% 35.8%, 97.6% 36.5%, 69% 58.2%, 79.4% 92.5%, 50% 72%, 20.6% 92.5%, 31% 58.2%, 2.4% 36.5%, 38.2% 35.8%);
}

/* ---- Grids: room for medallions above tiles and rings around them --------------- */
html body #ProductListWrap .bk-live-grid {
	position: relative;
	gap: 52px 34px;
	padding: 24px 0 96px;
}
html body #ProductListWrap .bk-in-progress-grid {
	gap: 56px 34px;
	padding: 40px 0 34px;
}
html body #ProductListWrap :is(.bk-live-grid, .bk-in-progress-grid) { counter-reset: bk-level; }

/* ---- Card = die-cut sticker tile ------------------------------------------------- */
html body #ProductListWrap .list-wrap > .item-link {
	position: relative;
	counter-increment: bk-level;
	padding-top: 0;
	border-radius: 18px;
	-webkit-tap-highlight-color: transparent;
}
html body #ProductListWrap .list-wrap > .item-link:focus-visible {
	outline: 3px solid var(--ls-rust);
	outline-offset: 12px;
}
html body #ProductListWrap .list-wrap .item {
	--ls-tilt: -1.2deg;
	height: 100%;
	box-sizing: border-box;
	padding: 26px 14px 16px;
	border-radius: 18px;
	background: var(--ls-paper);
	box-shadow: var(--ls-tile-shadow);
	transform: rotate(var(--ls-tilt));
}
/* Alternating rest tilt (overrides the random --pd-tilt so the row reads as a set) */
html body #ProductListWrap .list-wrap > .item-link:nth-child(even) .item { --ls-tilt: 1.1deg; }
html body #ProductListWrap .list-wrap > .item-link:nth-child(3n) .item { --ls-tilt: -.5deg; }
html body #ProductListWrap .bk-live-grid > .item-link:first-child .item { --ls-tilt: -.6deg; padding: 30px 22px 22px; }

@media (hover: hover) {
	html body #ProductListWrap .list-wrap > .item-link:hover .item {
		box-shadow: var(--ls-tile-shadow-up);
		transform: rotate(0deg) translateY(-4px);
	}
}
html body #ProductListWrap .list-wrap > .item-link:active .item {
	box-shadow: var(--ls-tile-shadow-down);
	transform: rotate(0deg) translateY(2px);
}

/* Level medallion ("1-1", "2-3"): centred tab above each tile.
   Reuses the in-progress ::before slot from the live CSS. */
html body #ProductListWrap .list-wrap > .item-link::before {
	content: counter(bk-world) "-" counter(bk-level);
	content: counter(bk-world) "-" counter(bk-level) / "";
	position: absolute;
	top: -18px;
	left: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: auto;
	min-width: 48px;
	height: 34px;
	padding: 0 11px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--ls-rust);
	color: var(--ls-cream);
	font-family: var(--ls-display);
	font-size: 17px;
	font-weight: 400;
	letter-spacing: .03em;
	line-height: 1;
	box-shadow: 0 0 0 3px var(--ls-cream), 0 4px 0 3px rgba(22, 32, 25, .22);
	transform: translateX(-50%);
}

/* Icon well inside the tile: darker paper, stitched (dashed) cut line */
html body #ProductListWrap .list-wrap .list-item-thumbnail {
	margin: 0 0 14px;
	padding: 16px;
	border: 0;
	border-radius: 12px;
	background: var(--ls-panel);
	box-shadow: inset 0 2px 0 rgba(22, 32, 25, .07);
}
html body #ProductListWrap .list-wrap .list-item-thumbnail::after {
	inset: 7px;
	border: 1.5px dashed rgba(179, 74, 42, .32);
	border-radius: 8px;
}
html body #ProductListWrap .list-wrap .list-item-thumbnail .product-thumbnail {
	/* die-cut cream outline traced around the icon's own silhouette */
	filter:
		drop-shadow(2.5px 0 0 var(--ls-cream))
		drop-shadow(-2.5px 0 0 var(--ls-cream))
		drop-shadow(0 2.5px 0 var(--ls-cream))
		drop-shadow(0 -2.5px 0 var(--ls-cream))
		drop-shadow(0 6px 6px rgba(120, 72, 40, .22));
}
html body #ProductListWrap .bk-live-grid > .item-link:first-child .list-item-thumbnail { padding: 34px; }
html body #ProductListWrap .bk-live-grid > .item-link:first-child .item {
	display: flex;
	flex-direction: column;
}
html body #ProductListWrap .bk-live-grid > .item-link:first-child .type-badge { align-self: flex-start; }
html body #ProductListWrap .bk-live-grid > .item-link:first-child .list-item-thumbnail { flex: 1 1 auto; }

/* Type badge: small chunky pill inside the tile's top-left */
html body #ProductListWrap .list-wrap .type-badge {
	min-height: 24px;
	margin: 0 0 10px;
	padding: 2px 10px 0;
	border-radius: 999px;
	background: var(--ls-rust-tint) !important;
	color: var(--ls-rust-deep) !important;
	font-family: var(--ls-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
}
/* keep a long label ("Life tool") clear of the corner medal */
html body #ProductListWrap .bk-live-grid .type-badge { margin-right: 48px; }

/* "Live" status = gold starburst medal stuck over the tile's top-right corner */
html body #ProductListWrap .list-wrap .status-badge.is-live {
	position: absolute;
	top: -16px;
	right: -14px;
	left: auto;            /* page <style> sets left:12px, which beat right */
	z-index: 4;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	padding: 0;
	isolation: isolate;
	background: transparent !important;
	color: var(--ls-ink) !important;
	font-family: var(--ls-display);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .04em;
	filter: drop-shadow(2px 3px 0 rgba(22, 32, 25, .28));
	transform: rotate(12deg);
}
html body #ProductListWrap .list-wrap .status-badge.is-live::before,
html body #ProductListWrap .list-wrap .status-badge.is-live::after {
	content: "";
	position: absolute;
	width: auto;
	height: auto;
	margin: 0;
	border-radius: 0;
	clip-path: polygon(50% 0%, 60.9% 9.4%, 75% 6.7%, 79.7% 20.3%, 93.3% 25%, 90.6% 39.1%, 100% 50%, 90.6% 60.9%, 93.3% 75%, 79.7% 79.7%, 75% 93.3%, 60.9% 90.6%, 50% 100%, 39.1% 90.6%, 25% 93.3%, 20.3% 79.7%, 6.7% 75%, 9.4% 60.9%, 0% 50%, 9.4% 39.1%, 6.7% 25%, 20.3% 20.3%, 25% 6.7%, 39.1% 9.4%);
}
html body #ProductListWrap .list-wrap .status-badge.is-live::before {   /* gold burst */
	inset: 0;
	z-index: -1;
	background: var(--ls-gold);
}
html body #ProductListWrap .list-wrap .status-badge.is-live::after {    /* cream die-cut edge */
	inset: -4px;
	z-index: -2;
	background: var(--ls-cream);
}
html body #ProductListWrap .bk-live-grid > .item-link:first-child .status-badge.is-live {
	width: 76px;
	height: 76px;
	top: -20px;
	right: -18px;
	font-size: 18px;
}

/* Title: chunky display, ink on paper */
html body #ProductListWrap .list-wrap .item .title {
	margin: 0;
	color: var(--ls-ink);
	font-family: var(--ls-display);
	font-size: clamp(20px, 1.7vw, 25px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: .005em;
}
html body #ProductListWrap .bk-live-grid > .item-link:first-child .item .title {
	font-size: clamp(28px, 2.8vw, 40px);
}

/* ---- World 2 (in-progress band): "locked" levels on the ink band --------------- */
/* Level path: the live rust rule becomes a dashed trail running behind the medallions */
html body #ProductListWrap .bk-in-progress-grid::before {
	top: 39px;
	border-top: 3px dashed rgba(247, 240, 228, .32);
}
html body #ProductListWrap .bk-in-progress-grid .item {
	box-shadow: 0 0 0 5px var(--ls-cream), 8px 10px 0 5px rgba(5, 10, 7, .45);
}
@media (hover: hover) {
	html body #ProductListWrap .bk-in-progress-grid > .item-link:hover .item {
		box-shadow: 0 0 0 5px var(--ls-cream), 11px 15px 0 5px rgba(5, 10, 7, .45);
	}
}
html body #ProductListWrap .bk-in-progress-grid .list-item-thumbnail {
	background: var(--ls-panel);
	box-shadow: inset 0 2px 0 rgba(22, 32, 25, .07);
}
html body #ProductListWrap .bk-in-progress-grid .item .title { color: var(--ls-ink); }
html body #ProductListWrap .bk-in-progress-grid > .item-link::before {
	background: var(--ls-cream);
	color: var(--ls-rust-deep);
	box-shadow: 0 0 0 3px var(--ls-rust), 0 4px 0 3px rgba(0, 0, 0, .3);
}
/* Locked feel: icon rests slightly desaturated, full colour on hover/focus */
html body #ProductListWrap .bk-in-progress-grid .list-item-thumbnail .product-thumbnail {
	filter:
		saturate(.55)
		drop-shadow(2.5px 0 0 var(--ls-cream))
		drop-shadow(-2.5px 0 0 var(--ls-cream))
		drop-shadow(0 2.5px 0 var(--ls-cream))
		drop-shadow(0 -2.5px 0 var(--ls-cream));
}
html body #ProductListWrap .bk-in-progress-grid > .item-link:is(:hover, :focus-visible) .product-thumbnail {
	filter:
		saturate(1)
		drop-shadow(2.5px 0 0 var(--ls-cream))
		drop-shadow(-2.5px 0 0 var(--ls-cream))
		drop-shadow(0 2.5px 0 var(--ls-cream))
		drop-shadow(0 -2.5px 0 var(--ls-cream));
}
/* The existing "Under development / Under construction" overlay (hidden by the live
   CSS) returns as a strip of masking tape across the bottom of the icon well. */
html body #ProductListWrap .bk-in-progress-grid .thumbnail-status-overlay {
	display: flex;
	inset: auto 8px 12px;
	z-index: 2;
	padding: 6px 8px 5px;
	border-radius: 4px;
	background: rgba(22, 32, 25, .88);
	transform: rotate(-3deg);
	box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
html body #ProductListWrap .bk-in-progress-grid .thumbnail-status-overlay span {
	padding: 0;
	color: var(--ls-cream);
	font-family: var(--ls-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .07em;
	line-height: 1.2;
}

/* ---- List page responsive ----------------------------------------------------- */
@media (max-width: 970px) {
	html body #ProductListWrap .bk-live-grid { gap: 48px 30px; }
	html body #ProductListWrap .bk-in-progress-grid { gap: 52px 30px; }
}
@media (max-width: 768px) {
	html body #ProductListWrap .bk-catalogue-intro { gap: 18px; padding: 36px 0 4px; }
	html body #ProductListWrap .bk-catalogue-title { font-size: 48px; }
	html body #ProductListWrap .bk-catalogue-copy { font-size: 16px; }
	html body #ProductListWrap .bk-filter-wrap { gap: 10px; padding: 24px 0 44px; }
	html body #ProductListWrap .bk-filter-item {
		min-height: 44px;
		padding: 0 15px 0 12px;
		font-size: 14px;
	}
	html body #ProductListWrap .bk-section-heading { margin-bottom: 44px; }
	html body #ProductListWrap .bk-section-heading > div { padding: 24px 52px 14px 16px; }
	html body #ProductListWrap .bk-live-grid { gap: 44px 22px; padding: 22px 0 64px; }
	html body #ProductListWrap .bk-in-progress-grid { gap: 48px 22px; padding-top: 36px; }
	html body #ProductListWrap .bk-in-progress-grid::before { top: 35px; }
	html body #ProductListWrap .list-wrap .item { padding: 24px 10px 12px; border-radius: 16px; }
	html body #ProductListWrap .bk-live-grid > .item-link:first-child .item { padding: 28px 16px 16px; }
	html body #ProductListWrap .list-wrap .list-item-thumbnail { padding: 12px; margin-bottom: 10px; }
	html body #ProductListWrap .list-wrap .list-item-thumbnail::after { inset: 5px; }
	html body #ProductListWrap .bk-live-grid > .item-link:first-child .list-item-thumbnail { padding: 24px; }
	html body #ProductListWrap .list-wrap .item .title { font-size: 19px; }
	html body #ProductListWrap .bk-live-grid > .item-link:first-child .item .title { font-size: 30px; }
	html body #ProductListWrap .list-wrap .type-badge { font-size: 11px; padding: 2px 8px 0; }
	html body #ProductListWrap .list-wrap .status-badge.is-live {
		width: 52px; height: 52px; top: -14px; right: -4px; font-size: 12px;
	}
	html body #ProductListWrap .bk-live-grid > .item-link:first-child .status-badge.is-live {
		width: 60px; height: 60px; top: -16px; right: -2px; font-size: 15px;
	}
	html body #ProductListWrap .list-wrap > .item-link::before { min-width: 44px; height: 32px; font-size: 15px; top: -17px; }
	html body #ProductListWrap .bk-in-progress-grid .thumbnail-status-overlay span { font-size: 10px; }
}
@media (max-width: 560px) {
	/* tape becomes a single-line tab hanging off the bottom of the icon well
	   (well must not clip it; extra margin keeps the tab clear of the title) */
	html body #ProductListWrap .bk-in-progress-grid .list-item-thumbnail {
		overflow: visible;
		margin-bottom: 18px;
	}
	html body #ProductListWrap .bk-in-progress-grid .thumbnail-status-overlay {
		inset: auto 6px -8px;
		justify-content: center;
		padding: 4px 6px 3px;
		white-space: nowrap;
	}
	html body #ProductListWrap .bk-in-progress-grid .thumbnail-status-overlay span {
		font-size: 9.5px;
		letter-spacing: .04em;
	}
}
@media (max-width: 420px) {
	/* all four chips on one row at 390 */
	html body #ProductListWrap .bk-filter-wrap { gap: 6px; }
	html body #ProductListWrap .bk-filter-item { padding: 0 12px; font-size: 13px; }
	/* lamp dropped on phones: the rust fill + pressed-down key already carry the on state */
	html body #ProductListWrap .bk-filter-item::before { display: none; }
}
@media (max-width: 390px) {
	html body #ProductListWrap .bk-catalogue-title { font-size: 44px; }
}

/* =====================================================================================
   DETAIL PAGE + QUICK-VIEW MODAL  (boredkiwi-project.css)
   ===================================================================================== */

/* ---- Back link: chunky pill key ------------------------------------------------- */
html body .bk-project-back {
	gap: 8px;
	min-height: 44px;
	margin: 18px 0 44px;
	padding: 0 18px 0 14px;
	border: 2.5px solid var(--ls-ink);
	border-radius: 999px;
	background: var(--ls-cream);
	color: var(--ls-ink);
	font-family: var(--ls-ui);
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 4px 0 var(--ls-ink);
}
html body .bk-project-back span { color: var(--ls-rust); font-size: 18px; }
@media (hover: hover) {
	html body .bk-project-back:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ls-ink); background: #fbeee0; }
}
html body .bk-project-back:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ls-ink); }
html body .bk-project-back:focus-visible { outline: 3px solid var(--ls-rust); outline-offset: 4px; }

/* ---- Hero: portrait tile + chunky name ---------------------------------------- */
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-hero {
	border-bottom: 0;
	padding-bottom: 8px;
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-art {
	border: 0;
	border-radius: 24px;
	background: var(--ls-panel);
	box-shadow: 0 0 0 7px var(--ls-cream), 0 0 0 8.5px var(--ls-line), 12px 14px 0 8.5px rgba(179, 74, 42, .22);
	transform: rotate(-2deg);
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-kicker {
	display: inline-block;
	margin: 0 0 16px;
	padding: 7px 14px 6px;
	border-radius: 999px;
	background: var(--ls-rust);
	color: var(--ls-cream);
	font-family: var(--ls-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .07em;
	box-shadow: 3px 3px 0 rgba(22, 32, 25, .22);
	transform: rotate(-2deg);
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-title {
	font-family: var(--ls-display);
	font-size: clamp(42px, 5vw, 64px);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: .005em;
	text-shadow: 3px 4px 0 var(--ls-rust-soft);
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-hero .sub-title {
	font-size: 18px;
	font-weight: 500;
	color: #3f4840;
}

/* Detail badges: type pill + gold "Live" medal pill (non-live keeps the rust tint) */
html body .bk-project-detail-badges { gap: 10px; margin-bottom: 20px; }
html body .bk-project-detail-type,
html body .bk-project-detail-status {
	gap: 6px;
	min-height: 30px;
	padding: 3px 13px 1px;
	border: 2px solid var(--ls-ink);
	border-radius: 999px;
	font-family: var(--ls-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
}
html body .bk-project-detail-type { background: var(--ls-cream); color: var(--ls-ink); }
html body .bk-project-detail-status.is-live {
	background: var(--ls-gold);
	color: var(--ls-ink);
	box-shadow: 0 3px 0 var(--ls-ink);
}
html body .bk-project-detail-status.is-live::before {
	content: "";
	width: 13px;
	height: 13px;
	margin-top: -2px;
	background: var(--ls-ink);
	clip-path: polygon(50% 2%, 61.8% 35.8%, 97.6% 36.5%, 69% 58.2%, 79.4% 92.5%, 50% 72%, 20.6% 92.5%, 31% 58.2%, 2.4% 36.5%, 38.2% 35.8%);
}
html body .bk-project-detail-status:not(.is-live) {
	border-color: var(--ls-rust);
	background: var(--ls-rust-tint);
	color: var(--ls-rust-deep);
}

/* ---- Facts = character stat card ---------------------------------------------- */
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-detail-content-wrap {
	max-width: 680px;
	padding-top: 12px;
	border-top: 0;
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet {
	margin: 8px 0 36px;
	border: 2.5px solid var(--ls-ink);
	border-radius: 20px;
	background: var(--ls-cream);
	box-shadow: 9px 11px 0 rgba(179, 74, 42, .22);
}
/* Rows: zebra paper bands instead of a hairline under every row */
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet .spec-row {
	border-bottom: 0;
	align-items: stretch;
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet .spec-row:nth-child(odd) {
	background: rgba(179, 74, 42, .06);
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet dt {
	width: 140px;
	padding: 13px 16px 12px 18px;
	background: transparent;
	color: var(--ls-rust-deep);
	font-family: var(--ls-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet dd {
	padding: 12px 18px 12px 4px;
	color: var(--ls-ink);
	font-size: 15.5px;
	line-height: 1.55;
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet dd a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 2px 0;
	padding: 0 14px;
	border: 2px solid var(--ls-rust);
	border-radius: 999px;
	background: var(--ls-rust-tint);
	color: var(--ls-rust-deep);
	font-family: var(--ls-ui);
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
}
@media (hover: hover) {
	html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet dd a:hover { background: #f2cfb3; }
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet dd a:focus-visible {
	outline: 3px solid var(--ls-rust);
	outline-offset: 3px;
}
/* First row (Name) becomes the card's name plate */
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet .spec-row:first-child {
	background: var(--ls-rust);
	align-items: center;
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet .spec-row:first-child dt {
	color: var(--ls-cream);
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet .spec-row:first-child dd {
	padding-top: 14px;
	padding-bottom: 12px;
	color: var(--ls-cream);
	font-family: var(--ls-display);
	font-size: 26px;
	line-height: 1.1;
	letter-spacing: .01em;
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-content-about-wrap .ck-content :is(h2, h3, h4) {
	font-family: var(--ls-display);
	font-size: 28px;
	font-weight: 400;
	letter-spacing: .005em;
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-content-about-wrap .ck-content {
	font-size: 17px;
	color: #2c362e;
}

/* Gallery arrows (when a project has screenshots): round chunky keys */
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery .product-detail-slide-wrap {
	border: 2.5px solid var(--ls-ink);
	border-radius: 20px;
}
html body :is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery .product-detail-slider-icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	box-shadow: 0 0 0 3px var(--ls-cream), 0 4px 0 3px rgba(22, 32, 25, .3);
}

/* Quick-view modal + privacy modal: rounded paper card */
html body .modal-product-detail .modal-content,
html body .modal-private .modal-content {
	border: 3px solid var(--ls-ink);
	border-radius: 24px;
	box-shadow: 12px 14px 0 rgba(10, 18, 13, .28);
}
html body .modal-private .modal-title {
	font-family: var(--ls-display);
	font-weight: 400;
	letter-spacing: .005em;
}

@media (max-width: 768px) {
	html body .bk-project-back { margin: 10px 0 34px; }
	html body :is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-title { font-size: 42px; }
	html body :is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-hero .sub-title { font-size: 16px; }
	html body #ProductDetailModalBody .bk-project-detail-title { font-size: 30px; }
	html body #ProductDetailModalBody .bk-project-detail-kicker { font-size: 11px; padding: 5px 10px 4px; }
	html body #ProductDetailModalBody :is(.bk-project-detail-type, .bk-project-detail-status) {
		min-height: 26px; padding: 2px 9px 0; font-size: 11px;
	}
	html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet { border-radius: 16px; }
}
/* Stacked rows on phones: label sits directly above its value */
@media (max-width: 600px) {
	html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet .spec-row { flex-direction: column; }
	html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet dt { width: 100%; box-sizing: border-box; padding: 12px 16px 2px; }
	html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet dd { padding: 0 16px 12px; }
	html body :is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet .spec-row:first-child dd { padding: 0 16px 12px; font-size: 24px; }
}

/* =====================================================================================
   FOOTER  (footer.css): display face on the home link, 44px tap targets on nav
   ===================================================================================== */
html body .bk-footer-home {
	font-family: var(--ls-display);
	font-size: 34px;
	font-weight: 400;
	letter-spacing: .01em;
}
html body .bk-footer-nav { gap: 0; padding-top: 0; }
html body .bk-footer-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--ls-ui);
	font-size: 16px;
	font-weight: 600;
}

/* =====================================================================================
   MOTION (feedback only: tiles lift/settle, keys press, medal wiggles on tile hover)
   ===================================================================================== */
@media (prefers-reduced-motion: no-preference) {
	html body #ProductListWrap .list-wrap .item {
		transition: transform .32s var(--ls-spring), box-shadow .2s ease;
	}
	html body #ProductListWrap .bk-filter-item,
	html body .bk-project-back {
		transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease, color .15s ease;
	}
	html body #ProductListWrap .bk-in-progress-grid .list-item-thumbnail .product-thumbnail {
		transition: filter .3s ease, transform .25s ease;
	}
	@media (hover: hover) {
		html body #ProductListWrap .list-wrap > .item-link:hover .status-badge.is-live {
			animation: ls-medal-wiggle .5s var(--ls-spring) both;
		}
	}
	@keyframes ls-medal-wiggle {
		0%   { transform: rotate(12deg) scale(1); }
		40%  { transform: rotate(-6deg) scale(1.12); }
		100% { transform: rotate(12deg) scale(1); }
	}
}

/* Korean status "운영 중" is wider than "LIVE": smaller type keeps it inside the gold burst
   (html:lang(ko) outranks the sizes above at every breakpoint). */
html:lang(ko) body #ProductListWrap .list-wrap .status-badge.is-live { font-size: 11px; letter-spacing: 0; }
html:lang(ko) body #ProductListWrap .bk-live-grid > .item-link:first-child .status-badge.is-live { font-size: 13px; }
