.hcs-root {
  --page-bg: #fff;
  --ink: #f7f8fb;
  --muted: rgba(247, 248, 251, 0.65);
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

.hcs-root,
.hcs-root *,
.hcs-root *::before,
.hcs-root *::after {
  box-sizing: border-box;
}

/* Neutralise uniquement les styles typographiques hérités de Divi. Les
   déclarations propres aux composants, placées plus bas, restent prioritaires. */
.hcs-root * {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

/* Le thème ajoute aux images de contenu un fond, du padding, des coins et une
   ombre. Ces décorations ne font pas partie du mockup Sites. */
.hcs-root img {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.hcs-root h1,
.hcs-root h2,
.hcs-root h3,
.hcs-root h4,
.hcs-root h5,
.hcs-root h6 {
  padding: 0 !important;
}

.hcs-root [hidden] {
  display: none !important;
}

.hcs-hero-root {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

/* Gabarit WordPress/Divi réservé aux pages créées par le plugin. */
.hcs-wordpress-page #main-content > .container {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

.hcs-wordpress-page #main-content > .container::before {
  display: none;
}

.hcs-wordpress-page #left-area {
  float: none;
  width: 100%;
  padding: 0;
}

.hcs-wordpress-page #sidebar,
.hcs-wordpress-page article.page > .entry-title {
  display: none;
}

.hcs-wordpress-page article.page,
.hcs-wordpress-page article.page .entry-content {
  margin: 0;
  padding: 0;
}

/* Sur l’accueil, le module Divi historique est conservé mais remplacé visuellement. */
.hcs-homepage-shops-active #main-content .et_pb_section_0 {
  display: none;
}

.hcs-homepage-shops-active #main-content,
.hcs-homepage-shops-active #main-content .entry-content {
  padding: 0;
}

/* Séparation douce entre le header clair du blog et la scène du hero.
   Le filet graphite reprend les contours des cartes, puis disparaît dans la page. */
@media (min-width: 981px) {
  .hcs-homepage-shops-active .hcs-hero-root {
    position: relative;
    border-top: 1px solid rgba(18, 20, 25, 0.13);
    background-color: #f4f6f7;
    background-image: image-set(
      url("../hero/hero-stage-light-bg-v4.avif") type("image/avif"),
      url("../hero/hero-stage-light-bg-v4.webp") type("image/webp"),
      url("../hero/hero-stage-light-bg-v4.png") type("image/png")
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      inset 0 14px 30px rgba(18, 20, 25, 0.035);
  }
}

.hcs-root button,
.hcs-root input,
.hcs-root textarea,
.hcs-root select {
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.hero-page {
  min-height: 0;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.shops-hero {
  width: min(100%, 1680px);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(16px, 2.2vw, 38px);
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
}

.hero-grid {
  height: clamp(500px, 42vw, 680px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
}

.shop-card {
  --accent: #ffffff;
  --accent-rgb: 255, 255, 255;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(18px, 1.8vw, 30px);
  padding: 0;
  background: #0c0e13;
  color: white;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 22px 70px rgba(0, 0, 0, 0.28);
  transition: border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
  animation: card-enter 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.shop-card:nth-child(2) {
  animation-delay: 55ms;
}

.shop-card:nth-child(3) {
  animation-delay: 110ms;
}

.shop-card--primary {
  grid-row: 1 / span 2;
}

.shop-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}

.shop-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 52%;
  aspect-ratio: 1;
  right: -20%;
  top: -40%;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.22);
  filter: blur(90px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 500ms ease;
}

.shop-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 28px 80px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(var(--accent-rgb), 0.09);
}

.shop-card:hover::after {
  transform: scale(1.15);
}

.shop-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shop-card[data-brand="nintendo"] {
  --accent: #2f82e7;
  --accent-rgb: 47, 130, 231;
  background: #160307;
}

.shop-card[data-brand="xbox"] {
  --accent: #56f28b;
  --accent-rgb: 86, 242, 139;
}

.shop-card[data-brand="playstation"] {
  --accent: #78a9ff;
  --accent-rgb: 120, 169, 255;
}

.shop-art,
.shop-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
}

.shop-art img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 260ms ease;
}

.shop-card:hover .shop-art img {
  transform: scale(1.055);
  filter: saturate(1.06) brightness(1.03);
}

.shop-card--primary .shop-art img {
  object-position: 58% center;
}

.shop-card--secondary .shop-art img {
  object-position: 56% 52%;
}

.shop-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 9, 0.92) 0%, rgba(3, 5, 9, 0.55) 40%, rgba(3, 5, 9, 0.06) 72%),
    linear-gradient(0deg, rgba(3, 5, 9, 0.64), transparent 48%);
}

.shop-card--secondary .shop-shade {
  background:
    linear-gradient(90deg, rgba(3, 5, 9, 0.88) 0%, rgba(3, 5, 9, 0.34) 48%, transparent 75%),
    linear-gradient(0deg, rgba(3, 5, 9, 0.76), transparent 62%);
}

.shop-topline {
  position: absolute;
  z-index: 4;
  top: clamp(20px, 2.1vw, 34px);
  left: clamp(22px, 2.4vw, 40px);
  right: clamp(22px, 2.4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shop-index {
  font: 600 0.68rem/1 var(--font-geist-mono), monospace;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.52);
}

.shop-copy {
  position: absolute;
  z-index: 4;
  left: clamp(22px, 3vw, 50px);
  right: clamp(22px, 3vw, 50px);
  bottom: clamp(24px, 3.4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.shop-name {
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: clamp(3.5rem, 6vw, 7.2rem);
  font-weight: 590;
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.shop-card--secondary .shop-name {
  font-size: clamp(2rem, 3vw, 3.85rem);
  letter-spacing: -0.06em;
}

.shop-card--secondary .shop-description {
  display: none;
}

.shop-description {
  width: min(34rem, 76%);
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.15vw, 1.1rem);
  line-height: 1.55;
  text-wrap: balance;
}

.shop-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 42px);
  padding: 12px 16px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(6, 8, 12, 0.38);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-card--secondary .shop-action {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  color: rgba(255, 255, 255, 0.7);
}

.shop-arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #05070b;
  font-size: 0;
  line-height: 0;
  transition: transform 220ms ease;
}

.shop-arrow::before {
  content: "↗";
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1;
  transform: translate(0, -0.5px);
}

.shop-card:hover .shop-arrow {
  transform: rotate(45deg);
}

.category-strip {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: clamp(240px, 28vw, 390px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  padding: 14px 16px 14px 20px;
  border: 1px solid rgba(20, 22, 28, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 30px rgba(25, 24, 23, 0.045);
}

.category-strip::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #2f82e7;
  box-shadow: 0 0 18px rgba(47, 130, 231, 0.55);
}

.category-strip--mobile {
  display: none;
}

.category-message {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.category-kicker {
  color: rgba(18, 20, 25, 0.62);
  font: 650 0.55rem/1 var(--font-geist-mono), monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-title {
  max-width: 31rem;
  color: rgba(18, 20, 25, 0.9);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  font-weight: 570;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.category-list {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.category-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(20, 22, 28, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 249, 0.82));
  color: rgba(31, 34, 41, 0.62);
  font: 620 0.56rem/1 var(--font-geist-mono), monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 5px 14px rgba(28, 35, 38, 0.045);
  backdrop-filter: blur(10px);
}

.category-strip--desktop .category-list {
  flex-wrap: nowrap;
}

.category-strip--desktop {
  grid-template-columns: minmax(345px, 1fr) auto;
  padding-block: 11px;
}

.category-strip--desktop .category-message {
  gap: 0;
}

.category-strip--desktop .category-title {
  color: rgba(18, 20, 25, 0.64);
  font: 650 0.68rem/1 var(--font-geist-mono), monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-separator {
  margin-inline: 0.45em;
  color: #2f82e7;
}

.category-total {
  color: rgba(18, 20, 25, 0.92);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.category-strip--desktop .category-item {
  flex: 0 1 auto;
  gap: clamp(5px, 0.45vw, 7px);
  padding-inline: clamp(6px, 0.6vw, 9px);
  color: rgba(31, 34, 41, 0.72);
  font-size: clamp(0.68rem, 0.72vw, 0.72rem);
  letter-spacing: 0.05em;
}

.category-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #2f82e7;
  box-shadow:
    0 0 0 3px rgba(47, 130, 231, 0.08),
    0 0 9px rgba(47, 130, 231, 0.5);
}

@media (min-width: 1100px) {
  .category-strip--desktop {
    grid-template-columns: minmax(345px, 1fr) auto;
  }

  .category-strip--desktop .category-title {
    max-width: none;
    white-space: nowrap;
  }
}

@media (min-width: 981px) and (max-width: 1099px) {
  .category-strip--desktop .category-title {
    white-space: nowrap;
  }

  .category-strip--desktop .category-title-tail {
    display: none;
  }
}

@media (min-width: 981px) and (max-width: 1199px) {
  .category-strip--desktop {
    gap: 10px;
  }

  .category-strip--desktop .category-title {
    font-size: 0.6rem;
    letter-spacing: 0.055em;
  }

  .category-strip--desktop .category-list {
    gap: 4px;
  }

  .category-strip--desktop .category-item {
    gap: 4px;
    padding: 6px 7px;
    font-size: 0.56rem;
    letter-spacing: 0.035em;
  }

  .category-strip--desktop .category-dot {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px rgba(47, 130, 231, 0.45);
  }
}

.console-modal-backdrop {
  --backdrop-image: url("../hero/nintendo-shop-v3.webp");
  --backdrop-accent-rgb: 255, 75, 85;
  position: fixed;
  z-index: 100;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #030509;
  animation: modal-fade 220ms ease both;
}

.console-modal-backdrop[data-brand="playstation"] {
  --backdrop-image: url("../hero/playstation-shop.webp");
  --backdrop-accent-rgb: 120, 169, 255;
}

.console-modal-backdrop::before,
.console-modal-backdrop::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.console-modal-backdrop::before {
  z-index: 0;
  inset: -5%;
  background-image:
    linear-gradient(180deg, rgba(3, 5, 9, 0.2), rgba(3, 5, 9, 0.56)),
    var(--backdrop-image);
  background-position: center;
  background-size: cover;
  filter: blur(11px) saturate(0.88) brightness(0.78);
  transform: scale(1.06);
}

.console-modal-backdrop::after {
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 74% 18%, rgba(var(--backdrop-accent-rgb), 0.2), transparent 38%),
    rgba(3, 5, 9, 0.08);
}

.console-modal {
  --modal-accent: #ff4b55;
  --modal-accent-rgb: 255, 75, 85;
  width: min(620px, 100%);
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--modal-accent-rgb), 0.18), transparent 38%),
    linear-gradient(145deg, rgba(21, 24, 31, 0.98), rgba(8, 10, 15, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 40px 120px rgba(0, 0, 0, 0.58),
    0 0 60px rgba(var(--modal-accent-rgb), 0.09);
  animation: modal-enter 300ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.console-modal[data-brand="playstation"] {
  --modal-accent: #78a9ff;
  --modal-accent-rgb: 120, 169, 255;
}

.console-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.console-modal-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--modal-accent);
  font: 650 0.65rem/1 var(--font-geist-mono), monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.console-modal h2 {
  margin: 0;
  color: inherit !important;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 590;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.console-modal-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  padding: 0 !important;
  font-size: 1.55rem !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.console-modal-close:hover {
  color: white;
  border-color: rgba(var(--modal-accent-rgb), 0.55);
  transform: rotate(8deg);
}

.console-modal-close:focus-visible,
.console-option:focus-visible {
  outline: 2px solid var(--modal-accent);
  outline-offset: 3px;
}

.console-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.console-option {
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: white;
  text-decoration: none !important;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.console-option:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--modal-accent-rgb), 0.5);
  background: rgba(var(--modal-accent-rgb), 0.09);
}

.console-option-index {
  color: rgba(255, 255, 255, 0.36);
  font: 600 0.6rem/1 var(--font-geist-mono), monospace;
  letter-spacing: 0.15em;
}

.console-option-logo {
  align-self: end;
  justify-self: start !important;
  width: auto;
  max-width: 100%;
  height: 36px !important;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.console-option-logo--wii-u,
.console-option-logo--nintendo-switch {
  filter: none;
}

.console-option-logo--nintendo-switch {
  height: 43.2px !important;
}

@media (min-width: 481px) and (max-width: 554px) {
  .console-option-logo--nintendo-switch {
    height: calc(12.84vw - 28.06px) !important;
  }

  .console-option-logo--wii-u {
    height: calc(10.7vw - 23.39px) !important;
  }
}

.console-modal[data-brand="playstation"] .console-option-logo {
  height: 32.4px !important;
}

@media (min-width: 821px) {
  .console-modal[data-brand="playstation"] .console-option-logo {
    height: 25.92px !important;
  }

  .console-modal[data-brand="playstation"] .console-option-arrow {
    width: 26.1px;
    height: 26.1px;
    font-size: 0.81rem;
  }
}

@media (max-width: 820px) {
  .console-modal[data-brand="playstation"] .console-option-logo {
    height: 27.54px !important;
  }

  .console-modal[data-brand="playstation"] .console-option-arrow {
    width: 26.68px;
    height: 26.68px;
    font-size: 0.828rem;
  }
}

.console-option-arrow {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: end;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 999px;
  background: var(--modal-accent);
  color: #05070b;
  font-size: 0.9rem;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: scale(0.985) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(290px, 0.95fr);
  }

  .shop-description {
    width: 88%;
  }
}

@media (min-width: 761px) {
  .shop-card--primary[data-brand="nintendo"] .shop-art img {
    object-position: 62% center;
    transform: scale(0.88);
  }

  .shop-card--primary[data-brand="nintendo"]:hover .shop-art img {
    transform: scale(0.92);
  }
}

@media (max-width: 980px) {
  .category-strip--desktop {
    display: none;
  }

  .category-strip--mobile {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    margin: 0;
    padding: 16px;
    border-color: rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
  }

  .category-strip--mobile::before {
    top: 16px;
    bottom: 16px;
  }

  .category-strip--mobile .category-title {
    max-width: none;
    font-size: 1.3rem;
    line-height: 1.18;
    white-space: nowrap;
  }

  .category-strip--mobile .category-list {
    justify-content: flex-start;
    gap: 0;
    row-gap: 8px;
  }

  .category-strip--mobile .category-item {
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    font-size: clamp(0.58rem, 2.4vw, 0.68rem);
    letter-spacing: 0.055em;
  }

  .category-strip--mobile .category-dot {
    display: none;
  }

  .category-strip--mobile .category-item:not(:last-child)::after {
    content: "·";
    margin-inline: clamp(7px, 1.5vw, 11px);
    color: #2f82e7;
    text-shadow: 0 0 8px rgba(47, 130, 231, 0.58);
  }
}

@media (max-width: 580px) {
  .category-strip--mobile .category-title {
    font-size: clamp(0.64rem, 3.25vw, 1.3rem);
  }
}

@media (max-width: 509px) {
  .category-strip--mobile .category-list {
    flex-wrap: nowrap;
  }

  .category-strip--mobile .category-item {
    font-size: clamp(0.52rem, calc(1.718vw + 2.118px), 0.68rem);
    letter-spacing: 0.025em;
  }

  .category-strip--mobile .category-item:not(:last-child)::after {
    margin-inline: clamp(3px, 0.8vw, 5px);
  }
}

@media (max-width: 360px) {
  .category-strip--mobile .category-item {
    font-size: clamp(0.48rem, 2.3vw, 0.52rem);
  }

  .category-strip--mobile .category-item:not(:last-child)::after {
    margin-inline: clamp(2px, 0.7vw, 3px);
  }
}

@media (max-width: 330px) {
  .category-strip--mobile .category-title {
    font-size: clamp(0.54rem, 2.95vw, 0.62rem);
  }

  .category-strip--mobile .category-item {
    font-size: clamp(0.44rem, 2.3vw, 0.48rem);
    letter-spacing: 0.015em;
  }

  .category-strip--mobile .category-item:not(:last-child)::after {
    margin-inline: clamp(1.5px, 0.6vw, 2px);
  }
}

@media (max-width: 760px) {
  .hero-page {
    overflow: visible;
  }

  .shops-hero {
    min-height: auto;
    padding: 12px;
    gap: 14px;
  }

  .hero-grid {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(470px, 68svh) minmax(220px, 30svh);
  }

  .shop-card--primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .shop-card--secondary {
    grid-row: 2;
  }

  .shop-card--secondary .shop-topline {
    top: 17px;
    left: 17px;
    right: 17px;
  }

  .shop-card--secondary .shop-copy {
    left: 18px;
    right: 18px;
    bottom: 19px;
  }

  .shop-card--secondary .shop-name {
    font-size: clamp(1.65rem, 7.5vw, 2.8rem);
  }

  .console-modal-backdrop {
    place-items: end center;
    padding: 10px;
  }

  .console-modal-backdrop::before {
    background-position: 62% center;
    background-size: cover;
    filter: blur(9px) saturate(0.92) brightness(0.82);
  }

  .console-modal-backdrop[data-brand="nintendo"]::before,
  .console-modal-backdrop[data-brand="playstation"]::before {
    inset: -5%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(18px) saturate(0.82) brightness(0.42);
    transform: scale(1.08);
  }

  .console-modal-backdrop[data-brand="nintendo"]::after,
  .console-modal-backdrop[data-brand="playstation"]::after {
    opacity: 1;
    filter: blur(11px) saturate(0.88) brightness(0.78);
    transform: scale(1.015);
    background-image:
      linear-gradient(
        180deg,
        rgba(3, 5, 9, 0.16) 0%,
        rgba(3, 5, 9, 0.28) 31%,
        rgba(3, 5, 9, 0.92) 68%,
        #030509 100%
      ),
      var(--backdrop-image);
    background-position: center, calc(50% - 144px) -36px;
    background-size: 100% 100%, 1200px auto;
    background-repeat: no-repeat;
  }

  .console-modal {
    width: 100%;
    max-height: calc(100svh - 20px);
    overflow-y: auto;
    padding: 24px 18px 18px;
    border-radius: 24px;
  }

  .console-modal-heading {
    margin-bottom: 22px;
  }

  .console-modal h2 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .console-option {
    min-height: 100px;
    padding: 15px;
  }
}

@media (min-width: 481px) and (max-width: 760px) {
  .console-modal-backdrop[data-brand="nintendo"]::after {
    filter: blur(8px) saturate(0.88) brightness(0.78);
    background-size: 100% 100%, 1320px auto;
  }
}

@media (max-width: 480px) {
  .console-modal-backdrop[data-brand="nintendo"] {
    --backdrop-image: url("../hero/nintendo-shop-v3-1024.webp");
  }

  .console-modal-backdrop[data-brand="playstation"] {
    --backdrop-image: url("../hero/playstation-shop-1024.webp");
  }

  .console-modal-backdrop[data-brand="nintendo"]::after,
  .console-modal-backdrop[data-brand="playstation"]::after {
    background-position: center, calc(50% - 100.8px) -36px;
    background-size: 100% 100%, 840px auto;
  }

  .console-modal-backdrop[data-brand="nintendo"]::after {
    background-position: center, calc(50% - 111px) calc(50% - 150px);
    background-size: 100% 100%, 924px auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(480px, 72svh) repeat(2, minmax(190px, 25svh));
  }

  .shop-card--secondary:nth-child(2) {
    grid-row: 2;
  }

  .shop-card--secondary:nth-child(3) {
    grid-row: 3;
  }

  .shop-card--primary .shop-name {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .shop-description {
    width: 96%;
    margin-top: 18px;
    font-size: 0.88rem;
  }

  .shop-action {
    margin-top: 22px;
  }

  .console-options {
    grid-template-columns: 1fr;
  }
}

@supports (background-image: image-set(url("../hero/nintendo-shop-v3.avif") type("image/avif"))) {
  .console-modal-backdrop[data-brand="nintendo"] {
    --backdrop-image: image-set(
      url("../hero/nintendo-shop-v3.avif") type("image/avif"),
      url("../hero/nintendo-shop-v3.webp") type("image/webp")
    );
  }

  .console-modal-backdrop[data-brand="playstation"] {
    --backdrop-image: image-set(
      url("../hero/playstation-shop.avif") type("image/avif"),
      url("../hero/playstation-shop.webp") type("image/webp")
    );
  }

  @media (max-width: 480px) {
    .console-modal-backdrop[data-brand="nintendo"] {
      --backdrop-image: image-set(
        url("../hero/nintendo-shop-v3-1024.avif") type("image/avif"),
        url("../hero/nintendo-shop-v3-1024.webp") type("image/webp")
      );
    }

    .console-modal-backdrop[data-brand="playstation"] {
      --backdrop-image: image-set(
        url("../hero/playstation-shop-1024.avif") type("image/avif"),
        url("../hero/playstation-shop-1024.webp") type("image/webp")
      );
    }
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.switch-library-shell {
  min-height: 100svh;
  padding: clamp(10px, 1.5vw, 24px);
  background: #fff;
}

.switch-library {
  --library-accent: #2f82e7;
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 48px);
  overflow: hidden;
  padding: clamp(14px, 2.4vw, 38px);
  border-radius: clamp(20px, 2vw, 32px);
  background:
    radial-gradient(circle at 85% -10%, color-mix(in srgb, var(--library-accent) 9%, transparent), transparent 32%),
    linear-gradient(180deg, #f8f7f4 0%, #f2f0ec 55%, #eceae5 100%);
  color: #17181c;
  font-family: var(--font-geist-sans), Arial, sans-serif;
}

.library-ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(20, 22, 28, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 22, 28, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.library-topbar,
.library-intro,
.library-controls,
.library-content {
  width: min(100%, 1580px);
  margin-inline: auto;
}

.library-topbar {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 22, 28, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 30px rgba(28, 24, 20, 0.045);
}

.library-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(20, 22, 28, 0.68);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.69rem;
  font-weight: 620;
  line-height: 1;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.library-back span:first-child {
  color: var(--library-accent);
  font-size: 1rem;
}

.library-back:hover {
  color: #111318;
  transform: translateX(-2px);
}

.library-platform {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 13px;
  border: 1px solid rgba(20, 22, 28, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.library-platform-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--library-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--library-accent) 72%, transparent);
}

.library-platform img {
  display: block;
  width: auto !important;
  height: 22px !important;
}

.library-platform-text {
  color: #16181d;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.035em;
}

.library-curation {
  justify-self: end;
  color: rgba(20, 22, 28, 0.44);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
  font-weight: 610;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.library-intro {
  position: relative;
  overflow: hidden;
  min-height: clamp(290px, 29vw, 440px);
  margin-top: clamp(14px, 1.4vw, 22px);
  padding: clamp(26px, 4.8vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
  border: 1px solid rgba(20, 22, 28, 0.09);
  border-radius: clamp(24px, 2.2vw, 34px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 241, 239, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 70px rgba(33, 27, 23, 0.07);
}

.library-intro::before {
  content: "";
  position: absolute;
  width: clamp(280px, 36vw, 560px);
  aspect-ratio: 1;
  top: 50%;
  right: clamp(-210px, -10vw, -90px);
  border: 1px solid rgba(20, 22, 28, 0.075);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 38px rgba(20, 22, 28, 0.016),
    0 0 0 86px rgba(20, 22, 28, 0.011);
}

.library-intro::after {
  content: "NX";
  position: absolute;
  right: clamp(28px, 8vw, 130px);
  top: 50%;
  transform: translateY(-56%);
  color: rgba(20, 22, 28, 0.026);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: clamp(8rem, 22vw, 21rem);
  font-weight: 760;
  line-height: 0.75;
  letter-spacing: -0.09em;
}

.switch-library[data-platform="wiiu"] .library-intro::after {
  content: "WU";
}

.switch-library[data-platform="psvita"] .library-intro::after {
  content: "VITA";
  font-size: clamp(5rem, 14vw, 11rem);
}

.switch-library[data-platform="ps4"] .library-intro::after {
  content: "PS4";
  font-size: clamp(6rem, 17vw, 15rem);
}

.switch-library[data-platform="ps5"] .library-intro::after {
  content: "PS5";
  font-size: clamp(6rem, 17vw, 15rem);
}

.switch-library[data-platform="xbox360"] .library-intro::after {
  content: "360";
  font-size: clamp(6rem, 17vw, 15rem);
}

.library-intro-copy,
.library-stats {
  position: relative;
  z-index: 1;
}

.library-eyebrow,
.library-results-kicker {
  display: block;
  color: var(--library-accent);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.library-intro h1 {
  max-width: 920px;
  margin: 18px 0 20px;
  color: #121318;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: clamp(2.8rem, 6.2vw, 6.7rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.068em;
  text-wrap: balance;
}

.library-intro p {
  max-width: 650px;
  margin: 0;
  color: rgba(20, 22, 28, 0.62);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: clamp(0.92rem, 1.2vw, 1.14rem);
  font-weight: 480;
  line-height: 1.5;
}

.library-stats {
  min-width: 250px;
  margin: 0;
  display: grid;
  gap: 1px;
  border: 1px solid rgba(20, 22, 28, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(20, 22, 28, 0.08);
  backdrop-filter: blur(12px);
}

.library-stats div {
  min-height: 70px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.library-stats dt {
  color: rgba(20, 22, 28, 0.48);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.58rem;
  font-weight: 610;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.library-stats dd {
  margin: 0;
  color: #14161b;
  font-family: var(--font-geist-mono), monospace;
  font-size: 1rem;
  font-weight: 660;
  line-height: 1;
}

.library-controls {
  margin-top: clamp(14px, 1.4vw, 22px);
}

.library-search {
  min-height: 58px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(20, 22, 28, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px rgba(31, 27, 23, 0.035);
}

.library-search {
  min-width: 0;
  gap: 12px;
  padding: 0 16px;
}

.library-search-icon {
  color: var(--library-accent);
  font-size: 1.45rem;
  line-height: 1;
  transform: rotate(-15deg);
}

.library-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #15171b;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 520;
  line-height: 1;
}

.library-search input::placeholder {
  color: rgba(20, 22, 28, 0.4);
}

.library-search:focus-within {
  border-color: color-mix(in srgb, var(--library-accent) 50%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--library-accent) 8%, transparent);
}

.library-search button {
  border: 0;
  padding: 6px;
  background: transparent;
  color: rgba(20, 22, 28, 0.56);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.58rem;
  font-weight: 620;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.library-content {
  margin-top: clamp(18px, 2.2vw, 34px);
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3vw, 48px);
}

.library-sidebar {
  position: sticky;
  top: 18px;
}

.library-sidebar-heading,
.library-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.library-sidebar-heading {
  padding: 0 5px 13px;
  border-bottom: 1px solid rgba(20, 22, 28, 0.09);
  color: rgba(20, 22, 28, 0.46);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.56rem;
  font-weight: 610;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.library-category-select {
  display: none;
}

.library-categories {
  display: grid;
  gap: 5px;
  padding-top: 9px;
}

.library-categories button {
  min-height: 44px;
  width: 100%;
  padding: 0 10px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: rgba(20, 22, 28, 0.62);
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.library-categories button span:first-child {
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 560;
  line-height: 1;
}

.library-categories button span:last-child {
  color: rgba(20, 22, 28, 0.34);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.55rem;
  font-weight: 610;
  line-height: 1;
}

.library-categories button:hover {
  color: #111318;
  background: rgba(20, 22, 28, 0.035);
}

.library-categories button.is-active {
  border-color: color-mix(in srgb, var(--library-accent) 22%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--library-accent) 13%, transparent), color-mix(in srgb, var(--library-accent) 2.5%, transparent));
  color: #111318;
}

.library-categories button.is-active::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--library-accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--library-accent) 72%, transparent);
}

.library-categories button.is-active span:first-child {
  margin-right: auto;
}

.library-results {
  min-width: 0;
}

.library-results-heading {
  min-height: 58px;
  margin-bottom: 14px;
}

.library-results-heading h2 {
  margin: 7px 0 0;
  color: #121318;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.045em;
}

.library-results-heading > span {
  color: rgba(20, 22, 28, 0.42);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.6rem;
  font-weight: 610;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.app-grid > .library-empty {
  grid-column: 1 / -1;
}

.app-card {
  --app-accent: var(--library-accent);
  --app-accent-soft: #4d171b;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 22, 28, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 42px rgba(35, 30, 25, 0.075);
  animation: library-card-enter 420ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--app-delay) both;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--app-accent) 38%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 24px 60px rgba(35, 30, 25, 0.13);
}

.app-card-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9.4;
  border-bottom: 1px solid rgba(20, 22, 28, 0.09);
  background:
    radial-gradient(circle at 72% 22%, color-mix(in srgb, var(--app-accent) 42%, transparent), transparent 29%),
    linear-gradient(135deg, color-mix(in srgb, var(--app-accent-soft) 72%, #090b10), #090b10 68%);
}

.app-card-visual--art {
  background: #11151b;
}

.app-card-visual--art::before,
.app-card-visual--art::after {
  display: none;
}

.app-card-background {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

.app-card-visual::before,
.app-card-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.app-card-visual::before {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 46%, rgba(255, 255, 255, 0.06) 47%, transparent 48%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 32px;
}

.app-card-visual::after {
  width: 52%;
  aspect-ratio: 1;
  right: -10%;
  bottom: -38%;
  border: 1px solid color-mix(in srgb, var(--app-accent) 45%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 36px color-mix(in srgb, var(--app-accent) 16%, transparent);
}

.app-card-orbit {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  right: 16%;
  top: 20%;
  border: 1px solid color-mix(in srgb, var(--app-accent) 36%, transparent);
  border-radius: 40% 60% 54% 46%;
  transform: rotate(28deg);
}

.app-card-mark {
  position: absolute;
  right: 18px;
  bottom: 17px;
  color: #fff;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: clamp(2.3rem, 4.5vw, 4.1rem);
  font-weight: 720;
  line-height: 0.84;
  letter-spacing: -0.075em;
  opacity: 0.16;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.44);
}

.app-card-icon {
  position: absolute;
  z-index: 2;
  left: 17px;
  bottom: 15px;
  width: clamp(62px, 6vw, 82px);
  height: clamp(62px, 6vw, 82px);
  object-fit: contain;
  border-radius: 17px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
}

.app-card-platform {
  position: absolute;
  top: 13px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.48rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-card-platform {
  right: 13px;
  color: rgba(255, 255, 255, 0.38);
}

.app-card-body {
  padding: 17px 17px 16px;
}

.app-card-meta,
.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-card-meta {
  color: rgba(20, 22, 28, 0.46);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.52rem;
  font-weight: 620;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app-card-meta span:first-child {
  color: color-mix(in srgb, var(--app-accent) 68%, #17181c);
}

.app-card h3 {
  margin: 12px 0 9px !important;
  color: #121318 !important;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem) !important;
  font-weight: 630 !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
}

.app-card p {
  min-height: 3.9em;
  margin: 0;
  color: rgba(20, 22, 28, 0.62);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 470;
  line-height: 1.48;
}

.app-card-footer {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(20, 22, 28, 0.08);
  color: rgba(20, 22, 28, 0.48);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 550;
  line-height: 1;
}

.app-card-arrow {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--app-accent);
  color: #05070b;
  font-size: 0.82rem;
}

.library-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 40px;
  border: 1px dashed rgba(20, 22, 28, 0.16);
  border-radius: 22px;
  text-align: center;
}

.library-empty > span {
  color: var(--library-accent);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.16em;
}

.library-empty h3 {
  margin: 14px 0 8px;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.04em;
}

.library-empty p {
  margin: 0;
  color: rgba(20, 22, 28, 0.56);
  font-size: 0.85rem;
}

.library-empty button {
  margin-top: 20px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--library-accent) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--library-accent) 10%, transparent);
  color: #15171b;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.64rem;
  font-weight: 620;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.library-load-more {
  padding-top: clamp(22px, 3vw, 38px);
  display: flex;
  justify-content: center;
}

.library-load-more button {
  min-height: 52px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--library-accent) 28%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #15171b;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(31, 27, 23, 0.06);
  cursor: pointer;
}

.library-load-more button:hover,
.library-load-more button:focus-visible {
  outline: 0;
  border-color: color-mix(in srgb, var(--library-accent) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--library-accent) 8%, transparent);
}

.library-load-more button span {
  color: rgba(20, 22, 28, 0.44);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.56rem;
  font-weight: 620;
}

.app-card--loading {
  min-height: 390px;
  border-color: rgba(20, 22, 28, 0.07);
  background:
    linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.82) 46%, transparent 58%),
    linear-gradient(#e8e7e3 52%, #f8f8f6 52%);
  background-size: 220% 100%, 100% 100%;
  animation: library-card-loading 1.15s ease-in-out infinite;
}

@keyframes library-card-loading {
  to {
    background-position: -150% 0, 0 0;
  }
}

@keyframes library-card-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  .library-intro {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .library-stats {
    min-width: 0;
    grid-template-columns: repeat(3, 1fr);
  }

  .library-stats div {
    min-height: 62px;
  }

  .library-content {
    grid-template-columns: 1fr;
  }

  .library-sidebar {
    position: static;
    min-width: 0;
  }

  .library-sidebar-heading {
    display: none;
  }

  .library-categories {
    display: flex;
    overflow-x: auto;
    padding: 0 0 7px;
    scrollbar-width: none;
  }

  .library-categories::-webkit-scrollbar {
    display: none;
  }

  .library-categories button {
    min-width: max-content;
    width: auto;
    padding-inline: 13px;
  }
}

@media (max-width: 909px) {
  .library-content {
    gap: 18px;
  }

  .library-categories {
    display: none;
  }

  .library-category-select {
    position: relative;
    z-index: 10;
    min-height: 58px;
    display: block;
  }

  .library-category-select-control {
    position: relative;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 0 44px 0 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    border: 1px solid rgba(20, 22, 28, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 8px 24px rgba(31, 27, 23, 0.035);
    color: #15171b;
    text-align: left;
    cursor: pointer;
  }

  .library-category-select-icon {
    width: 14px;
    height: 14px;
    display: grid;
    grid-template-columns: repeat(2, 5px);
    grid-template-rows: repeat(2, 5px);
    place-content: center;
    gap: 2px;
    color: var(--library-accent);
  }

  .library-category-select-icon span {
    width: 5px;
    height: 5px;
    border: 1.5px solid currentColor;
    border-radius: 1.5px;
  }

  .library-category-select-control strong {
    min-width: 0;
    overflow: hidden;
    color: #15171b;
    font-family: var(--font-geist-sans), Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 620;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .library-category-select-control:focus-visible {
    outline: 0;
    border-color: color-mix(in srgb, var(--library-accent) 62%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--library-accent) 8%, transparent);
  }

  .library-category-select-arrow {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--library-accent);
    font-size: 0.9rem;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-56%);
    transition: transform 180ms ease;
  }

  .library-category-select-control[aria-expanded="true"] .library-category-select-arrow {
    transform: translateY(-44%) rotate(180deg);
  }

  .library-category-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: min(360px, 55vh);
    overflow-y: auto;
    padding: 7px;
    display: grid;
    gap: 3px;
    border: 1px solid rgba(20, 22, 28, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 60px rgba(31, 27, 23, 0.16);
    animation: library-category-menu-in 160ms ease-out both;
  }

  .library-category-menu button {
    min-height: 44px;
    width: 100%;
    padding: 0 12px 0 10px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: rgba(20, 22, 28, 0.68);
    font-family: var(--font-geist-sans), Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 570;
    line-height: 1;
    text-align: left;
    cursor: pointer;
  }

  .library-category-menu button:hover,
  .library-category-menu button:focus-visible {
    outline: 0;
    background: rgba(20, 22, 28, 0.04);
    color: #15171b;
  }

  .library-category-menu button.is-active {
    border-color: color-mix(in srgb, var(--library-accent) 20%, transparent);
    background: color-mix(in srgb, var(--library-accent) 9%, white);
    color: #15171b;
  }

  .library-category-menu-mark {
    color: var(--library-accent);
    font-size: 0.72rem;
    text-align: center;
  }

  .library-category-menu button > span:last-child {
    color: rgba(20, 22, 28, 0.42);
    font-family: var(--font-geist-mono), monospace;
    font-size: 0.58rem;
    font-weight: 650;
  }

  @keyframes library-category-menu-in {
    from {
      opacity: 0;
      transform: translateY(-5px) scale(0.99);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (max-width: 720px) {
  .switch-library-shell {
    padding: 8px;
  }

  .switch-library {
    min-height: calc(100svh - 16px);
    padding: 12px;
    border-radius: 20px;
  }

  .library-topbar {
    min-height: 58px;
    padding-inline: 12px;
  }

  .library-curation {
    display: none;
  }

  .library-topbar {
    grid-template-columns: 1fr auto;
  }

  .library-platform {
    justify-self: end;
  }

  .library-intro {
    min-height: 340px;
    padding: 24px 20px;
    align-content: end;
    border-radius: 24px;
  }

  .library-intro h1 {
    margin-block: 15px 17px;
    font-size: clamp(2.55rem, 13vw, 4.6rem);
  }

  .library-intro::after {
    top: 33%;
    right: 22px;
  }

  .library-stats div {
    min-width: 0;
    min-height: 58px;
    padding: 11px 10px;
    display: grid;
    justify-items: start;
    gap: 7px;
  }

  .library-stats dt {
    font-size: 0.48rem;
  }

  .library-stats dd {
    font-size: 0.76rem;
  }

  .library-content {
    gap: 22px;
    padding-bottom: 40px;
  }

  .library-results-heading {
    min-height: 50px;
  }
}

@media (max-width: 520px) {
  .library-back span:last-child {
    display: none;
  }

  .library-platform img {
    height: 19px !important;
  }

  .library-intro {
    min-height: 380px;
  }

  .library-intro h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .library-intro p {
    font-size: 0.86rem;
  }

  .library-eyebrow {
    font-size: 0.52rem;
  }

  .library-stats dt {
    letter-spacing: 0.06em;
  }

  .library-search {
    padding-inline: 13px;
  }

  .library-category-menu {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 6px;
  }

  .library-category-menu button {
    min-height: 54px;
    padding: 8px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    font-size: 0.74rem;
    line-height: 1.15;
  }

  .library-category-menu-mark {
    display: none;
  }

  .library-category-menu button > span:nth-child(2) {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .library-results-heading > span {
    max-width: 78px;
    text-align: right;
    line-height: 1.25;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card-mark {
    font-size: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-card,
  .shop-art img,
  .shop-arrow,
  .shop-card::after {
    animation: none;
    transition: none;
  }

  .console-modal-backdrop,
  .console-modal {
    animation: none;
  }

  .app-card {
    animation: none;
    transition: none;
  }
}

/* Direction claire 2026 — transition visuelle avec le header blanc du blog. */
.hcs-hero-root {
  --ink: #111318;
  --muted: rgba(17, 19, 24, 0.62);
  color: var(--ink);
  background-color: #f4f6f7;
  background-image: image-set(
    url("../hero/hero-stage-light-bg-v4.avif") type("image/avif"),
    url("../hero/hero-stage-light-bg-v4.webp") type("image/webp"),
    url("../hero/hero-stage-light-bg-v4.png") type("image/png")
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hcs-hero-root .hero-page {
  color: var(--ink);
}

.hcs-hero-root .shops-hero {
  gap: 16px;
  padding-bottom: clamp(12px, 1.6vw, 24px);
}

.hcs-hero-root .shop-card {
  border-color: rgba(24, 30, 34, 0.13);
  background: #f7f9f8;
  color: #111318;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 52px rgba(28, 35, 38, 0.12);
}

.hcs-hero-root .shop-card[data-brand="nintendo"],
.hcs-hero-root .shop-card[data-brand="xbox"],
.hcs-hero-root .shop-card[data-brand="playstation"] {
  background: #f7f9f8;
}

.hcs-hero-root .shop-card::before {
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}

.hcs-hero-root .shop-card::after {
  opacity: 0.18;
  filter: blur(105px);
}

.hcs-hero-root .shop-card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 25px 62px rgba(28, 35, 38, 0.16),
    0 0 28px rgba(var(--accent-rgb), 0.07);
}

.hcs-hero-root .shop-art img,
.hcs-hero-root .shop-card--primary[data-brand="nintendo"] .shop-art img {
  object-position: center;
  transform: scale(1.01);
  filter: saturate(1.02) contrast(1.015);
}

.hcs-hero-root .shop-card:hover .shop-art img,
.hcs-hero-root .shop-card--primary[data-brand="nintendo"]:hover .shop-art img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.02);
}

.hcs-hero-root .shop-shade {
  background:
    linear-gradient(90deg, rgba(248, 250, 248, 0.98) 0%, rgba(248, 250, 248, 0.91) 33%, rgba(248, 250, 248, 0.34) 58%, transparent 76%),
    linear-gradient(0deg, rgba(248, 250, 248, 0.94) 0%, rgba(248, 250, 248, 0.58) 24%, transparent 53%);
}

.hcs-hero-root .shop-card--secondary .shop-shade {
  background:
    linear-gradient(90deg, rgba(248, 250, 248, 0.99) 0%, rgba(248, 250, 248, 0.91) 32%, rgba(248, 250, 248, 0.25) 56%, transparent 73%),
    linear-gradient(0deg, rgba(248, 250, 248, 0.96) 0%, rgba(248, 250, 248, 0.56) 29%, transparent 58%);
}

/* L'illustration Nintendo est déjà équilibrée pour accueillir le texte. */
.hcs-hero-root .shop-card[data-brand="nintendo"] .shop-shade {
  background: none !important;
}

.hcs-hero-root .shop-card[data-brand="nintendo"]::after {
  display: none !important;
}

/* Les illustrations Nintendo et Xbox intègrent déjà leur propre lumière. */
.hcs-hero-root .shop-card[data-brand="xbox"] .shop-shade {
  background: none !important;
}

.hcs-hero-root .shop-card[data-brand="xbox"]::after {
  display: none !important;
}

/* Le nouveau visuel PlayStation réserve déjà une zone nette pour le texte. */
@media (min-width: 981px) {
  .hcs-hero-root .shop-card[data-brand="playstation"] .shop-shade {
    background: none !important;
  }

  .hcs-hero-root .shop-card[data-brand="playstation"]::after {
    display: none !important;
  }
}

/* Laisse la console respirer en plaçant l'identification Xbox dans l'angle haut gauche. */
.hcs-hero-root .shop-card[data-brand="xbox"] .shop-copy {
  top: 86px;
  bottom: auto;
}

/* Xbox : position normale au-dessus de 1300 px. */
@media (min-width: 1301px) {
  .hcs-hero-root .shop-card[data-brand="xbox"] .shop-copy {
    top: calc(clamp(20px, 2.1vw, 34px) + 45px);
  }
}

/* Xbox : remontée de 5 px entre 1151 px et 1300 px. */
@media (min-width: 1151px) and (max-width: 1300px) {
  .hcs-hero-root .shop-card[data-brand="xbox"] .shop-copy {
    top: calc(clamp(20px, 2.1vw, 34px) + 40px);
  }
}

/* Xbox : remontée de 10 px et rapprochement d'Explorer entre 900 px et 1150 px. */
@media (min-width: 900px) and (max-width: 1150px) {
  .hcs-hero-root .shop-card[data-brand="xbox"] .shop-copy {
    top: calc(clamp(20px, 2.1vw, 34px) + 35px);
  }

  .hcs-hero-root .shop-card[data-brand="xbox"] .shop-action {
    margin-top: 7px;
  }
}

/* Xbox : réglage tablette entre 761 px et 899 px. */
@media (min-width: 761px) and (max-width: 899px) {
  .hcs-hero-root .shop-card[data-brand="xbox"] .shop-copy {
    top: calc(clamp(20px, 2.1vw, 34px) + 32px);
  }

  .hcs-hero-root .shop-card[data-brand="xbox"] .shop-action {
    margin-top: 7px;
  }
}

/* Nintendo : position du texte et rapprochement d'Explorer entre 900 px et 1920 px. */
@media (min-width: 900px) and (max-width: 1920px) {
  .hcs-hero-root .shop-card[data-brand="nintendo"] .shop-name,
  .hcs-hero-root .shop-card[data-brand="nintendo"] .shop-description {
    position: relative;
    top: 12px;
  }

  .hcs-hero-root .shop-card[data-brand="nintendo"] .shop-action {
    margin-top: 23px;
  }
}

@media (max-width: 760px) {
  .hcs-hero-root .shop-card[data-brand="xbox"] .shop-copy {
    top: 58px;
    bottom: auto;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .hcs-hero-root .shop-card[data-brand="nintendo"] {
    background: #e7e8eb;
  }

  .hcs-hero-root .shop-card[data-brand="nintendo"] .shop-art img,
  .hcs-hero-root .shop-card[data-brand="nintendo"]:hover .shop-art img {
    object-fit: contain;
    object-position: center top;
    transform: translateY(-15px) scale(1);
    filter: none;
  }

  /* Retire uniquement l'habillage du bouton sans modifier sa géométrie. */
  .hcs-hero-root .shop-card[data-brand="nintendo"] .shop-action {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  /* Le visuel PlayStation n'a pas besoin des voiles lumineux génériques. */
  .hcs-hero-root .shop-card[data-brand="playstation"] .shop-shade {
    background: none;
  }

  .hcs-hero-root .shop-card[data-brand="playstation"]::after {
    display: none;
    opacity: 0;
  }

  .hcs-hero-root .shop-card[data-brand="playstation"] .shop-art img,
  .hcs-hero-root .shop-card[data-brand="playstation"]:hover .shop-art img {
    filter: none;
  }
}

@media (min-width: 981px) {
  .hcs-hero-root .shop-card--primary::after {
    display: none !important;
  }

  .hcs-hero-root .shop-card--primary .shop-art img {
    filter: none !important;
    transform: translateY(-17px) scale(1.055) !important;
  }

  .hcs-hero-root .shop-card--primary:hover .shop-art img {
    filter: none !important;
    transform: translateY(-17px) scale(1.055) !important;
  }

  .hcs-hero-root .shop-card--primary .shop-shade {
    background: none !important;
  }

  .hcs-hero-root .shop-card--primary .shop-topline {
    left: 34px;
    right: 34px;
  }

  .hcs-hero-root .shop-card--primary .shop-copy {
    left: 34px;
    right: 34px;
    bottom: 42px;
  }

  .hcs-hero-root .shop-card--primary .shop-name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(3.5rem, 5.5vw, 6.65rem);
    font-weight: 590;
    line-height: 0.88;
    letter-spacing: -0.075em;
  }

  .hcs-hero-root .shop-card--primary .shop-description {
    margin-top: 0;
    color: rgba(17, 19, 24, 0.84);
    font-family: Arial, Helvetica, sans-serif;
  }

  .hcs-hero-root .shop-card--primary .shop-action {
    margin-top: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
  }

  .hcs-hero-root .shop-card--primary .shop-arrow {
    width: 32px;
    height: 32px;
  }
}

.hcs-hero-root .shop-index {
  color: rgba(17, 19, 24, 0.62);
}

.hcs-hero-root .shop-name {
  color: #111318;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hcs-hero-root .shop-description {
  color: rgba(17, 19, 24, 0.62);
}

.hcs-hero-root .shop-action {
  border-color: rgba(17, 19, 24, 0.16);
  background: rgba(255, 255, 255, 0.68);
  color: rgba(17, 19, 24, 0.9);
  box-shadow: 0 8px 24px rgba(28, 35, 38, 0.06);
}

.hcs-hero-root .shop-card--secondary .shop-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(17, 19, 24, 0.72);
  box-shadow: none;
}

.hcs-hero-root .category-strip {
  border-color: rgba(24, 30, 34, 0.11);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 28px rgba(28, 35, 38, 0.055);
}

@media (max-width: 980px) {
  .hcs-hero-root .category-strip--mobile {
    border-color: rgba(24, 30, 34, 0.11);
    background: rgba(255, 255, 255, 0.8);
  }

  .hcs-hero-root .category-strip--mobile .category-title,
  .hcs-hero-root .category-strip--mobile .category-kicker {
    color: rgba(17, 19, 24, 0.88);
  }

  .hcs-hero-root .category-strip--mobile .category-item {
    color: rgba(17, 19, 24, 0.62);
  }
}

/* ==========================================================
   BIBLIOTHÈQUE — DESKTOP CONSOLIDÉ
   1025 px et plus
   ========================================================== */

@media (min-width: 1025px) {
  .hcs-hero-root .category-strip--desktop {
    --library-counter-width: clamp(326px, 26vw, 430px);
    --library-message-width: clamp(205px, calc(40vw - 300px), 470px);
    --library-category-width: 118px;
    --library-categories-width: 708px;

    box-sizing: border-box !important;
    min-height: 148px !important;
    display: grid !important;
    grid-template-columns:
      calc(var(--library-counter-width) + var(--library-message-width))
      minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    gap: 0 !important;
    align-items: stretch !important;
    padding: 16px 18px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  /* Trait bleu. */

  .hcs-hero-root .category-strip--desktop::before {
    display: block !important;
    top: 42px !important;
    bottom: 30px !important;
    width: 4px !important;
    height: auto !important;
  }

  /* Premier bloc et message central. */

  .hcs-hero-root .category-strip--desktop .library-summary {
    position: relative !important;
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .hcs-hero-root .category-strip--desktop .library-eyebrow,
  .hcs-hero-root .category-strip--desktop .library-total-row {
    width: var(--library-counter-width) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding-left: clamp(14px, 1.3vw, 22px) !important;
    padding-right: clamp(12px, 1.5vw, 26px) !important;
  }

  .hcs-hero-root .category-strip--desktop .library-eyebrow {
    display: flex !important;
    align-items: center !important;
    gap: clamp(10px, 1vw, 18px) !important;
  }

  .hcs-hero-root .category-strip--desktop .library-index {
    color: rgba(17, 19, 24, 0.72) !important;
    font-family: "Courier New", monospace !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
  }

  .hcs-hero-root .category-strip--desktop .category-kicker {
    color: #2f82e7 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  .hcs-hero-root .category-strip--desktop .library-total-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: clamp(10px, 1.4vw, 22px) !important;
  }

  .hcs-hero-root .category-strip--desktop .category-total--large {
    flex: 0 0 auto !important;
    color: #111318 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(52px, 4.25vw, 68px) !important;
    font-weight: 730 !important;
    line-height: 0.82 !important;
    letter-spacing: 0.025em !important;
    white-space: nowrap !important;
  }

  .hcs-hero-root .category-strip--desktop .library-total-copy {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }

  .hcs-hero-root .category-strip--desktop .library-total-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    color: rgba(17, 19, 24, 0.72) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(11px, 1vw, 16px) !important;
    font-weight: 500 !important;
    line-height: 1.04 !important;
    letter-spacing: 0.045em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  .hcs-hero-root .category-strip--desktop .library-total-label strong {
    color: #111318 !important;
    font-weight: 760 !important;
  }

  .hcs-hero-root .category-strip--desktop .library-total-label strong,
  .hcs-hero-root .category-strip--desktop .library-total-label span {
    text-transform: uppercase !important;
  }

  .hcs-hero-root .category-strip--desktop .category-message {
    position: absolute !important;
    z-index: 1 !important;
    left: var(--library-counter-width) !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
    padding-inline: clamp(14px, 2.5vw, 46px) !important;
    border-left: 1px solid rgba(25, 28, 34, 0.16) !important;
    border-right: 0 !important;
  }

  .hcs-hero-root .category-strip--desktop .category-title {
    color: #111318 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(14px, 1.35vw, 22px) !important;
    font-weight: 740 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    text-transform: none !important;
    white-space: nowrap !important;
  }

  .hcs-hero-root .category-strip--desktop .category-subtitle {
    color: rgba(17, 19, 24, 0.64) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(12px, 1.05vw, 17px) !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  /* Groupe des six catégories. */

  .hcs-hero-root .category-strip--desktop .category-list {
    position: relative !important;
    grid-column: 2 !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns:
      repeat(6, minmax(0, var(--library-category-width))) !important;
    grid-template-rows: 1fr !important;
    align-items: stretch !important;
    justify-content: end !important;
    gap: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  /* Divider placé au début réel du groupe de 708 px. */

  .hcs-hero-root .category-strip--desktop .category-list::before {
    content: "" !important;
    position: absolute !important;
    left: max(0px, calc(100% - var(--library-categories-width))) !important;
    top: 18px !important;
    bottom: 18px !important;
    width: 1px !important;
    background: rgba(25, 28, 34, 0.16) !important;
    pointer-events: none !important;
  }

  .hcs-hero-root .category-strip--desktop .category-item {
    position: relative !important;
    min-width: 0 !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 4px 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111318 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 720 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    white-space: nowrap !important;
  }

  .hcs-hero-root .category-strip--desktop .category-item-label {
    position: relative !important;
    top: 0 !important;
    display: block !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  .hcs-hero-root .category-strip--desktop .category-icon {
    position: relative !important;
    top: 0 !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    display: grid !important;
    place-items: center !important;
    color: #2f82e7 !important;
  }

  .hcs-hero-root .category-strip--desktop .category-icon svg {
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    filter: drop-shadow(0 4px 8px rgba(47, 130, 231, 0.14)) !important;
  }

  .hcs-hero-root
    .category-strip--desktop
    .category-item + .category-item::before {
    display: block !important;
    top: 18px !important;
    bottom: 18px !important;
  }

  .hcs-hero-root .category-strip--desktop .category-item::after {
    display: none !important;
  }
}


/* ==========================================================
   1025–1320 PX
   Premier bloc contracté, message masqué, catégories centrées
   ========================================================== */

@media (min-width: 1025px) and (max-width: 1320px) {
  .hcs-hero-root .category-strip--desktop {
    /* 343 px à 1320 px, 245 px à 1025 px. */
    --library-counter-width:
      clamp(245px, calc(33.22vw - 95.5px), 343px) !important;

    --library-message-width: 0px !important;

    grid-template-columns:
      var(--library-counter-width)
      minmax(0, 1fr) !important;

    min-height:
      clamp(120px, calc(2.712vw + 92.2px), 128px) !important;
    padding-top:
      clamp(8px, calc(0.678vw + 1.05px), 10px) !important;
    padding-bottom:
      clamp(8px, calc(0.678vw + 1.05px), 10px) !important;
  }

  .hcs-hero-root .category-strip--desktop::before {
    top: 28px !important;
    bottom: 20px !important;
  }

  /* Le premier bloc se réduit avec sa colonne. */

  .hcs-hero-root .category-strip--desktop .library-eyebrow,
  .hcs-hero-root .category-strip--desktop .library-total-row {
    width: var(--library-counter-width) !important;
    padding-left:
      clamp(10px, calc(2.441vw - 15.02px), 17.2px) !important;
    padding-right:
      clamp(10px, calc(3.322vw - 24.05px), 19.8px) !important;
  }

  .hcs-hero-root .category-strip--desktop .library-index {
    font-size:
      clamp(13px, calc(1.017vw + 2.58px), 16px) !important;
  }

  .hcs-hero-root .category-strip--desktop .category-kicker {
    font-size:
      clamp(11px, calc(0.678vw + 4.05px), 13px) !important;
  }

  .hcs-hero-root .category-strip--desktop .library-eyebrow {
    gap:
      clamp(9px, calc(1.424vw - 5.6px), 13.2px) !important;
  }

  .hcs-hero-root .category-strip--desktop .library-total-row {
    gap:
      clamp(10px, calc(2.881vw - 19.53px), 18.5px) !important;
  }

  .hcs-hero-root .category-strip--desktop .category-total--large {
    font-size:
      clamp(48px, calc(2.746vw + 19.85px), 56.1px) !important;
  }

  .hcs-hero-root .category-strip--desktop .library-total-label {
    font-size:
      clamp(10px, calc(1.085vw - 1.12px), 13.2px) !important;
  }

  /* Le message central disparaît sans conserver d'espace. */

  .hcs-hero-root .category-strip--desktop .category-message {
    display: none !important;
  }

  /* Les six catégories sont centrées dans toute la zone restante. */

  .hcs-hero-root .category-strip--desktop .category-list {
    grid-column: 2 !important;
    min-width: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: stretch !important;
  }

  .hcs-hero-root .category-strip--desktop .category-list::before {
    left: max(0px, calc(50% - 354px)) !important;
  }

  .hcs-hero-root .category-strip--desktop .category-item {
    align-items: center !important;
    justify-content: center !important;
  }

  .hcs-hero-root .category-strip--desktop .category-icon,
  .hcs-hero-root .category-strip--desktop .category-item-label {
    top: 0 !important;
  }
}


 (min-width: 768px) and (max-width: 1024px) {
  .hcs-hero-root .category-strip--desktop,
  .hcs-hero-root .category-strip--mobile {
    min-height: 336px;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(184px, 1fr);
    gap: 16px;
    align-items: stretch;
    margin: 0;
    padding: 24px 14px;
    border-radius: 22px;
    border-color: rgba(24, 30, 34, 0.11);
    background: rgba(255, 255, 255, 0.82);
  }

  .hcs-hero-root .category-strip--desktop::before,
  .hcs-hero-root .category-strip--mobile::before {
    display: none;
  }

  .category-strip--desktop .library-summary,
  .category-strip--mobile .library-summary {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
    border: 0;
    text-align: center;
  }

  .category-strip--desktop .library-eyebrow,
  .category-strip--mobile .library-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .category-strip--desktop .library-index,
  .category-strip--mobile .library-index {
    color: rgba(17, 19, 24, 0.72);
    font: 500 13px/1 "Courier New", monospace;
    letter-spacing: 0.08em;
  }

  .category-strip--desktop .category-kicker,
  .category-strip--mobile .category-kicker {
    color: #2f82e7;
    font: 700 11px/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .category-strip--desktop .library-total-row,
  .category-strip--mobile .library-total-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }

  .category-strip--desktop .category-total--large,
  .category-strip--mobile .category-total--large {
    color: #111318;
    font: 730 50px/0.88 Arial, Helvetica, sans-serif;
    letter-spacing: 0.025em;
    white-space: nowrap;
  }

  .category-strip--desktop .library-total-copy,
  .category-strip--mobile .library-total-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .category-strip--desktop .library-total-label,
  .category-strip--mobile .library-total-label {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
    color: rgba(17, 19, 24, 0.7);
    font: 500 12px/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.025em;
    text-transform: uppercase;
  }

  .category-strip--desktop .category-message,
  .category-strip--mobile .category-message {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
  }

  .category-strip--desktop .category-title,
  .category-strip--desktop .category-subtitle,
  .category-strip--mobile .category-title,
  .category-strip--mobile .category-subtitle {
    color: rgba(17, 19, 24, 0.68);
    font: 500 12px/1.1 Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
  }

  .category-strip--desktop .category-list,
  .category-strip--mobile .category-list {
    width: 100%;
    min-height: 184px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    padding: 0 12px;
    border: 1px solid rgba(25, 28, 34, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.34);
    overflow: hidden;
  }

  .category-strip--desktop .category-item,
  .category-strip--mobile .category-item {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111318;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 720;
    line-height: 1;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: uppercase;
    box-shadow: none;
  }

  .category-strip--desktop .category-icon,
  .category-strip--mobile .category-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #2f82e7;
  }

  .category-strip--desktop .category-icon svg,
  .category-strip--mobile .category-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .category-strip--desktop .category-item::before,
  .category-strip--mobile .category-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: rgba(25, 28, 34, 0.13);
  }

  .category-strip--desktop .category-item:nth-child(3n + 1)::before,
  .category-strip--mobile .category-item:nth-child(3n + 1)::before {
    display: none;
  }

  .category-strip--desktop .category-item::after,
  .category-strip--mobile .category-item::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 1px;
    margin: 0;
    background: rgba(25, 28, 34, 0.1);
    text-shadow: none;
  }

  .category-strip--desktop .category-item:nth-child(n + 4)::after,
  .category-strip--mobile .category-item:nth-child(n + 4)::after {
    display: none;
  }
}

@media (min-width: 981px) and (max-width: 1024px) {
  .hcs-hero-root .category-strip--desktop {
    display: grid;
  }

  .hcs-hero-root .category-strip--mobile {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  .hcs-hero-root .category-strip--desktop {
    display: none;
  }

  .hcs-hero-root .category-strip--mobile {
    display: grid;
  }
}

@media (max-width: 767px) {
  .hcs-hero-root .category-strip--desktop {
    display: none;
  }

  .hcs-hero-root .category-strip--mobile {
    min-height: 344px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(210px, 1fr);
    gap: 14px;
    align-items: stretch;
    margin: 0;
    padding: 20px 10px 16px;
    border-radius: 20px;
    border-color: rgba(24, 30, 34, 0.11);
    background: rgba(255, 255, 255, 0.82);
  }

  .hcs-hero-root .category-strip--mobile::before {
    display: none;
  }

  .category-strip--mobile .library-summary {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    text-align: center;
  }

  .category-strip--mobile .library-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .category-strip--mobile .library-index {
    color: rgba(17, 19, 24, 0.72);
    font: 500 12px/1 "Courier New", monospace;
    letter-spacing: 0.08em;
  }

  .category-strip--mobile .category-kicker {
    color: #2f82e7;
    font: 700 10px/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .hcs-hero-root .category-strip--mobile .category-kicker {
    color: #2f82e7;
  }

  .category-strip--mobile .library-total-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .category-strip--mobile .category-total--large {
    color: #111318;
    font: 730 42px/0.88 Arial, Helvetica, sans-serif;
    letter-spacing: 0.025em;
    white-space: nowrap;
  }

  .category-strip--mobile .library-total-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .category-strip--mobile .library-total-label {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 3px;
    color: rgba(17, 19, 24, 0.7);
    font: 500 10px/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.015em;
    text-transform: uppercase;
  }

  .hcs-hero-root .category-strip--mobile .library-total-label strong,
  .hcs-hero-root .category-strip--mobile .library-total-label span {
    text-transform: uppercase;
  }

  .category-strip--mobile .category-message {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3px;
    padding: 0;
  }

  .category-strip--mobile .category-title,
  .category-strip--mobile .category-subtitle {
    color: rgba(17, 19, 24, 0.68);
    font: 500 10px/1.1 Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
  }

  .category-strip--mobile .category-list {
    width: 100%;
    min-height: 210px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    padding: 0 8px;
    border: 1px solid rgba(25, 28, 34, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.34);
    overflow: hidden;
  }

  .category-strip--mobile .category-item {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111318;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 720;
    line-height: 1;
    letter-spacing: 0.015em;
    text-align: center;
    text-transform: uppercase;
    box-shadow: none;
  }

  .hcs-hero-root .category-strip--mobile .category-item {
    color: #111318;
    font-weight: 720;
  }

  .hcs-hero-root .category-strip--mobile .category-item-label {
    color: #111318;
    font-size: inherit;
    font-weight: inherit;
    text-transform: uppercase;
  }

  .category-strip--mobile .category-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #2f82e7;
  }

  .category-strip--mobile .category-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .category-strip--mobile .category-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 1px;
    background: rgba(25, 28, 34, 0.13);
  }

  .category-strip--mobile .category-item:nth-child(odd)::before {
    display: none;
  }

  .category-strip--mobile .category-item::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 0;
    height: 1px;
    margin: 0;
    background: rgba(25, 28, 34, 0.1);
    text-shadow: none;
  }

  .category-strip--mobile .category-item:nth-child(n + 5)::after {
    display: none;
  }
}
