[hidden] { display: none !important; }
button:disabled { opacity: .55; cursor: not-allowed; }
.storefront, .customer-auth {
  --muted: var(--muted-text, #63746f);
  font-size: 16px;
  background: var(--page, #f5f7f7);
  color: var(--text, #172323);
}
.storefront button, .storefront .button, .customer-auth button, .customer-auth .button {
  min-height: 42px; font-size: 14px; border-radius: 9px; padding: 10px 16px;
}
.storefront label, .customer-auth label { font-size: 14px; color: inherit; }
.storefront input, .customer-auth input { font-size: 16px; min-height: 44px; border-radius: 8px; }
.storefront .eyebrow, .customer-auth .eyebrow { font-size: 12px; letter-spacing: 1.6px; color: var(--muted); }
.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; }
.skip-link { position: fixed; left: 16px; top: -80px; padding: 10px 16px; background: var(--surface,#fff); z-index: 20; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.portal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px max(24px,calc((100vw - 1120px)/2));
  background: var(--surface,#fff); border-bottom: 1px solid var(--border);
}
.portal-header .brand { font-size: 26px; letter-spacing: -.9px; }
.storefront .header-actions { gap: 20px; }
.account-settings-link { font-size: 14px; font-weight: 600; }
.account-main { max-width: 608px; }
.auth-actions { display: flex; align-items: center; gap: 20px; }
.sign-in-link { font-size: 14px; font-weight: 600; }
.portal-main { max-width: 1168px; margin: 38px auto 0; padding: 0 24px; }
.shop-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.shop-heading h1 { font-size: clamp(30px,4vw,38px); letter-spacing: -1.2px; margin: 8px 0 10px; }
.shop-heading p { margin: 0; }
.currency-label { flex-shrink: 0; font-size: 14px; color: var(--muted); padding-bottom: 4px; }
.balance-strip {
  display: flex; align-items: center; gap: 32px; padding: 20px 24px; margin-bottom: 24px;
  background: var(--tint-bg,#edf4ef); border: 1px solid var(--tint-line,#dce8df); border-radius: 12px;
}
.balance-strip strong { display: block; font-size: 28px; font-weight: 650; letter-spacing: -.7px; }
.balance-strip p { margin: 0 0 0 auto; font-size: 14px; }
.balance-strip > div > span { font-size: 14px; }
.portal-nav { display: flex; gap: 8px; padding: 4px; margin: 0 0 30px; border-bottom: 1px solid var(--border); }
.storefront .portal-nav button { border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 8px; margin-bottom: 5px; }
.storefront .portal-nav button:hover { color: inherit; background: var(--surface-soft,#eaf0ec); }
.storefront .portal-nav button[aria-current="page"] { background: var(--surface,#fff); color: inherit; border-color: var(--border); box-shadow: 0 1px 3px #00000008; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.section-heading h2 { font-size: 22px; letter-spacing: -.5px; }
.section-heading p { font-size: 14px; margin: 5px 0 0; }
.catalog-controls { display: flex; align-items: center; gap: 10px; }
.search-field { width: 310px; }
.search-field input { width: 100%; background: var(--surface,#fff); }
.catalog-note { font-size: 14px; margin: 0 0 24px; line-height: 1.6; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.product-card {
  min-width: 0; min-height: 238px; display: flex; flex-direction: column; gap: 22px; padding: 24px;
  background: var(--surface,#fff); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 2px 6px #00000003; transition: border-color .15s, box-shadow .15s;
}
.product-card:hover { border-color: var(--tint-line,#b9ccc0); box-shadow: 0 6px 22px #00000006; }
.product-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.game-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.stock-label { font-size: 12px; border-radius: 20px; padding: 4px 9px; color: var(--muted); background: var(--surface-soft,#f1f3f2); }
.stock-label.in-stock { color: var(--success-text,#286340); background: var(--success-bg,#edf5ed); }
.product-card h3 { font-size: 20px; line-height: 1.4; font-weight: 650; letter-spacing: -.4px; overflow-wrap: anywhere; margin: 0; }
.product-bottom { display: flex; flex-direction: column; gap: 18px; margin-top: auto; }
.price-block { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-card .price { font-size: 26px; font-weight: 650; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.price-block > span { font-size: 14px; }
.product-buy { width: 100%; }
.catalog-empty { grid-column: 1/-1; text-align: center; padding: 56px 24px; border: 1px dashed var(--border); border-radius: 14px; }
.catalog-empty h3 { font-size: 20px; }
.catalog-empty p { margin-bottom: 0; }
.storefront .notice, .customer-auth .notice { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.storefront .error, .customer-auth .error, dialog .error { background: var(--danger-bg,#fff0ee); color: var(--danger-text,#943d35); border: 1px solid var(--danger-line,#f0d4cf); }
.storefront .success { background: var(--success-bg,#edf5ed); color: var(--success-text,#286340); border: 1px solid var(--success-line,#d3e4d5); }
#message { margin-bottom: 20px; }
.lookup-form, .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lookup-form input { width: 260px; }
.storefront .panel { border-radius: 12px; }
.storefront th { font-size: 13px; padding: 14px 20px; }
.storefront td { font-size: 14px; padding: 17px 20px; }
.storefront .badge { font-size: 13px; padding: 5px 10px; }
.storefront .pagination { font-size: 14px; padding: 18px 0; }
.storefront .empty { font-size: 16px; }
.detail-body { padding: 28px; }
.detail-body h2 { font-size: 24px; }
.detail-body .mono { overflow-wrap: anywhere; font-size: 14px; color: var(--muted); }
.account-card { border-top: 1px solid var(--border); padding: 24px 0; }
.account-card summary { cursor: pointer; font-weight: 600; }
.credential { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-soft,#f2f5f1); padding: 16px; border-radius: 8px; font-size: 14px; }
.account-card .actions { margin-top: 16px; }
.account-card > p.muted { font-size: 14px; }
.check-result { margin-top: 20px; }
.check-result h3 { font-size: 16px; }
.check-result dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; }
.check-result dt { color: var(--muted); }
.check-result dd { margin: 0; overflow-wrap: anywhere; }
.portal-main #order-detail { margin-top: 28px; }
.storefront dialog {
  width: 480px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: auto;
  border: 1px solid var(--border); border-radius: 16px; padding: 30px; color: inherit;
}
.storefront dialog::backdrop { background: var(--backdrop,#142b2580); }
.storefront dialog h1 { font-size: 28px; margin: 10px 0 20px; }
.storefront dialog p { overflow-wrap: anywhere; }
.storefront dialog .actions { justify-content: flex-end; margin-top: 24px; }
.storefront dialog label { margin: 20px 0; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; margin-top: 24px; }
.checkout-total strong { font-size: 26px; }
.shop-footer { font-size: 14px; padding: 26px 0; margin-top: 44px; color: var(--muted); }
.shop-footer a { text-decoration: underline; text-underline-offset: 3px; }
.topup-form { display: flex; align-items: flex-end; gap: 16px; padding: 24px; margin: 20px 0; flex-wrap: wrap; }
.topup-form input { width: 180px; }
.payment-row { display: flex; align-items: center; gap: 16px; padding: 20px; margin: 12px 0; flex-wrap: wrap; }
.payment-row > div { flex: 1; }
.payment-qr { display: block; max-width: 100%; height: auto; margin: 20px auto; border-radius: 8px; }
.payment-amount { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.payment-address, .payment-reference { overflow-wrap: anywhere; font-size: 13px; }
#ltc-details > .button { display: block; text-align: center; margin-top: 12px; }
.customer-auth { padding: 28px 16px; }
.customer-auth .login-theme { align-self: flex-end; margin: 0 12px 20px; }
.customer-auth .login-brand { margin-bottom: 26px; }
.customer-auth .login-card { width: 450px; max-width: 100%; border-radius: 16px; padding: 34px; border-color: var(--border); }
.customer-auth .login-card h1 { font-size: 30px; margin: 10px 0 12px; }
.customer-auth .login-card p.muted { font-size: 16px; margin: 0 0 26px; }
.customer-auth .stack-form { gap: 18px; }
.customer-auth .stack-form small, .customer-auth .login-card > small { font-size: 13px; color: var(--muted); }
.customer-auth .stack-form img { display: block; max-width: 100%; object-fit: contain; }
.customer-auth .login-card > p { font-size: 14px; }
.customer-auth .login-card > p a { text-decoration: underline; text-underline-offset: 3px; }
.customer-auth .back-to-shop { padding-top: 18px; border-top: 1px solid var(--border); margin-bottom: 12px; }
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portal-header { padding: 18px 24px; }
  .search-field { width: 260px; }
}
@media (max-width: 600px) {
  .portal-header { padding: 16px; flex-wrap: wrap; gap: 12px; }
  .portal-header .brand { font-size: 23px; }
  .storefront .header-actions { gap: 12px; flex-wrap: wrap; }
  .auth-actions { gap: 12px; }
  .storefront .signup-link { display: none; }
  .storefront .theme-toggle { font-size: 0; width: 42px; padding: 8px; }
  .storefront .theme-toggle { gap: 0; }
  .storefront .theme-toggle::before { width: 20px; height: 20px; }
  .portal-main { margin-top: 28px; padding: 0 16px; }
  .shop-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .shop-heading h1 { font-size: 32px; }
  .currency-label { font-size: 13px; }
  .balance-strip { align-items: flex-start; flex-direction: column; gap: 10px; padding: 20px; }
  .balance-strip p { margin: 0; }
  .portal-nav { overflow: auto; gap: 0; margin-bottom: 24px; }
  .storefront .portal-nav button { padding: 10px 12px; white-space: nowrap; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 16px; }
  .catalog-controls { width: 100%; }
  .search-field { width: auto; flex: 1; min-width: 0; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card { min-height: 220px; padding: 22px; }
  .product-bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; }
  .price-block { flex-direction: column; gap: 0; align-items: flex-start; }
  .product-buy { width: auto; min-width: 128px; }
  .lookup-form input { width: auto; flex: 1; min-width: 0; }
  .detail-body { padding: 20px; }
  .check-result dl { grid-template-columns: 1fr; }
  .shop-footer { gap: 16px; flex-wrap: wrap; }
  .customer-auth .login-card { padding: 26px; }
  .storefront dialog { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .product-card { transition: none; } }

.storefront #guest-cart { width: 580px; }
.cart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-heading h1 { margin-bottom: 12px; }
.cart-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.cart-item h2 { font-size: 18px; margin: 0 0 8px; overflow-wrap: anywhere; }
.cart-item-controls { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.storefront dialog .cart-item label { margin: 8px 0 0; flex: 1; min-width: 110px; }
.cart-item input { width: 100%; max-width: 100px; }
.cart-item-price { margin: 0; font-size: 14px; }
#guest-cart-proceed, #guest-cart-continue { width: 100%; margin-top: 12px; }
#guest-cart-email { margin-bottom: 8px; }
#guest-cart-email + small { display: block; margin-top: 8px; }
#guest-cart-count { font-variant-numeric: tabular-nums; }
#guest-cart-items:empty { display: none; }
.guest-order-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.guest-order-item h3 { margin: 0 0 8px; font-size: 18px; overflow-wrap: anywhere; }

.order-summary { min-width: 170px; }
.order-summary strong, .order-summary small { display: block; }
.order-summary small { margin-top: 6px; }
#order-detail { scroll-margin-top: 24px; }

.payment-fees { margin: .75rem 0; font-size: .85rem; }
.payment-fees p { margin: .35rem 0; }
.fee-total { font-weight: 700; }
.payment-fees small { display: block; line-height: 1.5; }
.waiting-dots { display: inline-flex; gap: .25em; vertical-align: middle; margin-left: .15em; }
.waiting-dots span { width: .3em; height: .3em; border-radius: 50%; background: currentColor; animation: payment-wait 1.35s ease-in-out infinite; }
.waiting-dots span:nth-child(2) { animation-delay: .15s; }
.waiting-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes payment-wait { 0%, 70%, 100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-.2em); } }
@media (prefers-reduced-motion: reduce) { .waiting-dots span { animation: none; } }
.topup-form .payment-fees { flex-basis: 100%; }

/* Payment categories keep currency choices out of the product summary. */
.payment-choice-heading { font-size: 17px; margin: 24px 0 12px; }
.payment-methods { display: grid; gap: 12px; }
.storefront .payment-choice { display: block; width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; text-decoration: none; min-width: 0; }
.payment-choice strong { display: block; font-size: 15px; }
.payment-choice > span, .payment-choice summary > span { display: block; color: var(--muted-text); font-size: 13px; margin-top: 5px; line-height: 1.5; }
.payment-choice summary { cursor: pointer; padding-right: 22px; position: relative; list-style: none; min-height: 44px; }
.payment-choice summary::-webkit-details-marker { display: none; }
.payment-choice summary::after { content: ''; position: absolute; right: 5px; top: 8px; width: 9px; height: 9px; border-right: 2px solid var(--muted-text); border-bottom: 2px solid var(--muted-text); transform: rotate(45deg); }
.payment-choice[open] summary::after { transform: rotate(225deg); top: 12px; }
.storefront .balance-payment { background: var(--tint-bg); border-color: var(--tint-line); }
.balance-payment p { font-size: 13px; line-height: 1.6; margin: 8px 0 12px; }
.payment-choice-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.payment-recommendation { padding: 3px 8px; border-radius: 999px; background: var(--surface); color: var(--text); border: 1px solid var(--tint-line); font-size: 11px; font-weight: 600; }
.balance-payment button, .crypto-options > button, .checkout-cancel { width: 100%; }
.crypto-options { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 2px; }
.crypto-options p { font-size: 13px; line-height: 1.6; }
.crypto-options label, .crypto-options select { width: 100%; min-width: 0; }
.checkout-cancel { margin-top: 20px; }
.checkout-product-name { font-size: 18px; font-weight: 600; }

.discord-topup p { font-size: 13px; line-height: 1.5; margin: 12px 0; }
.discord-topup .button { max-width: 100%; white-space: normal; text-align: center; }

.hosted-payment { padding: 24px; margin: 20px 0; }
.hosted-payment p { margin: 12px 0; line-height: 1.5; }
.hosted-payment .button, #ltc-details > .button { white-space: normal; }

/* Fiat display preference is independent of the payment asset selector. */
.display-currency { display: inline-flex; width: 84px; max-width: 100%; margin: 0; }
.display-currency select { width: 100%; min-height: 42px; padding: 8px 24px 8px 10px; font-size: 14px; border-radius: 9px; color: var(--text); background-color: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.currency-note { font-size: 13px; line-height: 1.6; margin: -12px 0 24px; max-width: 820px; }
.checkout-currency { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 0 18px; }
.checkout-currency > span { font-size: 12px; }
.settlement-usd { display: block; font-size: 12px; line-height: 1.6; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-top: 3px; }
.topup-currency-help { font-size: 13px; }
@media (max-width: 600px) { .storefront .header-actions { gap: 10px; } .display-currency { width: 80px; } .currency-note { margin-top: 0; } }

/* Public documents and the shared footer use their own layout. */
.storefront { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.storefront > .portal-main { width: 100%; flex: 1; }
.information-main { max-width: 880px; }
.information-main .panel { margin: 1.5rem 0; padding: clamp(20px, 4vw, 32px); }
.information-main h1 { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 40px); letter-spacing: -1px; }
.information-main h2 { margin: 0 0 1rem; font-size: 20px; line-height: 1.4; letter-spacing: -.3px; }
.information-main p, .information-main li { line-height: 1.8; overflow-wrap: anywhere; }
.information-main p { margin: 0 0 1.1rem; }
.information-main p:last-child { margin-bottom: 0; }
.information-main ul { padding-left: 1.4rem; margin: 0 0 1.1rem; }
.information-main li + li { margin-top: .75rem; }
.information-main a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.policy-main { max-width: 808px; }
.policy-main .policy-section { margin: 2.25rem 0; }
.policy-main .merchant-details { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.policy-main .merchant-details p { font-size: 14px; line-height: 1.75; }
.policy-main .policy-section:last-child { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.shop-footer.store-information { display: block; width: 100%; margin: 64px 0 0; padding: 0; color: var(--muted); background: var(--surface); border-top: 1px solid var(--border); font-size: 13px; }
.footer-inner { max-width: 1168px; margin: 0 auto; padding: 32px 24px 24px; }
.footer-overview { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; }
.footer-brand { display: block; color: var(--text); font-size: 20px; font-weight: 650; letter-spacing: -.5px; }
.footer-brand span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.store-information nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.store-information a { text-decoration: none; }
.store-information nav a, .footer-accounting a { line-height: 1.6; padding: 4px 0; }
.store-information a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-policies { border-top: 1px solid var(--border); padding-top: 18px; }
.footer-accounting { margin: 14px 0 0; font-size: 12px; line-height: 1.7; }
.customer-auth { padding-bottom: 0; justify-content: flex-start; }
.customer-auth > .login-card { margin-bottom: 44px; }
.customer-auth > .store-information { width: calc(100% + 32px); flex-shrink: 0; margin-top: auto; }
.auth-safety { font-size: .875rem; line-height: 1.5; }
.shop-identity { font-size: .875rem; }
@media (max-width: 600px) {
  .footer-inner { padding: 28px 16px 24px; }
  .footer-overview { align-items: flex-start; flex-direction: column; gap: 20px; }
  .store-information nav { gap: 8px 20px; }
  .store-information nav a { padding: 7px 0; }
  .shop-footer.store-information { margin-top: 44px; }
  .policy-main .policy-section { margin: 1.75rem 0; }
  .policy-main .merchant-details { padding: 20px; }
}
