:root {
  --qa-bg: #130c24;
  --qa-surface: #1b1133;
  --qa-surface2: #241741;
  --qa-line: #33245c;
  --qa-text: #f6f2ff;
  --qa-muted: #a193c4;
  --qa-violet: #7c6bff;
  --qa-violet2: #a78bfa;
  --qa-gold: #ffc15e;
  --qa-green: #4fe0b7;
  --qa-danger: #ff6b9d;
  --qa-radius: 20px;
}
.qa-shop-root,
.qa-shop-root *,
.qa-shop-overlay,
.qa-shop-overlay * {
  box-sizing: border-box;
}
.qa-shop-root button,
.qa-shop-overlay button {
  font: inherit;
  cursor: pointer;
}
.qaShopSvg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: #000;
  stroke: none;
  stroke-width: 1;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}
.qaShopSvg * {
  stroke-linecap: inherit;
  stroke-linejoin: inherit;
}
.qa-shop-root {
  min-height: 100vh;
  color: var(--qa-text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: radial-gradient(
    ellipse 100% 42% at 50% -14%,
    color-mix(in srgb, var(--qa-violet) 28%, transparent),
    transparent 60%
  );
}
.qa-shop-shell {
  width: min(560px, 100%);
  margin: auto;
  padding: 16px 14px 104px;
}
.qa-shop-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 4px 8px;
}
.qa-shop-title {
  display: flex;
  gap: 10px;
  align-items: center;
}
.qa-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}
.qa-shop-title h1 {
  font-size: 31px;
  line-height: 1.02;
  letter-spacing: -1.1px;
  margin: 0 0 5px;
  font-weight: 850;
}
.qa-shop-title p {
  margin: 0;
  color: #c3b6e0;
  line-height: 1.4;
  font-size: 12px;
}
.qa-wallet {
  display: flex;
  gap: 6px;
  align-items: center;
}
.qa-wallet button {
  height: 34px;
  border: 1px solid var(--qa-line);
  background: #1b1133;
  border-radius: 12px;
  color: var(--qa-text);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
}
.qa-wallet .qaShopSvg {
  width: 18px;
  height: 18px;
}
.qa-wallet b {
  font-size: 10px;
}
.qa-wallet i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 6px;
  background: #2d1e56;
  color: #d9d2ef;
  font-size: 12px;
}
.qa-studio-launch {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}
.qa-studio-launch button {
  border: 1px solid #40306f;
  background: #261a47;
  color: #f3eeff;
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 10px;
  font-weight: 850;
}
.qa-tabs {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  display: flex !important;
  grid-template-columns: none !important;
  gap: 6px;
  margin: 8px 0 13px;
  overflow: auto;
  scrollbar-width: none;
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  z-index: auto !important;
}
.qa-tabs::-webkit-scrollbar {
  display: none;
}
.qa-tabs button {
  border: 1px solid #352761;
  background: #1b1133;
  color: #b0a2ce;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 10px;
  white-space: nowrap;
}
.qa-tabs button.on {
  background: #f3effb;
  color: #1b1133;
  border-color: #f3effb;
  font-weight: 900;
}
.qa-pass {
  position: relative;
  min-height: 154px;
  border: 1px solid #40306f;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #241741, #180f2e);
  box-shadow: 0 14px 32px #0003;
}
.qa-pass-bg {
  position: absolute;
  inset: 0;
  opacity: 0.66;
}
.qa-pass-bg:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #130c24f0, #130c2490 56%, #130c241e);
}
.qa-pass-content {
  position: relative;
  z-index: 2;
  width: 73%;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
}
.qa-mini {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.85px;
  color: #d8c2ff;
}
.qa-pass h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 4px 0 4px;
}
.qa-pass p {
  font-size: 11px;
  color: #c3b6e0;
  line-height: 1.4;
  margin: 0 0 9px;
}
.qa-pass-progress {
  width: 132px;
  height: 5px;
  background: #2d1e56;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.qa-pass-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--qa-violet), var(--qa-gold));
  border-radius: 99px;
}
.qa-gold-btn,
.qa-dark-btn {
  border: 0;
  border-radius: 13px;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 900;
}
.qa-gold-btn {
  background: linear-gradient(160deg, #ffd483, #f0a93a);
  color: #2a1a05;
  box-shadow: 0 7px 20px #ffc15e20;
}
.qa-dark-btn {
  background: #261a47;
  border: 1px solid #40306f;
  color: #f3eeff;
}
.qa-shop-section {
  margin-top: 19px;
}
.qa-shop-section.qa-first {
  margin-top: 4px;
}
.qa-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 2px 8px;
}
.qa-section-head h2 {
  font-size: 19px;
  margin: 0;
  letter-spacing: -0.4px;
}
.qa-section-head span {
  font-size: 9px;
  color: var(--qa-muted);
}
.qa-chest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.qa-chest-grid-full {
  grid-template-columns: repeat(2, 1fr);
}
.qa-card {
  position: relative;
  border: 1px solid #352761;
  background: linear-gradient(180deg, #22163f, #180f2e);
  color: #fff;
  border-radius: 17px;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}
.qa-card:active {
  transform: scale(0.98);
}
.qa-card:hover {
  border-color: #5b44a8;
}
.qa-chest-card {
  padding: 8px 7px 11px;
}
.qa-chest-art {
  height: 88px;
  display: grid;
  place-items: center;
}
.qa-chest-art .qaShopSvg {
  width: 108px;
  height: 84px;
  max-width: 100%;
}
.qa-chest-card > b {
  display: block;
  font-size: 11px;
  margin: 2px 0 7px;
}
.qa-chest-card[data-rarity='rare'] {
  border-color: #36567c;
}
.qa-chest-card[data-rarity='epic'] {
  border-color: #64458d;
}
.qa-chest-card[data-rarity='legendary'] {
  border-color: #8b6832;
  box-shadow: inset 0 0 30px #ffc15e0b;
}
.qa-money-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 900;
  font-size: 10px;
  color: #f4eee0;
}
.qa-money-price .qaShopSvg {
  width: 15px;
  height: 15px;
}
.qa-money-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.qa-money-grid-full {
  grid-template-columns: repeat(2, 1fr);
}
.qa-money-card {
  padding: 9px 6px 11px;
}
.qa-money-art {
  height: 72px;
  display: grid;
  place-items: center;
}
.qa-money-art .qaShopSvg {
  width: 94px;
  height: 70px;
  max-width: 100%;
}
.qa-money-card strong {
  display: block;
  font-size: 14px;
  line-height: 1;
}
.qa-money-card small {
  display: block;
  color: var(--qa-muted);
  font-size: 9px;
  margin: 3px 0 8px;
}
.qa-boost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.qa-boost-card {
  padding: 9px 5px 10px;
}
.qa-boost-art {
  height: 68px;
}
.qa-boost-art .qaShopSvg {
  width: 78px;
  height: 67px;
  margin: auto;
}
.qa-boost-card b {
  display: block;
  font-size: 10px;
  line-height: 1.25;
  min-height: 25px;
  margin: 2px 0 6px;
}
.qa-cos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.qa-cos-card {
  padding: 9px 4px 8px;
}
.qa-cos-card > div {
  height: 52px;
}
.qa-cos-card .qaShopSvg {
  width: 58px;
  height: 52px;
  margin: auto;
}
.qa-cos-card b {
  font-size: 9px;
  display: block;
  margin-top: 3px;
}
.qa-offer {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr 36px;
  gap: 10px;
  align-items: center;
  border: 1px solid #40306f;
  background: linear-gradient(135deg, #241741, #180f2e);
  border-radius: 18px;
  padding: 10px 10px 10px 5px;
  overflow: hidden;
  min-height: 128px;
}
.qa-offer:before {
  content: '';
  position: absolute;
  left: -20px;
  bottom: -55px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #9b7cf03b, transparent 66%);
}
.qa-offer-art {
  position: relative;
  z-index: 1;
  height: 105px;
}
.qa-offer-art .qaShopSvg {
  width: 125px;
  height: 105px;
  max-width: 100%;
}
.qa-offer-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.qa-offer-copy h3 {
  font-size: 15px;
  margin: 3px 0 5px;
}
.qa-offer-copy ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 3px;
}
.qa-offer-copy li {
  font-size: 9px;
  color: #e4dcf7;
}
.qa-offer-copy li:before {
  content: '•';
  color: var(--qa-gold);
  margin-right: 6px;
}
.qa-offer-action {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 3;
}
.qa-offer-action span {
  font-size: 8px;
  color: #c3b6e0;
  white-space: nowrap;
}
.qa-offer-action button {
  margin-top: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #40306f;
  background: #261a47;
  color: #f4c765;
  font-size: 18px;
}
.qa-bottom-pad {
  height: 34px;
}
.qa-shop-overlay,
.qa-studio-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #07030fbf;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
}
.qa-shop-overlay.show,
.qa-studio-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.qa-shop-overlay {
  display: grid;
  place-items: end center;
  padding: 13px;
}
.qa-shop-sheet {
  width: min(520px, 100%);
  background: linear-gradient(#22163f, #180f2e);
  border: 1px solid #40306f;
  border-radius: 24px 24px 16px 16px;
  padding: 16px 16px 18px;
  transform: translateY(15px);
  transition: 0.18s ease;
}
.qa-shop-overlay.show .qa-shop-sheet {
  transform: none;
}
.qa-sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: #59477b;
  margin: 0 auto 8px;
}
.qa-sheet-art {
  height: 160px;
  display: grid;
  place-items: center;
}
.qa-sheet-art .qaShopSvg {
  width: 180px;
  height: 145px;
}
.qa-sheet-rarity {
  display: block;
  text-align: center;
  color: #e4ca8b;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 8px;
  font-weight: 900;
}
.qa-shop-sheet h2 {
  text-align: center;
  margin: 6px 0 5px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.7px;
}
.qa-shop-sheet > p {
  text-align: center;
  color: #c3b6e0;
  font-size: 10px;
  line-height: 1.45;
  margin: 0 auto 10px;
  max-width: 350px;
}
.qa-sheet-price {
  display: flex;
  justify-content: center;
  margin: 8px 0 13px;
}
.qa-sheet-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
}
.qa-purchase-flash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #080411e8;
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0;
  transition: 0.18s ease;
  pointer-events: none;
}
.qa-purchase-flash.show {
  opacity: 1;
  pointer-events: auto;
}
.qa-purchase-flash > div {
  transform: scale(0.93);
  transition: 0.2s ease;
}
.qa-purchase-flash.show > div {
  transform: scale(1);
}
.qa-purchase-art {
  width: 180px;
  height: 150px;
}
.qa-purchase-art .qaShopSvg {
  width: 100%;
  height: 100%;
}
.qa-purchase-flash span {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--qa-gold);
  font-weight: 900;
}
.qa-purchase-flash h2 {
  margin: 5px 0;
  font-size: 27px;
  letter-spacing: -0.7px;
}
.qa-purchase-flash p {
  margin: 0;
  color: #b7accf;
  font-size: 10px;
}
.qa-shop-toast {
  position: fixed;
  z-index: 10020;
  left: 50%;
  bottom: 72px;
  transform: translate(-50%, 8px);
  background: #f1edf8;
  color: #1b1133;
  border-radius: 999px;
  padding: 9px 14px;
  box-shadow: 0 15px 35px #0008;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: 0.18s ease;
  pointer-events: none;
}
.qa-shop-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Champs de configuration boutique réutilisés dans Quiz Arena Studio */
.qa-studio-overlay {
  display: grid;
  place-items: stretch end;
}
.qa-studio-panel {
  width: min(520px, 100%);
  height: 100%;
  overflow: auto;
  background: #130c24;
  border-left: 1px solid #40306f;
  padding: 14px 14px 36px;
  transform: translateX(16px);
  transition: 0.18s ease;
}
.qa-studio-overlay.show .qa-studio-panel {
  transform: none;
}
.qa-studio-top {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #130c24f2;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 12px;
  border-bottom: 1px solid #33245c;
}
.qa-studio-top h2 {
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.55px;
}
.qa-studio-top p {
  margin: 3px 0 0;
  color: var(--qa-muted);
  font-size: 9px;
}
.qa-studio-close {
  width: 36px;
  height: 36px;
  border: 1px solid #40306f;
  background: #261a47;
  color: #fff;
  border-radius: 12px;
  font-size: 20px;
}
.qa-studio-tabs {
  display: flex;
  gap: 5px;
  overflow: auto;
  margin: 12px 0;
}
.qa-studio-tabs button {
  border: 1px solid #352761;
  background: #1b1133;
  color: #b0a2ce;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 9px;
  white-space: nowrap;
}
.qa-studio-tabs button.on {
  background: #7c6bff;
  color: #fff;
  border-color: #7c6bff;
  font-weight: 900;
}
.qa-studio-block {
  border: 1px solid #33245c;
  background: #1b1133;
  border-radius: 16px;
  padding: 12px;
  margin: 9px 0;
}
.qa-studio-block h3 {
  font-size: 13px;
  margin: 0 0 9px;
}
.qa-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.qa-field {
  display: grid;
  gap: 4px;
}
.qa-field.full {
  grid-column: 1/-1;
}
.qa-field label {
  font-size: 8px;
  color: #a193c4;
  font-weight: 800;
}
.qa-field input,
.qa-field select,
.qa-field textarea {
  width: 100%;
  border: 1px solid #40306f;
  background: #180f2e;
  color: #f6f2ff;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 10px;
  outline: none;
}
.qa-field textarea {
  min-height: 66px;
  resize: vertical;
}
.qa-field input[type='color'] {
  height: 38px;
  padding: 3px;
}
.qa-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.qa-check input {
  accent-color: #7c6bff;
}
.qa-admin-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.qa-admin-actions button {
  border: 1px solid #40306f;
  background: #261a47;
  color: #fff;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 9px;
  font-weight: 850;
}
.qa-admin-actions .primary {
  background: #7c6bff;
  border-color: #7c6bff;
}
.qa-admin-actions .danger {
  background: #3a1830;
  border-color: #7a2c50;
  color: #ffa0bd;
}
.qa-section-row,
.qa-product-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  align-items: center;
  border-top: 1px solid #33245c;
  padding: 9px 0;
}
.qa-section-row:first-of-type,
.qa-product-row:first-of-type {
  border-top: 0;
}
.qa-section-row b,
.qa-product-row b {
  font-size: 10px;
}
.qa-section-row small,
.qa-product-row small {
  display: block;
  color: #a193c4;
  font-size: 8px;
  margin-top: 2px;
}
.qa-mini-actions {
  display: flex;
  gap: 4px;
}
.qa-mini-actions button {
  width: 30px;
  height: 30px;
  border: 1px solid #40306f;
  background: #261a47;
  color: #fff;
  border-radius: 9px;
}
.qa-product-editor {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #33245c;
}
.qa-json-box {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  min-height: 220px !important;
  font-size: 9px !important;
  line-height: 1.45;
}
@media (max-width: 390px) {
  .qa-shop-shell {
    padding-left: 11px;
    padding-right: 11px;
  }
  .qa-shop-title h1 {
    font-size: 28px;
  }
  .qa-wallet {
    gap: 4px;
  }
  .qa-wallet button {
    padding: 5px;
  }
  .qa-chest-art {
    height: 78px;
  }
  .qa-money-art {
    height: 63px;
  }
  .qa-offer {
    grid-template-columns: 96px 1fr 30px;
  }
  .qa-cos-grid {
    gap: 5px;
  }
  .qa-form-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qa-shop-root *,
  .qa-shop-overlay *,
  .qa-studio-overlay * {
    animation: none !important;
    transition: none !important;
  }
}

.qa-studio-overlay,
.qa-studio-launch {
  display: none !important;
}
