/* v4 "Pixel Arcade" — Dantas Paints */
@font-face { font-family: 'Press Start 2P'; src: url('../fonts/press-start-2p.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'VT323'; src: url('../fonts/vt323.woff2') format('woff2'); font-display: swap; }
:root {
  --bg: #1d1a2f; --panel: #29243f; --panel-2: #332c52; --text: #fff1e8; --muted: #c2c3c7;
  --red: #ff004d; --orange: #ffa300; --yellow: #ffec27; --green: #00e436; --blue: #29adff; --lav: #83769c; --black: #000;
  --pixel: 'Press Start 2P', monospace; --term: 'VT323', ui-monospace, monospace;
  --px-border: 0 -4px 0 0 var(--black), 0 4px 0 0 var(--black), -4px 0 0 0 var(--black), 4px 0 0 0 var(--black);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 22px/1.25 var(--term);
  background-color: var(--bg);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .025) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .025) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, .025) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .025) 75%);
  background-size: 32px 32px; background-position: 0 0, 16px 16px;
}
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: repeating-linear-gradient(rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); }
img { max-width: 100%; height: auto; display: block; }
img.px, .px img, .art-card img, .version-pick img { image-rendering: pixelated; }
a { color: var(--blue); }
a:hover { color: var(--yellow); }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 400; line-height: 1.4; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 95; background: var(--yellow); color: #000; padding: 8px 14px; font-family: var(--pixel); font-size: 12px; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; padding: 36px 0 70px; }
.empty, .notice { padding: 30px; background: var(--panel); box-shadow: var(--px-border); text-align: center; }
.hint { color: var(--muted); }

/* header */
.ah { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 14px clamp(14px, 4vw, 40px); background: #000; border-bottom: 4px solid var(--red); }
.alogo { font: 16px/1 var(--pixel); color: var(--yellow); text-decoration: none; text-shadow: 3px 3px 0 var(--red); white-space: nowrap; }
.anav { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.anav a { padding: 8px 12px; color: var(--text); font: 11px/1 var(--pixel); text-decoration: none; text-transform: uppercase; }
.anav a:hover, .anav a[aria-current] { color: #000; background: var(--yellow); }
.anav a[aria-current]::before, .anav a:hover::before { content: '►'; margin-right: 6px; }
.abag b { display: inline-block; margin-left: 6px; padding: 3px 6px; background: var(--red); color: #fff; }
.abag b[hidden] { display: none; }
.nav-toggle { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border: 0; background: var(--panel-2); color: var(--text); font: 11px/1.2 var(--pixel); text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: var(--px-border), inset -4px -4px 0 0 rgba(0, 0, 0, .35), inset 4px 4px 0 0 rgba(255, 255, 255, .15); }
.btn:hover { background: var(--lav); color: #fff; }
.btn:active { transform: translate(2px, 2px); box-shadow: var(--px-border), inset 4px 4px 0 0 rgba(0, 0, 0, .35); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #ff3370; }
.btn-small { padding: 10px 12px; font-size: 9px; }
.btn-big { padding: 16px 22px; font-size: 12px; }
.btn-link { background: none; box-shadow: none; color: var(--blue); text-decoration: underline; font: 20px var(--term); text-transform: none; padding: 6px; }
.btn-link:hover { background: none; color: var(--yellow); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; width: min(1180px, 100% - 40px); margin: 0 auto; padding: 60px 0 40px; }
.blink { margin: 0 0 18px; color: var(--yellow); font: 14px var(--pixel); }
@media (prefers-reduced-motion: no-preference) { .blink { animation: blink 1.1s steps(1) infinite; } .hero-sprite img { animation: hop 1.6s steps(2) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes hop { 50% { transform: translateY(-8px); } }
.hero h1 { display: grid; margin: 0 0 18px; font-size: clamp(28px, 6vw, 58px); line-height: 1.25; }
.hero h1 span:first-child { color: var(--blue); text-shadow: 6px 6px 0 #000; }
.hero h1 span:last-child { color: var(--red); text-shadow: 6px 6px 0 #000; }
.lede { max-width: 32rem; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.hero-sprite { display: block; justify-self: center; width: min(420px, 100%); padding: 18px; background: #000; box-shadow: var(--px-border), 10px 10px 0 0 var(--red); text-decoration: none; }
.hero-sprite img { background: #fff; }
.hp { display: block; margin-top: 12px; color: var(--green); font: 11px var(--pixel); }

/* blocks */
.block { width: min(1180px, 100% - 40px); margin: 0 auto; padding: 40px 0; }
.sec-title { margin: 0 0 24px; color: var(--yellow); font-size: clamp(14px, 2.4vw, 20px); text-transform: uppercase; }
.sec-title::before { content: '■ '; color: var(--red); }
.select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.select-tile { display: grid; gap: 8px; padding: 10px; background: var(--panel); box-shadow: var(--px-border); color: var(--text); text-decoration: none; font-size: 18px; }
.select-tile img { background: #fff; }
.select-tile:hover { background: var(--blue); color: #000; }
.select-tile:hover span::before { content: '► '; }
.worlds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.world { display: grid; gap: 6px; padding: 18px; background: var(--green); color: #000; text-decoration: none; box-shadow: var(--px-border), inset -4px -4px 0 rgba(0, 0, 0, .25); }
.world:nth-child(4n+2) { background: var(--blue); } .world:nth-child(4n+3) { background: var(--orange); } .world:nth-child(4n+4) { background: var(--lav); color: #fff; }
.world b { font: 10px var(--pixel); }
.world span { font-size: 26px; }
.world small { font-size: 18px; opacity: .8; }
.world:hover { transform: translate(-3px, -3px); color: #000; }

/* products */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.prod-card { display: flex; flex-direction: column; background: var(--panel); box-shadow: var(--px-border); }
.prod-media { position: relative; display: block; border-bottom: 4px solid #000; }
.prod-media img, .prod-media .img-missing { width: 100%; aspect-ratio: 1; object-fit: cover; }
.img-missing { display: block; background: repeating-linear-gradient(45deg, var(--panel) 0 8px, var(--panel-2) 8px 16px); }
.badge { position: absolute; top: 8px; left: 8px; padding: 6px 8px; background: var(--yellow); color: #000; font: 9px var(--pixel); text-transform: uppercase; box-shadow: 3px 3px 0 #000; }
.badge-out { left: auto; right: 8px; background: var(--lav); color: #fff; }
.prod-info { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 12px; }
.prod-title { margin: 0; font: 22px/1.1 var(--term); }
.prod-title a { color: var(--text); text-decoration: none; }
.prod-title a:hover { color: var(--yellow); }
.prod-meta { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 auto; color: var(--muted); font-size: 18px; }
.price { color: var(--yellow); }
.price::before { content: '◎ '; color: var(--orange); }
.price s { color: var(--muted); }
.price small { color: var(--muted); }
.add-compact .btn, .prod-info > .btn { width: 100%; }

/* inner pages */
.page-head { margin-bottom: 24px; }
.page-head h1 { margin: 0 0 8px; color: var(--yellow); font-size: clamp(18px, 3.4vw, 30px); text-shadow: 4px 4px 0 #000; }
.page-head p { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }
.chip { padding: 8px 10px; background: var(--panel); box-shadow: var(--px-border); color: var(--text); font: 9px var(--pixel); text-decoration: none; text-transform: uppercase; }
.chip:hover, .chip.is-active { background: var(--yellow); color: #000; }
.search { display: flex; gap: 14px; max-width: 460px; margin: 0 0 22px; }
.search input { flex: 1; }
.crumbs { margin: 0 0 18px; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.art-card { display: grid; gap: 4px; padding: 10px; background: var(--panel); box-shadow: var(--px-border); color: var(--text); text-decoration: none; }
.art-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.art-card:hover { background: var(--blue); color: #000; }
.art-name { font-size: 22px; }
.art-count { color: var(--muted); font-size: 16px; }
input[type='text'], input[type='email'], input[type='tel'], input[type='search'], input[type='number'], select, textarea {
  width: 100%; padding: 10px 12px; border: 0; background: #000; color: var(--green); font: 22px var(--term); box-shadow: var(--px-border);
}
input:focus, select:focus, textarea:focus { outline: 4px solid var(--yellow); outline-offset: 4px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span { color: var(--yellow); font: 9px var(--pixel); text-transform: uppercase; }
.field .error { color: var(--red); font-style: normal; }
.field-pair { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.product, .artwork { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.product-main img { width: 100%; box-shadow: var(--px-border); }
.product-thumbs { display: flex; gap: 14px; margin-top: 18px; }
.product-thumbs a { width: 80px; box-shadow: var(--px-border); }
.product-thumbs a[aria-current] { box-shadow: 0 0 0 4px var(--yellow); }
.product-info > .badge { position: static; display: inline-block; }
.product-info h1, .artwork-info h1 { margin: 14px 0 10px; color: var(--yellow); font-size: clamp(16px, 2.6vw, 24px); text-shadow: 3px 3px 0 #000; }
.product-price { font-size: 30px; }
.product-desc, .artwork-desc { color: var(--muted); }
.add-form:not(.add-compact) { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin: 22px 0; }
.add-form:not(.add-compact) .field { margin: 0; min-width: 150px; }
.add-form:not(.add-compact) .field-qty { max-width: 110px; min-width: 90px; }
.add-form:not(.add-compact) .btn { flex: 1 1 100%; }
.product-facts { margin: 0; padding: 14px 18px; list-style: none; background: #000; box-shadow: var(--px-border); color: var(--green); }
.product-facts li::before { content: '> '; }
.related { margin-top: 60px; }
.related h2 { color: var(--yellow); font-size: 16px; }
.artwork-stage { margin: 0; padding: 14px; background: #000; box-shadow: var(--px-border); }
.artwork-stage img { width: 100%; max-height: 76vh; object-fit: contain; }
.artwork-stage.fmt-v img { width: auto; margin: 0 auto; }
.artwork-stage figcaption { margin-top: 10px; color: var(--green); }
.small-head { margin: 24px 0 12px; color: var(--orange); font-size: 10px; text-transform: uppercase; }
.version-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 14px; }
.version-pick { display: grid; gap: 6px; padding: 6px; background: var(--panel); box-shadow: var(--px-border); color: var(--text); font-size: 16px; text-decoration: none; }
.version-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.version-pick.is-active { background: var(--yellow); color: #000; }
.format-list { display: flex; flex-wrap: wrap; gap: 14px; }
.format-pick { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel); box-shadow: var(--px-border); color: var(--text); font-size: 18px; text-decoration: none; }
.format-pick i { display: inline-block; border: 3px solid currentColor; }
.fp-h i { width: 22px; height: 13px; } .fp-v i { width: 13px; height: 22px; } .fp-s i { width: 17px; height: 17px; }
.format-pick em { font-style: normal; color: var(--green); }
.format-pick.is-active { background: var(--yellow); color: #000; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 2px 8px; background: var(--lav); color: #fff; font-size: 16px; }
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.cart-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 16px; align-items: center; padding: 12px; background: var(--panel); box-shadow: var(--px-border); }
.cart-what { display: grid; }
.cart-what a { color: var(--text); text-decoration: none; }
.cart-what small { color: var(--muted); font-size: 17px; }
.cart-qty { display: flex; align-items: center; gap: 10px; }
.cart-qty input { width: 70px; }
.cart-summary, .checkout-summary { position: sticky; top: 100px; display: grid; gap: 12px; padding: 18px; background: #000; box-shadow: var(--px-border), 8px 8px 0 0 var(--blue); }
.row { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.row-total { padding-top: 10px; border-top: 4px dashed var(--lav); color: var(--yellow); }
.demo-note { padding: 12px 16px; background: #000; color: var(--yellow); box-shadow: var(--px-border); }
.demo-note::before { content: '! '; color: var(--red); }
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
.checkout fieldset { margin: 0 0 24px; padding: 18px 20px 6px; border: 0; background: var(--panel); box-shadow: var(--px-border); }
.checkout legend { padding: 6px 10px; background: var(--red); color: #fff; font: 10px var(--pixel); text-transform: uppercase; }
.checkout-summary h2 { margin: 0; color: var(--yellow); font-size: 12px; }
.radios { display: grid; gap: 10px; margin-bottom: 16px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #000; cursor: pointer; }
.radio:has(input:checked) { outline: 4px solid var(--yellow); }
.radio strong { margin-left: auto; color: var(--yellow); font-weight: 400; }
.sum-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 19px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 10px; }
.sum-lines small { display: block; color: var(--muted); }
.btn-pay { width: 100%; }
.order-done { max-width: 860px; margin: 0 auto; text-align: center; }
.order-done h1 { color: var(--green); font-size: clamp(20px, 4vw, 36px); text-shadow: 5px 5px 0 #000; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px 0; text-align: left; }
.order-grid section { padding: 18px; background: var(--panel); box-shadow: var(--px-border); }
.order-grid h2 { font-size: 12px; color: var(--yellow); }
.stamp { display: inline-block; margin: 0; padding: 10px 14px; background: var(--yellow); color: #000; font: 11px var(--pixel); box-shadow: var(--px-border); }
.dialog-box { max-width: 46rem; margin-bottom: 40px; padding: 18px 22px; background: #000; box-shadow: var(--px-border), 8px 8px 0 0 var(--lav); }
.lost { text-align: center; }
.gameover { color: var(--red); font-size: clamp(26px, 7vw, 60px); text-shadow: 6px 6px 0 #000; }

/* footer, toast */
.af { padding: 40px clamp(14px, 4vw, 40px); background: #000; border-top: 4px solid var(--red); color: var(--muted); font-size: 19px; }
.af p { margin: 0 0 6px; }
.af-small { color: var(--green); }
.version-switch { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.version-switch a { padding: 4px 8px; background: var(--panel); color: var(--text); font: 9px var(--pixel); text-decoration: none; }
.version-switch a[aria-current] { background: var(--yellow); color: #000; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translateX(-50%); padding: 14px 18px; background: #000; color: var(--green); box-shadow: var(--px-border), 6px 6px 0 0 var(--red); }
.toast[hidden] { display: none; }
.toast a { color: var(--yellow); }

@media (max-width: 1000px) {
  .hero, .product, .artwork, .cart, .checkout { grid-template-columns: minmax(0, 1fr); }
  .cart-summary, .checkout-summary { position: static; }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 20px; }
  .ah { flex-wrap: wrap; }
  .alogo { font-size: 12px; }
  .nav-toggle { display: inline-flex; margin-left: auto; padding: 8px 10px; border: 0; background: var(--panel-2); color: var(--text); font: 10px var(--pixel); box-shadow: var(--px-border); }
  .anav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-top: 10px; }
  .anav.is-open { display: flex; }
  .prod-grid, .gallery-grid, .select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .prod-meta { flex-direction: column; gap: 0; }
  .order-grid, .field-pair { grid-template-columns: minmax(0, 1fr); }
  .cart-line { grid-template-columns: 70px 1fr; }
}

/* showcase (Top products) */
.showcase { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 330px; grid-auto-flow: dense; gap: 24px; }
.show-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); box-shadow: var(--px-border); }
.size-wide { grid-column: span 2; } .size-tall { grid-row: span 2; } .size-big { grid-column: span 2; grid-row: span 2; }
.show-media { position: relative; flex: 1; min-height: 0; display: block; border-bottom: 4px solid #000; background: #fff; }
.show-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.show-info { display: grid; gap: 4px; padding: 10px 12px 12px; }
.show-type { margin: 0; color: var(--orange); font: 9px var(--pixel); text-transform: uppercase; }
.show-title { margin: 0; font: 22px/1.1 var(--term); }
.show-title a { color: var(--text); text-decoration: none; }
.show-caption { margin: 0; color: var(--green); font-size: 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.show-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: 18px; }
.show-buy .add-form { margin: 0; }
.badge-out-inline { color: var(--muted); }
@media (max-width: 1000px) { .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .showcase { grid-auto-rows: auto; gap: 18px; } .size-tall, .size-big { grid-row: auto; } .show-media { flex: none; aspect-ratio: 1; } .size-wide .show-media { aspect-ratio: 16 / 9; } .show-buy { flex-direction: column; align-items: stretch; } }

/* missing picture: “Coming soon!” */
.img-missing { display: grid; place-items: center; color: var(--yellow); font: 10px var(--pixel); text-transform: uppercase; background: repeating-linear-gradient(45deg, var(--panel) 0 8px, var(--panel-2) 8px 16px); }

/* language switch (flags): after the menu on wide screens, next to MENU on phones */
.lang-switch { order: 1; display: inline-flex; gap: 4px; }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; color: var(--text); font: 10px/1 var(--pixel); text-decoration: none; opacity: .65; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; color: #000; background: var(--yellow); }
.lang-switch .flag { flex: none; width: 21px; height: 14px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000; }
@media (max-width: 760px) {
  .lang-switch { order: 0; margin-left: auto; }
  .lang-switch + .nav-toggle { margin-left: 0; }
}
/* phones: just the flag of the other language (one tap swaps) */
@media (max-width: 420px) { .lang-switch span, .lang-switch a[aria-current] { display: none; } }

/* logo picture (Site & designs → Logo) */
.alogo .brand-img { display: block; width: auto; max-width: min(320px, 60vw); object-fit: contain; image-rendering: auto; }
.alogo.logo-both { display: flex; align-items: center; gap: 12px; }
@media (max-width: 560px) { .alogo .brand-img { max-height: 40px; } }

/* Instagram link ({{instagram}} in a design's layout) */
.insta-link { display: inline-flex; align-items: center; gap: 6px; }
.insta-icon { flex: none; width: 1.15em; height: 1.15em; }

/* QR code button and its full-screen popup ({{instagramQrButton}} / {{instagramQrDialog}}) */
.qr-button { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; text-decoration: none; }
.qr-icon { flex: none; width: 1.15em; height: 1.15em; }
.qr-dialog { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: #111; }
.qr-dialog[open] { display: flex; align-items: center; justify-content: center; }
.qr-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; padding: 24px; text-align: center; font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.qr-box .qr { display: block; width: min(80vw, 60vh, 460px); height: auto; }
.qr-title { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 1.35rem; font-weight: 700; }
.qr-title .insta-icon { width: 1.3em; height: 1.3em; }
.qr-hint { max-width: 24rem; margin: 0; color: #555; }
.qr-link { color: #111; font-size: .9rem; overflow-wrap: anywhere; }
.qr-close { margin-top: 4px; padding: 10px 28px; border: 2px solid #111; border-radius: 999px; background: #fff; color: #111; font: 600 1rem system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; cursor: pointer; }
.qr-close:hover, .qr-close:focus-visible { background: #111; color: #fff; }
.qr-box:focus { outline: none; }
