/* ==========================================================================
   Geert Verhoeff theme: paper, ink and hand-drawn letters
   ========================================================================== */

@font-face { font-family: "GH1"; src: url("../fonts/hand-1.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "GH2"; src: url("../fonts/hand-2.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "GH3"; src: url("../fonts/hand-3.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "GH4"; src: url("../fonts/hand-4.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "GH5"; src: url("../fonts/hand-5.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "GH6"; src: url("../fonts/hand-6.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "GH7"; src: url("../fonts/hand-7.ttf") format("truetype"); font-display: block; }

:root {
	--paper: #fbf9f4;
	--paper-2: #f1ede2;
	--card: #fffdf8;
	--ink: #1f1d1a;
	--ink-soft: #46423b;
	--muted: #7a746a;
	--line-soft: rgba(31, 29, 26, 0.16);
	--accent: #fe4746;
	--marker: #fe4746;
	--marker-soft: rgba(254, 71, 70, 0.5);
	--side: 320px;
	--radius: 6px;
	--wrap: 1100px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--hand: "GH1", "Segoe Print", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --adminbar: 46px; } }
html.stage-open, html.sheet-open, html.lightbox-open { overflow: hidden; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(31, 29, 26, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--accent); }
p { margin: 0 0 1em; }

/* Hand-drawn letters: every heading / title falls back to font 1 until hand.js has mixed the fonts. */
/* hidden until hand.js has mixed the fonts (see functions.php) */
html.hand-pending :is(h1, h2, h3, h4, .brand__name, .site-nav a, .kicker, .social a, .portal__title, .tile__title, .app__label, .shelf3d__name, .shelf3d__meta, .facts dt, .app-icon__fallback, .post-card__placeholder, .tile__placeholder, .app-filter__cat span):not(.entry *):not(.comment-content *) { visibility: hidden; }

h1, h2, h3, h4, .hand { font-family: var(--hand); font-weight: 400; line-height: 1.08; letter-spacing: 0.01em; margin: 0 0 0.5em; color: var(--ink); }
.entry h1, .entry h2, .entry h3, .entry h4, .comment-content h1, .comment-content h2, .comment-content h3 { font-family: var(--font); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.5rem; }
.gh0 { font-family: "GH1", var(--hand); } .gh1 { font-family: "GH2", var(--hand); } .gh2 { font-family: "GH3", var(--hand); }
.gh3 { font-family: "GH4", var(--hand); } .gh4 { font-family: "GH5", var(--hand); } .gh5 { font-family: "GH6", var(--hand); }
.gh6 { font-family: "GH7", var(--hand); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--marker); color: var(--ink); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px; z-index: 200; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* Layout: sidebar on the left ------------------------------------------- */
.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }

.sidebar { position: sticky; top: var(--adminbar, 0px); align-self: start; height: calc(100vh - var(--adminbar, 0px)); overflow-y: auto; padding: 44px 34px 34px 40px; scrollbar-width: thin; }
.brand { display: inline-block; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__name { display: block; font-family: var(--hand); font-size: 2.5rem; line-height: 1; letter-spacing: 0.01em; }
.brand .custom-logo { max-height: 64px; width: auto; }
.tagline { margin: 22px 0 0; font-style: italic; color: var(--ink-soft); }

.site-nav { margin: 44px 0 40px; }
@media (min-width: 1001px) {
	.site-nav { position: absolute; left: 40px; right: 34px; top: 50%; margin: 0; transform: translateY(-50%); }
	.sidebar { position: sticky; }
	.sidebar .social { position: absolute; left: 40px; right: 34px; bottom: 34px; }
}
.site-nav .menu { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: 3px 0; text-decoration: none; font-family: var(--hand); font-size: 1.55rem; line-height: 1.15; }
.site-nav a:hover { background: linear-gradient(transparent 55%, var(--marker-soft) 55%); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { background: linear-gradient(transparent 55%, var(--marker-soft) 55%); }
.site-nav .sub-menu { list-style: none; margin: 0 0 6px 14px; padding: 0; }

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.social a { font-family: var(--hand); font-size: 1.15rem; text-decoration: none; border-bottom: 2px solid var(--ink); }
.social a:hover { background: var(--marker); }
.social a.social__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; }
.social__icon img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }

.nav-toggle { display: none; }

.content { min-width: 0; border-left: 2px solid var(--ink); background: var(--paper); display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* Footer ------------------------------------------------------------------ */
.site-footer { margin-top: 40px; padding: 10px 0 30px; color: var(--muted); font-size: 0.9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 20px; flex-wrap: wrap; }

/* Containers -------------------------------------------------------------- */
.wrap { width: min(var(--wrap), 100% - 64px); margin-inline: auto; }
.wrap--wide { width: min(1400px, 100% - 48px); }
.wrap--medium { width: min(920px, 100% - 64px); }
.wrap--narrow { width: min(720px, 100% - 64px); }
.section { padding: 52px 0; }
.section--tight { padding-top: 8px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section__head h2 { margin: 0; }

.kicker { font-family: var(--hand); font-size: 1.25rem; color: var(--accent); margin: 0 0 10px; letter-spacing: 0.02em; }
.kicker a { text-decoration: none; }
.kicker a:hover { background: var(--marker); color: var(--ink); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.link-arrow { font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.link-arrow:hover { background: var(--marker); text-decoration: none; }

.page-head { padding: 64px 0 24px; }
.blog-top { height: 56px; }
.is-software-page .section--tight, .post-type-archive-software .section--tight { padding-top: 56px; }
.page-head h1 { margin-bottom: 0.2em; }
.page-head__intro { color: var(--ink-soft); font-size: 1.15rem; max-width: 620px; margin: 0; }

/* Buttons & small bits ---------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 24px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s, background 0.12s; }
.btn:hover { color: var(--ink); background: var(--marker); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--accent); }
.btn--primary:hover { background: var(--ink); color: var(--marker); box-shadow: 4px 4px 0 var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { padding: 1px 12px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 0.8rem; font-weight: 600; background: var(--card); }

.facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 22px 0 0; }
.facts div { min-width: 0; }
.facts dt { font-family: var(--hand); font-size: 1.05rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.facts--stacked { flex-direction: column; gap: 12px; margin: 0 0 24px; }

/* Home -------------------------------------------------------------------- */
.hero { padding: 90px 0 40px; }
.hero__title { font-size: clamp(3rem, 8vw, 6.4rem); max-width: 14ch; margin-bottom: 0.25em; padding-bottom: 0.18em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 20 2, 30 13, 52 7 S 90 2, 110 8 S 150 13, 172 6 S 215 3, 238 9 S 275 11, 298 5' fill='none' stroke='%23fe4746' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / min(100%, 420px) 0.2em no-repeat; }
.hero__text { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-soft); max-width: 620px; margin-bottom: 30px; }

.portals { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.portal { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); text-decoration: none; box-shadow: 6px 6px 0 var(--ink); transition: transform 0.15s, box-shadow 0.15s; }
.portal:nth-child(1) { transform: rotate(-0.8deg); }
.portal:nth-child(2) { transform: rotate(0.6deg); }
.portal:nth-child(3) { transform: rotate(-0.4deg); }
.portal:hover { transform: translate(-3px, -3px) rotate(0); box-shadow: 9px 9px 0 var(--ink); }
.portal__art { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 160px; padding: 0 24px 22px; border-bottom: 2px solid var(--ink); }
.portal--games .portal__art { background: #ffd9d9; }
.portal--software .portal__art { background: #a9cdf0; }
.portal--freelance .portal__art { background: #f3b7a6; }
.portal__body { display: flex; flex-direction: column; padding: 16px 22px 20px; }
.portal__count { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.portal__title { font-family: var(--hand); font-size: 2.1rem; line-height: 1.1; }
.portal__text { color: var(--ink-soft); }

.portal--games .portal__art { padding-bottom: 0; }
.mini-box { width: 44px; height: 66px; margin-bottom: 0; border: 2px solid var(--ink); border-bottom: 0; background: var(--c); box-shadow: inset 7px 0 0 rgba(0, 0, 0, 0.18); transition: transform 0.2s; }
.mini-box:nth-child(2) { height: 78px; }
.portal:hover .mini-box:nth-child(2) { transform: translateY(-12px) rotate(-3deg); }
.portal--software .portal__art { align-items: center; flex-wrap: wrap; align-content: center; padding-bottom: 0; }
.mini-icon { width: 50px; height: 50px; border: 2px solid var(--ink); border-radius: 23%; background: var(--c); transition: transform 0.2s; }
.portal:hover .mini-icon { transform: rotate(-6deg) scale(1.06); }
.portal--freelance .portal__art { display: grid; align-items: stretch; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 20px 26px; }
.mini-tile { border: 2px solid var(--ink); background: var(--c); }
.mini-tile:nth-child(1) { grid-row: span 2; }
.mini-tile--wide { grid-column: span 2; }

/* Blog -------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 32px 28px; }
.post-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 5px 5px 0 var(--ink); transition: transform 0.15s, box-shadow 0.15s; }
.post-card:nth-child(3n+1) { transform: rotate(-0.5deg); }
.post-card:nth-child(3n+2) { transform: rotate(0.4deg); }
.post-card:hover { transform: translate(-2px, -2px) rotate(0); box-shadow: 8px 8px 0 var(--ink); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border-bottom: 2px solid var(--ink); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; height: 100%; font-family: var(--hand); font-size: 3.4rem; color: var(--ink); background: var(--c); }
.post-card__body { padding: 16px 20px 22px; }
.post-card__meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.post-card__title { font-size: 1.65rem; margin-bottom: 8px; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { background: var(--marker); }
.post-card__excerpt { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

.navigation.pagination { margin-top: 52px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.page-numbers { padding: 4px 16px; border-radius: 999px; border: 2px solid var(--ink); text-decoration: none; background: var(--card); font-weight: 700; }
.page-numbers:hover { background: var(--marker); }
.page-numbers.current { background: var(--ink); color: var(--paper); }

.article { padding-top: 64px; }
.article__head { margin-bottom: 26px; }
.article__image { margin: 0 -48px 36px; border: 2px solid var(--ink); overflow: hidden; }
.article__image img { width: 100%; }
.entry { font-size: 1.08rem; line-height: 1.8; color: var(--ink-soft); }
.entry > * + * { margin-top: 1.2em; }
.entry h2, .entry h3 { margin-top: 1.8em; color: var(--ink); }
.entry a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.entry a:hover { background: var(--marker); }
.entry img { border-radius: 4px; }
.entry blockquote { margin-left: 0; padding: 2px 0 2px 22px; border-left: 4px solid var(--accent); color: var(--ink); font-size: 1.12em; font-style: italic; }
.entry pre { background: var(--ink); color: var(--paper); padding: 18px; border-radius: 4px; overflow: auto; }
.entry code { font-size: 0.92em; background: var(--paper-2); padding: 1px 6px; border-radius: 3px; }
.entry pre code { background: none; padding: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.tags a { padding: 1px 12px; border-radius: 999px; border: 1.5px solid var(--ink); text-decoration: none; font-size: 0.85rem; background: var(--card); }
.tags a:hover { background: var(--marker); }

.post-nav { display: flex; justify-content: space-between; gap: 20px; margin: 56px auto 0; padding-top: 22px; border-top: 2px solid var(--ink); }
.post-nav a { font-weight: 700; text-decoration: none; }
.post-nav a:hover { background: var(--marker); }
.post-nav__next { text-align: right; }

.comments { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; }
.comment-body { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .search-field { width: 100%; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 4px; background: var(--card); color: var(--ink); font: inherit; }
.comment-form .submit, .search-submit { padding: 10px 24px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 3px 3px 0 var(--accent); }

/* ==========================================================================
   GAMES: 3D shelf
   ========================================================================== */
/* The shelf is a three.js scene (assets/js/shelf3d.js). It fills the whole content area, no page scroll. */
body.is-shelf-page .layout { min-height: 0; }
body.is-shelf-page .site-footer { display: none; }
body.is-shelf-page .content { height: calc(100vh - var(--adminbar, 0px)); min-height: 0; overflow: hidden; }
body.is-shelf-page .site-main { height: 100%; }

.shelf3d { position: relative; height: 100%; min-height: 460px; overflow: hidden; background: var(--paper); user-select: none; -webkit-user-select: none; }
.shelf3d__canvas { position: absolute; inset: 0; touch-action: pan-y; }
.shelf3d:not(.is-3d) .shelf3d__canvas { visibility: hidden; pointer-events: none; }
.shelf3d.is-loading .shelf3d__fallback { display: none; }
.shelf3d__canvas canvas { display: block; width: 100%; height: 100%; }

.shelf3d__step { width: 56px; height: 56px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform 0.15s; }
.shelf3d__step:hover { transform: scale(1.12); }
.shelf3d__step img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.shelf3d__step { position: absolute; top: 45%; z-index: 3; }
.shelf3d__step--prev { left: 24px; }
.shelf3d__step--next { right: 24px; }

.shelf3d__detail { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 70px 34px 30px; background: linear-gradient(to top, rgba(251, 249, 244, 0.96) 35%, rgba(251, 249, 244, 0)); pointer-events: none; }
.shelf3d__detail > * { pointer-events: auto; }
.shelf3d__detail[hidden] { display: none; }
.shelf3d__name { margin: 0; font-size: clamp(2.2rem, 5.5vw, 4.6rem); }
.shelf3d__meta { margin: 4px 0 0; font-family: var(--hand); font-size: 1.3rem; color: var(--accent); }
.shelf3d__meta:empty, .shelf3d__tagline:empty { display: none; }
.shelf3d__tagline { margin: 4px 0 0; font-style: italic; color: var(--ink-soft); font-size: 1.1rem; }
.shelf3d__more { flex: none; display: block; transition: transform 0.15s; }
.shelf3d__more:hover { transform: translateY(-2px) scale(1.04); }
.shelf3d__more img { display: block; height: 64px; width: auto; }

.shelf3d__tip { position: absolute; z-index: 4; margin: 0; padding: 3px 10px; background: var(--ink); color: var(--paper); border-radius: 4px; font-family: var(--hand); font-size: 1.05rem; pointer-events: none; white-space: nowrap; }
.shelf3d__tip[hidden], .shelf3d__loading[hidden] { display: none; }
.shelf3d__loading { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); margin: 0; padding: 24px; text-align: center; font-family: var(--hand); font-size: 1.6rem; color: var(--muted); }
.shelf3d.is-loading:not(.has-loading-fonts) .shelf3d__loading { visibility: hidden; }

.shelf3d__fallback { position: absolute; left: 34px; top: 34px; margin: 0; padding: 0; list-style: none; columns: 2 200px; }
.shelf3d__fallback a { font-family: var(--hand); font-size: 1.5rem; text-decoration: none; }
.shelf3d__fallback a:hover { background: var(--marker); }
.shelf3d.is-3d .shelf3d__fallback { display: none; }
.shelf3d__empty { position: absolute; left: 34px; top: 34px; color: var(--muted); }

@keyframes gv-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gv-fade-out { from { opacity: 1; } to { opacity: 0; } }

/* Single game */
.game-hero { padding: 56px 0 24px; background: color-mix(in srgb, var(--c) 16%, var(--paper)); border-bottom: 2px solid var(--ink); }
.game-hero.has-bg { background-color: var(--paper); background-size: cover; background-position: center; }
.game-hero.has-bg .game-hero__info { background: rgba(255, 255, 255, 0.9); border: 2px solid var(--ink); border-radius: 6px; padding: 28px 30px; box-shadow: 6px 6px 0 var(--ink); }
.game-hero__inner { display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: 48px; align-items: center; }
.game-hero__art { position: relative; min-height: 460px; display: grid; place-items: center; }
.game-hero__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.game-hero__flat { width: min(280px, 70%); border-radius: 6px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }
.game-hero__flat.is-wrap { width: min(560px, 100%); aspect-ratio: 135 / 190; object-fit: cover; object-position: 100% 0; width: min(280px, 70%); }
.game-hero__art.is-3d .game-hero__flat { display: none; }
.game-hero__info h1 { margin-bottom: 0.2em; }
.game-hero--text { padding: 72px 0 44px; }
.game-hero--text .game-hero__info { max-width: 760px; }
.project-single .game-hero__info { margin-inline: auto; }
.game-hero__art--icon { min-height: 380px; }
.app-hero-icon { display: block; width: 260px; height: 260px; border: 3px solid var(--ink); border-radius: 22.5%; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); }
.app-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-hero-icon .app-icon__fallback { font-size: 6rem; }
.project-link { margin: 24px 0 0; }

/* Store logos (images in assets/images, replace them with your own) */
.store-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 24px 0 0; }
.store-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: transform 0.15s; }
.store-logo:hover { transform: translateY(-3px) scale(1.06); background: none; }
.store-logo img { display: block; height: 52px; width: auto; max-width: 120px; object-fit: contain; }
.store-logo--text { border: 2px solid var(--ink); border-radius: 999px; padding: 6px 18px 6px 12px; font-weight: 700; background: var(--card); }
.store-logo--text img { height: 24px; }
/* ==========================================================================
   SOFTWARE: app launcher
   ========================================================================== */
.device { padding: 8px 0 24px; }
.app-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 auto 36px; max-width: 1000px; }
.app-filter__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.app-filter__cat { position: relative; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0.55; transition: opacity 0.15s, transform 0.15s; }
.app-filter__cat img { display: block; height: 52px; width: auto; max-width: 220px; }
.app-filter__cat:hover { opacity: 1; transform: translateY(-2px); }
.app-filter__cat.is-active { opacity: 1; }
.app-filter__cat.is-placeholder span { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 14px; font-family: var(--hand); font-size: 1.15rem; line-height: 1; color: #fff; }.app-filter__search { flex: 0 1 260px; min-width: 180px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; }
.app-filter__empty { text-align: center; color: var(--muted); margin: 30px 0; }
.apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 22px; max-width: 1000px; margin-inline: auto; }
.app { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 116px; text-decoration: none; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.app:hover { color: var(--ink); }
.app__icon { display: block; width: 92px; height: 92px; border-radius: 22.5%; overflow: hidden; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform 0.2s cubic-bezier(.2, .8, .2, 1); }
.app:hover .app__icon { transform: scale(1.08) rotate(-3deg); }
.app:active .app__icon { transform: scale(0.94); }
.app__icon img, .app__icon .app-icon__img { width: 100%; height: 100%; object-fit: cover; }
.app__label { font-family: var(--hand); font-size: 1.15rem; line-height: 1.35; padding-block: 0.1em; text-align: center; width: 100%; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: normal; overflow-wrap: normal; hyphens: none; }
.app { transition: opacity 0.25s, transform 0.25s; }
.tile { transition: opacity 0.25s; }
.tile.is-dimmed { opacity: 0.35; }
.tile.is-selected { outline: 4px solid var(--accent); outline-offset: 3px; }

.app-icon__fallback { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--hand); font-size: 2.6rem; color: var(--ink); background: var(--c); }

/* Sheet (shared by apps and projects) */
.sheet-root { position: fixed; inset: 0; z-index: 90; }
.sheet-root[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(24, 20, 16, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet { --sheet-pad: 36px; position: fixed; inset: 0; margin: auto; width: min(1000px, 100% - 32px); height: min(880px, 100% - 40px); border: 2px solid var(--ink); border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); display: flex; }
.sheet__scroll { width: 100%; height: 100%; overflow: auto; border-radius: inherit; overscroll-behavior: contain; scrollbar-width: thin; }
.sheet__content { padding: var(--sheet-pad); }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sheet__close:hover { background: var(--marker); }
.sheet__nav { position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; display: none; }
.sheet__nav:hover { background: var(--marker); }
.sheet__nav--prev { left: -66px; }
.sheet__nav--next { right: -66px; }
@media (min-width: 1160px) { .sheet__nav { display: block; } }
.sheet__more { margin: 32px 0 0; }
.sheet--static { position: relative; inset: auto; width: auto; height: auto; margin: 0 0 28px; display: block; }
.sheet--static .sheet__content { padding: var(--sheet-pad); }

.app-head { display: flex; gap: 28px; align-items: center; margin-bottom: 30px; padding-right: 40px; }
.app-head__icon { flex: none; width: 128px; height: 128px; border: 2px solid var(--ink); border-radius: 22.5%; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); }
.app-head__icon img { width: 100%; height: 100%; object-fit: cover; }
.app-head__icon .app-icon__fallback { font-size: 3.4rem; }
.app-head__title { margin: 0 0 4px; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.app-head .lead { margin: 0; }
.app-head .store-logos { margin-top: 16px; }
.shots { margin: 0 calc(var(--sheet-pad) * -1) 30px; padding: 0 var(--sheet-pad); }
.app-body { display: grid; grid-template-columns: 1fr 220px; gap: 40px; margin-top: 12px; }
.app-body .entry { font-size: 1.02rem; }
.sheet .video, .app-page .video { margin: 0 0 26px; }

/* ==========================================================================
   FREELANCE: mosaic
   ========================================================================== */
.mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.tile { position: relative; display: block; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--c, var(--paper-2)); text-decoration: none; color: #fff; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile--large { grid-column: span 2; grid-row: span 2; }
.tile:hover { color: #fff; }
.tile__media { position: absolute; inset: 0; display: block; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.tile:hover .tile__media img, .tile:focus-visible .tile__media img { transform: scale(1.06); }
.tile__placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--hand); font-size: 4.4rem; color: var(--ink); background: var(--c); }
.tile__overlay { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 16px 18px; background: linear-gradient(to top, rgba(20, 17, 13, 0.82), rgba(20, 17, 13, 0) 55%); transition: background 0.3s; }
.tile:hover .tile__overlay, .tile:focus-visible .tile__overlay { background: linear-gradient(to top, rgba(20, 17, 13, 0.9), rgba(20, 17, 13, 0.3) 80%); }
.tile__tags { font-size: 0.78rem; font-weight: 700; color: var(--marker); opacity: 0; transform: translateY(8px); transition: 0.3s; }
.tile__title { font-family: var(--hand); font-weight: 400; font-size: 1.7rem; line-height: 1.05; }
.tile--large .tile__title { font-size: 2.4rem; }
.tile__tagline { font-size: 0.9rem; color: #eae4d6; max-height: 0; opacity: 0; overflow: hidden; transition: 0.3s; }
.tile:hover .tile__tags, .tile:focus-visible .tile__tags { opacity: 1; transform: none; }
.tile:hover .tile__tagline, .tile:focus-visible .tile__tagline { max-height: 4em; opacity: 1; }

.sheet-root--project .sheet__content, .project-page .sheet__content { padding-top: 0; }
.project-hero { margin: 0 calc(var(--sheet-pad) * -1) 0; background: var(--c, #000); border-bottom: 2px solid var(--ink); }
.project-hero img { width: 100%; max-height: 56vh; object-fit: cover; }
.project-hero .video { margin: 0; border-radius: 0; }
.project-hero .video--embed { aspect-ratio: 16 / 9; }
.project-hero .video video { width: 100%; max-height: 62vh; background: #000; display: block; }
.project-body { display: grid; grid-template-columns: 1fr 250px; gap: 44px; margin-top: 32px; }
.project-body__title { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.project-gallery { margin-top: 36px; }
.gallery.gallery--masonry { display: block; columns: 2 280px; column-gap: 14px; }
.gallery--masonry .gallery__item { display: block; margin-bottom: 14px; break-inside: avoid; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.gallery--masonry img { width: 100%; }

/* Generic gallery + video */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery__item { display: block; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.gallery__item img { width: 100%; }
.video { margin: 0; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; background: #000; }
.video--embed { aspect-ratio: 16 / 9; }
.video--embed iframe, .video--embed embed, .video--embed object { width: 100%; height: 100%; border: 0; display: block; }
.video video { width: 100%; display: block; }
.video-fallback { margin: 0 0 24px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(18, 15, 12, 0.94); animation: gv-fade-in 0.2s both; color: #f6f2ea; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1400px, 100vw - 40px); max-height: 100vh; text-align: center; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 80px); margin: 0 auto; border: 2px solid #f6f2ea; }
.lightbox__figure figcaption { margin-top: 10px; color: #a59d8e; font-size: 0.9rem; min-height: 1.4em; }
.lightbox__close, .lightbox__nav { position: absolute; border: 2px solid #f6f2ea; border-radius: 50%; background: transparent; color: #f6f2ea; cursor: pointer; line-height: 1; }
.lightbox__close { top: 18px; right: 18px; width: 44px; height: 44px; padding: 5px; border: 0; border-radius: 6px; background: var(--paper); }
.lightbox__close img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lightbox__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; padding: 5px; border: 0; border-radius: 6px; background: var(--paper); transition: transform 0.15s; }
.lightbox__nav img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--marker); color: var(--ink); border-color: var(--marker); }
.lightbox__nav:hover { transform: scale(1.12); }
.lightbox.is-single .lightbox__nav { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
	.layout { display: block; }
	.sidebar { position: relative; top: auto; height: auto; overflow: visible; padding: 16px 22px; border-bottom: 2px solid var(--ink); }
	.sidebar__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
	.brand__name { font-size: 2rem; }
	.nav-toggle { display: block; flex: none; width: 46px; height: 42px; padding: 5px; border: 0; background: none; cursor: pointer; position: relative; }
	.nav-toggle img { display: block; width: 100%; height: 100%; object-fit: contain; }
	.nav-toggle .nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
	.sidebar__panel { display: none; padding-top: 4px; }
	.sidebar__panel.is-open { display: block; }
	.tagline { margin-top: 8px; }
	.site-nav { margin: 18px 0 24px; }
	.content { border-left: 0; min-height: 0; }
	body.is-shelf-page .content { height: calc(100vh - var(--mobile-header-height, 76px) - var(--adminbar, 0px)); height: calc(100dvh - var(--mobile-header-height, 76px) - var(--adminbar, 0px)); overflow: visible; }
	.shelf3d { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(220px, 1fr) auto; min-height: 0; overflow: visible; }
	.shelf3d__canvas { position: relative; inset: auto; grid-area: 1 / 1; min-height: 220px; overflow: hidden; }
	.shelf3d__detail { position: relative; grid-area: 2 / 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 20px max(18px, env(safe-area-inset-bottom)); background: var(--paper); min-width: 0; overflow-wrap: anywhere; }
	.shelf3d__name { font-size: clamp(1.8rem, 6vw, 2.6rem); }
	.shelf3d__meta { font-size: 1.1rem; }
	.shelf3d__tagline { font-size: 1rem; }
	.shelf3d__more { max-width: min(100%, 330px); }
	.shelf3d__more img { width: 100%; height: auto; max-height: 56px; object-fit: contain; object-position: left; }
	.shelf3d__step { grid-area: 1 / 1; position: relative; top: auto; align-self: center; }
	.shelf3d__step--prev { justify-self: start; }
	.shelf3d__step--next { justify-self: end; }
	.wrap, .wrap--medium, .wrap--narrow { width: min(var(--wrap), 100% - 40px); }
	.wrap--wide { width: min(1400px, 100% - 28px); }
}

@media (max-width: 860px) {
	.game-hero__inner { grid-template-columns: 1fr; gap: 12px; }
	.game-hero__art { min-height: 360px; }
	.article__image { margin-inline: 0; }
	.app-body, .project-body { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 700px) {
	body { font-size: 16px; }
	.shelf3d__step { width: 38px; height: 38px; }
	.shelf3d__step--prev { left: 10px; }
	.shelf3d__step--next { right: 10px; }
	.device { padding: 0 0 24px; }
	.apps { gap: 28px 8px; }
	.app { width: 92px; }
	.app__icon { width: 74px; height: 74px; }
	.app__label { font-size: 1rem; max-width: 90px; }
	.mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 10px; }
	.tile--large .tile__title { font-size: 1.8rem; }
	.tile__title { font-size: 1.35rem; }
	.tile__overlay { padding: 12px 14px; }
	.sheet { --sheet-pad: 20px; inset: 0; width: 100%; height: 100%; border-radius: 0; border-width: 0; box-shadow: none; }
	.sheet__scroll { border-radius: 0; }
	.app-head { flex-direction: column; align-items: flex-start; gap: 16px; padding-right: 0; margin-top: 30px; }
	.app-head__icon { width: 100px; height: 100px; }
	.hero { padding-top: 56px; }
	.portal:nth-child(n) { transform: none; }
}

/* ---------- Store (WooCommerce) ---------- */
.store { padding: 48px 0 80px; }
.store-notice { border: 2px solid var(--ink); border-left: 10px solid var(--accent); background: var(--card); border-radius: var(--radius); padding: 16px 22px; margin: 0 0 32px; box-shadow: 4px 4px 0 var(--ink); }
.store-notice__title { display: block; font-family: var(--hand); font-size: 1.3rem; color: var(--accent); margin-bottom: 4px; }
.store-notice p { margin: 0.3em 0 0; }
.article .store-notice { margin-top: 0; }
body.woocommerce-cart .article, body.woocommerce-checkout .article { width: min(1000px, 100% - 64px); }
body.woocommerce-cart .entry :is(h2, h3, .wc-block-grid__product-title, .wc-block-components-product-name) { font-family: var(--hand); font-weight: 400; line-height: 1.2; letter-spacing: 0.01em; }
body.woocommerce-cart .entry :is(.wc-block-grid__product-title, .wc-block-components-product-name) { font-size: 1.3rem; }
body.woocommerce-cart .entry .wp-block-post-title a { text-decoration: none; }

.store .woocommerce-products-header__title, .store .product_title, .store .related > h2, .store .woocommerce-tabs h2, .store .cart_totals h2, .store .cross-sells h2 { font-family: var(--hand); font-weight: 400; }
.store .woocommerce-products-header { margin-bottom: 24px; }
.store .woocommerce-result-count { color: var(--muted); }
.store select, .woocommerce select, .woocommerce input.input-text, .woocommerce textarea, .woocommerce .quantity .qty { font: inherit; padding: 9px 12px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); color: var(--ink); }

.store ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.store ul.products::before, .store ul.products::after { display: none; }
.store ul.products li.product { margin: 0; width: auto; float: none; display: flex; flex-direction: column; gap: 6px; position: relative; }
.store ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.store ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); box-shadow: 4px 4px 0 var(--ink); margin: 0 0 8px; transition: transform 0.15s, box-shadow 0.15s; }
.store ul.products li.product:hover img { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--accent); }
.store ul.products li.product .woocommerce-loop-product__title { font-family: var(--hand); font-weight: 400; font-size: 1.3rem; margin: 0; padding: 0; }
.store .price, .woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--ink-soft); font-weight: 700; }
.store .price del { color: var(--muted); font-weight: 400; }
.store .price ins { text-decoration: none; color: var(--accent); }
.store ul.products li.product .button { align-self: flex-start; margin-top: 6px; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .wc-block-components-button:not(.is-link), .wp-element-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s, background 0.12s; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .wc-block-components-button:not(.is-link):hover { background: var(--accent); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.woocommerce button.button.alt, .woocommerce a.button.alt, .wc-block-components-button.contained { background: var(--accent); color: #fff; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: 0.5; cursor: not-allowed; }
.woocommerce a.added_to_cart { margin-left: 10px; font-weight: 700; }

.store div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: start; }
.store div.product div.images, .store div.product div.summary { float: none; width: auto; margin: 0; }
.store div.product div.images img { border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--ink); }
.store div.product .product_title { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 8px; }
.store div.product p.price { font-size: 1.4rem; margin: 0 0 16px; }
.store div.product form.cart { display: flex; gap: 14px; align-items: center; margin: 20px 0; flex-wrap: wrap; }
.store div.product .product_meta { color: var(--muted); font-size: 0.9rem; }
.store div.product .woocommerce-tabs, .store div.product .related, .store div.product .upsells { grid-column: 1 / -1; }
.store .woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; border-bottom: 2px solid var(--ink); }
.store .woocommerce-tabs ul.tabs::before, .store .woocommerce-tabs ul.tabs li::before, .store .woocommerce-tabs ul.tabs li::after { display: none; }
.store .woocommerce-tabs ul.tabs li, .woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: none; border-bottom-color: transparent; }
.store .woocommerce-tabs ul.tabs li a { display: block; padding: 8px 16px; font-weight: 700; color: var(--ink-soft); text-decoration: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { background: var(--marker-soft); color: var(--ink); }
.store .woocommerce-tabs .panel > h2:first-child { display: none; }

.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 24px; padding: 14px 20px; border: 2px solid var(--ink); border-left: 10px solid var(--accent); border-radius: var(--radius); background: var(--card); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button { order: 2; margin-left: auto; }

.woocommerce table.shop_table { width: 100%; border: 2px solid var(--ink); border-collapse: separate; border-spacing: 0; border-radius: var(--radius); background: var(--card); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
.woocommerce table.shop_table img { width: 64px; height: auto; border-radius: 4px; }
.woocommerce-cart .cart-collaterals { margin-top: 32px; display: flex; justify-content: flex-end; }
.woocommerce-cart .cart-collaterals .cart_totals { width: min(420px, 100%); float: none; }
.woocommerce form .form-row { margin: 0 0 14px; }
.woocommerce form .form-row label { display: block; font-weight: 700; margin-bottom: 4px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { width: 100%; box-sizing: border-box; }
.woocommerce-checkout #payment { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line-soft); }
.woocommerce-checkout #payment div.payment_box { background: var(--paper); }
.wc-block-components-text-input input, .wc-block-components-totals-wrapper { font: inherit; }
.woocommerce-breadcrumb { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }

/* Store buttons are images (Customize > Images: store buttons); the real text stays for screen readers. */
.store-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; margin: 0 0 22px; }
.store-bar__back img { display: block; height: 48px; width: auto; transition: transform 0.15s; }
.store-bar__back:hover img { transform: translateX(-4px); }
.store-bar__cart { position: relative; margin-left: auto; display: block; }
.store-bar__cart img { display: block; height: 44px; width: auto; transition: transform 0.15s; }
.store-bar__cart:hover img { transform: rotate(-6deg) scale(1.08); }
.store-cart-count { position: absolute; top: -8px; right: -10px; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px; background: var(--accent); color: #fff; font: 700 0.8rem/22px var(--font); text-align: center; border: 2px solid var(--ink); }
.store-cart-count[hidden] { display: none; }
.article .store-bar { margin-top: 8px; }

:is(
	.woocommerce div.product form.cart .single_add_to_cart_button.button,
	.woocommerce ul.products li.product a.button.product_type_simple,
	.woocommerce ul.products li.product a.button.product_type_variable,
	.woocommerce ul.products li.product a.button.product_type_grouped,
	.woocommerce ul.products li.product a.button.product_type_external,
	.woocommerce a.added_to_cart,
	.woocommerce a.checkout-button,
	.wc-block-cart__submit-button,
	.wc-block-components-checkout-place-order-button,
	.woocommerce #place_order,
	.woocommerce .return-to-shop a.button,
	.woocommerce-cart .wp-block-woocommerce-empty-cart-block p a,
	.wc-block-grid__product-add-to-cart .wp-block-button__link,
	.wc-block-components-product-button__button
) {
	display: inline-block; height: 56px; width: calc(56px * var(--r, 4)); max-width: 100%; padding: 0 !important; margin: 4px 0;
	font-size: 0 !important; line-height: 0 !important; color: transparent !important; overflow: hidden; text-indent: -9999px;
	background-color: transparent !important; background-repeat: no-repeat !important; background-position: left center !important; background-size: contain !important;
	border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transition: transform 0.12s;
}
:is(.woocommerce div.product form.cart .single_add_to_cart_button.button, .woocommerce ul.products li.product a.button.product_type_simple):is(*, :hover) { background-image: var(--b-add) !important; --r: var(--r-add); }
:is(.wc-block-grid__product-add-to-cart .wp-block-button__link, .wc-block-components-product-button__button):is(*, :hover) { background-image: var(--b-options) !important; --r: var(--r-options); }
:is(.wc-block-grid__product-add-to-cart .wp-block-button__link.gv-store-add, .wc-block-components-product-button__button.add_to_cart_button.product_type_simple):is(*, :hover) { background-image: var(--b-add) !important; --r: var(--r-add); }
:is(.woocommerce ul.products li.product a.button.product_type_variable, .woocommerce ul.products li.product a.button.product_type_grouped, .woocommerce ul.products li.product a.button.product_type_external):is(*, :hover) { background-image: var(--b-options) !important; --r: var(--r-options); }
.woocommerce a.added_to_cart:is(*, :hover) { background-image: var(--b-viewcart) !important; --r: var(--r-viewcart); margin-left: 8px; }
:is(.woocommerce a.checkout-button, .wc-block-cart__submit-button):is(*, :hover) { background-image: var(--b-checkout) !important; --r: var(--r-checkout); }
:is(.wc-block-components-checkout-place-order-button, .woocommerce #place_order):is(*, :hover) { background-image: var(--b-place) !important; --r: var(--r-place); }
.woocommerce .return-to-shop a.button:is(*, :hover) { background-image: var(--b-return) !important; --r: var(--r-return); }
.woocommerce-cart .wp-block-woocommerce-empty-cart-block p a:is(*, :hover) { background-image: var(--b-return) !important; --r: var(--r-return); }
:is(.woocommerce a.checkout-button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .woocommerce #place_order):hover { transform: translate(-1px, -2px); }
:is(.woocommerce div.product form.cart .single_add_to_cart_button.button, .woocommerce ul.products li.product a.button):hover { transform: translate(-1px, -2px); }
.wc-block-cart__submit-container, .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { text-align: left; }
.wc-block-components-checkout-place-order-button .wc-block-components-button__text, .wc-block-cart__submit-button .wc-block-components-button__text { display: none; }

@media (max-width: 860px) {
	.store { padding-top: 24px; }
	.store div.product { grid-template-columns: 1fr; }
	.woocommerce table.shop_table_responsive tr td::before { font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
