/* Cart and account use the same blue paper and fine gold finish as the packs. */
.shop-header-actions { display:flex; align-items:center; gap:20px; flex:0 0 auto; }
.shop-header-actions button { display:flex; align-items:center; gap:8px; min-height:44px; padding:0; background:none; border:0; color:#d8ccaf; font:500 11px/1.3 var(--body); }
.shop-header-actions button:hover { color:#fff0cb; }
.shop-header-actions [hidden] { display:none; }
.shop-header-actions .shop-logout-button { color:#a6b2b8; font-size:10px; }
.shop-logout-button svg { flex:0 0 auto; }
.shop-account-button { max-width:130px; }
.shop-account-button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shop-cart-button > img { object-fit:contain; filter:brightness(0) invert(.85); }
.shop-header-actions .shop-cart-count { display:grid; place-items:center; min-width:19px; height:19px; padding:0 4px; border:1px solid #c4a97466; border-radius:50%; font-size:9px; color:#e4cf9e; }
.shop-header-actions .shop-cart-count[hidden] { display:none; }
.shop-wl-note { color:#c9b486; margin-left:10px; white-space:nowrap; }
body:has(.shop-dialog[open]) { overflow:hidden; }
.shop-dialog { position:fixed; inset:0 0 0 auto; margin:0; width:min(520px,100vw); height:100dvh; max-height:100dvh; max-width:100vw; padding:0; border:0; border-left:1px solid #bda37077; background:linear-gradient(145deg,#203345e8,#0c1a29f5 66%),url('assets/masque-encre-grimoire-v11.png') center/cover,#102231; color:#d7e0e3; overflow:hidden; box-shadow:-25px 0 90px #0006; }
.shop-dialog[open] { display:flex; flex-direction:column; }
.shop-dialog::backdrop { background:#02080fbf; backdrop-filter:blur(5px); }
.shop-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:34px 34px 25px; border-bottom:1px solid #c6ad7530; }
.shop-heading .eyebrow { font-size:7px; letter-spacing:2px; color:#bfa66f; }
.shop-heading h2 { font:400 30px/1.25 var(--heading); margin-top:13px; color:#ebdebd; }
.shop-close { flex:0 0 auto; width:36px; height:36px; margin-top:-6px; margin-right:-9px; border:0; background:none; color:#c6b58b; font-size:27px; }
.shop-scroll { flex:1 1 auto; min-height:0; overflow-y:auto; padding:25px 34px; overscroll-behavior:contain; }
.shop-items { display:grid; gap:25px; }
.shop-item { display:grid; grid-template-columns:62px minmax(0,1fr); gap:18px; padding-bottom:24px; border-bottom:1px solid #c6ad7528; }
.shop-item-art { height:92px; overflow:hidden; background:#0a1926; border:1px solid #c7ab713b; }
.shop-item-art > img { width:100%; height:100%; object-fit:cover; }
.shop-art-collector > img { object-fit:contain; }
.shop-art-skin > img { object-fit:contain; padding:12px; }
.shop-item-top { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.shop-item-top h3 { color:#e5d5af; font:400 18px/1.35 var(--heading); }
.shop-item-top > strong { white-space:nowrap; font:400 21px/1.2 var(--heading); color:#efe5cf; }
.shop-item-copy > p { font-size:10px; color:#a5b8c6; line-height:1.7; margin-top:4px; }
.shop-item-copy > .shop-cosmetics { color:#cccfca; }
.shop-remove { min-height:32px; margin-top:7px; padding:0; background:none; border:0; font-size:9px; color:#af9d7a; text-decoration:underline; text-underline-offset:4px; }
.shop-remove:hover { color:#eed9a8; }
.shop-footer { flex:0 0 auto; padding:23px 34px 22px; border-top:1px solid #c6ad753b; background:#091723b8; }
.shop-footer[hidden] { display:none; }
.shop-total { display:flex; align-items:center; justify-content:space-between; gap:18px; color:#e8dec8; }
.shop-total > span { font-size:12px; }
.shop-total > strong { font:400 30px/1.3 var(--heading); }
.shop-digital { margin-top:5px; font-size:9px; color:#849cad; }
.shop-access { font-size:11px; line-height:1.7; color:#b8c6ca; margin-top:20px; }
.shop-access strong { font-size:12px; font-weight:500; color:#d8c299; display:block; }
.shop-access p { margin-top:5px; }
.shop-access-valid { display:flex; align-items:center; flex-wrap:wrap; gap:5px; color:#d4c59d; }
.shop-access-valid .icon { width:15px; height:15px; margin-right:3px; }
.shop-access-valid > span { color:#8da3b1; font-size:10px; }
.shop-access-error { border-left:1px solid #c4a36b88; padding-left:12px; }
.shop-text-button { padding:6px 0; min-height:34px; border:0; background:none; color:#cfb887; font-size:10px; text-decoration:underline; text-underline-offset:4px; }
.shop-footer .primary, .shop-login-form .primary, .shop-account .primary, .shop-empty .primary { width:100%; min-height:54px; padding:15px 19px; margin-top:19px; font-size:11px; }
.shop-dialog button:disabled { opacity:.45; cursor:not-allowed; filter:saturate(.3); }
.shop-continue { width:100%; padding:12px 8px 0; min-height:36px; border:0; background:none; color:#91a7b5; font-size:10px; }
.shop-notice { font-size:11px; line-height:1.8; color:#ddca9d; }
.shop-notice:empty { display:none; }
.shop-back { min-height:38px; padding:0; border:0; background:none; color:#b8a57e; font-size:10px; }
.shop-login-intro { margin-top:28px; }
.shop-login-intro h3, .shop-account h3, .shop-empty h3 { font:400 24px/1.4 var(--heading); color:#e6d7b5; }
.shop-login-intro p, .shop-empty p { font-size:11px; line-height:1.8; color:#a2b7c5; margin-top:12px; }
.shop-login-form { display:flex; flex-direction:column; margin-top:32px; }
.shop-login-form label { font-size:11px; color:#c5cece; margin-bottom:10px; }
.shop-login-form input { width:100%; min-height:50px; padding:12px 14px; border:1px solid #bca5714d; border-radius:0; background:#07152080; color:#e4e7e3; font:13px var(--body); margin-bottom:23px; }
.shop-login-form input:focus { border-color:#d3bb83; outline:1px solid #d3bb8333; outline-offset:2px; }
.shop-login-form .primary { margin-top:10px; }
.shop-form-error { font-size:11px; color:#e4b8a2; line-height:1.7; }
.shop-form-error:empty { display:none; }
.shop-account { padding-top:20px; }
.shop-account > .shop-text-button { display:block; margin:15px auto 0; }
.shop-empty { text-align:center; padding:42px 0; }
.shop-empty > .icon { width:42px; height:42px; margin-bottom:25px; }
.shop-empty .primary { margin-top:30px; }
@media (prefers-reduced-motion:no-preference) {
  .shop-dialog[open] { animation:shop-enter 340ms cubic-bezier(.16,1,.3,1) both; }
}
@keyframes shop-enter { from { opacity:0; transform:translateX(32px); } to { opacity:1; transform:translateX(0); } }
@media (max-width:1200px) { .site-header > .discord-link { display:none; } }
@media (max-width:760px) {
  .site-header .site-nav { display:none; }
  .shop-header-actions { margin-left:auto; gap:17px; }
  .shop-wl-note { display:block; margin-left:0; margin-top:4px; }
}
@media (max-width:620px) {
  .shop-heading { padding:26px 23px 22px; }
  .shop-heading h2 { font-size:27px; }
  .shop-scroll { padding:22px 23px; }
  .shop-footer { padding:20px 23px 18px; }
  .shop-item { grid-template-columns:47px minmax(0,1fr); gap:13px; }
  .shop-item-art { height:77px; }
  .shop-item-top h3 { font-size:17px; }
  .shop-item-top > strong { font-size:20px; }
  .shop-item-copy > p { font-size:9px; }
  .shop-account-button { max-width:105px; }
}
@media (max-width:380px) {
  .site-header { padding-inline:16px; gap:10px; }
  .site-header .brand img { width:96px; }
  .shop-header-actions { gap:12px; }
  .shop-header-actions button { font-size:9px; gap:5px; }
}
.shop-test-label { display:block; margin-top:10px; text-align:center; color:#a4afba; font-size:10px; }
.shop-order { padding:38px 0 24px; text-align:center; }
.shop-order-seal { width:72px; height:72px; display:grid; place-items:center; margin:0 auto 28px; border:1px solid #c5a96555; border-radius:50%; background:radial-gradient(circle,#c5a96516,transparent); }
.shop-order-seal .icon { width:36px; height:36px; }
.shop-order h3 { margin:18px 0; font:25px/1.4 var(--heading); color:#e3d1a8; }
.shop-order p { font-size:12px; line-height:1.8; color:#aebdc7; }
.shop-order-summary { display:grid; gap:10px; padding:24px; margin:28px 0; border-block:1px solid #c5a96535; font-size:13px; }
.shop-order-summary strong { margin-top:6px; color:#e6d4ad; font:24px var(--heading); }
.shop-order .primary { width:100%; }
.shop-gift { border:0; padding:0; margin-top:20px; min-width:0; }
.shop-gift legend { float:left; width:100%; margin-bottom:15px; font:400 15px/1.5 var(--heading); color:#dbc9a3; }
.shop-gift-options { clear:both; display:grid; grid-template-columns:1fr 1.25fr; gap:8px; }
.shop-gift-options label { display:flex; align-items:center; gap:9px; padding:12px 10px; border:1px solid #bca57140; color:#aebdc7; font-size:10px; cursor:pointer; }
.shop-gift-options label:has(:checked) { border-color:#d1b77599; color:#ead6aa; background:#bca5710d; }
.shop-gift-options input { accent-color:#cfb47b; width:13px; height:13px; }
.shop-gift-form { margin-top:20px; }
.shop-gift-form > label { display:block; margin-bottom:10px; color:#b7c3c9; font-size:10px; }
.shop-recipient-input { display:flex; min-width:0; border:1px solid #bca57155; background:#07152070; }
.shop-recipient-input:focus-within { border-color:#d3bb83; }
.shop-recipient-input input { min-width:0; flex:1; width:100%; padding:13px 12px; border:0; outline:0; background:transparent; color:#e4e7e3; font:12px var(--body); }
.shop-recipient-input button { flex:0 0 auto; min-height:46px; padding:0 15px; border:0; border-left:1px solid #bca57135; background:#c4ab6b0d; color:#dfca9b; font:10px var(--body); }
.shop-recipient-result { display:flex; align-items:center; gap:10px; margin-top:15px; }
.shop-recipient-result:empty { display:none; }
.shop-recipient-result .icon { width:20px; height:20px; }
.shop-recipient-result strong { display:block; font-size:12px; font-weight:500; color:#e5d8bb; overflow-wrap:anywhere; }
.shop-recipient-result span { display:block; margin-top:4px; font-size:9px; color:#b8ad8f; }
.shop-gift .shop-form-error, .shop-gift-hint { margin-top:12px; font-size:10px; line-height:1.8; }
.shop-gift-hint { color:#a2b7c5; }
.shop-order-gift { color:#e3c987; font-size:13px; }
@media (max-width:620px) { .shop-header-actions { gap:12px; } .shop-account-button { max-width:70px; } .shop-header-actions .shop-logout-button { font-size:9px; gap:5px; } }
@media (max-width:380px) { .shop-logout-button > span { display:none; } .shop-logout-button { justify-content:center; min-width:32px; } }
.pack-purchase-label { display:flex; flex-direction:column; align-items:flex-start; gap:3px; line-height:1.25; }
.pack-purchase-label small { font:500 8px/1.3 var(--body); letter-spacing:.1em; opacity:.7; text-transform:uppercase; }
.shop-owned-notice { margin:12px 0 0; padding:10px 12px; border-left:2px solid #cba762; background:#cba7620c; color:#dfc994; font-size:11px; line-height:1.6; }

/* Confirmation avant achat : même papier sombre et dorure que le panier. */
.shop-dialog.shop-confirmation { inset:0; margin:auto; width:min(620px,calc(100% - 32px)); height:fit-content; max-height:calc(100dvh - 32px); border:1px solid #c5a96566; box-shadow:0 24px 100px #0009; animation:shop-confirm-enter .25s ease-out; }
.shop-confirmation .shop-heading { padding:28px 32px 22px; }
.shop-confirmation .shop-heading h2 { font-size:27px; }
.shop-confirmation .shop-scroll { padding:24px 32px 4px; }
.shop-confirmation .shop-footer { padding:20px 32px 24px; }
.shop-wl-copy { outline:none; font:13px/1.85 var(--body); color:#bcc8cf; }
.shop-wl-copy > p { margin:18px 0; }
.shop-wl-copy strong { color:#f0e7d4; font-weight:600; }
.shop-wl-summary { display:flex; align-items:center; gap:16px; padding-bottom:20px; border-bottom:1px solid #c5a96530; }
.shop-wl-summary .eyebrow { color:#d5bb7e; font-size:9px; letter-spacing:.15em; overflow-wrap:anywhere; }
.shop-wl-summary p { margin:5px 0 0; color:#e5d4af; font:20px/1.4 var(--heading); }
.shop-wl-seal { display:grid; place-items:center; flex:0 0 44px; height:44px; background:#c5a9650d; border:1px solid #c5a96540; transform:rotate(45deg); }
.shop-wl-seal .icon { transform:rotate(-45deg); width:22px; height:22px; }
.shop-wl-warning { border-left:2px solid #c5a965; background:linear-gradient(90deg,#c5a9650e,transparent); padding:12px 18px; }
.shop-wl-warning p { margin:0; }
.shop-wl-copy .shop-wl-question { color:#e7d4ab; margin-bottom:0; font-weight:500; }
.shop-wl-support { font-size:11px; }
.shop-confirmation .shop-notice:empty { display:none; }
.shop-confirmation .shop-checkout:disabled { opacity:.65; }
.shop-confirmation .shop-checkout { padding-inline:28px; }
@keyframes shop-confirm-enter { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
@media(max-width:620px) {
  .shop-dialog.shop-confirmation { width:calc(100% - 20px); max-height:calc(100dvh - 20px); }
  .shop-confirmation .shop-heading { padding:22px 22px 18px; }
  .shop-confirmation .shop-heading h2 { font-size:23px; }
  .shop-confirmation .shop-scroll { padding:20px 22px 0; }
  .shop-confirmation .shop-footer { padding:18px 22px; }
  .shop-wl-copy { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .shop-dialog.shop-confirmation { animation:none; } }
.shop-auth-links{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:18px;font-size:11px}
.shop-auth-links a{color:#dfc58c;text-decoration:none;padding-block:5px}
.shop-auth-links a:hover{text-decoration:underline}
.shop-upgrade-note{margin-top:22px;padding:18px 20px;border-left:2px solid #d3b575;background:linear-gradient(110deg,#c5a96512,transparent);color:#bcc8cf;font:12px/1.7 var(--body)}
.shop-upgrade-note strong,.shop-item-copy .shop-upgrade-from{color:#e6ca8f}
.shop-upgrade-note p{margin:8px 0 0}.shop-quote-status{font:12px/1.7 var(--body);color:#dfc58c}.shop-quote-status:empty{display:none}
