/* GENERATED by tests/visual/tools/bundle-css.mjs, do not edit. Mock ref da6c2fe. Flavour: page.
 * 6116e9a6314c4a1a4b91be14d5a0776acaa713ef0199f505537033018a1e7775  components/home-hero.css
 * f72f8827f5f046fd82f5137f125289f230deccc00fc445b02e7f2174e075b4f5  components/home-wholesale-line.css
 * 3c6b6541310eb6a4450a14f2b4bd4f6c2597e64cd3afc62104440a7e7cf568cf  components/home-new-arrivals.css
 * 4a04d5b35cecd8ca6c7c2a279fce0d430c9357497d5373deb40c08842ae42d1d  components/home-restock.css
 * 8289a6ddcc74332a3468ea9f5b726259825f2d5904a5d1bf4e31523901ec74ae  components/home-maldito.css
 * c2d10abf59ffad0404337ddf2e7cba94701b4846fe0849695371c55b74924598  components/home-categories.css
 * 56925aaec4370bd5fbaf5b9fe67fbb88e922b641a2e02c12a86642462106602e  components/home-bestsellers.css
 * 1a0e534988686e3a0ad67cfee3098dbd49fee992e9657098b8eb651735ce655a  components/home-bgg-top.css
 * d3465d6b759b19aa8fdb788324518aeb6a257144d8241b440451385f29ac2b8d  components/home-newclient.css
 * fdd48d4ac714e5d1232e61247fbf83e11b4b9bf8de4da80b21da57ca6d9a03ee  components/portal-banner.css
 * e8523af274a3f4edbe1dacb2fb0bbd56cb6fafeb37cc1e388366249ffd8d8c2f  components/maldito-graphic.css
 */
@layer components {
.dv-hero { position: relative; background: var(--s-surface-navy); }
.dv-hero__slide { display: block; }
.dv-hero__img { width: 100%; aspect-ratio: var(--c-hero-ratio-m); object-fit: cover; }
.dv-hero picture { display: block; }
.dv-hero__ctrl { position: absolute; inset-block-end: var(--s-sp-2); inset-inline-end: var(--s-gutter); display: flex; align-items: center; background: var(--p-navy-a60); border-radius: var(--s-radius); }
.dv-hero__dot { display: inline-flex; align-items: center; justify-content: center; width: var(--s-target); height: var(--s-target); padding: 0; border: 0; background: transparent; }
.dv-hero__dot span { width: var(--p-8); height: var(--p-8); border-radius: var(--s-radius-dot); background: var(--s-text-on-dark-muted); }
.dv-hero__dot[aria-current="true"] span { background: var(--s-text-on-dark); box-shadow: 0 var(--s-rule-w-2) 0 var(--s-accent); }
.dv-hero__dot[aria-disabled="true"] { cursor: default; }
@media (min-width: 768px) {
  .dv-hero__img { aspect-ratio: var(--c-hero-ratio-d); }
}
@media (max-width: 767px) {
  .dv-hero__ctrl { position: static; justify-content: center; border-radius: 0; background: var(--s-surface-navy); }
}
.dv-hero__dot span { transition: background-color var(--s-dur) var(--s-ease), transform var(--s-dur) var(--s-ease); }
.dv-hero__dot:hover span { background: var(--s-text-on-dark); transform: scale(1.25); }
.dv-hero__dot:active span { transform: scale(0.9); }

.dv-line { padding-block: var(--s-sp-6); }
.dv-line__grid { display: grid; gap: var(--s-sp-5); align-items: end; }
.dv-line__cta { display: flex; flex-wrap: wrap; gap: var(--s-sp-3); }
@media (min-width: 768px) {
  .dv-line { padding-block: var(--s-sp-7); }
  .dv-line__grid { grid-template-columns: 7fr 5fr; gap: var(--s-sp-7); }
  .dv-line__cta { justify-content: flex-end; }
}

.dv-lead { display: grid; gap: var(--s-sp-5); }
.dv-lead__rail { margin-block-start: var(--s-sp-6); }

.dv-leadp { display: grid; gap: var(--s-sp-3); align-content: start; padding: var(--c-card-pad); background: var(--c-card-bg); border-radius: var(--s-radius); transition: transform var(--p-dur-lift) var(--s-ease); }
.dv-leadp:hover, .dv-leadp:focus-within { transform: translateY(var(--c-lift)); }
.dv-leadp__cover { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 6 / 5; padding: var(--s-sp-4); background: var(--c-cover-well); border-radius: var(--s-radius); overflow: hidden; }
.dv-leadp__cover img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.dv-leadp__body { display: grid; gap: var(--s-sp-2); }
.dv-leadp__body h3 a { text-decoration: none; display: inline-block; min-width: var(--s-target); padding-block: var(--s-hit); margin-block: calc(-1 * var(--s-hit)); }
.dv-leadp__body h3 a:hover { text-decoration: underline var(--s-rule-w-2) var(--s-accent); text-underline-offset: var(--p-4); }
.dv-leadp__act { display: flex; gap: var(--s-sp-2); align-items: center; flex-wrap: wrap; }
.dv-leadp__act .dv-btn { flex: 1; }
@media (prefers-reduced-motion: reduce) { .dv-leadp:hover, .dv-leadp:focus-within { transform: none; } }
@media (min-width: 768px) {
  .dv-lead { grid-template-columns: 5fr 7fr; gap: var(--s-sp-6); align-items: start; }
}
.dv-lead__rail.dv-hlist { margin-block-start: var(--s-sp-6); }

[data-comp="home-restock"] .dv-rows { background: var(--s-surface); padding-inline: var(--s-sp-4); }
@media (min-width: 768px) { [data-comp="home-restock"] .dv-rows { padding-inline: var(--s-sp-5); } }

/* Maldito band: the Maldito mode of tokens.css (grey or black ground by theme), one compact red band (maldito-graphic.css .mg-band), then one row of four slab cards.
   Height budget: head about 200 px + one row of cards, never a wall of tiles. Photo wells and white plates unchanged. */
.dv-maldito__head { display: grid; gap: var(--s-sp-4); align-items: center; }
.dv-maldito__head img { width: var(--p-240); height: auto; }
.mg-band__sub { margin: 0; font-size: clamp(var(--p-32), calc(var(--p-20) + 2.6vw), var(--p-56)); line-height: 1; }
.dv-maldito .dv-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dv-maldito__shelf { padding-block: var(--s-sp-6) var(--s-sp-7); }
@media (max-width: 767px) {
  .dv-maldito .dv-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(96%, var(--p-320)); overflow-x: auto; scroll-snap-type: x proximity; padding-block-end: var(--p-12); }
  .dv-maldito .dv-rail > * { scroll-snap-align: start; }
}
@media (min-width: 768px) { .dv-maldito__head { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-sp-6); } }
@media (min-width: 1024px) { .dv-maldito .dv-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
[data-brand="maldito"] { background: var(--s-surface); color: var(--s-text); }
.dv-maldito-page { padding-block-end: var(--s-sp-7); }

.dv-cats { display: grid; gap: var(--s-sp-4); }
.dv-cat { display: grid; gap: var(--s-sp-5); align-content: space-between; padding: var(--s-sp-5); border-radius: var(--s-radius); min-height: var(--p-400); }
.dv-cat.is-navy { background: var(--s-surface-navy); color: var(--s-text-on-dark); }
.dv-cat.is-white { background: var(--s-surface-tint); }
.dv-cat__txt { display: grid; gap: var(--s-sp-3); justify-items: start; }
.dv-cat__covers { display: flex; gap: var(--s-sp-3); align-items: end; }
.dv-cat__covers img { flex: 0 1 clamp(var(--p-96), 12vw, var(--p-160)); min-width: 0; width: clamp(var(--p-96), 12vw, var(--p-160)); max-width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--c-cover-well); border-radius: var(--s-radius); }
@media (min-width: 768px) {
  .dv-cats { grid-template-columns: 7fr 5fr; gap: var(--s-sp-5); }
  .dv-cat { padding: var(--s-sp-6); min-height: var(--p-480); }
}

.dv-rank { background: var(--s-surface); border-radius: var(--s-radius); }
.dv-rankrow:last-child { border-block-end: 0; }
.dv-rankrow { transition: background-color var(--s-dur) var(--s-ease); }
.dv-rankrow:hover, .dv-rankrow:focus-within { background: var(--c-hover-tint); }
.dv-rankrow { display: grid; grid-template-columns: var(--p-40) var(--c-cover-mini) minmax(0, 1fr) auto; gap: var(--s-sp-3); align-items: center; padding: var(--s-sp-3) var(--s-sp-4); border-block-end: var(--s-rule-w) solid var(--s-rule); }
.dv-rankrow__n { text-align: center; }
.dv-rankrow__cover { display: block; width: var(--c-cover-mini); height: var(--c-cover-mini); background: var(--c-cover-well); }
.dv-rankrow__cover img { width: 100%; height: 100%; object-fit: contain; }
.dv-rankrow__main { min-width: 0; display: grid; gap: var(--p-2); }
.dv-rankrow__main a { text-decoration: none; }
.dv-rankrow__orders { display: none; color: var(--s-text-muted); }
.dv-rankrow__orders b { color: var(--s-text); }
@media (min-width: 768px) {
  .dv-rankrow { grid-template-columns: var(--p-72) var(--c-cover-row) minmax(0, 1fr) var(--p-120) var(--p-96); gap: var(--s-sp-5); padding-inline: var(--s-sp-5); }
  .dv-rankrow__cover { width: var(--c-cover-row); height: var(--c-cover-row); }
  .dv-rankrow__orders { display: block; }
}

.dv-rankrow__main > * { overflow-wrap: anywhere; }
@media (max-width: 390px) { .dv-rankrow { grid-template-columns: var(--p-32) minmax(0, 1fr) auto; } .dv-rankrow__cover { display: none; } }

/* BGG Top 100, round 2. Every card is one surface (no border). Rank 1 feature (cover left, stats panel fills the right column), 2-3 medium, 4+ compact.
   Cards in a row are separated by gaps, never by rules. Rank badge: same corner offset on every card. */
.dv-bgglist { display: grid; gap: var(--s-sp-3); }
.dv-bggc { position: relative; display: grid; grid-template-columns: var(--c-compact-cover) minmax(0, 1fr); grid-template-areas: "cover head" "cover id" "cover price" "foot foot"; gap: var(--s-sp-2) var(--s-sp-4); align-items: start; align-content: start; padding: var(--c-card-pad); background: var(--c-card-bg); border-radius: var(--s-radius); min-width: 0; transition: transform var(--p-dur-lift) var(--s-ease); }
.dv-bggc:hover, .dv-bggc:focus-within { transform: translateY(var(--c-lift)); }
.dv-bggc__head { grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: var(--s-sp-2); min-height: var(--c-brandtag-h); }
.dv-bggc__cover { grid-area: cover; position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: var(--s-sp-3); background: var(--c-cover-well); border-radius: var(--s-radius); overflow: hidden; }
.dv-bggc__cover > img { position: absolute; inset: var(--s-sp-3); width: calc(100% - 2 * var(--s-sp-3)); height: calc(100% - 2 * var(--s-sp-3)); object-fit: contain; }
.dv-bggc__cover > .dv-nocover { grid-area: 1 / 1; margin: calc(-1 * var(--s-sp-3)); width: calc(100% + 2 * var(--s-sp-3)); height: calc(100% + 2 * var(--s-sp-3)); }
.dv-bggc__rank { position: absolute; inset-block-start: 0; inset-inline-start: 0; display: grid; place-items: center; min-width: var(--p-48); padding: var(--s-sp-2) var(--s-sp-2) var(--s-sp-1); background: var(--s-surface-navy); color: var(--s-text-on-dark); font: var(--t-rank-sm); font-variant-numeric: tabular-nums; letter-spacing: var(--p-track-display); border-radius: 0 0 var(--s-radius) 0; }
.dv-bggc__id { grid-area: id; display: grid; gap: var(--s-sp-1); align-content: start; min-width: 0; }
.dv-bggc__name { font: var(--t-heading-sm); min-height: 2lh; }
.dv-bggc__name a { text-decoration: none; min-width: var(--s-target); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-block: var(--s-hit); margin-block: calc(-1 * var(--s-hit)); }
.dv-bggc__name a:hover { text-decoration: underline var(--s-rule-w-2) var(--s-accent); text-underline-offset: var(--p-4); }
.dv-bggc .dv-row__sku { align-items: center; }
.dv-bggc__stats { display: none; grid-area: stats; }
.dv-bggc__facts { display: none; grid-area: facts; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-sp-3); }
.dv-bggc__facts dt { font: var(--t-label); letter-spacing: var(--p-track-label); text-transform: uppercase; color: var(--s-text-muted); }
.dv-bggc__facts dd { margin: 0; font: var(--t-body); }
.dv-bggc__price { grid-area: price; }
.dv-bggc__foot { grid-area: foot; }
.dv-bggc.is-out .dv-bggc__cover > img { opacity: 0.6; }
@media (min-width: 768px) {
  .dv-bgglist { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-sp-4); }
  .dv-bggc { grid-column: span 6; }
  /* 1: feature. Cover left over the full height, the right column carries identity, the stats panel, price and action: no dead space. */
  .dv-bggc:nth-child(1) { grid-template-columns: 1fr 1fr; grid-template-areas: "cover head" "cover id" "cover facts" "cover stats" "cover price" "cover foot"; grid-template-rows: auto auto auto auto 1fr auto; align-items: stretch; gap: var(--s-sp-3) var(--s-sp-5); }
  .dv-bggc:nth-child(1) .dv-bggc__cover { aspect-ratio: auto; height: 100%; min-height: var(--p-320); }
  .dv-bggc:nth-child(1) .dv-bggc__stats { display: block; align-self: start; }
  .dv-bggc:nth-child(1) .dv-bggc__facts { display: grid; }
  .dv-bggc:nth-child(1) .dv-bggc__price { align-self: end; }
  .dv-bggc:nth-child(1) .dv-bggc__chip { display: none; }
  .dv-bggc:nth-child(1) .dv-bggc__rank { font: var(--t-rank-lg); padding: var(--s-sp-3) var(--s-sp-4) var(--s-sp-2); min-width: var(--p-72); }
  .dv-bggc:nth-child(1) .dv-bggc__name { font: var(--t-title); }
  .dv-bggc:nth-child(1) .dv-bggc__price { font: var(--t-price-lead); }
  /* 2 and 3: medium, stacked, with a compact stats panel */
  .dv-bggc:nth-child(2), .dv-bggc:nth-child(3) { grid-column: span 3; grid-template-columns: 1fr; grid-template-areas: "head" "cover" "id" "stats" "price" "foot"; grid-template-rows: auto auto auto 1fr auto auto; }
  .dv-bggc:nth-child(2) .dv-bggc__stats, .dv-bggc:nth-child(3) .dv-bggc__stats { display: block; align-self: start; }
  .dv-bggc:nth-child(2) .dv-bggc__chip, .dv-bggc:nth-child(3) .dv-bggc__chip { display: none; }
  .dv-bggc:nth-child(2) .dv-bggc__rank, .dv-bggc:nth-child(3) .dv-bggc__rank { font: var(--t-rank-md); }
  /* 4+: compact rows */
  .dv-bggc:nth-child(n+4) { grid-column: span 6; }
}
@media (max-width: 767px) {
  .dv-bggc:nth-child(1) { grid-template-columns: 1fr; grid-template-areas: "head" "cover" "id" "stats" "price" "foot"; }
  .dv-bggc:nth-child(1) .dv-bggc__stats { display: block; }
  .dv-bggc:nth-child(1) .dv-bggc__chip { display: none; }
  .dv-bggc:nth-child(1) .dv-bggc__rank { font: var(--t-rank-lg); min-width: var(--p-72); }
}
@media (prefers-reduced-motion: reduce) { .dv-bggc:hover, .dv-bggc:focus-within { transform: none; } }
/* Rank badge entrance: 8 px rise + fade once as the card scrolls in (home only); static without view() support or under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .dv-bggc__rank { animation: dv-rank-in var(--p-dur-reveal) var(--s-ease) both; animation-timeline: view(); animation-range: entry 10% entry 45%; }
  }
}
@keyframes dv-rank-in { from { opacity: 0; transform: translateY(calc(-1 * var(--p-8))); } to { opacity: 1; transform: none; } }
html[data-reveal="off"] .dv-bggc__rank { animation: none; }
.dv-bggc .dv-pair { white-space: normal; overflow-wrap: anywhere; }
.dv-bggc__id { min-width: 0; }
.dv-bggc__empty { display: none; grid-area: stats; }
@media (min-width: 768px) { .dv-bggc:nth-child(-n+3) .dv-bggc__empty { display: block; } }
@media (min-width: 768px) {
  .dv-bggc:nth-child(n+4) .dv-bggc__rank { font: var(--t-rank-xs); min-width: var(--p-32); padding: var(--s-sp-1) var(--s-sp-2); }
  .dv-bggc:nth-child(2) .dv-bggc__cover, .dv-bggc:nth-child(3) .dv-bggc__cover { aspect-ratio: 4 / 3; }
}
@media (max-width: 767px) { .dv-bggc:nth-child(n+2) .dv-bggc__rank { font: var(--t-rank-xs); min-width: var(--p-32); padding: var(--s-sp-1) var(--s-sp-2); } }

.dv-newclient { padding-block: var(--s-sp-7); }
.dv-newclient__grid { display: grid; gap: var(--s-sp-4); align-items: center; justify-items: start; }
@media (min-width: 768px) { .dv-newclient__grid { grid-template-columns: 1fr auto; } }

/* portal-banner: three sizes of the Portal promotion. First-party identity tag "Portal by Devir": the real logo standing alone, no tile (DIANA-006). Navy #1f2447 on a light ground,
   the negative (white) version on a dark ground (BRAND-RULES p.4-5). Surface-scoped tokens: each size declares
   its own ink with its own ground, nothing inherits across a ground change (contrast lesson of round 2). Photos fade into the ground with a mask (alpha only). */
.dv-portaltag { display: inline-flex; align-items: center; height: var(--p-48); background: none; flex: none; }
.dv-portaltag > img { height: var(--p-32); width: auto; }
.dv-portal--wide .dv-portaltag > img { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .dv-portaltag.is-on-light > img { filter: brightness(0) invert(1); } }
html[data-theme="dark"] .dv-portaltag.is-on-light > img { filter: brightness(0) invert(1); }
.dv-portal__by { display: flex; align-items: center; gap: var(--s-sp-3); }
.dv-portal__by .dv-t-label { color: var(--s-text-muted); }

/* ---- wide band: navy ground, event photos left and right, live text in the centre ---- */
.dv-portal--wide { position: relative; display: grid; align-items: stretch; background: var(--s-surface-navy); color: var(--s-text-on-dark); --s-text: var(--s-text-on-dark); --s-text-muted: var(--s-text-on-dark-muted); --s-surface: var(--s-surface-navy); --s-rule: var(--p-white-a24); --s-edge: var(--s-text-on-dark-muted); --s-focus-on-light: var(--s-focus-on-dark); --c-hover-tint: var(--p-white-a12); overflow: hidden; border-radius: var(--s-radius); }
.dv-portal--wide .dv-portal__body { display: grid; gap: var(--s-sp-3); align-content: center; justify-items: start; padding: var(--s-sp-5) var(--s-gutter); }
.dv-portal--wide .dv-portal__lead { color: var(--s-text-on-dark-muted); max-width: var(--p-measure-body); }
.dv-portal--wide .dv-portal__act { display: flex; flex-wrap: wrap; gap: var(--s-sp-2); }
.dv-portal--wide .dv-portal__photo { width: 100%; height: 100%; object-fit: cover; }
.dv-portal--wide .dv-portal__photo.is-right { display: none; }
.dv-portal--wide .dv-portal__photo.is-left { aspect-ratio: 3 / 1; }
.dv-portal--wide .dv-btn.is-inverse-outline { color: var(--s-text-on-dark); border-color: var(--s-text-on-dark); }
.dv-portal--wide .dv-btn.is-inverse-outline:hover { background: var(--p-white-a24); border-color: var(--s-text-on-dark); color: var(--s-text-on-dark); }
@media (min-width: 768px) {
  .dv-portal--wide { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); }
  .dv-portal--wide .dv-portal__photo.is-left, .dv-portal--wide .dv-portal__photo.is-right { display: block; aspect-ratio: auto; }
  .dv-portal--wide .dv-portal__photo.is-left { mask-image: linear-gradient(90deg, var(--p-navy-900) 62%, transparent); }
  .dv-portal--wide .dv-portal__photo.is-right { mask-image: linear-gradient(270deg, var(--p-navy-900) 62%, transparent); }
  .dv-portal--wide .dv-portal__body { padding: var(--s-sp-6) var(--s-sp-5); }
}

/* ---- compact card: tint surface for the cart and account sidebars ---- */
.dv-portal--card { display: grid; gap: var(--s-sp-3); align-content: start; padding: var(--s-sp-4); background: var(--c-card-bg); color: var(--c-card-ink); --s-text: var(--c-card-ink); --s-text-muted: var(--c-card-ink-muted); --s-rule: var(--c-card-line); --s-surface: var(--c-card-bg); --c-btn-bg: var(--c-card-ink); --c-btn-fg: var(--c-card-bg); --c-hover-tint: var(--c-card-hover); border-radius: var(--s-radius); }
.dv-portal--card .dv-portal__by .dv-t-label { color: var(--c-card-ink-muted); }

/* ---- listing interstitial row: sits between ledger rows, one line, never louder than a product ---- */
.dv-portal--row { display: grid; grid-template-columns: var(--p-96) 1fr; gap: var(--s-sp-2) var(--s-sp-4); align-items: center; padding: var(--s-sp-3); background: var(--c-card-bg); color: var(--c-card-ink); --s-text: var(--c-card-ink); --s-text-muted: var(--c-card-ink-muted); --s-rule: var(--c-card-line); --s-surface: var(--c-card-bg); --c-btn-bg: var(--c-card-ink); --c-btn-fg: var(--c-card-bg); --c-hover-tint: var(--c-card-hover); border-radius: var(--s-radius); }
.dv-portal--row .dv-portal__thumb { grid-row: 1 / 4; width: var(--p-96); height: var(--p-96); object-fit: cover; border-radius: var(--s-radius); }
.dv-portal--row .dv-portal__by .dv-t-label { color: var(--c-card-ink-muted); }
.dv-portal--row .dv-btn { justify-self: start; }
@media (min-width: 768px) {
  .dv-portal--row { grid-template-columns: var(--p-96) auto 1fr auto; grid-template-rows: auto; }
  .dv-portal--row .dv-portal__thumb { grid-row: auto; height: var(--p-72); }
}

.dv-portal > *, .dv-portal__body { min-width: 0; max-width: 100%; }
.dv-portal--wide .dv-portal__photo { max-width: 100%; }
.dv-portal__body > *, .dv-portal__by { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.dv-portal--row { grid-template-columns: var(--p-96) minmax(0, 1fr); }
.dv-portal__by { flex-wrap: wrap; }

/* Maldito graphic language, Direction 1 "Manual-faithful" (MG manual p.15-22, owner-approved proposal, Diana's red rule). BRAND-RULES section 10.
   Light = the manual's grey ground with red slabs; dark = black ground with red and white slabs. Both come from the --mg-* roles in tokens.css (light-dark()),
   scoped to <main data-brand="maldito">, body[data-brand="maldito"], [data-surface="maldito"] and the Maldito card surfaces. Devir header, footer and overlays are carved out.
   Red budget (Diana: red must not blind): at most TWO large red slabs per page; cards and rows use black/white buttons that turn red on hover only; red TEXT only in display
   type of 52 px or more (everything else on red is white, 4.81:1). Shapes are clip-path polygons on pseudo-layers with the manual's own geometry (tokens.css --p-shape-*);
   the hard shadow is the same polygon on an offset layer: no blur, no gradient, no filter. The wordmark and its tab take no shape, shadow or effect (manual p.15).
   Motion: transform/opacity/clip-path only, none for reduced motion. */
/* Unwrapped on purpose: imported with layer(components), so these rules sit directly in the components layer and beat the nested-layer pdp/*.css (same reason as polish-m2.css). */
  /* ---- Display faces: opt-in per heading (class), 24 px or more. Never product names in cards, never header or footer. ---- */
  .mg-display { font: var(--t-mg-display); letter-spacing: var(--p-track-comic); text-wrap: balance; }
  .mg-title { font: var(--t-mg-title); letter-spacing: var(--p-track-comic); text-wrap: balance; }
  .mg-display.is-xl { font-family: var(--p-font-comic); font-weight: var(--p-weight-regular); font-size: clamp(var(--p-52), calc(var(--p-24) + 5.4vw), var(--p-96)); line-height: 0.98; letter-spacing: var(--p-track-comic); }
  .mg-red-ink { color: var(--mg-red); }   /* display type of 52 px or more only (qa/maldito.mjs rule) */

  /* ---- On-red context: a red slab re-declares ink, buttons and ring so nothing inherits across the ground change. ---- */
  .mg-on-red, .mg-band, body[data-brand="maldito"] :is(.pdp-a__buy, .pdp-c__buy, .pdp-bar) {
    color: var(--mg-on-red); --s-text: var(--mg-on-red); --s-text-muted: var(--mg-on-red); --s-rule: var(--p-white-a24); --s-edge: var(--mg-on-red); --s-accent: var(--mg-on-red); --s-surface: var(--p-black-950); --s-surface-tint: var(--p-black-950);
    --s-focus-on-light: var(--mg-on-red); --c-btn-bg: var(--p-white); --c-btn-fg: var(--p-black-950); --c-btn-hover-bg: var(--p-black-950); --c-btn-hover-fg: var(--p-white); --m-btn-hover: var(--p-black-950); --m-hover-bg: var(--p-black-a24);
    --c-btn-disabled-bg: var(--p-mg-dis-bg-light); --c-btn-disabled-fg: var(--p-mg-dis-fg-light); --c-hover-tint: var(--p-black-a24); --c-shape-shadow: var(--p-black-950); --c-shape-fill: var(--p-white); --c-shape-ink: var(--p-black-950);
  }
  /* The stepper on red is a white control with a black figure (it is never a red-on-white label). */
  :is(.mg-on-red, .mg-band, body[data-brand="maldito"] :is(.pdp-a__buy, .pdp-c__buy, .pdp-bar)) [data-comp="qty-stepper"] { --s-text: var(--p-black-950); --s-surface: var(--p-white); --s-edge: var(--p-white); --c-hover-tint: var(--p-mg-pale-red); --s-focus-on-light: var(--p-black-950); --s-rule: var(--p-black-950); background: var(--p-white); color: var(--p-black-950); border-color: var(--p-white); }

  /* ---- Slab: the manual's shape painted on two layers behind the content (::before = hard shadow, ::after = fill). The box stays a rectangle, so text, hit area and focus ring are never clipped. ---- */
  .mg-sl { position: relative; isolation: isolate; --sl-fill: var(--mg-red); --sl-shade: var(--mg-hard); --sl-shape: var(--p-shape-main); --sl-dx: var(--p-shape-off-lg-x); --sl-dy: var(--p-shape-off-lg-y); }
  .mg-sl::before, .mg-sl::after { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--sl-shape); pointer-events: none; }
  .mg-sl::before { background: var(--sl-shade); transform: translate(var(--sl-dx), var(--sl-dy)); }
  .mg-sl::after { background: var(--sl-fill); }
  .mg-sl.is-flat::before { display: none; }
  .mg-sl.is-md { --sl-dx: var(--p-shape-off-md-x); --sl-dy: var(--p-shape-off-md-y); }

  /* Eyes pattern (manual p.20, second pattern): the SVG's alpha is the mask, the colour is a token. Doubled so it reads at the manual's strength on grey, black and red alike. */
  .mg-eyes { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--mg-eyes-ink, var(--mg-pattern));
    -webkit-mask: url("../../images/devir/home/maldito-pattern-eyes.svg") 0 0 / var(--p-pattern-w) var(--p-pattern-h) repeat, url("../../images/devir/home/maldito-pattern-eyes.svg") 0 0 / var(--p-pattern-w) var(--p-pattern-h) repeat;
    mask: url("../../images/devir/home/maldito-pattern-eyes.svg") 0 0 / var(--p-pattern-w) var(--p-pattern-h) repeat add, url("../../images/devir/home/maldito-pattern-eyes.svg") 0 0 / var(--p-pattern-w) var(--p-pattern-h) repeat; }

  /* Head disc (manual p.19 TU PERFIL, p.21 example 5): the symbol in a disc with a hard shadow. */
  .mg-disc { position: relative; isolation: isolate; display: grid; place-items: center; width: var(--d, var(--p-96)); aspect-ratio: 1; flex: none; }
  .mg-disc::before, .mg-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; }
  .mg-disc::before { background: var(--disc-shade, var(--p-black-950)); transform: translate(var(--p-shape-off-md-x), var(--p-shape-off-md-y)); }
  .mg-disc::after { background: var(--disc-fill, var(--p-white)); }
  .mg-disc img { width: 70%; height: auto; }

  /* ---- Red band, bleeding to the edge with the eyes pattern (manual p.21 example 1). ONE of the page's two red slabs. ---- */
  .mg-band { position: relative; isolation: isolate; padding-block: clamp(var(--p-24), 3vw, var(--p-56)) clamp(var(--p-32), 4vw, var(--p-72)); color: var(--mg-on-red); --mg-eyes-ink: var(--p-white-a85); }
  .mg-band::after { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--mg-red); clip-path: var(--p-shape-bleed); }
  .mg-band > .mg-eyes { clip-path: var(--p-shape-bleed); }
  .mg-band a:not(.dv-btn) { color: inherit; text-underline-offset: var(--p-4); }
  .mg-band .mg-disc { --disc-fill: var(--p-white); --disc-shade: var(--p-black-950); }
  .mg-band__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-sp-5); }
  .mg-band__title { font: var(--t-mg-display); font-size: clamp(var(--p-32), calc(var(--p-24) + 4.6vw), var(--p-96)); line-height: 0.98; margin: 0; overflow-wrap: normal; hyphens: none; }
  .mg-band__meta { margin-block-start: var(--s-sp-3); font: var(--t-lead); }
  .mg-band__meta b { font-weight: var(--p-weight-black); }
  .mg-band .mg-disc { --d: clamp(var(--p-72), calc(var(--p-24) + 7vw), var(--p-120)); transform: rotate(-6deg); }

  /* Section heading on a fitted slab with its hard shadow (manual p.21 example 2). The second red slab at most; used where the page has no sphere or buy slab. */
  .mg-sh { display: inline-block; margin: 0 var(--p-shape-off-md-x) var(--p-shape-off-md-y) 0; padding: var(--p-slab-pad); font: var(--t-mg-display); color: var(--mg-on-red); }
  .mg-sh.mg-sl { --sl-dx: var(--p-shape-off-md-x); --sl-dy: var(--p-shape-off-md-y); }

  /* Small accent slab (rule tick, product-name underline): 64 x 8, the one red mark that is not a large slab. */
  .mg-slab { display: block; width: var(--c-shape-slab-w); height: var(--c-shape-slab-h); clip-path: var(--p-shape-main); background: var(--c-shape-fill); }
  [data-brand="maldito"]:not([data-surface]) .dv-ledger-head::after { width: var(--c-shape-slab-w); height: var(--c-shape-slab-h); clip-path: var(--p-shape-main); background: var(--c-shape-fill); }
  .ms-pattern { position: relative; isolation: isolate; min-height: var(--p-120); border: var(--s-rule-w) solid var(--s-rule); background-color: var(--s-surface); }
  .ms-rules { margin: 0; padding-inline-start: var(--s-sp-5); display: grid; gap: var(--s-sp-1); font: var(--t-small); }

  /* ================================================================================================
     Maldito scope. @scope root = the Maldito page/section/specimen or a Maldito card; limit = the Devir chrome and every nested Devir surface.
     ================================================================================================ */
  @scope ([data-brand="maldito"], [data-surface="maldito"], .dv-tile.is-maldito, .dv-card.is-maldito, .dv-crow.is-maldito, .dv-row.is-maldito) to (.dv-header, .dv-footer, .dv-overlay, [data-surface]:not([data-surface="maldito"])) {
    /* Buttons (manual p.19): caps in Graphik Black, the p.19 shape. Primary = neutral slab (black on light, white on dark), flat; it turns red on hover only. */
    :is(.dv-btn:not(.is-secondary, .is-tertiary, .is-inverse, .is-inverse-outline, .is-shape), :is(.pdp-xtile, .pdp-xrow) .dv-btn.is-secondary) { position: relative; isolation: isolate; background: transparent; border-color: transparent; border-radius: 0; color: var(--c-btn-fg); text-transform: uppercase; letter-spacing: var(--p-track-btn); }
    :is(.dv-btn:not(.is-secondary, .is-tertiary, .is-inverse, .is-inverse-outline, .is-shape), :is(.pdp-xtile, .pdp-xrow) .dv-btn.is-secondary)::after { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--p-shape-cta); background: var(--c-btn-bg); pointer-events: none; }
    :is(.dv-btn:not(.is-secondary, .is-tertiary, .is-inverse, .is-inverse-outline, .is-shape), :is(.pdp-xtile, .pdp-xrow) .dv-btn.is-secondary):hover:not(:disabled, [aria-disabled="true"]) { background: transparent; border-color: transparent; color: var(--c-btn-hover-fg); }
    :is(.dv-btn:not(.is-secondary, .is-tertiary, .is-inverse, .is-inverse-outline, .is-shape), :is(.pdp-xtile, .pdp-xrow) .dv-btn.is-secondary):hover:not(:disabled, [aria-disabled="true"])::after { background: var(--c-btn-hover-bg); }
    :is(.dv-btn:not(.is-secondary, .is-tertiary, .is-inverse, .is-inverse-outline, .is-shape), :is(.pdp-xtile, .pdp-xrow) .dv-btn.is-secondary):disabled, :is(.dv-btn:not(.is-secondary, .is-tertiary, .is-inverse, .is-inverse-outline, .is-shape), :is(.pdp-xtile, .pdp-xrow) .dv-btn.is-secondary):disabled:hover { background: transparent; border-color: transparent; color: var(--c-btn-disabled-fg); letter-spacing: 0; }
    :is(.dv-btn:not(.is-secondary, .is-tertiary, .is-inverse, .is-inverse-outline, .is-shape), :is(.pdp-xtile, .pdp-xrow) .dv-btn.is-secondary):disabled::after { background: var(--c-btn-disabled-bg); }
    .dv-btn:disabled { letter-spacing: 0; }

    /* Red Add (Diana, DIANA-FEEDBACK-01, R3/R5): the action button of a card, tile, ledger row and PDP row is red with a white label, on a neutral ground only. Secondary buttons stay neutral.
       States: rest red, hover a deeper red, active the deepest, focus-visible the 3 px ink ring (base), disabled the grey slab (rules above), added the neutral slab with the check (never a second red). */
    :is(.dv-card__add, .dv-tile__add, .dv-row__add, .pdp-xtile [data-add], .pdp-xrow [data-add]) { --c-btn-bg: var(--mg-red); --c-btn-fg: var(--mg-on-red); --c-btn-hover-bg: var(--mg-red-hover); --c-btn-hover-fg: var(--mg-on-red); }
    :is(.dv-card__add, .dv-tile__add, .dv-row__add, .pdp-xtile [data-add], .pdp-xrow [data-add]):active:not(:disabled, [aria-disabled="true"])::after { background: var(--mg-red-press); }
    :is(.dv-card__add, .dv-tile__add, .dv-row__add, .pdp-xtile [data-add], .pdp-xrow [data-add]).is-done { --c-btn-bg: var(--mg-neutral); --c-btn-fg: var(--mg-on-neutral); --c-btn-hover-bg: var(--mg-neutral); --c-btn-hover-fg: var(--mg-on-neutral); }
    .dv-btn.is-secondary { border-radius: 0; border-width: var(--s-rule-w-2); text-transform: uppercase; letter-spacing: var(--p-track-btn); }

    /* Stepper: square, 2 px ink frame (UI contrast), bold figure. */
    [data-comp="qty-stepper"] { border-radius: 0; border-color: var(--s-text); box-shadow: inset 0 0 0 var(--s-rule-w) var(--s-text); }   /* 2 px ink frame from a 1 px border plus a 1 px inset ring: the outer box equals the Devir stepper */
    .dv-qty__input { border-inline-color: var(--s-text); box-shadow: inset var(--s-rule-w) 0 0 var(--s-text), inset calc(-1 * var(--s-rule-w)) 0 0 var(--s-text); font-weight: var(--p-weight-black); }

    /* Toolbar controls. */
    .dv-select { border-radius: 0; border-width: var(--s-rule-w-2); border-color: var(--s-text); }
    .dv-toolbar__view { border: var(--s-rule-w-2) solid var(--s-text); }
    .dv-toolbar__view .dv-iconbtn { border: 0; border-radius: 0; }
    .dv-toolbar__view .dv-iconbtn[aria-pressed="true"] { background: var(--s-text); color: var(--s-surface); }
    .dv-toolbar__view .dv-iconbtn:not([aria-pressed="true"]):hover { background: var(--c-hover-tint); }

    /* Covers and poster tiles sit on a white plate in both modes (dark ink on it), and a cover link is never underlined. */
    .dv-tile__cover, .dv-row__cover { --s-text: var(--p-black-950); --c-nocover-bg: var(--p-white); --c-nocover-ink: var(--p-black-950); text-decoration: none; }
    .dv-card__plate, .dv-card__plate .dv-nocover { --c-nocover-bg: var(--p-white); --c-nocover-ink: var(--p-black-950); text-decoration: none; }
    .pdp-xtile .pdp-well, .pdp-xrow__cover { --s-text: var(--p-black-950); }

    /* Out of stock: the cover keeps its opaque white plate in both modes; only the picture washes out, so nothing turns muddy on black and the stock state stays readable. */
    .dv-row.is-out .dv-row__cover { opacity: 1; }
    .dv-row.is-out .dv-row__cover > img, .dv-tile.is-out .dv-tile__cover > img, .dv-card.is-out .dv-card__plate > img, .dv-crow.is-out .dv-card__plate > img { opacity: 0.55; }
    .dv-badge.is-out { background: transparent; box-shadow: inset 0 0 0 var(--s-rule-w-2) var(--s-text); color: var(--s-text); }
    .dv-badge.is-in { background: var(--dv-chip-green); color: var(--dv-text); }
    .dv-badge:not(.is-out, .is-in) { background: var(--mg-neutral); color: var(--mg-on-neutral); }
  }

  /* ---- Maldito cards (tile, card, card-row): one slab with the manual's shape and a hard shadow. Maldito-flagged cards anywhere, and every card inside a Maldito scope that is not a nested Devir surface. ---- */
  :is(.dv-tile.is-maldito, .dv-card.is-maldito, .dv-crow.is-maldito, [data-brand="maldito"] :is(.dv-tile, .dv-card, .dv-crow):not(:is([data-surface]:not([data-surface="maldito"]), .dv-header, .dv-footer, .dv-overlay) *)) {
    isolation: isolate; background: transparent; border-color: transparent; border-radius: 0; box-shadow: none;   /* the 1 px border stays (transparent): same content box as a Devir card, so container-driven type and line heights match */
    &::before, &::after { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--p-shape-card); pointer-events: none; }
    &::after { background: var(--c-card-bg); }
    &:is(.dv-card, .dv-crow)::after { background: var(--c-pc-ground); }
    &::before { background: var(--mg-hard); transform: translate(var(--p-shape-off-sm-x), var(--p-shape-off-sm-y)); }   /* the shadow lives in the grid gap: the card box is the same size as a Devir card, so a mixed row stays aligned */
    &:hover, &:focus-within { border-color: transparent; }
  }
  /* PDP cross-sell tile (rail): same slab as the cards. */
  [data-brand="maldito"] .pdp-xtile[data-surface="maldito"] { position: relative; isolation: isolate; background: transparent; border-radius: 0; }
  [data-brand="maldito"] .pdp-xtile[data-surface="maldito"]::before, [data-brand="maldito"] .pdp-xtile[data-surface="maldito"]::after { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--p-shape-card); pointer-events: none; }
  [data-brand="maldito"] .pdp-xtile[data-surface="maldito"]::after { background: var(--mg-surface); }
  [data-brand="maldito"] .pdp-xtile[data-surface="maldito"]::before { background: var(--mg-hard); transform: translate(var(--p-shape-off-sm-x), var(--p-shape-off-sm-y)); }
  [data-brand="maldito"] .pdp-xtile[data-surface="maldito"] .pdp-well { background: var(--p-white); border-radius: 0; }
  @media (prefers-reduced-motion: reduce) {
    .mg-sl::before, .mg-sl::after { transition: none; }
  }

  /* Featured CTA (manual p.19): irregular shape, hard shadow, white bold label. At most one per view. The button box stays a normal 44 px+ target
     (focus ring and hit area are the box); the polygon and its shadow are painted behind it. */
  .dv-btn.is-shape { justify-self: start; justify-content: center; position: relative; isolation: isolate; background: transparent; border-color: transparent; border-radius: 0; color: var(--c-shape-ink); margin-inline-end: var(--c-shape-dx); margin-block-end: var(--c-shape-dy); text-transform: uppercase; letter-spacing: var(--p-track-btn); }
  .dv-btn.is-shape::before, .dv-btn.is-shape::after { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--p-shape-cta); transition: transform var(--s-dur) var(--s-ease); }
  .dv-btn.is-shape::before { background: var(--c-shape-shadow); transform: translate(var(--c-shape-dx), var(--c-shape-dy)); }
  .dv-btn.is-shape::after { background: var(--c-shape-fill); }
  .dv-btn.is-shape:hover:not(:disabled):not([aria-disabled="true"]) { background: transparent; border-color: transparent; color: var(--c-shape-ink); }
  .dv-btn.is-shape:hover::after { transform: translate(calc(var(--c-shape-dx) / 2), calc(var(--c-shape-dy) / 2)); }
  .dv-btn.is-shape:active::after { transform: translate(var(--c-shape-dx), var(--c-shape-dy)); }
  .dv-btn.is-shape:active { transform: none; }
  .dv-btn.is-shape.is-more::before, .dv-btn.is-shape.is-more::after { clip-path: var(--p-shape-more); }
  @media (prefers-reduced-motion: reduce) {
    .dv-btn.is-shape::before, .dv-btn.is-shape::after { transition: none; }
  }

/* Filled Maldito icons (include.js swaps the sprite on Maldito surfaces): solid currentColor, no stroke. */
.dv-icon.is-mg { fill: currentColor; stroke: none; }

/* Narrowest cards and rows: the caps label of the shaped button drops to the 12 px floor and loses its tracking, so "Unavailable" never spills out of its slab. */
@container pcard (max-width: 340px) { :is(.dv-card.is-maldito, [data-brand="maldito"] .dv-card) .dv-btn:disabled { font-size: var(--p-12); letter-spacing: 0; } }
@container pcard (max-width: 240px) { :is(.dv-card.is-maldito, [data-brand="maldito"] .dv-card) .dv-btn { font-size: var(--p-12); letter-spacing: 0; } }
@container dvrow (max-width: 280px) { :is(.dv-crow.is-maldito, [data-brand="maldito"] .dv-crow, [data-brand="maldito"] .dv-row) .dv-btn { font-size: var(--p-12); letter-spacing: 0; } }
}

/* hand-authored tail (bundles.json) */
@layer utilities {
/* Magento shells around the mock markup (V4): the price comes from the Pricing Render, the stock cue from div.stock (the shape the F7 guest scrubber removes). */
/* @price:begin */
/* T-65 / GL-D67 default (deviation D-V4-1, same as D-V2-1): lead, rank rows and BGG cards show the ORIGINAL price struck through and muted under the customer price (900 weight). Rows and tiles of the shelves use the listing rules. */
.dv-leadp .price-box, .dv-rankrow .price-box, .dv-bggc__price .price-box { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding: 0; }
.dv-leadp :is(.special-price, .old-price) .price-label, .dv-rankrow :is(.special-price, .old-price) .price-label, .dv-bggc__price :is(.special-price, .old-price) .price-label { position: absolute; width: var(--p-1); height: var(--p-1); margin: calc(-1 * var(--p-1)); padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.dv-leadp .old-price, .dv-rankrow .old-price, .dv-bggc__price .old-price { font: var(--t-small); color: var(--s-text-muted); }
.dv-leadp .old-price .price, .dv-rankrow .old-price .price, .dv-bggc__price .old-price .price { text-decoration: line-through; text-decoration-thickness: var(--s-rule-w); }
.dv-t-price-lead .price, .dv-rankrow .price, .dv-bggc__price .price { font: inherit; color: inherit; }
/* @price:end */
.dv-leadp .devir-login-cta a, .dv-rankrow .devir-login-cta a, .dv-bggc__price .devir-login-cta a { font: var(--t-small); color: var(--s-text); text-decoration: underline; text-underline-offset: var(--p-4); white-space: normal; }
.dv-leadp .stock, .dv-bggc .stock, .dv-newhome .stock, .dv-homemain .stock { display: contents; }
[data-comp="home-new-arrivals"] .dv-rows { margin: 0; padding: 0; }
[data-comp="home-restock"] .dv-rows { margin: 0; }
.dv-hero__slide > a { display: block; }
.dv-bggc:has(.stock.unavailable) .dv-bggc__cover > img { opacity: 0.6; }
.dv-bggc__price { margin: 0; }
.dv-bggc__stats .dv-bgg { display: inline-block; }
.dv-rank { margin: 0; padding: 0; list-style: none; }
}
