/* [91-store] Boutique et inventaire */
/* ══════════════════════════════════════════════════════════════════
   BOUTIQUE ET INVENTAIRE
   ══════════════════════════════════════════════════════════════════ */

.game-store-window {
  width: 860px;
  max-width: 98vw;
  height: 650px;
  max-height: 96vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='26'%3E%3Cg fill='none' stroke='%23b8913c' stroke-opacity='.28' stroke-width='1'%3E%3Cpath d='M0 13 19 4l19 9M0 22l19-9 19 9'/%3E%3Cpath d='M.5 0v26'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 38px 26px,
    #0a0a0b;
  border: 2px solid #937650;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, 0 12px 40px rgba(0, 0, 0, 0.95);
  border-radius: 3px;
  color: var(--text-cream);
  font-family: 'Josefin Sans', 'Gill Sans', 'Trebuchet MS', sans-serif;
  user-select: none;
  overflow: hidden;
  position: relative;
}

/* La boutique et l'inventaire s'ouvrent sous le bandeau des ressources (27 px + liseré) pour qu'il reste visible */
html:not(.mobile-layout) #shop-modal {
  top: 30px;
}
html:not(.mobile-layout) #shop-modal .game-store-window {
  height: 610px;
  max-height: 100%;
}

/* En-tête officiel STORE avec arche dorée */
.store-head-crown {
  position: relative;
  flex-shrink: 0;
  height: 44px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(180deg, #444444 0%, #242424 45%, #101010 80%, #080808 100%);
  border-bottom: 2px solid #4f402d;
}
.store-head-crown::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 5px;
  height: 34px;
  border-top: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}
.store-crown-trapezoid {
  position: relative;
  z-index: 1;
  min-width: 240px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 36px 2px;
  overflow: hidden;
}
.store-crown-trapezoid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, #efd8ba 0 25px, var(--gold-classic) 25px calc(100% - 25px), #efd8ba calc(100% - 25px));
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 24px 100%);
}
.store-crown-trapezoid::after {
  content: '';
  position: absolute;
  inset: 0 4px 2px;
  z-index: -1;
  background: linear-gradient(180deg, #363636 0%, #171717 55%, #080808 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 21px) 100%, 21px 100%);
}
.store-crown-title {
  color: #f2dec5;
  font-family: 'Limelight', serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px #000;
}

/* Onglets catégories Store (mode STORE) */
.store-top-tabs {
  display: flex;
  height: 30px;
  gap: 3px;
  padding: 0 42px;
  background: #0b0c0c;
  border-bottom: 1px solid #2a231b;
  flex-shrink: 0;
}
.store-top-tabs.hidden {
  display: none !important;
}
.store-tab-btn {
  flex: 1;
  background: linear-gradient(180deg, #222222 0%, #111111 100%);
  border: 1px solid #443b30;
  border-bottom: none;
  color: #cbc2b6;
  font-family: 'Limelight', serif;
  font-size: 10.5px;
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 2px 2px 0 0;
}
.store-tab-btn:hover {
  background: linear-gradient(180deg, #282b2e 0%, #131618 100%);
  color: #fff;
  border-color: #7e6b51;
}
.store-tab-btn.active {
  background: linear-gradient(180deg, #2a2f35 0%, #151719 100%);
  border: 2px solid #ceaa7a;
  border-bottom: none;
  color: #fff;
  text-shadow: 0 0 6px var(--gold-bright);
  box-shadow: inset 0 2px 5px rgba(235, 207, 170, 0.25);
}

/* Sous-titre officiel */
.store-subtext-bar {
  padding: 4px 42px 3px;
  font-size: 11.5px;
  color: #ffffff;
  font-family: 'Josefin Sans', sans-serif;
  text-shadow: 0 1px 2px #000;
  flex-shrink: 0;
}

/* Zone centrale : chevrons + viewport 8 cartes */
.store-carousel-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

/* Chevrons */
.store-nav-chevron {
  width: 26px;
  height: 72px;
  background: linear-gradient(180deg, #369273 0%, #20654e 50%, #11392c 100%);
  border: 2px solid var(--gold-classic);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: all 0.15s ease;
}
.store-nav-chevron:hover:not(.disabled) {
  background: linear-gradient(180deg, #be5043 0%, #94281c 50%, #55130c 100%);
  box-shadow: 0 0 12px rgba(182, 140, 85, 0.6), inset 0 1px 2px #fff;
  transform: scale(1.04);
}
.store-nav-chevron.disabled {
  opacity: 0.75;
  cursor: default;
}
.store-nav-chevron svg {
  width: 14px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}

/* Viewport et Grille 8 slots */
.store-grid-viewport {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 2px 4px;
  height: 100%;
  min-height: 0;
}
/* Les cartes rétrécissent avec la hauteur disponible (téléphone en paysage) au lieu de déborder sur l'en-tête et le pied */
.store-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 172px);
  grid-template-rows: repeat(2, 218px);
  gap: 12px 10px;
  justify-content: center;
  align-content: center;
  width: 100%;
  height: 100%;
  max-height: 480px;
}

/* Carte d'objet */
.store-item-card {
  width: 172px;
  height: 218px;
  box-sizing: border-box;
  background: #000000;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--gold-classic);
  border-radius: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
  transition: transform 0.12s ease, border-color 0.12s ease;
  overflow: hidden;
}
.store-item-card:not(.empty-slot):hover {
  transform: translateY(-2px);
  border-color: #e2b983;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.95), 0 0 8px rgba(182, 140, 85, 0.4);
}
.store-item-card.empty-slot {
  opacity: 0.35;
}

/* Barre de titre encadrée d'or */
.card-title-bar {
  height: 24px;
  flex: 0 0 24px;
  background: linear-gradient(180deg, #333333 0%, #1c1c1c 45%, var(--ink-black) 50%, #0c0c0c 100%);
  border-bottom: 1.5px solid var(--gold-classic);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px #000;
  box-sizing: border-box;
}

/* Cadre d'illustration central (fond argenté vigneté lumineux) */
.card-artwork-box {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: radial-gradient(ellipse at 50% 50%, #ffffff 0%, #efefef 30%, #d2d2d2 65%, #9c9c9c 100%);
  border-bottom: 1.5px solid var(--gold-classic);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Bannière Sale et compte à rebours */
.card-sale-group {
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
  pointer-events: none;
}
.card-sale-ribbon {
  width: 52px;
  height: 20px;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}
.sale-ribbon-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.card-sale-timer {
  color: #ffffff;
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 2px #000, 0 0 3px #000;
  letter-spacing: 0.2px;
}

/* Illustration au centre */
.artwork-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
}
.artwork-inner .art-svg {
  width: 100%;
  height: 100%;
  max-width: 140px;
  max-height: 108px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}
.artwork-inner .art-troop,
.artwork-inner .art-img,
.artwork-inner img {
  max-width: 135px;
  max-height: 105px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

/* Badge quantité en bas à droite de l'image (ex: x0, x4) */
.card-qty-badge {
  position: absolute;
  right: 5px;
  bottom: 5px;
  background: rgba(20, 20, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Josefin Sans', Arial, sans-serif;
  padding: 0 5px;
  height: 16px;
  line-height: 16px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  letter-spacing: 0.3px;
  pointer-events: none;
  text-shadow: 0 1px 2px #000;
  z-index: 4;
}

/* Bouton Contenu boîte mystère */
.card-btn-contents {
  position: absolute;
  left: 5px;
  bottom: 5px;
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
  border: 1px solid var(--gold-classic);
  color: #e6c293;
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Socle inférieur de la carte (plateau gris ardoise métallique) */
.card-bottom-bar {
  height: 48px;
  flex: 0 0 48px;
  background: linear-gradient(180deg, #444444 0%, #303030 50%, #202020 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.85);
  padding: 3px 6px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
}

/* Éléments mode STORE dans la carte */
.card-store-row-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 18px;
  box-sizing: border-box;
  padding: 0 2px;
}
.card-price-orig {
  display: flex;
  align-items: center;
  gap: 3px;
}
.price-strikethrough {
  position: relative;
  display: inline-block;
  color: #ffffff;
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 2px #000;
  line-height: 1;
}
.price-strikethrough::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  background: #e34e3e;
  transform: translateY(-50%) rotate(-4deg);
  box-shadow: 0 0 2px #df3320;
}
.card-price-val {
  color: #d39544;
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 2px #000, 0 0 4px rgba(211, 149, 68, 0.35);
  line-height: 1;
}

.card-store-row-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 22px;
  box-sizing: border-box;
  gap: 6px;
}
.card-qty-stepper {
  display: flex;
  align-items: center;
  height: 19px;
  border: 1.5px solid var(--gold-classic);
  border-radius: 2px;
  overflow: hidden;
  background: #000000;
  box-shadow: inset 0 1px 2px #000;
}
.card-qty-stepper .qty-num {
  width: 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d39544;
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 900;
  background: #000000;
  line-height: 1;
}
.card-qty-stepper .qty-dropdown-arrow {
  width: 16px;
  height: 100%;
  background: linear-gradient(180deg, #bb3b2d 0%, #7a1c11 100%);
  border: none;
  border-left: 1px solid var(--gold-classic);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.card-qty-stepper .qty-dropdown-arrow:hover {
  background: linear-gradient(180deg, #d54232 0%, #952215 100%);
}

.card-btn-buy {
  height: 20px;
  min-width: 68px;
  padding: 0 8px;
  background: linear-gradient(180deg, #3bce98 0%, #239269 50%, #126043 100%);
  border: 1.5px solid #5ee4b3;
  border-radius: 2px;
  color: #ffffff;
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
  box-sizing: border-box;
  line-height: 1;
}
.card-btn-buy:hover {
  background: linear-gradient(180deg, #50dda9 0%, #2baa7b 50%, #187855 100%);
  box-shadow: 0 2px 6px rgba(59, 206, 152, 0.6), inset 0 1px 1px #fff;
}

/* Bouton USE mode INVENTAIRE (compact, centré, liseré or, rouge) */
.card-btn-use {
  width: 96px;
  height: 23px;
  margin: auto;
  box-sizing: border-box;
  background: linear-gradient(180deg, #d94434 0%, #b73021 50%, #741b11 100%);
  border: 1.5px solid #d8a15a;
  border-radius: 2px;
  color: #ffffff;
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-weight: 900;
  font-size: 11.5px;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.12s ease, transform 0.08s ease;
  line-height: 1;
}
.card-btn-use:hover {
  filter: brightness(1.2);
  box-shadow: 0 2px 8px rgba(216, 161, 90, 0.7), inset 0 1px 1px #fff;
}
.card-btn-use:active {
  transform: translateY(1px);
}


/* Placeholder quand l'inventaire est vide */
.store-empty-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--gold-classic);
}
.store-empty-placeholder .empty-txt {
  font-size: 15px;
  margin-bottom: 16px;
  font-style: italic;
}
.store-btn-open-catalog-empty {
  background: linear-gradient(180deg, #eed6b7 0%, #bf9155 35%, #805b2a 70%, #432d11 100%);
  border: 2px solid #32220d;
  color: #fff;
  font-family: 'Limelight', serif;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 20px;
  border-radius: 2px;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
}

/* Pied de page */
.store-footer-bar {
  height: 46px;
  background: linear-gradient(180deg, #141617 0%, #080809 100%);
  border-top: 1.5px solid #443a2e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}
.store-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.store-gem-symbol {
  font-size: 15px;
}
.store-gem-count {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  font-family: monospace, sans-serif;
}
.store-gem-divider {
  width: 2px;
  height: 18px;
  background: #2c8467;
  margin: 0 4px;
}
.store-btn-add-gems {
  background: linear-gradient(180deg, #55d1a4 0%, #27966d 45%, #156a4b 85%, #0c432f 100%);
  border: 1.5px solid #124a36;
  border-radius: 3px;
  color: #ffffff;
  font-weight: 900;
  font-size: 11px;
  padding: 3px 12px;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.store-btn-add-gems:hover {
  background: linear-gradient(180deg, #61dcaf 0%, #2faa7d 45%, #1a7e59 85%, #0f5139 100%);
}

/* Boutons principaux au centre du footer */
.store-footer-center {
  display: flex;
  align-items: center;
  gap: 12px;
}
.store-btn-main {
  font-family: 'Limelight', serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1.5px;
  padding: 6px 30px;
  border-radius: 3px;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
  transition: all 0.12s ease;
}
.btn-gold-glossy {
  background: linear-gradient(180deg, #eed6b7 0%, #bf9155 35%, #805b2a 70%, #432d11 100%);
  border: 2px solid #32220d;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}
.btn-gold-glossy:hover {
  background: linear-gradient(180deg, #f3e1ca 0%, #cc9f64 35%, #906732 70%, #4f3615 100%);
  box-shadow: 0 0 12px rgba(182, 140, 85, 0.6), inset 0 1px 2px #fff;
  transform: scale(1.02);
}
.btn-red-glossy {
  background: linear-gradient(180deg, #d95d4f 0%, #ad2f21 40%, #6d1910 80%, #3a0d08 100%);
  border: 2px solid #0c2a20;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.btn-red-glossy:hover {
  background: linear-gradient(180deg, #e97163 0%, #c23b2c 40%, #821f14 80%, #45110b 100%);
  box-shadow: 0 0 12px rgba(52, 154, 120, 0.6), inset 0 1px 2px #fff;
  transform: scale(1.02);
}

.store-page-indicator {
  color: #ffffff;
  font-size: 13px;
  font-family: monospace, sans-serif;
  font-weight: bold;
}

/* Modals secondaires (Speedup picker & Loot butin) */
.shop-submodal-box {
  width: 480px;
  max-width: 92vw;
  background: #121213;
  border: 2px solid var(--gold-bronze);
  border-radius: 3px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.9);
  overflow: hidden;
  color: var(--text-cream);
}
.shop-submodal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #212529 0%, #101214 100%);
  padding: 8px 14px;
  border-bottom: 1px solid #423b32;
}
.shop-submodal-header h3 {
  margin: 0;
  font-family: 'Limelight', serif;
  font-size: 14px;
  color: #e0c096;
  letter-spacing: 0.5px;
}
.shop-submodal-close {
  background: none;
  border: none;
  color: #c9bfb0;
  font-size: 16px;
  cursor: pointer;
}
.shop-submodal-body {
  padding: 14px;
}
.picker-item-label {
  margin: 0 0 4px 0;
  font-size: 12px;
  color: #b0a799;
}
.picker-item-label strong {
  color: #e0c096;
}
.picker-intro {
  margin: 0 0 10px 0;
  font-size: 11px;
  color: #8c8273;
}
.speedup-queues-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.speedup-queue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #191a1b;
  border: 1px solid #39332b;
  padding: 8px 10px;
  border-radius: 2px;
}
.sq-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sq-icon {
  font-size: 20px;
}
.sq-title {
  font-size: 12px;
  font-weight: bold;
  color: #ddc7ab;
}
.sq-time {
  font-size: 10px;
  color: #8c8273;
}
.sq-time strong {
  color: #fff;
}
.sq-btn-apply {
  background: linear-gradient(180deg, var(--gold-classic) 0%, #815e31 100%);
  border: 1px solid #ecd0ac;
  color: #111;
  font-size: 10px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 2px;
  cursor: pointer;
}

.loot-submodal-box {
  width: 440px;
}
.loot-intro {
  font-size: 12px;
  color: #b0a799;
  margin-bottom: 12px;
}
.loot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.loot-tag {
  background: #17191b;
  border: 1px solid #443b30;
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
}
.loot-tag.loot-cash { color: #90d5bc; }
.loot-tag.loot-res { color: #e0c096; }
.loot-tag.loot-respect { color: #d8a15a; }
.loot-tag.loot-diamonds { color: #5ce1f5; }
.loot-tag.loot-speedup { color: #dfb277; }

.loot-weapon-card {
  background: #151618;
  border: 1px solid var(--gold-bronze);
  border-radius: 3px;
  padding: 10px;
  margin-bottom: 14px;
}
.loot-weapon-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.loot-weapon-icon {
  font-size: 24px;
}
.loot-weapon-name {
  font-size: 13px;
  font-weight: bold;
}
.loot-weapon-tier {
  font-size: 10px;
  opacity: 0.85;
}
.loot-weapon-bonus {
  font-size: 11px;
  color: #b0decd;
}
.loot-btn-collect {
  width: 100%;
  background: linear-gradient(180deg, var(--gold-classic) 0%, #815e31 100%);
  border: 1px solid #ecd0ac;
  color: #111;
  font-weight: bold;
  padding: 8px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Image d'objet envoyée depuis le dashboard admin, à la place de l'emoji (taille du texte environnant) */
.item-img { width: 1.4em; height: 1.4em; object-fit: contain; vertical-align: middle; }

/* ══════════════════════════════════════════════════════════════════
   MODALE : "YOU USED" -> "YOU WON" (ITEM USAGE MODAL)
   ══════════════════════════════════════════════════════════════════ */

.used-won-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.15s ease-out;
}

/* Modale "You Used" -> "You Won" (900x490) */
.used-won-modal {
  width: 900px;
  max-width: 96%; /* % du cadre de jeu (la fenêtre y est rattachée), pas de l'écran */
  height: 490px;
  max-height: 94%;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px 40px 34px;
  box-sizing: border-box;
  color: #ffffff;
  user-select: none;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.98);
}

/* Cadre vectoriel SVG avec coins à décrochés crantés et double liseré or */
.used-won-border-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Bouton croix rouge sur médaillon or en haut à droite */
.used-won-modal .modal-corner-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 26px;
  height: 26px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid #eed7b9;
  background: radial-gradient(circle at 45% 40%, #ffffff 0%, var(--gold-highlight) 25%, #c79759 55%, #8a622e 85%, #452f12 100%);
  box-shadow: 0 0 0 1px #2f200d, 0 3px 7px rgba(0, 0, 0, 0.9), inset 0 -1px 2px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: transform 0.1s, filter 0.15s;
}
.used-won-modal .modal-corner-close:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
}
.used-won-modal .modal-corner-close::before,
.used-won-modal .modal-corner-close::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 3.5px;
  border-radius: 1px;
  background: linear-gradient(180deg, #e24837 0%, #bd2b1b 55%, #701a10 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.used-won-modal .modal-corner-close::before { transform: rotate(45deg); }
.used-won-modal .modal-corner-close::after { transform: rotate(-45deg); }

/* Titres dorés "You Used" et "You Won" */
.used-won-title {
  color: #dbbb90;
  font-family: 'Limelight', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  text-shadow: 0 2px 4px #000;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Colonne gauche : You Used */
.used-won-col-left {
  width: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.used-won-item-name {
  color: #ffffff;
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}
.used-won-artwork-box {
  width: 210px;
  height: 210px;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #ebebeb 40%, #c4c4c4 75%, #929292 100%);
  border: 1.5px solid #d4d4d4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
}
.used-won-artwork-box .art-svg,
.used-won-artwork-box .mystery-box-art,
.used-won-artwork-box img {
  max-width: 170px;
  max-height: 145px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55));
}
.used-won-qty-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(18, 18, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Josefin Sans', Arial, sans-serif;
  padding: 1px 7px;
  border-radius: 2px;
  text-shadow: 0 1px 2px #000;
}
/* Bouton rouge "USE" sous la boîte */
.used-won-btn-use {
  margin-top: 14px;
  width: 210px;
  height: 36px;
  background: linear-gradient(180deg, #d14131 0%, #ac2e20 50%, #6d1910 100%);
  border: 1.5px solid #ddad6f;
  border-radius: 2px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 3px 6px rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.1s, transform 0.05s;
}
.used-won-btn-use:hover:not(:disabled) {
  filter: brightness(1.15);
}
.used-won-btn-use:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}
.used-won-btn-use:disabled,
.used-won-btn-use.disabled {
  background: linear-gradient(180deg, #3e4042 0%, #252728 100%);
  border: 1.5px solid #645a4d;
  color: #888888;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  filter: none;
}

/* Centre : 3 lignes horizontales et chevron or */
.used-won-col-center {
  flex: 1;
  height: 210px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}
.used-won-speedlines {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.used-won-speedline {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
}
.used-won-chevron {
  position: relative;
  z-index: 4;
  width: 30px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.used-won-chevron svg {
  width: 100%;
  height: 100%;
}

/* Colonne droite : You Won */
.used-won-col-right {
  width: 490px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.used-won-rewards-box {
  width: 490px;
  height: 300px;
  margin-top: 24px;
  background: #242424;
  border: 1.5px solid #999999;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.85);
  padding: 16px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.used-won-reward-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 2px 0;
}
.used-won-reward-thumb {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #ebebeb 40%, #c4c4c4 75%, #929292 100%);
  border: 1.5px solid #b8b8b8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}
.used-won-reward-thumb .art-svg,
.used-won-reward-thumb .mystery-box-art,
.used-won-reward-thumb img {
  max-width: 75px;
  max-height: 75px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}
.used-won-reward-thumb .reward-qty {
  position: absolute;
  right: 3px;
  bottom: 3px;
  background: rgba(18, 18, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Josefin Sans', Arial, sans-serif;
  padding: 1px 6px;
  border-radius: 2px;
  text-shadow: 0 1px 2px #000;
}
.used-won-reward-label {
  color: #ffffff;
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 3px #000;
}

/* Pastille « NOUVEAU » sur un objet de l'inventaire pas encore vu (disparaît au survol, au changement de page ou d'onglet) */
.card-new-badge { position: absolute; top: 4px; left: -2px; z-index: 3; padding: 2px 8px 2px 6px; font-size: 11px; font-weight: 900; letter-spacing: 0.5px; color: #fff; text-shadow: 0 1px 1px #000; background: linear-gradient(180deg, #e45545, #ad2f21); border: 1px solid #fff; border-radius: 2px 8px 8px 2px; box-shadow: 0 1px 4px #000; pointer-events: none; }

/* Boutique : diamant devant le prix, quantité saisissable avec menu de choix rapides */
.card-price-val { display: flex; align-items: center; gap: 4px; }
.card-price-val .card-gem { width: 15px; height: 15px; filter: drop-shadow(0 1px 1px #000); }
.card-qty-stepper { position: relative; overflow: visible; }
.card-qty-stepper .qty-num { width: 34px; padding: 0 2px; box-sizing: border-box; border: 0; outline: 0; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.card-qty-stepper .qty-num::-webkit-outer-spin-button, .card-qty-stepper .qty-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.card-qty-stepper .qty-menu { display: none; position: absolute; left: 0; bottom: 100%; z-index: 30; min-width: 100%; background: #000; border: 1.5px solid var(--gold-classic); box-shadow: 0 -4px 10px #000; }
.card-qty-stepper.is-open .qty-menu { display: block; }
.qty-opt { display: block; width: 100%; padding: 3px 0; text-align: center; font-family: 'Josefin Sans', Arial, sans-serif; font-size: 12px; font-weight: 900; color: #d39544; background: #000; border: 0; border-bottom: 1px solid #2d3237; cursor: pointer; }
.qty-opt:hover { background: #1f6c52; color: #fff; }
