:root,
[data-theme="dark"] {
  /* Dark-only brand tokens (warm charcoal). */
  --bg: #141110;
  --bg-elev: #23201D;
  --bg-sunken: #0F0D0C;
  --ink: #F7F0EA;
  --muted: #A8948C;
  --accent: #FF9A1F;
  /* Brighter crimson so text on --bg-elev stays ≥4.5:1 (quality gate). */
  --accent-strong: #FF6B8A;
  --sale: #FFB347;
  --badge: #FF6B8A;
  --link: #FFC078;
  --accent-pop: #5B9BFF; /* info only */
  --ok: #3AD68A;
  --line: rgba(247, 240, 234, 0.12);
  --header-bg: rgba(20, 17, 16, 0.92);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 36px rgba(0, 0, 0, 0.28);
  --input-bg: #241E1C;
  --thumb-bg: #2A2320;
  --radius: 14px;
}

html {
  font-size: 16px;
  color-scheme: dark;
}

/* Adaptive page gutters (Bootstrap-like xs → xl) — tighter on mobile. */
:root {
  --page-gutter-x: 0.5rem;
  --page-gutter-y: 0.75rem;
  --touch-min: 2.75rem; /* 44px — WCAG / mobile-first touch targets */
}

@media (min-width: 576px) {
  :root {
    --page-gutter-x: 0.75rem;
    --page-gutter-y: 0.9rem;
  }
}

@media (min-width: 768px) {
  :root {
    --page-gutter-x: 1rem;
    --page-gutter-y: 1.1rem;
  }
}

@media (min-width: 992px) {
  :root {
    --page-gutter-x: 1.25rem;
    --page-gutter-y: 1.25rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --page-gutter-x: 1.5rem;
    --page-gutter-y: 1.35rem;
  }
}

.site-header .container,
.site-main-inner.container,
.site-footer .container {
  padding-left: var(--page-gutter-x) !important;
  padding-right: var(--page-gutter-x) !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: var(--page-gutter-x);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus:not(:focus-visible),
.util-btn:focus:not(:focus-visible),
.filters-search:focus:not(:focus-visible),
.filter-dd-btn:focus:not(:focus-visible),
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
summary:focus:not(:focus-visible) {
  outline: none;
}

.btn:focus-visible,
.util-btn:focus-visible,
.filters-search:focus-visible,
.filter-dd-btn:focus-visible,
.cart-qty-btn:focus-visible,
.sell-photo-action:focus-visible,
.sell-photo-tool-btn:focus-visible,
.game-card-hit:focus-visible,
.game-carousel-btn:focus-visible,
.game-carousel-dot:focus-visible,
.nav-drawer-link:focus-visible,
.admin-sidenav-link:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#main-content:focus {
  outline: none;
}

/* Validation / danger text: Bootstrap default fails AA on cream bg */
.text-danger,
.field-validation-error,
.validation-summary-errors,
.validation-summary-errors li {
  color: var(--accent-strong) !important;
}

.field-validation-valid {
  display: none !important;
}

.field-validation-error:empty {
  display: none !important;
}

.field-validation-error:not(:empty) {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.form-control.is-invalid,
.form-select.is-invalid,
.form-control.input-validation-error,
.form-select.input-validation-error,
textarea.form-control.input-validation-error {
  border-color: var(--accent-strong) !important;
  box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--accent-strong) 22%, transparent);
}

.form-control.input-validation-error:focus,
.form-select.input-validation-error:focus,
.form-control.input-validation-error:focus-visible,
.form-select.input-validation-error:focus-visible {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-strong) 28%, transparent);
}

.form-control:focus-visible,
.form-select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent) 28%, transparent);
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(232, 69, 106, 0.10), transparent 55%),
    radial-gradient(760px 380px at 100% 0%, rgba(255, 154, 31, 0.10), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.5;
}

h1, h2, h3, .navbar-brand {
  font-family: "Space Grotesk", sans-serif;
}

/* Inline links ≠ primary CTA orange (contrast + hierarchy). */
a { color: var(--link); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--link) 75%, var(--ink)); }

.site-header {
  position: sticky;
  top: 0;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.navbar { --bs-navbar-color: var(--ink); }
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink) !important;
  font-weight: 700;
}

.brand-logo {
  height: 76px;
  width: auto;
  aspect-ratio: 1;
  display: block;
  background: transparent;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .brand-logo { height: 60px; }
}

.navbar-toggler {
  border-color: var(--line);
  order: 3;
}

/* Explicit hamburger strokes (Bootstrap dark + invert made bars invisible). */
.navbar-toggler-icon {
  filter: none !important;
  opacity: 1 !important;
  width: 1.35rem;
  height: 1.35rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFFFFF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.site-nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-nav-bar .navbar-brand { order: 0; }

.site-nav-bar .navbar-collapse {
  order: 4;
  flex-basis: 100%;
}

@media (min-width: 992px) {
  .site-nav-bar .navbar-collapse {
    order: 1;
    flex-basis: auto;
    flex-grow: 1;
  }

  .site-nav-bar .nav-primary {
    margin-left: 1.25rem;
  }
}

.nav-primary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0 0.25rem;
}

@media (min-width: 992px) {
  .nav-primary {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
  }
}

.nav-primary .nav-link {
  color: var(--muted) !important;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.55rem 0.85rem !important;
  border: none;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  box-shadow: none;
  border-bottom: 2px solid transparent;
}

.nav-primary .nav-link:hover,
.nav-primary .nav-link.active {
  color: var(--ink) !important;
  border-bottom-color: var(--accent);
}

.nav-utilities {
  order: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.util-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  min-height: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted) !important;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.util-btn svg {
  width: 20px;
  height: 20px;
}

.util-btn:hover,
.util-btn:focus,
.util-btn.show {
  color: var(--ink) !important;
  background: var(--bg-elev);
  border-color: var(--line);
}

.lang-dropdown-toggle::after {
  margin-left: 0.15rem;
}

.lang-dropdown-label {
  letter-spacing: 0.04em;
  font-variant: all-small-caps;
  font-size: 0.9rem;
}

.util-cart {
  position: relative;
  width: 2.5rem;
  padding: 0;
  color: var(--accent-strong) !important;
}

.util-cart:hover {
  background: rgba(211, 29, 68, 0.1);
  border-color: rgba(211, 29, 68, 0.35);
  color: var(--accent-strong) !important;
}

.util-cart-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.25rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--badge);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

.util-cart-badge[hidden] {
  display: none !important;
}

/* Compact +/- cart control — works on mobile cards and desktop detail */
.cart-qty {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.cart-qty-btn {
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: #1a0f0c;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover:not(:disabled) {
  filter: brightness(1.05);
}

.cart-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-qty-minus {
  background: var(--bg-elev);
  color: var(--ink);
}

.cart-qty-count {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.cart-qty-note {
  flex: 1 1 100%;
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
}

.cart-qty--large {
  gap: 0.45rem;
}

.cart-qty--large .cart-qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.35rem;
}

.cart-qty--large .cart-qty-count {
  min-width: 1.5rem;
  font-size: 1.05rem;
}

.cart-qty-variant-hint {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-qty-plus {
  gap: 0.3rem;
}

.cart-qty-plus-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.cart-qty--card {
  flex-wrap: nowrap;
  justify-content: flex-end;
  width: 100%;
  max-width: none;
}

.cart-qty--card:not(.is-active) .cart-qty-plus {
  width: 100%;
  min-width: 0;
  min-height: 2.55rem;
  height: auto;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  justify-content: center;
}

.cart-qty--card:not(.is-active) .cart-qty-plus-icon {
  display: none;
}

.cart-qty--card.is-active {
  gap: 0;
  padding: 0.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
}

.cart-qty--card.is-active .cart-qty-btn {
  width: 2.35rem;
  height: 2.35rem;
  min-height: 2.35rem;
  border: 0;
  background: transparent;
  color: #1a0f0c;
}

.cart-qty--card.is-active .cart-qty-minus {
  background: transparent;
  color: #1a0f0c;
}

.cart-qty--card.is-active .cart-qty-plus-label {
  display: none;
}

.cart-qty-card-link {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0 0.35rem;
  color: #1a0f0c;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.cart-qty-card-link:hover {
  color: #1a0f0c;
  text-decoration: underline;
}

.cart-qty-card-link.is-hidden {
  display: none !important;
}

.cart-qty--sticky {
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: stretch;
  flex-wrap: nowrap;
  gap: 0;
  max-width: none;
  min-height: 2.75rem;
  background: var(--accent);
  border-radius: 999px;
  overflow: hidden;
}

.cart-qty--sticky .cart-qty-btn {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: auto;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1a0f0c;
  font-size: 1.35rem;
}

.cart-qty--sticky .cart-qty-minus {
  background: transparent;
  color: #1a0f0c;
}

.cart-qty--sticky .cart-qty-sticky-label {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border: 0;
  background: transparent;
  color: #1a0f0c;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.cart-qty--sticky .cart-qty-note {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(100% + 0.35rem);
  flex: none;
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
  border: 1px solid var(--line);
}

.game-carousel[data-lightbox] {
  cursor: zoom-in;
}

.game-carousel[data-lightbox] .game-carousel-btn,
.game-carousel[data-lightbox] .game-carousel-dot {
  cursor: pointer;
}

.photo-lightbox {
  padding: 0;
  border: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  background: rgba(0, 0, 0, 0.94);
  color: #fff;
}

.photo-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.94);
}

.photo-lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: 3.25rem 0.75rem 1rem;
}

.photo-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 4.25rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.photo-lightbox-close {
  position: absolute;
  top: max(0.65rem, env(safe-area-inset-top, 0px));
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  z-index: 2;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox-nav--prev {
  left: max(0.5rem, env(safe-area-inset-left, 0px));
}

.photo-lightbox-nav--next {
  right: max(0.5rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 768px) {
  .game-card--market .cart-qty-btn {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.05rem;
  }
}

.util-account-label {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-dropdown-menu {
  --bs-dropdown-bg: var(--bg-elev);
  --bs-dropdown-color: var(--ink);
  --bs-dropdown-border-color: var(--line);
  --bs-dropdown-link-color: var(--ink);
  --bs-dropdown-link-hover-bg: rgba(255, 140, 0, 0.12);
  --bs-dropdown-link-hover-color: var(--ink);
  --bs-dropdown-link-active-bg: var(--accent);
  --bs-dropdown-link-active-color: #1A0F0C;
  min-width: 12rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
}

.lang-dropdown-menu .dropdown-item {
  border-radius: 8px;
  font-size: 0.9rem;
}

.site-main {
  flex: 1 0 auto;
  overflow-x: clip;
}

.site-main-inner {
  padding-top: var(--page-gutter-y);
  padding-bottom: calc(var(--page-gutter-y) + 0.35rem);
}

.site-main h1 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 0.4rem;
}

.site-main .lead {
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

/* Wider content on desktop only — mobile keeps full-bleed container + small gutters. */
@media (min-width: 992px) {
  .site-header .container,
  .site-main-inner.container,
  .site-footer .container {
    max-width: 1200px;
  }
}

@media (min-width: 1200px) {
  .site-header .container,
  .site-main-inner.container,
  .site-footer .container {
    max-width: 1400px;
  }
}

@media (min-width: 1400px) {
  .site-header .container,
  .site-main-inner.container,
  .site-footer .container {
    max-width: 1600px;
  }
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--header-bg);
}

.site-footer .footer-newsletter {
  margin-bottom: 0.45rem !important;
}

.site-footer .mb-2 {
  margin-bottom: 0.35rem !important;
}

.footer-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
}

.footer-trust-item {
  margin: 0;
  min-width: 0;
}

.footer-trust-label {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-trust-text {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.5rem;
  margin: 0 0 1.15rem;
}

.footer-brand-name {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-brand-blurb {
  margin: 0 0 0.75rem;
  max-width: 28rem;
  line-height: 1.45;
  color: var(--muted);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--bg-elev);
  color: var(--ink);
  text-decoration: none;
}

.footer-social-link:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  color: var(--accent);
}

.footer-col-title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-link-list a {
  color: var(--muted);
  text-decoration: none;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.footer-link-list a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-signup-lead {
  margin: 0 0 0.65rem;
  line-height: 1.4;
  color: var(--muted);
}

.footer-bottom {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.footer-bottom-meta {
  display: grid;
  gap: 0.25rem;
}

.footer-ship {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.footer-pay {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-pay li {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.footer-legal a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  padding: 0.5rem 0 1rem;
}

.legal-doc-head {
  margin-bottom: 1.25rem;
}

.legal-doc-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  line-height: 1.2;
}

.legal-doc-section {
  margin: 0 0 1.15rem;
}

.legal-doc-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.legal-doc-section p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  line-height: 1.55;
}

.legal-doc-list {
  margin: 0.35rem 0 0.55rem;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.5;
}

.legal-doc-list li + li {
  margin-top: 0.35rem;
}

@media (min-width: 768px) {
  .footer-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }

  .footer-trust-item + .footer-trust-item {
    border-left: 1px solid var(--line);
    padding-left: 1.1rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1.2fr) auto auto;
    align-items: center;
    column-gap: 1rem;
  }

  .footer-link-list a {
    min-height: 0;
    padding: 0.15rem 0;
  }

  .footer-legal a {
    min-height: 0;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent-strong);
  margin-bottom: 0.4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
}

.hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); line-height: 1.12; }
.hero .lead { color: var(--muted); max-width: 42rem; }
.hero-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Home — retail storefront pattern
   Keep hero inside the main container (same gutters as pillars/featured).
   Avoid 100vw breakout — it overflows and glues content to the screen edges. */
.home-hero {
  position: relative;
  width: auto;
  margin: 0 0 1.25rem;
  padding: clamp(1.35rem, 3.5vw, 2.35rem)
    max(1rem, var(--page-gutter-x))
    clamp(1.15rem, 3vw, 1.85rem);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 16%, var(--bg)) 0%, var(--bg) 48%, color-mix(in srgb, var(--accent-strong) 10%, var(--bg)) 100%);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}

.home-hero-inner {
  max-width: 40rem;
  margin: 0;
}

@media (min-width: 768px) {
  .home-hero {
    padding-top: clamp(1.6rem, 3vw, 2.75rem);
    padding-bottom: clamp(1.35rem, 2.5vw, 2.15rem);
  }

  .home-hero-inner {
    max-width: 44rem;
  }
}

.home-hero-title {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 16ch;
  color: var(--ink);
}

.home-hero-lead {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.1vw, 1.12rem);
  line-height: 1.45;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .home-hero-lead {
    margin-top: 0.9rem;
  }
}

.home-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  width: 100%;
}

.home-pillars--pair {
  max-width: none;
}

.home-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 2.75rem;
  padding: 0.7rem 0.5rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.home-pillar:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  color: var(--ink);
  transform: translateY(-1px);
}

.home-pillar-label {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

/* Mobile: titles only — keep the fold short */
.home-pillar-text {
  display: none;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
}

@media (min-width: 768px) {
  .home-pillars {
    gap: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .home-pillars--pair {
    max-width: none;
  }

  .home-pillar {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
    padding: 1.1rem 1.15rem;
    text-align: left;
    border-radius: var(--radius);
  }

  .home-pillar-label {
    font-size: 1.15rem;
  }

  .home-pillar-text {
    display: block;
  }
}

.home-faq,
.home-reviews {
  margin: 1.75rem 0 0;
  padding-top: 0.25rem;
}

.home-faq .section-title,
.home-reviews .section-title {
  margin-bottom: 0.85rem;
}

.home-faq-list {
  display: grid;
  gap: 0.45rem;
  max-width: 40rem;
}

.home-faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  padding: 0;
}

.home-faq-item summary {
  list-style: none;
  cursor: pointer;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.home-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.home-faq-item[open] summary::after {
  content: "–";
}

.home-faq-item p {
  margin: 0;
  padding: 0 0.9rem 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-reviews-lead {
  margin: -0.25rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.home-reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.home-review {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
}

.home-review blockquote {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink);
}

.home-review figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

@media (min-width: 768px) {
  .home-faq,
  .home-reviews {
    margin-top: 2.25rem;
  }

  .home-faq-list {
    max-width: none;
  }

  .home-reviews-lead {
    max-width: none;
  }

  .home-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: none;
  }
}

.home-watch-hint {
  margin: 1.75rem 0 0.35rem;
  text-align: center;
  font-size: 0.9rem;
}

.home-watch-hint a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home-watch-hint a:hover {
  color: var(--ink);
}

.featured-all-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--link);
  text-decoration: none;
  white-space: nowrap;
}

.featured-all-link:hover {
  color: color-mix(in srgb, var(--link) 75%, var(--ink));
  text-decoration: underline;
}

.featured-section .game-grid--market {
  margin-bottom: 0.5rem;
}


.hero-card, .panel-form, .wizard, .thanks {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.thanks {
  max-width: 28rem;
  margin-inline: auto;
}

.thanks h1 {
  margin: 0.15rem 0 0.75rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.thanks-total {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.thanks-meta {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.thanks-address {
  margin: 0 0 0.75rem;
  padding: 0;
  white-space: pre-wrap;
  font-family: inherit;
}

.thanks-tip {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border-radius: 0 0.4rem 0.4rem 0;
}

.thanks-items-title {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.thanks-items {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.thanks-items li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
}

.thanks-items li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.thanks-cta {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  justify-content: center;
  align-items: center;
}

.hero-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }

.btn {
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1A0F0C;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 78%, #fff);
  border-color: color-mix(in srgb, var(--accent) 78%, #fff);
  color: #1A0F0C;
}

/* Primary CTAs stay accent even though anchors use --link */
a.btn-primary,
a.btn-primary:hover {
  color: #1A0F0C;
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.section-title { margin: 1.1rem 0 0.7rem; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.75rem;
}

/* Marketplace / Vinted-style dense catalog */
.game-grid--market {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 576px) {
  .game-grid--market {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (min-width: 768px) {
  .game-grid--market {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .game-grid--market {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 1200px) {
  .game-grid--market {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.store-filters {
  flex-direction: column;
  align-items: stretch;
  max-width: none;
}

.store-filters .filters-search,
.store-filters .filter-dd {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
}

@media (min-width: 768px) {
  .store-filters .filters-search {
    flex: 1 1 14rem;
    min-width: 12rem;
    width: auto;
  }

  /* Don’t shrink below label width — was crushing “Todos los géneros” */
  .store-filters .filter-dd {
    flex: 0 0 auto;
    width: max-content;
    min-width: 13.5rem;
    max-width: 100%;
  }
}

.game-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.game-card--market {
  border-radius: 10px;
  box-shadow: none;
}

.game-card--market .game-carousel--card {
  aspect-ratio: 3 / 4;
}

.game-card--market .game-carousel-btn,
.game-card--market .game-carousel-dots {
  display: none;
}

.game-card--market .game-card-body {
  padding: 0.45rem 0.5rem 0.55rem;
  gap: 0.15rem;
}

.game-card--market .game-card-body .price {
  order: -1;
  font-size: 0.95rem;
  margin: 0;
  gap: 0.25rem 0.35rem;
}

.game-card--market .game-card-body h3 {
  font-size: 0.82rem;
  font-weight: 600;
  -webkit-line-clamp: 2;
  min-height: 2.05em;
}

.game-card--market .game-card-body .meta {
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-cond-badges {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.game-cond-badges--compact {
  gap: 0.22rem;
  margin-top: 0.1rem;
}

.game-cond-badge {
  display: inline-block;
  margin: 0;
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
  background: color-mix(in srgb, var(--line) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-cond-badge--completeness {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: color-mix(in srgb, var(--accent) 70%, var(--text));
}

.game-cond-badge--new {
  background: color-mix(in srgb, #1a7f4b 14%, transparent);
  border-color: color-mix(in srgb, #1a7f4b 40%, var(--line));
  color: color-mix(in srgb, #1a7f4b 75%, var(--text));
}

.game-cond-badge--used {
  color: var(--muted);
  font-weight: 500;
}

.game-cond-badge--grade {
  font-weight: 500;
  color: var(--muted);
}

.game-cond-badges--compact .game-cond-badge {
  font-size: 0.62rem;
  padding: 0.08rem 0.32rem;
  max-width: 9.5rem;
}

.detail-info .game-cond-badges {
  margin: 0.35rem 0 0.65rem;
}

.detail-info .game-cond-badge {
  font-size: 0.75rem;
  padding: 0.18rem 0.5rem;
}

@media (max-width: 575.98px) {
  .game-cond-badges--compact .game-cond-badge {
    max-width: 7.5rem;
  }
}

.game-card--market .card-actions {
  padding-top: 0.25rem;
  display: flex;
  justify-content: stretch;
  width: 100%;
}

.game-card--market .card-actions .cart-qty {
  width: 100%;
}

.game-card--market .game-carousel-placeholder {
  padding: 0.4rem;
}

.game-card--market .game-carousel-placeholder-title {
  -webkit-line-clamp: 3;
  font-size: clamp(0.7rem, 2.8vw, 0.9rem);
}

.game-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.game-card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* Keep carousel controls above the card hit-link without breaking their absolute layout */
.game-card .game-carousel-btn,
.game-card .game-carousel-dots {
  z-index: 3;
}

.game-card .card-actions {
  position: relative;
  z-index: 2;
}

.game-card-body {
  padding: 0.55rem 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.game-card-body .meta {
  font-size: 0.75rem;
  margin-bottom: 0;
}

.game-card-body h3 {
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.game-card-body .price {
  font-size: 0.92rem;
  margin: 0.15rem 0 0;
}

.game-card-body .card-actions {
  margin-top: auto;
  padding-top: 0.35rem;
}

.game-card-body .btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.game-carousel {
  position: relative;
  width: 100%;
  background: var(--thumb-bg);
  overflow: hidden;
}

.game-carousel--card {
  aspect-ratio: 3 / 4;
}

.game-carousel--detail {
  aspect-ratio: 400 / 520;
  border-radius: var(--radius);
}

.game-carousel.is-empty {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-carousel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0.55rem 0.65rem;
  box-sizing: border-box;
  background:
    linear-gradient(160deg, rgba(255, 140, 0, 0.14), transparent 55%),
    var(--thumb-bg);
}

.game-carousel-placeholder-platform {
  display: inline-block;
  max-width: 100%;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-carousel-placeholder-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-align: center;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  line-height: 1.2;
  color: var(--ink);
  word-break: break-word;
}

.game-carousel-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.game-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.game-carousel-slide.is-active {
  opacity: 1;
  /* Keep absolute so the slide fills the aspect-ratio frame (relative broke object-fit cover). */
  pointer-events: auto;
}

.game-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.game-carousel-btn:hover {
  background: var(--bg-elev);
}

.game-carousel-btn--prev { left: 0.4rem; }
.game-carousel-btn--next { right: 0.4rem; }

.game-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  z-index: 2;
}

.game-carousel-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: color-mix(in srgb, #fff 45%, transparent);
  cursor: pointer;
}

.game-carousel-dot.is-active {
  background: var(--accent);
}
.meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.25rem; }
.price {
  font-weight: 700;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}
.price-was {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9em;
  text-decoration: line-through;
}
.price-now { color: inherit; font-weight: 700; }
.price--drop,
.price--drop .price-now {
  color: var(--sale);
}
.price-stock {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}
.price.large { font-size: 1.6rem; }
.price.large .price-was { font-size: 0.7em; }

.card-actions, .checkout-bar, .hero-actions, .wizard-nav, .page-head, .filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.page-head {
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.85rem;
}

.page-head--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.page-head--stack .filters {
  width: 100%;
  max-width: 52rem;
}

.page-head .lead {
  margin: 0.25rem 0 0;
  max-width: 42rem;
  color: var(--muted);
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  margin: 0 0 1rem;
  max-width: 52rem;
}

.filters-bar > .form-control,
.filters-bar > .form-select,
.filters-bar > input,
.filters-bar > select {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 100%;
}

.filters-bar > .btn {
  flex: 0 0 auto;
}

/* Content media: never stretch the layout */
.site-main img,
.admin-main img,
.game-card-admin img,
.sell-photo-card-preview img,
.sell-search-cover img {
  max-width: 100%;
  height: auto;
}

.filters-search {
  flex: 1 1 16rem;
  min-width: 12rem;
  padding: 0.55rem 0.9rem;
}

select.filters-platform,
select.filters-genre,
select.filters-completeness,
select.filters-sort {
  flex: 0 1 auto;
  min-width: 13.5rem;
  width: max-content;
  max-width: 100%;
  padding: 0.55rem 2.25rem 0.55rem 0.9rem;
}

.filters input, .filters select, .filters .filter-dd-btn, .form-control, .form-select {
  background: var(--bg-sunken);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.filters input::placeholder,
.filters select::placeholder,
.form-control::placeholder,
.form-select::placeholder {
  color: var(--muted);
  opacity: 1;
}

.form-text,
.text-muted {
  color: var(--muted) !important;
}

.form-control:focus,
.form-select:focus {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent) 22%, transparent);
}

.form-select option {
  background: var(--bg-elev);
  color: var(--ink);
}

.filter-dd {
  position: relative;
}

.filter-dd-btn {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  line-height: 1.25;
}

.filter-dd-btn [data-filter-dd-label] {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-dd-btn::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
  flex-shrink: 0;
  margin-top: -0.2rem;
}

.filter-dd.is-open .filter-dd-btn::after {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}

.filter-dd-menu {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  max-height: min(40vh, 14rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.filter-dd-menu [role="option"] {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
}

.filter-dd-menu [role="option"]:hover,
.filter-dd-menu [role="option"]:focus-visible,
.filter-dd-menu [role="option"].is-active {
  background: rgba(255, 140, 0, 0.12);
  outline: none;
}

.filter-dd-menu [role="option"][aria-selected="true"] {
  background: color-mix(in srgb, var(--accent) 22%, var(--bg-elev));
  font-weight: 600;
}

.filter-dd-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none;
}

.game-card[hidden] {
  display: none !important;
}

.featured-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.featured-head .section-title {
  margin: 0;
}

.featured-rotator-nav {
  display: flex;
  gap: 0.4rem;
}

.featured-rotator-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.featured-rotator-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.featured-rotator {
  margin-bottom: 0.5rem;
}

.featured-rotator-viewport {
  overflow: hidden;
  width: 100%;
}

.featured-rotator-track {
  display: flex;
  gap: 1.1rem;
  will-change: transform;
  transition: transform 0.95s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.featured-rotator-track.is-jumping {
  transition: none;
}

.featured-rotator-track .game-card {
  flex: 0 0 auto;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .featured-rotator-track {
    transition-duration: 0.01ms;
  }
}

.detail {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 1.5rem;
  align-items: start;
}
.checkout-bar { justify-content: space-between; margin-top: 1rem; }
.panel-form { max-width: 640px; }

/* Appointment date/time picker (replaces native datetime-local popover) */
.appt-when {
  position: relative;
  min-width: 0;
}

.appt-when-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  text-align: left;
  cursor: pointer;
}

.appt-when-trigger-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appt-when-trigger-caret {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.appt-when-panel {
  margin-top: 0.5rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  z-index: 6;
}

.appt-when-fields {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  min-width: 0;
}

.appt-when-fields label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.appt-when-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.appt-when-actions .btn {
  flex: 1 1 auto;
  min-height: 2.75rem;
}

@media (min-width: 576px) {
  .appt-when-fields {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: end;
  }

  .appt-when-actions {
    justify-content: flex-end;
  }

  .appt-when-actions .btn {
    flex: 0 0 auto;
    min-width: 7rem;
  }
}

@media (min-width: 768px) {
  .appt-when.is-open .appt-when-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 0.15rem);
  }
}

.checkout-fulfillment {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0;
}

.checkout-fulfillment legend {
  float: none;
  width: auto;
  margin-bottom: 0.65rem;
  padding: 0;
  font-size: 0.95rem;
}

.checkout-fulfillment-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0.35rem;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.checkout-fulfillment-option:first-of-type {
  border-top: none;
  padding-top: 0.15rem;
}

.checkout-fulfillment-option input {
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.checkout-ship-fields {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: color-mix(in srgb, var(--bg) 45%, var(--bg-elev));
}

.checkout-ship-fields[hidden] {
  display: none !important;
}

.auth-panel {
  max-width: 440px;
  margin: 0 auto;
}

.auth-panel--wide {
  max-width: 520px;
}

/* Store Avísame watch-notify modal — mobile-first, brand tokens */
body.watch-notify-modal-open {
  overflow: hidden;
}

.watch-notify-modal[hidden] {
  display: none !important;
}

.watch-notify-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.watch-notify-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
}

.watch-notify-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg-sunken);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 40px color-mix(in srgb, var(--ink) 18%, transparent);
}

.watch-notify-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  min-height: 2.75rem;
}

.watch-notify-game {
  margin: 0;
  font-weight: 700;
  color: var(--accent);
  word-break: break-word;
}

.watch-notify-submit {
  min-height: 2.75rem;
}

.game-card-media {
  position: relative;
  overflow: hidden;
}

.game-card--market .game-card-media .game-carousel,
.game-card--market .game-card-media .game-carousel--card {
  width: 100%;
  height: auto;
}

.game-card--market .game-card-media .game-carousel-slide,
.game-card--market .game-card-media .media-img.game-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.game-card--oos {
  opacity: 1;
}

.game-card--oos .price-now {
  color: var(--muted, var(--ink));
}

.game-card-oos-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3;
  display: inline-block;
  margin: 0;
  padding: 0.32rem 0.55rem;
  border-radius: 0.35rem;
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  color: #fff;
  background: #111;
  box-shadow: 0 2px 10px color-mix(in srgb, #000 35%, transparent);
  pointer-events: none;
  white-space: nowrap;
}

.game-card-watch {
  width: 100%;
  min-height: 2.75rem;
  justify-content: center;
  font-size: 0.85rem;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}

.game-card--market .card-actions:has(.game-card-watch) {
  justify-content: stretch;
}

@media (min-width: 576px) {
  .watch-notify-modal {
    align-items: center;
    padding: 1rem;
  }

  .watch-notify-modal-dialog {
    width: min(100%, 420px);
    border-radius: 14px;
    margin: 0;
    padding: 1.15rem 1.1rem 1.25rem;
    box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 22%, transparent);
  }
}

/* Phone SMS verify modal — mobile-first, brand tokens */
body.phone-verify-modal-open {
  overflow: hidden;
}

.phone-verify-modal[hidden] {
  display: none !important;
}

.phone-verify-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.phone-verify-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
}

.phone-verify-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 40px color-mix(in srgb, var(--ink) 18%, transparent);
}

.phone-verify-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  min-height: 2.75rem;
}

.phone-verify-digits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}

.phone-verify-digit {
  min-width: 0;
  min-height: 2.75rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--bg);
}

.phone-verify-digit:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent) 28%, transparent);
}

@media (min-width: 576px) {
  .phone-verify-modal {
    align-items: center;
    padding: 1rem;
  }

  .phone-verify-modal-dialog {
    width: min(100%, 420px);
    border-radius: 14px;
    margin: 0;
    padding: 1.15rem 1.1rem 1.25rem;
    box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 22%, transparent);
  }

  .phone-verify-digits {
    gap: 0.55rem;
  }
}

.auth-lead {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.auth-footer {
  color: var(--muted);
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.wizard-steps li {
  padding: 0.55rem 0.4rem;
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--bg-elev);
}

.wizard-steps li.is-active {
  color: #1A0F0C;
  background: var(--accent);
  border-color: var(--accent);
}

.wizard-nav { margin-top: 1rem; justify-content: flex-end; }
.empty { color: var(--muted); }

.empty-panel,
.store-empty,
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  min-height: 12rem;
  margin: 1.5rem 0 2rem;
  padding: 2rem 1rem;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.store-empty {
  min-height: 14rem;
  padding: 2rem 1.25rem;
}

.store-empty[hidden],
.empty-panel[hidden] {
  display: none !important;
}

.empty-panel-title,
.store-empty-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--ink);
  max-width: 100%;
}

.empty-panel-lead,
.store-empty-lead {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.45;
}

.empty-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 22rem;
}

.empty-panel-actions .btn {
  flex: 1 1 auto;
}

.empty-panel--inline {
  min-height: 0;
  margin: 0.75rem 0 0;
  padding: 1rem 0.75rem;
  align-items: stretch;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elev));
}

.empty-panel--inline .empty-panel-actions {
  justify-content: flex-start;
  max-width: none;
}

.empty-state {
  color: var(--muted);
  margin: 1.25rem 0;
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-sunken) 70%, transparent);
}
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); }

.watch-upc-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  max-width: 18rem;
}

.watch-search-form {
  max-width: 36rem;
}

.watch-search-results {
  margin-top: 1.25rem;
}

.watch-match-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.watch-match-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.watch-match-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 12rem;
}

.watch-match-title {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.watch-match-title:hover {
  text-decoration: underline;
}

.watch-create-cta {
  margin-top: 1.25rem;
}

.watch-mine-tabs {
  flex-wrap: wrap;
}

.watch-mine-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.watch-mine-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.watch-mine-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
}

.watch-mine-cancel .btn {
  width: 100%;
  min-height: 2.75rem;
}

@media (min-width: 768px) {
  .watch-search-form {
    display: grid;
    grid-template-columns: 1fr 12rem auto;
    gap: 0.75rem;
    align-items: end;
    max-width: none;
  }

  .watch-search-form .form-row {
    margin: 0;
  }

  .watch-search-form .btn {
    align-self: end;
  }
}

.watch-upc-form .form-control {
  flex: 1 1 8rem;
  min-width: 0;
}

.page-intro { margin-bottom: 1.25rem; }
.page-intro .lead { color: var(--muted); max-width: 42rem; }

.stack-form {
  display: grid;
  gap: 0.85rem;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.stack-form .form-row {
  display: grid;
  gap: 0.35rem;
}

.stack-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.list-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.barcode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.barcode-row .form-control {
  flex: 1 1 180px;
}

.barcode-reader {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0b0b;
}

.barcode-reader video {
  width: 100% !important;
  max-height: min(58vh, 420px);
  object-fit: cover;
}

body.barcode-modal-open {
  overflow: hidden;
}

.barcode-modal[hidden] {
  display: none !important;
}

.barcode-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.barcode-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.72);
}

.barcode-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  padding: 0.85rem;
}

.barcode-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.alert-success {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
  color: var(--ink);
}

.alert-danger {
  background: color-mix(in srgb, var(--accent-strong) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent-strong) 40%, transparent);
  color: var(--ink);
}

.alert-info {
  background: color-mix(in srgb, var(--accent-pop) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent-pop) 40%, transparent);
  color: var(--ink);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.footer-newsletter-label {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.footer-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
}

.footer-newsletter-form > input[type="hidden"] {
  display: none;
}

.footer-newsletter-form .form-control {
  flex: 1 1 12rem;
  min-width: 10rem;
  max-width: 18rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  /* Keep single-line height even if the form becomes a column (flex-basis is main-axis). */
  height: 2.5rem;
  min-height: 2.5rem;
  max-height: 2.5rem;
  box-sizing: border-box;
}

.footer-copy {
  flex: 0 1 auto;
}

@media (max-width: 800px) {
  .hero, .detail { grid-template-columns: 1fr; }
  .wizard-steps { grid-template-columns: 1fr 1fr; }
}

/* ---- Sell wizard ---- */
.sell-wizard {
  animation: sellWizardIn 0.35s ease both;
}

@keyframes sellWizardIn {
  from { opacity: 0; transform: translateX(1.25rem); }
  to { opacity: 1; transform: translateX(0); }
}

.sell-wizard-progress {
  position: sticky;
  /* Sit just under the sticky site header (~logo + nav padding). */
  top: 4.75rem;
  z-index: 15;
  margin: -0.35rem 0 0.85rem;
  padding: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 767.98px) {
  .sell-wizard-progress { top: 4rem; }
}

.sell-wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 18rem;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
}

.sell-wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.sell-wizard-step-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
}

.sell-wizard-step-link:hover .sell-wizard-step-num {
  border-color: var(--accent);
}

.sell-wizard-step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  font-size: 0.8rem;
}

.sell-wizard-step.is-current {
  color: var(--ink);
}

.sell-wizard-step.is-current .sell-wizard-step-num {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, var(--bg-elev));
  color: var(--ink);
}

.sell-wizard-step.is-done .sell-wizard-step-num {
  border-color: var(--ok);
  background: color-mix(in srgb, var(--ok) 25%, var(--bg-elev));
}

.sell-wizard-lot-link {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}
.sell-wizard-lot-total {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ok);
  white-space: nowrap;
}
.sell-wizard-lot-total-inline {
  font-weight: 700;
}
.sell-wizard .price { color: var(--ok); }

.sell-wizard-notice-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.sell-wizard-notice-list strong { color: var(--ink); }

.sell-wizard-actions {
  margin-top: 0.85rem;
  align-items: center;
}

.sell-quote-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 auto 1rem;
  max-width: 56rem;
  width: 100%;
}

.sell-quote-card {
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  min-width: 0;
}

/* 2-2-1: last odd card centered under the pair */
.sell-quote-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 0.45rem);
  width: 100%;
  justify-self: center;
}

.sell-quote-head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.sell-quote-condition-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.sell-quote-choose-label {
  margin-bottom: 0.55rem;
}

.sell-payout-actions {
  display: grid;
  gap: 0.55rem;
}

.sell-payout-form {
  margin: 0;
}

.sell-payout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.05rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-elev));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sell-payout-btn:hover,
.sell-payout-btn:focus {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 28%, var(--bg-elev));
  color: var(--ink);
}

.sell-payout-btn-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.sell-payout-btn-amount {
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

@media (max-width: 720px) {
  .sell-quote-list {
    grid-template-columns: 1fr;
  }

  .sell-quote-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
}

.sell-wizard-next-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sell-photo-game-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.sell-photo-game-step {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
}

.sell-photo-game-step.is-current {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.sell-photo-game-step.is-done {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
}

.sell-photo-game-step.is-done a,
.sell-photo-game-step.is-todo a {
  color: var(--ink);
  font-weight: 600;
}

.sell-photo-game-step.is-done a:hover {
  color: var(--ok);
}

.sell-photo-game-step.is-todo a:hover {
  color: var(--accent);
}

.sell-photo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.sell-photo-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  scroll-margin-top: 8.5rem;
}

.sell-photo-card.is-filled {
  border-left: 3px solid color-mix(in srgb, var(--ok) 55%, transparent);
}

.sell-photo-card-preview {
  width: 5.5rem;
  height: 5.5rem;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 70%, var(--bg-elev));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.sell-photo-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sell-photo-card-placeholder {
  font-size: 1.5rem;
  color: var(--muted);
  font-weight: 600;
}

.sell-photo-card-body {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.sell-photo-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.sell-photo-card-head .sell-status-badge {
  flex-shrink: 0;
}

.sell-photo-progress-meta {
  margin: 0.35rem 0 0;
  font-weight: 600;
  color: var(--ink);
}

.sell-photo-sticky-actions {
  position: sticky;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 12;
  padding: 0.65rem 0.75rem;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  margin-top: 1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.sell-photo-sticky-actions.is-ready {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
}

.sell-submit-blocked {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.sell-submit-blocked-reason {
  margin: 0;
  max-width: 22rem;
}

.sell-submit-blocked-reason a {
  margin-left: 0.35rem;
  font-weight: 600;
}

.sell-search-hit-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 12rem;
}

.sell-search-cover {
  width: 3.25rem;
  height: 4.1rem;
  aspect-ratio: 325 / 410;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 65%, var(--bg-elev));
  display: grid;
  place-items: center;
}

.sell-search-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sell-search-cover-fallback {
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  padding: 0.25rem;
  color: var(--muted);
  line-height: 1.15;
}

.sell-thanks-card {
  max-width: 36rem;
  margin: 0.5rem auto 1.5rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}

.sell-thanks-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--ok);
}

.sell-thanks-request {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.35rem 0 0.75rem;
  color: var(--ink);
}

.sell-lots-sort-select {
  max-width: 14rem;
  width: 100%;
}

.sell-photo-table-wrap {
  margin: 1rem 0 0.5rem;
  overflow-x: auto;
}

@media (max-width: 767.98px) {
  .sell-photo-card {
    grid-template-columns: 4.5rem 1fr;
    scroll-margin-top: 10.5rem;
  }

  .sell-photo-card-preview {
    width: 4.5rem;
    height: 4.5rem;
  }

  .sell-photo-cards {
    grid-template-columns: 1fr;
  }
}

.sell-photo-table tbody tr[id^="photo-"] {
  /* Clear sticky header + compact wizard progress when landing on #photo-… */
  scroll-margin-top: 8.5rem;
}

@media (max-width: 767.98px) {
  .sell-photo-table tbody tr[id^="photo-"] { scroll-margin-top: 10.5rem; }
}

.sell-photo-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sell-photo-table th,
.sell-photo-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.sell-photo-table thead th {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 55%, var(--bg-elev));
  text-transform: none;
}

.sell-photo-table tbody tr:last-child td {
  border-bottom: 0;
}

.sell-photo-table tr.is-empty td:first-child {
  border-left: 3px solid transparent;
}

.sell-photo-table tr.is-filled td:first-child {
  border-left: 3px solid color-mix(in srgb, var(--ok) 55%, transparent);
}

.sell-photo-desc {
  margin: 0.25rem 0 0;
  max-width: 42rem;
}

.sell-photo-col-actions {
  width: 14.5rem;
  text-align: right;
}

.sell-photo-actions {
  grid-column: 1 / -1;
  display: inline-grid;
  grid-template-columns: repeat(5, 2.35rem);
  gap: 0.35rem;
  justify-content: start;
  align-items: center;
}

.sell-photo-actions:not(:has([data-photo-view])) {
  /* Empty slot: only camera + gallery */
  grid-template-columns: repeat(2, 2.35rem);
}

.sell-photo-action-form {
  display: contents;
  margin: 0;
}

.sell-photo-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  /* Match global compact control padding rhythm (table cells use 0.55 / 0.75). */
  padding: 0.55rem;
  box-sizing: border-box;
}

@media (max-width: 800px) {
  .sell-photo-col-actions {
    width: auto;
    min-width: 0;
  }
  .sell-photo-table th,
  .sell-photo-table td {
    padding: 0.65rem 0.75rem;
  }
  .sell-photo-actions {
    grid-template-columns: repeat(auto-fill, 2.55rem);
    gap: 0.4rem;
    justify-content: start;
    width: 100%;
  }
  .sell-photo-actions:not(:has([data-photo-view])) {
    grid-template-columns: repeat(2, 2.55rem);
  }
  .sell-photo-action {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.55rem;
  }
}

.sell-photo-action:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
}

.sell-photo-action.is-primary {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
}

.sell-photo-review {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

.sell-photo-review.is-rejected {
  color: var(--danger, #c0392b);
}

.sell-photo-review.is-approved {
  color: var(--ok);
}

.sell-photo-upload {
  display: inline;
}

.sell-photo-modal {
  border: 0;
  padding: 0;
  width: min(92vw, 40rem);
  max-width: 40rem;
  background: transparent;
  color: var(--ink);
}

.sell-photo-modal::backdrop {
  background: color-mix(in srgb, #000 55%, transparent);
}

.sell-photo-modal-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 1rem;
  box-shadow: 0 18px 48px color-mix(in srgb, #000 28%, transparent);
}

.sell-photo-modal-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0.65rem;
}

.sell-photo-stage {
  width: 100%;
  height: min(48vh, 22rem);
  display: flex;
  justify-content: center;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 70%, var(--bg-elev));
  border-radius: 12px;
  padding: 0.55rem;
  overflow: hidden;
  box-sizing: border-box;
}

.sell-photo-camera-stage {
  background: #000;
  min-height: 14rem;
}

.sell-photo-camera-stage video {
  display: block;
  width: 100%;
  max-height: min(70vh, 28rem);
  object-fit: contain;
  margin: 0 auto;
}

.sell-photo-stage img,
.sell-photo-stage canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: var(--thumb-bg);
}

.sell-photo-modal-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.sell-photo-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.sell-photo-tool-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
}

.admin-photo-table .sell-photo-thumb {
  width: 4.5rem;
  height: 4.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--thumb-bg);
  display: block;
}

.admin-photo-review-form {
  display: grid;
  gap: 0.45rem;
  min-width: 14rem;
}

.admin-photo-review-form .review-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.9rem;
}

/* ---- Admin sell Details review console ---- */
.admin-sell-sticky {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  gap: 0.65rem;
  padding: 0.65rem 0 0.75rem;
  margin: 0 0 0.85rem;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.admin-sell-sticky-main {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.admin-sell-sticky-id {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.admin-sell-back {
  text-decoration: none;
}

.admin-sell-sticky-title {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.2;
}

.admin-sell-sticky-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  font-size: 0.92rem;
}

.admin-sell-sticky-contact a {
  color: var(--link, var(--accent));
  word-break: break-word;
}

.admin-sell-sticky-total {
  font-weight: 700;
  color: var(--ink);
}

.admin-sell-checklist a {
  color: var(--link, var(--accent));
  text-decoration: none;
}

.admin-sell-status-form {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.admin-sell-status-form > label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted, var(--ink));
}

.admin-sell-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-sell-status-row .form-select {
  flex: 1 1 9rem;
  min-width: 0;
  max-width: 16rem;
}

.admin-sell-status-row .btn {
  flex: 0 0 auto;
}

.admin-sell-logistics {
  margin-bottom: 1rem;
  padding: 0;
  overflow: hidden;
}

.admin-sell-logistics-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.admin-sell-logistics-summary::-webkit-details-marker {
  display: none;
}

.admin-sell-logistics-summary::before {
  content: "▸";
  margin-right: 0.35rem;
  color: var(--muted, var(--ink));
  font-weight: 400;
}

.admin-sell-logistics[open] > .admin-sell-logistics-summary::before {
  content: "▾";
}

.admin-sell-logistics-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.admin-sell-ship .order-ship-address {
  white-space: pre-wrap;
  margin: 0;
  font-family: inherit;
  font-size: 0.95rem;
}

.admin-sell-item {
  margin-top: 1.25rem;
  scroll-margin-top: 6.5rem;
}

.admin-sell-item-head {
  margin-bottom: 0.85rem;
}

.admin-sell-item-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.admin-sell-decision-bar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-sunken, var(--bg));
}

.admin-sell-inline-form {
  display: grid;
  gap: 0.3rem;
}

.admin-sell-inline-form > label,
.admin-sell-photo-review-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-sell-inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-sell-inline-row .form-control,
.admin-sell-inline-row .form-select {
  flex: 1 1 8rem;
  min-width: 0;
  max-width: 14rem;
}

.admin-sell-convert .btn {
  width: 100%;
  min-height: 2.5rem;
}

.admin-sell-item-notes {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.admin-sell-photo-cards {
  display: grid;
  gap: 0.75rem;
}

.admin-sell-photo-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-sunken, var(--bg));
}

.admin-sell-photo-card-top {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}

.admin-sell-photo-card .admin-photo-review-form {
  min-width: 0;
}

.admin-sell-photo-card .admin-photo-review-form .btn {
  width: 100%;
  min-height: 2.75rem;
}

.admin-sell-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
}

@media (min-width: 768px) {
  .admin-sell-sticky {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
    align-items: end;
    gap: 0.65rem 1.25rem;
  }

  .admin-sell-decision-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .admin-sell-convert {
    grid-column: 1 / -1;
    max-width: 16rem;
  }

  .admin-sell-filter-chips {
    width: auto;
  }
}

@media (max-width: 767.98px) {
  .admin-sell-sticky {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .admin-sell-status-row .btn {
    flex: 1 1 100%;
    min-height: 2.75rem;
  }

  .admin-sell-inline-row .btn {
    flex: 1 1 auto;
    min-height: 2.75rem;
  }

  .admin-sell-item {
    scroll-margin-top: 9rem;
  }
}

.sell-delivery-options {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.sell-delivery-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  cursor: pointer;
}

.sell-delivery-option span {
  display: grid;
  gap: 0.2rem;
}

.sell-delivery-option input {
  margin-top: 0.2rem;
}

@media (max-width: 720px) {
  .sell-wizard-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0.65rem;
  }

  .sell-wizard-step-label {
    font-size: 0.68rem;
  }
}

.sell-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.sell-status-badge.is-draft {
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 12%, var(--bg-elev));
}

.sell-status-badge.is-submitted {
  color: var(--accent-pop);
  border-color: color-mix(in srgb, var(--accent-pop) 35%, var(--line));
  background: color-mix(in srgb, var(--accent-pop) 14%, var(--bg-elev));
}

.sell-status-badge.is-review {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-elev));
}

.sell-status-badge.is-approved {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
  background: color-mix(in srgb, var(--ok) 16%, var(--bg-elev));
}

.sell-status-badge.is-denied {
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent-strong) 40%, var(--line));
  background: color-mix(in srgb, var(--accent-strong) 14%, var(--bg-elev));
}

.sell-lots-sort-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.85rem;
}

.sell-lots-mobile {
  display: none;
  gap: 0.75rem;
}

.sell-lot-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  box-shadow: var(--shadow);
}

.sell-lot-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.65rem;
}

.sell-lot-card-code {
  font-size: 1.05rem;
}

.sell-lot-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
  margin: 0 0 0.85rem;
}

.sell-lot-card-meta div {
  min-width: 0;
}

.sell-lot-card-meta dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.sell-lot-card-meta dd {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.sell-lot-card-offer {
  font-weight: 700;
  color: var(--ok);
}

.sell-lot-card-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.sell-lots-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 800px) {
  .page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .page-head .btn {
    width: 100%;
    text-align: center;
  }

  .sell-lots-desktop {
    display: none !important;
  }

  .sell-lots-sort-bar {
    display: flex;
  }

  .sell-lots-mobile {
    display: grid;
  }

  .sell-lot-card-meta {
    grid-template-columns: 1fr;
  }
}

.sell-lots-table th,
.sell-lots-table td {
  padding: 0.75rem 0.95rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.sell-lots-table thead th {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 55%, var(--bg-elev));
  text-transform: none;
}

.sell-lots-sort {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
}

.sell-lots-sort:hover {
  color: var(--accent);
}

.sell-lots-table tbody tr:last-child td {
  border-bottom: 0;
}

.sell-lots-col-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  vertical-align: middle;
}

.sell-lots-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.sell-lots-actions .btn {
  margin: 0;
  white-space: nowrap;
}

.sell-lots-delete-form {
  display: inline;
  margin: 0;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
}

.sell-lot-items-hint {
  margin: 0 0 0.65rem;
}

.sell-lot-items {
  display: grid;
  gap: 0.55rem;
}

.sell-lot-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sell-lot-item-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.25rem;
}

.sell-lot-item-summary::-webkit-details-marker {
  display: none;
}

.sell-lot-item-summary::after {
  content: "▸";
  position: absolute;
  right: 0.95rem;
  top: 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.sell-lot-item {
  position: relative;
}

.sell-lot-item[open] > .sell-lot-item-summary::after {
  content: "▾";
}

.sell-lot-item-summary:hover {
  background: color-mix(in srgb, var(--bg) 40%, var(--bg-elev));
}

.sell-lot-item-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  padding-right: 1.5rem;
}

.sell-lot-item-sub {
  margin: 0;
  padding-right: 1.5rem;
}

.sell-lot-item-body {
  padding: 0 0.95rem 0.95rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.sell-lot-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.55rem;
  margin-top: 0;
}

@media (max-width: 800px) {
  .sell-lot-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .sell-lot-photo-card figcaption {
    padding: 0.3rem 0.35rem;
    font-size: 0.7rem;
  }

  .page-head .hero-actions {
    width: 100%;
  }

  .page-head .hero-actions .btn,
  .page-head .hero-actions form {
    width: 100%;
  }

  .page-head .hero-actions .btn {
    text-align: center;
  }
}

.sell-lot-photo-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}

.sell-lot-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--thumb-bg);
}

.sell-lot-photo-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.78rem;
}

.sell-lot-photo-note {
  margin: 0;
  padding: 0 0.5rem 0.45rem;
  color: var(--accent-strong);
}

/* ---- UX package: cart, checkout, intro, sticky filters ---- */

.home-hero .hero-actions {
  margin-top: 1rem;
}

.featured-week-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.store-lead {
  max-width: 36rem;
}

.store-filters {
  position: sticky;
  /* Clear sticky header: logo 76px + .site-nav-bar py 0.5rem×2 ≈ 5.75rem */
  top: 5.75rem;
  z-index: 20;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0.55rem 0 0.65rem;
  /* Opaque — translucent sticky bar read as a black strip over cards while scrolling */
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 18px color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: none;
}

@media (max-width: 767.98px) {
  /* logo 60px + nav padding ≈ 4.75rem */
  .store-filters { top: 4.75rem; }
}

.game-carousel--cart {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
}

.cart-empty .empty {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--ink);
}

.cart-suggestions {
  margin-top: 1.25rem;
}

.game-grid--suggest {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .game-grid--suggest {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  grid-template-areas:
    "media info"
    "actions actions";
  gap: 0.75rem 0.85rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.cart-line-media {
  grid-area: media;
  width: 4.5rem;
  min-width: 0;
}

.cart-line-info {
  grid-area: info;
  min-width: 0;
}

.cart-line-title {
  display: block;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  word-break: break-word;
}

.cart-line-title:hover {
  color: var(--accent);
}

.cart-line-info .meta {
  margin: 0.2rem 0 0;
}

.cart-line-price {
  margin: 0.4rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.cart-line-unit {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cart-line-qty {
  grid-area: actions;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
  width: 100%;
}

.cart-line-qty .cart-qty {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.35rem;
  max-width: none;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}

.cart-line-qty .cart-qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
}

.cart-line-qty .cart-qty-count {
  min-width: 1.5rem;
  font-size: 1rem;
}

.cart-line-remove {
  margin: 0 0 0 auto;
  flex: 0 0 auto;
}

.cart-line-remove .btn {
  min-height: 2.5rem;
  padding-inline: 0.9rem;
}

.cart-line-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  .cart-line {
    grid-template-columns: 5rem minmax(0, 1fr) auto auto;
    grid-template-areas: "media info qty total";
    align-items: center;
  }

  .cart-line-qty {
    grid-area: qty;
    width: auto;
    justify-content: flex-end;
  }

  .cart-line-total {
    grid-area: total;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
  }
}

.checkout-pay-methods {
  border: 0;
  margin: 0;
  padding: 0;
}

.checkout-pay-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  cursor: pointer;
  min-height: 2.75rem;
}

.checkout-pay-option input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.checkout-pay-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.checkout-pay-option:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-pay-panel {
  margin: -0.25rem 0 0.85rem;
  padding: 0.85rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-sunken);
}

.checkout-ath-phone {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.checkout-ath-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 0.5rem;
  max-width: 100%;
}

.trust-strip {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0 1.1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip-item {
  margin: 0;
  min-width: 0;
}

.trust-strip-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.trust-strip-text {
  display: block;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
}

.trust-strip--compact {
  margin-top: 0;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }
}

.checkout-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.checkout-layout--stacked {
  grid-template-columns: minmax(0, 1fr);
  max-width: 40rem;
}

.checkout-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 1rem;
}

.checkout-summary--footer {
  margin: 1.25rem 0 1rem;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.checkout-submit-desktop {
  min-height: 2.75rem;
  width: 100%;
  justify-content: center;
}

.checkout-sticky-continue {
  width: 100%;
  min-height: 2.75rem;
}

.checkout-summary-list {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-summary-list li,
.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.checkout-summary-thumb {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 0.35rem;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--line);
}

.checkout-summary-thumb--empty {
  display: inline-block;
}

.checkout-summary-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.checkout-summary-title {
  color: var(--ink);
  min-width: 0;
}

.checkout-summary-price {
  color: var(--muted);
  white-space: nowrap;
}

.checkout-summary-total {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.service-intro {
  max-width: 40rem;
}

.service-intro-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--ink);
}

.service-intro-list li {
  margin: 0.4rem 0;
}

.related-section {
  margin-top: 2rem;
}

.detail-cart-ctas {
  margin-top: 1rem;
}

.auth-shell .footer-bar,
.admin-shell .footer-bar {
  justify-content: flex-end;
}

.admin-list-filters {
  margin-bottom: 1rem;
}

.admin-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Off-screen rows/cards: skip layout/paint until near viewport (paged lists). */
.table-panel tbody tr,
.table-scroll tbody tr,
.admin-mobile-cards .admin-mobile-card,
.sell-lots-table tbody tr,
.sell-lots-mobile .sell-lot-card,
.game-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 3.5rem;
}

.game-card {
  contain-intrinsic-size: auto 18rem;
}

.admin-mobile-card,
.sell-lot-card {
  contain-intrinsic-size: auto 8rem;
}

/* ---- Full UX package ---- */

.home-hero-brand {
  margin: 0 0 0.55rem;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.home-hero-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.game-carousel-placeholder--art-only {
  /* Keep console chip centered so it does not collide with top-left OOS badge. */
  justify-content: center;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.game-card--market .game-carousel-placeholder-title {
  display: none;
}

/* Platform already shows under the title — skip the cover chip. */
.game-card--market .game-carousel-placeholder-platform {
  display: none;
}

.sell-wizard-notice {
  color: var(--ink);
}

.sell-wizard-notice-list {
  color: var(--ink);
}

.checkout-pay-note {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-elev));
  color: var(--ink);
}

.store-filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
}

.store-filters-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  width: 100%;
}

.store-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  width: 100%;
  min-width: 0;
}

.store-filters-row .filters-search {
  flex: 1 1 12rem;
  min-width: 0;
  width: 100%;
}

.store-result-count {
  margin: 0;
  align-self: flex-end;
  max-width: 100%;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--muted);
}

.store-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.4rem;
  margin: 1.25rem 0 0.5rem;
}

.store-pager-side {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.store-pager-side--start {
  justify-content: flex-end;
}

.store-pager-side--end {
  justify-content: flex-start;
}

.store-pager .btn,
.store-pager .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
  height: 2.5rem;
  min-height: 2.5rem;
  padding-block: 0;
  padding-inline: 0.85rem;
  vertical-align: middle;
}

.store-pager-edge {
  width: 2.5rem;
  min-width: 2.5rem;
  padding-inline: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.store-pager-status {
  margin: 0;
  padding: 0 0.15rem;
  text-align: center;
  white-space: nowrap;
}

.store-filters-extras {
  display: none;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 0;
}

.store-filters-extras.is-open {
  display: flex;
}

@media (min-width: 768px) {
  /* Full-width toolbar aligned with game grid: search grows, 4 selects equal, count end */
  .store-filters-toolbar {
    display: grid;
    grid-template-columns: minmax(16rem, 2.2fr) repeat(4, minmax(0, 1fr)) auto;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }

  .store-filters-row {
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .store-filters-row .filters-search {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .store-filters-extras,
  .store-filters-extras.is-open {
    display: contents;
  }

  .store-filters-extras .store-filters-sheet-head {
    display: none;
  }

  .store-filters-extras .filters-platform,
  .store-filters-extras .filters-genre,
  .store-filters-extras .filters-completeness,
  .store-filters-extras .filters-sort {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .store-result-count {
    justify-self: end;
    align-self: center;
  }
}

.service-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.service-aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.service-aside-list {
  margin: 0.65rem 0 0.85rem;
  padding-left: 1.1rem;
  color: var(--ink);
}

.service-aside-list li {
  margin: 0.35rem 0;
}

@media (min-width: 768px) {
  .service-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.85fr);
  }

  .service-form.panel-form,
  .service-form.stack-form {
    max-width: none;
    margin: 0;
  }
}

.admin-layout {
  display: block;
}

/* overflow-x: clip on body breaks position:sticky — allow it in admin. */
body.admin-shell {
  overflow-x: visible;
}

.admin-sidenav {
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev) 88%, var(--bg));
  min-height: 0;
  position: sticky;
  /* Match sticky .site-header: 76px logo + .site-nav-bar py 0.5rem×2 + border. */
  top: calc(76px + 1rem + 2px);
  max-height: calc(100dvh - (76px + 1rem + 2px));
  overflow-x: hidden;
  overflow-y: auto;
  align-self: start;
  width: 13.5rem;
  flex-shrink: 0;
  z-index: 20;
}

.admin-sidenav-link {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.admin-sidenav-link.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-left: 3px solid var(--accent);
  padding-left: calc(0.7rem - 2px);
}

.admin-sidenav-link:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

@media (min-width: 992px) {
  .admin-shell .admin-layout {
    display: flex;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
  }

  .admin-shell .admin-main {
    flex: 1;
    min-width: 0;
  }

  .admin-shell .admin-main .site-main-inner {
    max-width: none;
  }
}

.status-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  white-space: nowrap;
}

.status-chip--pending {
  color: #8a5a00;
  border-color: color-mix(in srgb, #f0a500 45%, var(--line));
  background: color-mix(in srgb, #f0a500 18%, var(--bg-elev));
}

.status-chip--paid {
  color: #0b5c3a;
  border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
  background: color-mix(in srgb, var(--ok) 18%, var(--bg-elev));
}

.status-chip--done {
  color: #1d4f91;
  border-color: color-mix(in srgb, var(--accent-pop) 40%, var(--line));
  background: color-mix(in srgb, var(--accent-pop) 16%, var(--bg-elev));
}

.status-chip--cancelled {
  color: #8a2035;
  border-color: color-mix(in srgb, var(--accent-strong) 40%, var(--line));
  background: color-mix(in srgb, var(--accent-strong) 14%, var(--bg-elev));
}

.status-chip--muted {
  color: var(--muted);
}

[data-theme="dark"] .status-chip--pending {
  color: #ffd27a;
}

[data-theme="dark"] .status-chip--paid {
  color: #7dffb5;
}

[data-theme="dark"] .status-chip--done {
  color: #9bbcff;
}

[data-theme="dark"] .status-chip--cancelled {
  color: #ff8fa3;
}

.game-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 3.5rem;
  border-radius: 6px;
  object-fit: cover;
  background: var(--thumb-bg);
  border: 1px solid var(--line);
  vertical-align: middle;
}

.game-thumb-empty {
  padding: 0.2rem;
  overflow: hidden;
}

.game-thumb-platform {
  display: block;
  max-width: 100%;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Mobile Full UX package ---- */

.nav-utilities-desktop {
  align-items: center;
  gap: 0.35rem;
}

.nav-drawer-backdrop,
.store-filters-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.55);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(20rem, 88vw);
  height: 100%;
  height: 100dvh;
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--bg-elev);
  z-index: 1;
}

.nav-drawer-head .util-btn {
  font-size: 1.5rem;
  line-height: 1;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.nav-drawer-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  gap: 0;
}

.nav-drawer-scroll {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.35rem 0.65rem 0.85rem;
  gap: 0.1rem;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer-prefs {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 0.45rem 0.65rem 0.85rem;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-drawer-label {
  margin: 0.75rem 0.55rem 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-drawer-label--first {
  margin-top: 0.35rem;
}

.nav-drawer-sep {
  height: 1px;
  margin: 0.45rem 0.55rem;
  background: var(--line);
  border: 0;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-drawer-link:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.nav-drawer-link.is-active {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-left-color: var(--accent);
  color: var(--ink);
}

.nav-drawer-link--muted {
  color: color-mix(in srgb, var(--muted) 85%, var(--ink));
  font-weight: 500;
}

.nav-drawer-link--staff {
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .nav-drawer-link:hover {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--ink);
  }

  .admin-sidenav-link:hover {
    color: var(--ink);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

.nav-drawer-form { margin: 0; }
.nav-drawer-btn { cursor: pointer; font: inherit; }

.nav-drawer-langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0.2rem 0.35rem 0;
}

.nav-drawer-lang-form {
  min-width: 0;
}

.nav-drawer-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-drawer-lang-btn:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.nav-drawer-lang-btn.is-current {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

@media (hover: hover) and (pointer: fine) {
  .nav-drawer-lang-btn:hover:not(.is-current) {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
  }
}

html.nav-drawer-open,
html.store-filters-open {
  overflow: hidden;
}

@media (min-width: 992px) {
  .nav-drawer,
  .nav-drawer-backdrop { display: none !important; }
}

@media (max-width: 639.98px) {
  select.filters-platform,
  select.filters-genre,
  select.filters-completeness,
  select.filters-sort {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .admin-list-filters .form-control,
  .admin-list-filters .form-select {
    flex: 1 1 100%;
    min-width: 0;
  }

  .page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .page-head > .btn,
  .page-head .btn-primary {
    width: 100%;
    min-height: 2.75rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-height: 2.75rem;
  }

  .detail {
    grid-template-columns: 1fr;
  }

  .game-carousel--detail {
    max-width: 100%;
    width: 100%;
  }

  .status-chip {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .table-scroll,
  .table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 767.98px) {
  /* Centered portrait thumb so the full case reads and more copy fits above the fold. */
  .game-carousel--detail {
    width: min(48vw, 11.25rem);
    max-width: 11.25rem;
    margin-inline: auto;
    aspect-ratio: 3 / 4;
    height: auto;
    max-height: none;
    background: #0a0a0a;
  }

  .game-carousel--detail .game-carousel-track {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .game-carousel--detail .game-carousel-slide {
    object-fit: contain;
    object-position: center;
  }

  .detail-sticky-bar,
  .checkout-sticky-bar,
  .checkout-bar--sticky {
    position: sticky;
    bottom: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    margin-top: 1rem;
    background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }

  .detail-sticky-bar {
    flex-wrap: wrap;
    margin-left: calc(-1 * var(--page-gutter-x));
    margin-right: calc(-1 * var(--page-gutter-x));
    padding-left: var(--page-gutter-x);
    padding-right: var(--page-gutter-x);
  }

  .detail-sticky-price {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
  }

  .detail-sticky-bar .cart-qty--sticky {
    width: 100%;
  }

  .detail-sticky-checkout {
    margin-left: 0;
    min-height: 2.75rem;
    flex: 1 1 auto;
  }

  .detail-sticky-checkout .btn {
    width: 100%;
  }

  /* Cart total bar: same horizontal inset as .cart-line (no full-bleed). */
  .checkout-bar--sticky {
    justify-content: space-between;
    margin-left: 0;
    margin-right: 0;
    padding: 0.85rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .checkout-sticky-bar {
    justify-content: stretch;
    margin-left: 0;
    margin-right: 0;
    padding: 0.85rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .checkout-sticky-bar .btn,
  .checkout-bar--sticky .btn {
    min-height: 2.75rem;
    flex: 1 1 auto;
  }

  .store-filters-extras {
    position: fixed;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    z-index: 45;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: min(22rem, calc(100vw - 2rem));
    max-height: min(80dvh, 32rem);
    margin: 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    /* visible so custom dropdown menus are not clipped */
    overflow: visible;
    transform: translate(-50%, -50%);
  }

  .store-filters-extras.is-open {
    display: grid;
  }

  .store-filters-extras .filter-dd {
    width: 100%;
    min-width: 0;
  }

  .store-filters-extras .filter-dd-btn {
    width: 100%;
    min-height: 2.75rem;
    padding-right: 1.1rem;
  }

  .store-filters-extras .filter-dd-menu {
    z-index: 55;
    max-height: min(55vh, 20rem);
  }

  /* Lower selects open upward so the list stays on screen */
  .store-filters-extras .filter-dd:nth-last-of-type(-n + 2) .filter-dd-menu {
    top: auto;
    bottom: calc(100% + 0.25rem);
  }

  .store-filters-extras select,
  .store-filters-extras .filters-platform,
  .store-filters-extras .filters-genre,
  .store-filters-extras .filters-completeness,
  .store-filters-extras .filters-sort {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 2.75rem;
  }

  .store-filters-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
  }

  .store-filters-sheet-head .btn {
    flex-shrink: 0;
    min-height: 2.5rem;
  }

  .cart-qty-btn,
  .cart-line-remove .btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .site-footer {
    padding: 0.95rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.4rem;
    row-gap: 0.3rem;
    width: 100%;
  }

  .footer-newsletter-form .form-control {
    grid-column: 1;
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 2.5rem;
    min-height: 2.5rem;
    max-height: 2.5rem;
    padding: 0.35rem 0.7rem;
    font-size: 1rem; /* avoid iOS focus zoom */
  }

  .footer-newsletter-form .btn,
  .footer-newsletter-form .btn-sm {
    grid-column: 2;
    width: auto;
    min-width: 0;
    min-height: 2.5rem;
    height: 2.5rem;
    max-height: 2.5rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .footer-copy {
    font-size: 0.75rem;
  }

  .sell-wizard-step.is-current .sell-wizard-step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #1A0F0C;
  }

  .sell-wizard-step-label {
    display: none;
  }

  .sell-wizard-step.is-current .sell-wizard-step-label {
    display: block;
    max-width: 7.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
    font-weight: 700;
  }

  .sell-wizard .btn-primary,
  .sell-wizard-actions .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #1A0F0C;
    min-height: 2.75rem;
  }
}

.service-howto {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.service-howto summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}

.admin-mobile-cards {
  display: grid;
  gap: 0.75rem;
}

.admin-mobile-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.admin-mobile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.game-cards {
  display: grid;
  gap: 0.75rem;
}

.game-card-admin {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.game-card-admin img {
  width: 4.5rem;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  object-fit: cover;
}

.game-card-admin-body {
  min-width: 0;
}

.game-card-admin:not(:has(> img)) {
  grid-template-columns: minmax(0, 1fr);
}

.game-card-admin h2 {
  font-size: 1.05rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.game-card-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.game-card-admin-actions .btn {
  min-height: 2.75rem;
  padding-inline: 1rem;
}

.cart-qty-btn:focus-visible,
.sell-photo-action:focus-visible,
.sell-photo-tool-btn:focus-visible,
.game-card-hit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- ConfleiFeedback: toasts, confirm, busy ---- */
.conflei-toasts {
  position: fixed;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(100% - 1.25rem, 24rem);
  max-width: 100%;
  pointer-events: none;
  inset: auto 0.625rem 0.85rem 0.625rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .conflei-toasts {
    inset: 5.5rem 1.25rem auto auto;
    margin-inline: 0;
    width: min(24rem, calc(100vw - 2.5rem));
  }
}

.conflei-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  transform: translateY(0.55rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.conflei-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.conflei-toast.is-leaving {
  opacity: 0;
  transform: translateY(0.35rem);
}

.conflei-toast-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  min-width: 0;
  color: var(--ink);
}

.conflei-toast-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: -0.45rem -0.35rem -0.45rem 0;
  border-radius: 0.5rem;
  cursor: pointer;
}

.conflei-toast-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Tint from --bg-elev (not a missing --surface → #fff) so dark mode keeps ink contrast. */
.conflei-toast--success {
  border-color: color-mix(in srgb, var(--ok) 50%, transparent);
  background: color-mix(in srgb, var(--ok) 22%, var(--bg-elev));
  color: var(--ink);
}

.conflei-toast--error {
  border-color: color-mix(in srgb, var(--accent-strong) 50%, transparent);
  background: color-mix(in srgb, var(--accent-strong) 18%, var(--bg-elev));
  color: var(--ink);
}

.conflei-toast--warning {
  border-color: color-mix(in srgb, #c47b16 50%, transparent);
  background: color-mix(in srgb, #c47b16 18%, var(--bg-elev));
  color: var(--ink);
}

.conflei-toast--info {
  border-color: color-mix(in srgb, var(--accent-pop) 50%, transparent);
  background: color-mix(in srgb, var(--accent-pop) 18%, var(--bg-elev));
  color: var(--ink);
}

[data-theme="dark"] .conflei-toast--success {
  background: color-mix(in srgb, var(--ok) 16%, var(--bg-elev));
}

[data-theme="dark"] .conflei-toast--error {
  background: color-mix(in srgb, var(--accent-strong) 14%, var(--bg-elev));
}

[data-theme="dark"] .conflei-toast--warning {
  background: color-mix(in srgb, #c47b16 14%, var(--bg-elev));
}

[data-theme="dark"] .conflei-toast--info {
  background: color-mix(in srgb, var(--accent-pop) 14%, var(--bg-elev));
}

.conflei-confirm {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: grid;
  place-items: end center;
  padding: 0.75rem;
}

@media (min-width: 576px) {
  .conflei-confirm {
    place-items: center;
    padding: 1.25rem;
  }
}

.conflei-confirm[hidden] {
  display: none !important;
}

.conflei-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #000 48%, transparent);
}

.conflei-confirm-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  max-height: min(90vh, 32rem);
  overflow: auto;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 1rem 1rem 0.65rem 0.65rem;
  /* Use --bg-elev (not missing --surface → #fff) so dark mode keeps ink contrast. */
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px color-mix(in srgb, #000 28%, transparent);
}

@media (min-width: 576px) {
  .conflei-confirm-panel {
    border-radius: 1rem;
  }
}

.conflei-confirm-title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.conflei-confirm-message {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.4;
}

.conflei-confirm-panel .form-label {
  color: var(--ink);
}

.conflei-confirm-panel .meta {
  color: var(--muted);
}

.conflei-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.conflei-confirm-actions .btn {
  min-height: 2.75rem;
  min-width: 6.5rem;
}

.conflei-confirm-panel.is-danger .conflei-confirm-title {
  color: color-mix(in srgb, var(--accent-strong) 80%, var(--ink));
}

html.conflei-confirm-open {
  overflow: hidden;
}

form.is-busy,
.btn.is-busy,
button.is-busy,
[data-cart-qty].is-busy {
  cursor: progress;
}

.btn.is-busy,
button.is-busy,
form.is-busy [type="submit"],
form.is-busy button[type="submit"] {
  position: relative;
  opacity: 0.78;
}

.btn.is-busy::after,
button.is-busy::after,
form.is-busy [type="submit"].is-busy::after {
  content: "";
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.45rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.12rem;
  animation: conflei-spin 0.7s linear infinite;
}

@keyframes conflei-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .conflei-toast,
  .btn.is-busy::after,
  button.is-busy::after,
  form.is-busy [type="submit"].is-busy::after {
    transition: none;
    animation: none;
  }
}

/* ---- Universal media frames (CLS + fallbacks) ---- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.media-frame--cover {
  aspect-ratio: 400 / 520;
}

.media-frame--square {
  aspect-ratio: 1;
}

.media-frame--thumb {
  aspect-ratio: 1;
  width: auto;
}

.media-frame--logo {
  aspect-ratio: 1;
  width: auto;
  background: transparent;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.media-frame--logo .media-frame-fallback {
  display: none;
}

.media-frame--none {
  aspect-ratio: auto;
  background: transparent;
}

.media-frame .media-img,
.media-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.media-frame--logo .media-img,
.media-img.brand-logo,
.media-img.home-hero-logo {
  object-fit: contain;
  height: auto;
}

.media-frame--thumb .media-img {
  width: 100%;
  height: 100%;
}

.media-frame.is-empty,
.media-frame.is-broken {
  display: grid;
  place-items: center;
}

.media-frame-fallback {
  display: block;
  width: 42%;
  max-width: 4.5rem;
  aspect-ratio: 1;
  border-radius: 0.35rem;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--ink) 12%, transparent),
      color-mix(in srgb, var(--ink) 4%, transparent)
    );
}

.media-img.is-broken {
  opacity: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.game-thumb-frame {
  width: 44px;
  max-width: 44px;
}

.game-card-admin-cover {
  max-width: 7.5rem;
}

.checkout-summary-thumb-frame {
  width: 40px;
  max-width: 40px;
  flex: 0 0 40px;
  border-radius: 0.35rem;
}

.cover-preview-frame {
  max-width: min(100%, 16rem);
}

.brand-logo.media-img,
.media-frame--logo .brand-logo {
  width: 76px;
  height: auto;
}

.home-hero-logo.media-img,
.media-frame--logo .home-hero-logo {
  width: 120px;
  height: auto;
}

/* ---- Mobile-first touch targets (≥44px) + no involuntary horizontal scroll ---- */
@media (max-width: 767.98px) {
  .btn,
  .btn-sm,
  a.btn,
  button.btn,
  .store-filters-toggle,
  .store-pager .btn,
  .conflei-toast-close,
  .conflei-confirm-actions .btn,
  .watch-mine-tabs .btn,
  .detail-sticky-bar .btn,
  .sell-wizard-actions .btn {
    min-height: var(--touch-min);
    min-width: var(--touch-min);
    box-sizing: border-box;
  }

  .btn-sm,
  a.btn-sm,
  button.btn-sm {
    padding-inline: 1rem;
  }

  .store-pager .btn,
  .store-pager .btn-sm,
  .store-pager a.btn-sm {
    height: var(--touch-min);
    min-height: var(--touch-min);
    padding-block: 0;
    padding-inline: 0.75rem;
  }

  .store-pager .store-pager-edge {
    width: var(--touch-min);
    min-width: var(--touch-min);
    padding-inline: 0;
  }

  .cart-qty-btn,
  .cart-qty--large .cart-qty-btn {
    width: var(--touch-min);
    height: var(--touch-min);
    font-size: 1.25rem;
  }

  .filters-search,
  .filters-platform,
  .filters-genre,
  .filters-completeness,
  .filters-sort,
  .form-control,
  select.form-control,
  input.form-control,
  textarea.form-control {
    min-height: var(--touch-min);
    max-width: 100%;
  }

  /* Newsletter stays compact: do not inherit the global touch min-height. */
  .footer-newsletter-form .form-control,
  .footer-newsletter-form input.form-control {
    min-height: 2.5rem;
    height: 2.5rem;
    max-height: 2.5rem;
  }

  .footer-newsletter-form .btn,
  .footer-newsletter-form .btn-sm {
    min-height: 2.5rem;
    min-width: 0;
    height: 2.5rem;
    max-height: 2.5rem;
  }

  .site-main-inner,
  .page-head,
  .game-grid,
  .cart-lines,
  .cart-line,
  .detail,
  .service-layout,
  .empty-panel,
  .store-empty,
  .cart-empty,
  .filters-bar,
  .checkout-form {
    min-width: 0;
    max-width: 100%;
  }

  .empty-panel-actions {
    max-width: 100%;
  }

  .empty-panel-actions .btn {
    min-width: min(100%, 11rem);
  }
}

.scroll-top-btn {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--accent);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.4rem);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease, background 0.15s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.scroll-top-btn[hidden] {
  display: none !important;
}

.scroll-top-btn:focus:not(:focus-visible) {
  outline: none;
  box-shadow: var(--shadow);
}

@media (hover: hover) and (pointer: fine) {
  .scroll-top-btn:hover {
    background: color-mix(in srgb, var(--accent) 16%, var(--bg-elev));
    color: var(--ink);
  }
}

/* Clear mobile sticky checkout / detail CTAs */
@media (max-width: 767.98px) {
  body:has(.detail-sticky-bar) .scroll-top-btn,
  body:has(.checkout-sticky-bar) .scroll-top-btn {
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }
}

/* ---- Admin area (ported from Internal) ---- */

