/* ============================================================
   Gatherers — TCG Marketplace Styles
   ============================================================ */

:root {
  --bg:         #0d0f14;
  --bg-card:    #13161e;
  --bg-card-2:  #1a1d28;
  --border:     #2a2d3a;
  --border-glow:#3d4060;
  --gold:       #c9a24a;
  --gold-light: #e8c76b;
  --gold-dim:   #7a5e28;
  --text:       #e8e6df;
  --text-muted: #8a8778;
  --text-dim:   #6b6978;   /* was #555360: too faint for footer lines and bios */
  --white:      #ffffff;
  --blue:       #3b82f6;
  --red:        #f6ab37;   /* every negative or remove state: the events Cancel orange (user, 2026-12-02) */
  --green:      #22c55e;
  --radius-sm:  3px;
  --radius:     6px;
  --radius-lg:  8px;
  /* Type: one grotesque in two widths, after acmecups.nz (Helvetica Neue there; Archivo is the free match) */
  --font-body: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display-stretch: 72%;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-card:0 2px 12px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.hidden { display: none !important; }

/* ── Scrollbar — hidden globally ── */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,0.97);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--gold);
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-img--hero {
  height: 160px;
  width: auto;
  display: block;
  margin: 0 auto 24px;
}

.logo-img--footer {
  height: 100px;
  width: auto;
  display: block;
  margin: 0 auto 12px;
}

.logo-text {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

/* ── User nav ── */
.user-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold-light);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 500;
  transition: border-color var(--transition), background var(--transition);
  white-space: nowrap;
}
.user-nav-btn:hover { border-color: var(--gold-dim); background: var(--bg-card-2); }
.user-nav-btn { position: relative; }

.user-nav-signout {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.78rem;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.user-nav-signout:hover { color: var(--text); }

/* ── My Orders modal ── */
.my-order-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}
.my-order-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.my-order-id   { font-size: 0.78rem; color: var(--text-dim); font-family: monospace; }
.my-order-date { font-size: 0.82rem; color: var(--text-dim); margin-left: auto; }

.order-status-pending   { background: rgba(201,162,74,0.15); color: var(--gold-light); }
.order-status-fulfilled { background: rgba(80,200,100,0.15); color: #6dca7e; }
.order-status-cancelled { background: rgba(246, 171, 55,0.12);  color: #f6ab37; }
.my-order-items { margin-bottom: 10px; }
.order-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--text);
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
}
.order-item-row:last-child { border-bottom: none; }
.my-order-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 8px;
}
.my-order-footer strong { color: var(--gold-light); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color var(--transition), background var(--transition);
  white-space: nowrap;
}

.cart-btn:hover {
  border-color: var(--gold-dim);
  background: var(--bg-card);
}

.cart-icon { font-size: 1rem; }


/* ── HERO ── */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(201,162,74,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 680px;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.search-bar {
  position: relative;
  display: flex;
  gap: 8px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 6px 6px 6px 20px;
  max-width: 560px;
  margin: 0 auto 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
}

.search-bar input::placeholder { color: var(--text-dim); }

.search-bar button,
.btn-primary {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.search-bar button:hover,
.btn-primary:hover { background: var(--gold-light); }
.search-bar button:active,
.btn-primary:active { transform: scale(0.98); }

.btn-primary.full-width { width: 100%; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hero-tags span {
  background: rgba(201,162,74,0.08);
  border: 1px solid rgba(201,162,74,0.2);
  color: var(--gold-dim);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.hero-tags span:hover {
  background: rgba(201,162,74,0.15);
  color: var(--gold-light);
  border-color: var(--gold-dim);
}

.hero-tags span.tag-featured {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  font-weight: 600;
}
.hero-tags span.tag-featured:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #111;
}

.hero-cards-display {
  position: relative;
  width: 100%;
  height: 320px;
  pointer-events: none;
  z-index: 1;
  margin-bottom: 24px;
}

.floating-card-wrap {
  position: absolute;
  width: 180px;
  height: 252px;
  perspective: 800px;
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.3s ease;
  transform-origin: bottom center;
  isolation: isolate;
}

.floating-card {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.floating-card-wrap.flipped .floating-card {
  transform: rotateY(180deg);
}

.floating-card-front,
.floating-card-back {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.floating-card-front {
  background-size: cover;
  background-position: center;
}

.floating-card-back {
  transform: rotateY(180deg);
  background-size: cover;
  background-position: center;
}
/* Firefox (2026-12-02): its 3D renderer can't flip the foil cards (one half turn gets dropped: backs drawn backwards, or
   gone with hardware acceleration). Firefox gets no flip animation: a click just shows the back, the next the front.
   Every other browser keeps the original 3D flip above, untouched (user: the smooth one). */
@supports (-moz-appearance: none) {
  .floating-card { transition: none; transform-style: flat; }
  .floating-card-wrap.flipped .floating-card { transform: none; }
  .floating-card-back { display: none; transform: none; }
  .floating-card-wrap.flipped .floating-card-front { display: none; }
  .floating-card-wrap.flipped .floating-card-back { display: block; }
}

/* Foil shimmer on floating cards */
.floating-card-wrap.foil-card .floating-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 80,  80,  0.22) 15%,
    rgba(255, 200, 50,  0.22) 28%,
    rgba(80,  255, 120, 0.22) 42%,
    rgba(50,  160, 255, 0.22) 57%,
    rgba(180, 80,  255, 0.22) 72%,
    rgba(255, 80,  180, 0.22) 85%,
    transparent 100%
  );
  background-size: 300% 300%;
  animation: foil-shimmer 2.8s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
  mix-blend-mode: screen;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.floating-card-wrap.foil-card.in-view .floating-card::after {
  animation-play-state: running;
}

/* Cold foil on floating home cards */
.floating-card-wrap.cold-foil-card {
  box-shadow: none;
}
/* Persistent blue tint layer */
.floating-card-wrap.cold-foil-card .floating-card-front::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(20, 70, 200, 0.15);
  pointer-events: none;
  backface-visibility: hidden;
}
/* Sweeping blue shine */
.floating-card-wrap.cold-foil-card .floating-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
  background: linear-gradient(
    120deg,
    transparent             0%,
    rgba(20, 80, 200, 0.0)  30%,
    rgba(40,110,230, 0.40)  45%,
    rgba(60,140,255, 0.55)  50%,
    rgba(40,110,230, 0.40)  55%,
    rgba(20, 80, 200, 0.0)  70%,
    transparent             100%
  );
  background-size: 300% 100%;
  animation: cf-sweep 4.8s ease-in-out infinite;
  animation-play-state: paused;
  pointer-events: none;
  mix-blend-mode: screen;
  backface-visibility: hidden;
}
.floating-card-wrap.cold-foil-card.in-view .floating-card::before {
  animation-play-state: running;
}

/* ── RESULTS SECTION ── */
.results-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.results-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.results-search-bar {
  position: relative;
  display: flex;
  gap: 8px;
}

.results-search-bar input {
  flex: 1;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}

.results-search-bar button {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.results-search-bar button:hover { background: var(--gold-light); }

/* Autocomplete dropdown */
.ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  text-align: left;
  right: 0;
  background: var(--bg-card-2);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  max-height: 280px;
  overflow-y: auto;
}
.ac-dropdown.hidden { display: none; }
.ac-dropdown li {
  padding: 9px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background var(--transition), color var(--transition);
}
.ac-dropdown li:hover,
.ac-dropdown li.ac-active {
  background: var(--bg-hover);
  color: var(--gold-light);
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#resultsCount {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.sort-filter select {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.results-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── FILTERS ── */
.filters-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 88px;
}

.filters-panel h3 {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.color-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-btn {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
}

.color-btn.active {
  border-color: var(--gold-dim);
  background: rgba(201,162,74,0.12);
  color: var(--gold-light);
}

.color-btn.white.active { color: var(--text); }

.color-btn.mana-btn {
  padding: 3px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.color-btn.mana-btn img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: block;
}
.color-btn.mana-btn.active {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 2px var(--gold-dim);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}

#priceFilterVal {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.filter-group select {
  width: 100%;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 18px;
}

.loading-state,
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── CARD ITEM ── */
.card-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card-item:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}

.card-img-wrap {
  aspect-ratio: 5/7;
  background: var(--bg-card-2);
  overflow: hidden;
  border-radius: 12px;
  position: relative; /* needed for stock-badge positioning */
  isolation: isolate; /* contain mix-blend-mode to card only, prevents full-page repaint */
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.card-item:hover .card-img-wrap img { transform: scale(1.03); }

/* Foil shimmer overlay */
.card-img-wrap.foil::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 80,  80,  0.18) 15%,
    rgba(255, 200, 50,  0.18) 28%,
    rgba(80,  255, 120, 0.18) 42%,
    rgba(50,  160, 255, 0.18) 57%,
    rgba(180, 80,  255, 0.18) 72%,
    rgba(255, 80,  180, 0.18) 85%,
    transparent 100%
  );
  background-size: 300% 300%;
  animation: foil-shimmer 4.2s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
  mix-blend-mode: screen;
}
.card-img-wrap.foil.in-view::after {
  animation-play-state: running;
}

/* Prevent the page from scrolling when any modal is open */
body.modal-open {
  overflow: hidden;
}

/* An open modal covers the page with the site background at 90% (--pop-backdrop below), so the
   page still shows faintly behind it (user, 2026-11-27; it was hidden completely before).
   The page's animations pause meanwhile, to keep the GPU work down. */
body.modal-open > :not(.modal-overlay),
body.modal-open > :not(.modal-overlay) *,
body.modal-open > :not(.modal-overlay) *::before,
body.modal-open > :not(.modal-overlay) *::after {
  animation-play-state: paused !important;
}

/* Pause CSS animations when the user is scrolling (no modal open) */
body.anim-paused *,
body.anim-paused *::before,
body.anim-paused *::after {
  animation-play-state: paused;
}
body.anim-paused .modal-overlay *,
body.anim-paused .modal-overlay *::before,
body.anim-paused .modal-overlay *::after {
  animation-play-state: running;
}

@keyframes foil-shimmer {
  0%   { background-position: 0%   0%;   }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0%   0%;   }
}

/* ── FAB Rainbow Foil ── */
.card-img-wrap.foil-rainbow,
.meta-deck-img-wrap.foil-rainbow {
  border-radius: 12px;
}
.card-img-wrap.foil-rainbow::after,
.meta-deck-img-wrap.foil-rainbow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    transparent       0%,
    rgba(255,50,50,   0.22) 10%,
    rgba(255,160,0,   0.22) 22%,
    rgba(255,255,50,  0.22) 34%,
    rgba(50,230,80,   0.22) 46%,
    rgba(50,180,255,  0.22) 58%,
    rgba(120,50,255,  0.22) 70%,
    rgba(255,50,200,  0.22) 82%,
    rgba(255,50,50,   0.22) 92%,
    transparent       100%
  );
  background-size: 400% 400%;
  animation: fab-rainbow-shimmer 3.6s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
  mix-blend-mode: screen;
}
.card-img-wrap.foil-rainbow.in-view::after,
.meta-deck-img-wrap.foil-rainbow.in-view::after {
  animation-play-state: running;
}
/* Animated border hue rotation */
.card-item:has(.foil-rainbow) {
  border-color: var(--border);
  animation: none;
}
@keyframes rf-border {
  0%   { box-shadow: 0 0 0 1.5px hsl(0deg   90% 65%), 0 4px 18px rgba(0,0,0,0.4); }
  17%  { box-shadow: 0 0 0 1.5px hsl(60deg  90% 65%), 0 4px 18px rgba(0,0,0,0.4); }
  34%  { box-shadow: 0 0 0 1.5px hsl(120deg 90% 65%), 0 4px 18px rgba(0,0,0,0.4); }
  50%  { box-shadow: 0 0 0 1.5px hsl(200deg 90% 65%), 0 4px 18px rgba(0,0,0,0.4); }
  67%  { box-shadow: 0 0 0 1.5px hsl(270deg 90% 65%), 0 4px 18px rgba(0,0,0,0.4); }
  84%  { box-shadow: 0 0 0 1.5px hsl(320deg 90% 65%), 0 4px 18px rgba(0,0,0,0.4); }
  100% { box-shadow: 0 0 0 1.5px hsl(0deg   90% 65%), 0 4px 18px rgba(0,0,0,0.4); }
}
@keyframes fab-rainbow-shimmer {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ── FAB Cold Foil ── */
.card-img-wrap.foil-cold::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent             0%,
    rgba(20, 80, 200, 0.0)  30%,
    rgba(40,110,230, 0.35)  45%,
    rgba(60,140,255, 0.50)  50%,
    rgba(40,110,230, 0.35)  55%,
    rgba(20, 80, 200, 0.0)  70%,
    transparent             100%
  );
  background-size: 300% 100%;
  animation: cf-sweep 4.8s ease-in-out infinite;
  animation-play-state: paused;
  pointer-events: none;
  mix-blend-mode: screen;
}
.card-img-wrap.foil-cold.in-view::after {
  animation-play-state: running;
}
/* Blue tint base */
.card-img-wrap.foil-cold img {
  filter: saturate(0.8) hue-rotate(200deg) brightness(1.05);
}
.card-item:has(.foil-cold) {
  border-color: var(--border);
}
@keyframes cf-sweep {
  0%   { background-position: -100% 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { background-position: 200% 0;  opacity: 0; }
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 16px;
  text-align: center;
}

.card-img-placeholder .placeholder-icon { font-size: 2rem; }

.card-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-set {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.card-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
}

.card-price.no-price { color: var(--text-dim); font-size: 0.82rem; }

.add-to-cart-btn {
  background: rgba(201,162,74,0.12);
  border: 1px solid rgba(201,162,74,0.25);
  color: var(--gold);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.add-to-cart-btn:hover {
  background: rgba(201,162,74,0.22);
  border-color: var(--gold-dim);
}

.add-to-cart-btn.disabled,
.add-to-cart-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Stock badge on card image */

/* ── COLORS ── */
.color-pips {
  display: flex;
  gap: 3px;
}

.pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}

.pip-W { background: #f0e8d0; }
.pip-U { background: #4a90d9; }
.pip-B { background: #4a3a5a; }
.pip-R { background: #c94a3a; }
.pip-G { background: #3a8a4a; }
.pip-C { background: #888; }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.page-btn:hover { border-color: var(--gold-dim); color: var(--text); }
.page-btn.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 600; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  overflow: clip;
  position: relative;
}
.modal-inner-scroll {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 1;
}

.modal-close:hover { color: var(--text); border-color: var(--gold-dim); }

.modal-body {
  padding: 32px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}

.modal-img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.modal-card-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: opacity 0.15s;
}
.modal-flip-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(13,15,20,0.75);
  border: 1px solid var(--border-glow);
  color: var(--gold-light);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.modal-flip-btn:hover { background: rgba(201,162,74,0.2); color: var(--gold); }

.modal-card-info { display: flex; flex-direction: column; gap: 16px; }

.modal-card-name {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.modal-card-set { font-size: 0.88rem; color: var(--text-muted); }

.modal-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.price-box {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.price-box-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.price-box-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
}

.price-box-value.dim { color: var(--text-dim); font-size: 0.88rem; }

.modal-oracle {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-add-cart {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.modal-add-cart:hover { background: var(--gold-light); }

.modal-scg-link {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.modal-scg-link:hover { border-color: var(--gold-dim); color: var(--text); }

/* ── CART DRAWER ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 151;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
}

.cart-header button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: color var(--transition);
}

.cart-header button:hover { color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty {
  color: var(--text-dim);
  font-size: 0.88rem;
  text-align: center;
  padding: 40px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.cart-item-img {
  width: 48px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg);
}

.cart-item-info { min-width: 0; }

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--gold-light);
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
  transition: color var(--transition);
  padding: 0;
}

.cart-remove:hover { color: var(--red); }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
}

.cart-item-qty button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 20px;
  height: 20px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.cart-item-qty button:hover { background: var(--border); }

.cart-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.cart-total strong { color: var(--gold-light); }

/* ── CHECKOUT ── */
.checkout-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.checkout-inner { display: flex; flex-direction: column; gap: 28px; }

.checkout-inner h2 {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: 1.8rem;
  color: var(--gold-light);
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0;
  transition: color var(--transition);
  align-self: flex-start;
}

.back-btn:hover { color: var(--text); }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.order-error {
  color: #f6ab37;
  font-size: 0.83rem;
  text-align: center;
  padding: 6px 0;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

legend {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding: 0 8px;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--gold-dim); }

.radio-group { display: flex; flex-direction: column; gap: 10px; }

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.radio-label:has(input:checked) { border-color: var(--gold-dim); }

.radio-label input { margin-top: 2px; accent-color: var(--gold); }

.radio-label span { font-size: 0.9rem; font-weight: 500; }

.radio-label small { display: block; font-size: 0.78rem; color: var(--text-dim); }

/* ── ORDER SUMMARY ── */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-summary h3 {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.order-summary-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.order-summary-item img {
  width: 36px;
  height: 50px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--bg-card-2);
}

.order-summary-item .item-name { color: var(--text); line-height: 1.3; }
.order-summary-item .item-qty { color: var(--text-muted); text-align: center; }
.order-summary-item .item-price { color: var(--gold-light); font-weight: 500; text-align: right; }

.order-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.order-total-row.total {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.price-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── SUCCESS ── */
.success-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 40px 24px;
}

.success-inner {
  text-align: center;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.success-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 4px;
}

.success-inner h2 {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: 2rem;
  color: var(--gold-light);
}

.success-inner p { color: var(--text-muted); line-height: 1.6; }

.success-order-id {
  font-family: monospace;
  font-size: 1.5em;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
}

/* ── ABOUT ── */
.about-section {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.about-inner {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.about-inner h2 {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: 2.2rem;
  color: var(--gold-light);
}

.about-inner > p { color: var(--text-muted); max-width: 600px; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  transition: border-color var(--transition);
}

.about-card:hover { border-color: var(--gold-dim); }

.about-icon { font-size: 1.8rem; }

.about-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.about-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── SELL SECTION ── */

/* ── FIND GAMES ── */
.nav-find-games { color: var(--gold-light) !important; }

.btn-host-tournament {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition);
}
.btn-host-tournament:hover { background: rgba(201,162,74,0.1); border-color: var(--gold); }

.btn-host-game {
  background: var(--gold);
  color: #0d0f14;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.btn-host-game:hover { background: var(--gold-light); }

.games-empty {
  color: var(--text-dim);
  text-align: center;
  padding: 60px 0;
  font-size: 0.95rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Game card */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.game-card:hover { border-color: var(--border-glow); transform: translateY(-2px); }

.game-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 2px solid transparent;
  position: relative;
}
.game-card-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.game-card-meta { flex: 1; min-width: 0; }
.game-card-format {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 2px;
}
.game-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.game-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.game-card-icon { font-size: 0.9em; flex-shrink: 0; }

.game-card-footer {
  padding: 12px 16px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.game-card-rsvp {
  flex: 1;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.game-card-rsvp:hover { background: rgba(201,162,74,0.1); border-color: var(--gold); }
.game-card-rsvp--going {
  background: rgba(34,197,94,0.1);
  border-color: #22c55e;
  color: #22c55e;
}
.game-card-rsvp--going:hover { background: rgba(34,197,94,0.18); }
.game-card-cancel {
  width: 100%;
  background: transparent;
  border: 1px solid #5a4216;
  color: #f6ab37;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.game-card-cancel:hover { background: rgba(246, 171, 55,0.1); border-color: #f6ab37; }

/* Host game modal */
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-title {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.modal-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: -6px;
}
.modal-input {
  width: 100%;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  color-scheme: dark;
}
.modal-input:focus { border-color: var(--gold-dim); }
.modal-input option { background: var(--bg-card); }
.modal-input:-webkit-autofill,
.modal-input:-webkit-autofill:hover,
.modal-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1a1d28 inset;
  -webkit-text-fill-color: #e8e0d0;
  caret-color: #e8e0d0;
}

.modal-error {
  color: #f6ab37;
  font-size: 0.83rem;
  margin-top: -6px;
}
.host-modal-box {
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Tournament modal — compact game picker to match field width */
#tGamePicker { margin-bottom: 0; }

/* Date + time row */
.host-datetime-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
input[type="date"].modal-input,
input[type="time"].modal-input {
  color-scheme: dark;
  accent-color: var(--gold);
}
input[type="date"].modal-input::-webkit-calendar-picker-indicator,
input[type="time"].modal-input::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(57%) sepia(8%) saturate(420%) hue-rotate(14deg) brightness(91%);   /* muted grey, like the card icons (#8a8778) */
  cursor: pointer;
  border-radius: 3px;
  padding: 2px;
}
input[type="date"].modal-input::-webkit-datetime-edit-fields-wrapper {
  color: var(--text);
}
input[type="date"].modal-input::-webkit-datetime-edit-day-field:focus,
input[type="date"].modal-input::-webkit-datetime-edit-month-field:focus,
input[type="date"].modal-input::-webkit-datetime-edit-year-field:focus,
input[type="time"].modal-input::-webkit-datetime-edit-hour-field:focus,
input[type="time"].modal-input::-webkit-datetime-edit-minute-field:focus {
  background: var(--gold-dim);
  color: var(--gold-light);
  border-radius: 2px;
  outline: none;
}

/* Maps URL row */
.host-maps-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.host-maps-input { flex: 1; }
.host-maps-btn {
  white-space: nowrap;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}
.host-maps-btn:hover { border-color: var(--gold-dim); color: var(--gold-light); }

.host-map-preview {
  flex: 1;
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 0;
}
.host-map-preview {
  position: relative;
}
.host-map-preview iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.host-map-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 20, 0.55);
  pointer-events: none;
}

/* Maps link on game card */
.game-card-maps-link {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition);
}
.game-card-maps-link:hover { color: var(--gold); text-decoration: underline; }

/* Attendees row */
.game-card-attendees {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
}

/* ── TOURNAMENTS ── */
/* Landscape tournament host modal */

/* All tournament popups — same 85vw width, scroll via inner wrapper.
   overflow:clip instead of overflow:hidden — same visual clipping but does NOT
   create a scroll container or force a GPU scrolling compositor layer here. */

/* tournamentViewContent must pass flex context through to .tourn-scroll-inner */

/* Inner scroll container — padding here keeps content off rounded edges */

 /* Chrome/Safari */

/* Close button floats above scroll area */

/* Top 4 rank highlight: gold, fading to default */

/* Result badges inside pod player pills */

.round-timer {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.round-timer-warning { color: #c9a24a; }
.round-timer-expired { color: #f6ab37; }

/* Result entry — two pods per row */
.result-pods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .result-pods-grid { grid-template-columns: 1fr; } }

.result-pod-block {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.result-pod-title {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 12px;
}
/* Legacy .result-option kept for progressive selects */
.result-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
}
.result-option input[type=radio],
.result-option input[type=checkbox] { accent-color: var(--gold); flex-shrink: 0; }
.result-option.drop-option { color: #f6ab37; }
.result-option.drop-option input { accent-color: #f6ab37; }

/* Pill-style result buttons (1v1 / knockout) */
.result-outcome-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.rbtn-icon { font-style: normal; font-weight: 700; font-size: 0.9rem; }

.result-player-row {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.result-player-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.result-player-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.result-player-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.result-bonus-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.result-bonus-row.hidden { display: none; }
.bonus-label { font-size: 0.75rem; color: var(--text-dim); }
.bonus-btn {
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}
.bonus-btn:hover { border-color: var(--gold-dim); color: var(--gold-light); }
.bonus-btn.active { border-color: #c9a24a; background: rgba(201,162,74,0.15); color: #c9a24a; }
.bonus-btn.hidden { display: none; }

.match-info-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.match-info-btn:hover { opacity: 1; }

.minfo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.minfo-row:last-child { border-bottom: none; }
.minfo-name   { flex: 1; font-size: 0.9rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minfo-pts    { font-size: 0.88rem; font-weight: 700; color: var(--gold-light); width: 52px; flex-shrink: 0; text-align: right; }
.minfo-record { font-size: 0.78rem; color: var(--text-dim); width: 80px; flex-shrink: 0; text-align: right; }
.minfo-gwp    { font-size: 0.78rem; color: var(--text-dim); width: 62px; flex-shrink: 0; text-align: right; }
.minfo-note   { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; margin-bottom: 12px; }

.pairing-info-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 3px 10px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.pairing-info-btn:hover { color: var(--gold-light); border-color: var(--gold-dim); }

.result-drop-divider {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}
.result-place-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
}
.result-place-row select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 6px 10px;
  font-size: 0.88rem;
  flex: 1;
  font-family: var(--font-body);
  color-scheme: dark;
}
.result-place-row select:focus { border-color: var(--gold-dim); outline: none; }

/* Delete tournament button */

#tScoringRow { margin-top: 14px; margin-bottom: 14px; }

.modal-hint { color: var(--text-dim); font-size: 0.82rem; margin: 4px 0 8px; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-inner p { font-size: 0.8rem; color: var(--text-dim); }
.footer-inner a { color: var(--gold-dim); text-decoration: none; }
.footer-inner a:hover { color: var(--gold); }

/* ── GAME TABS ── */
.game-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.results-game-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.game-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

/* Hero logo-only tabs: square-ish, centred */
.game-tabs .game-tab {
  padding: 10px 24px;
  justify-content: center;
}

.game-tab:hover {
  border-color: var(--gold-dim);
  color: var(--text);
}

.game-tab.active {
  background: rgba(201,162,74,0.12);
  border-color: var(--gold-dim);
  color: var(--gold-light);
}

.game-tab-icon {
  font-size: 1rem;
}

/* Convert any logo to match the gold UI palette:
   brightness(0) makes it black, invert(1) makes it white,
   then sepia+saturate+hue-rotate tints it to --gold (#c9a24a) */
.game-tab-logo {
  height: 32px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(0.78);
  opacity: 0.55;
  transition: filter var(--transition), opacity var(--transition);
}

.game-tab.active .game-tab-logo,
.game-tab:hover .game-tab-logo {
  filter: brightness(0) invert(1) sepia(1) saturate(2.5) hue-rotate(5deg) brightness(0.9);
  opacity: 1;
}

/* Hero tabs: logo only, no text */
.game-tabs .game-tab-label { display: none; }

/* Results tabs: keep label visible alongside logo */
.results-game-tabs .game-tab-label {
  display: inline;
  font-size: 0.85rem;
}

.results-game-tabs .game-tab-logo {
  height: 20px;
  max-width: 70px;
}

/* ── MODAL EXTRAS ── */
.modal-game-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 6px;
}

/* A unique copy's description (2026-12-02): its own box under the card text, above the price guide, gold edge */
.unique-desc { background: var(--bg-card-2); border: 1px solid rgba(201,162,74,.55); border-radius: var(--radius-sm); padding: 10px 14px; }
.unique-desc .section-label { margin-bottom: 6px; }
.unique-desc p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }

.modal-fab-stats {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  line-height: 1.8;
}

.cp-color {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid currentColor;
}
.cp-color-red    { color: #ef4444; }
.cp-color-yellow { color: #facc15; }
.cp-color-green  { color: #22c55e; }
.cp-color-blue   { color: #3b82f6; }

.cp-printings {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.6;
}
.cp-printings-label { color: var(--text-muted); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .filters-panel h3 { grid-column: 1 / -1; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-card-img { max-width: 220px; margin: 0 auto; }
  .checkout-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header-inner { gap: 16px; }
  .nav-links { display: none; }
  .cart-drawer { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .modal-prices { grid-template-columns: 1fr 1fr; }
}

/* ── MOBILE BOTTOM NAV ── */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 760px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.97);
    border-top: 1px solid rgba(201, 162, 74, 0.2);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
  }

  /* Push page content above the nav bar */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  /* Hide the desktop cart button on mobile — bottom nav handles it */
  .cart-btn {
    display: none;
  }
}

.mob-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  position: relative;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}

.mob-nav-btn.active {
  color: var(--gold-light, #c9a84c);
}

.mob-nav-btn:active {
  transform: scale(0.93);
}

.mob-nav-icon {
  font-size: 20px;
  line-height: 1;
}

.mob-nav-label {
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mob-nav-badge {
  position: absolute;
  top: 1px;
  right: calc(50% - 25px);
}

.mob-nav-badge.hidden {
  display: none;
}

/* ================================================================
   MOBILE UI OPTIMISATIONS  (≤ 760px)
   Everything flows vertically — no horizontal scrolling.
   ================================================================ */

@media (max-width: 760px) {

  /* ── Hero ── */
  .hero {
    padding: 32px 16px 48px;
    min-height: unset;
  }

  .hero-content {
    max-width: 100%;
  }

  /* Reduce floating card area height so it doesn't eat the screen, and shrink
     the fan to match — cards are positioned at full size by initShuffle() */
  .hero-cards-display {
    height: 180px;
    transform: scale(0.52);
    transform-origin: center 45%;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .hero-sub {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }

  /* ── Search bars — button stacks below input ── */
  .search-bar,
  .results-search-bar {
    flex-direction: column;
    gap: 10px;
  }

  .search-bar input,
  .results-search-bar input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card-2);
    color: var(--text);
  }

  .search-bar button,
  .results-search-bar button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  /* ── Results game tabs — horizontal scroll, no labels ── */
  .results-game-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 6px;
  }

  .results-game-tabs::-webkit-scrollbar { display: none; }

  .results-game-tabs .game-tab-label { display: none; }

  .results-game-tabs .game-tab {
    flex-shrink: 0;
    padding: 10px 14px;
  }

  /* Moxfield import tab — keep visible but compact */
  .moxfield-btn { margin-left: 0 !important; }

  /* ── Results header ── */
  .results-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sort-filter select {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
  }

  /* ── Filters panel — single column, no sticky ── */
  .filters-panel {
    grid-template-columns: 1fr !important;
    position: static !important;
    top: unset !important;
  }

  /* ── Find Games ── */

  .btn-host-game,
  .btn-host-tournament {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* ── Games grid — single column ── */
  .games-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Host game modal date+time — stack vertically ── */
  .host-datetime-row {
    grid-template-columns: 1fr;
  }

  /* ── All modal inputs — bigger touch targets ── */
  .modal-input,
  input[type="text"].modal-input,
  input[type="email"].modal-input,
  input[type="date"].modal-input,
  input[type="time"].modal-input,
  select.modal-input,
  textarea.modal-input {
    padding: 14px 16px;
    font-size: 1rem;
    min-height: 48px;
  }

  /* ── Checkout ── */
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  /* ── About grid — single col ── */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* ── General input/select touch targets ── */
  input[type="text"],
  input[type="email"],
  input[type="search"],
  select,
  textarea {
    min-height: 48px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  input[type="range"] {
    height: 36px;
  }

  /* ── Modals — full width on small screens ── */
  .modal-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    align-self: flex-end;
  }

  .modal-overlay {
    align-items: flex-end;
  }

  /* ── Cart drawer ── */
  .cart-drawer {
    width: 100%;
  }

  /* ── Header — tighter on mobile ── */
  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .logo-img {
    height: 36px;
  }
}

/* ================================================================
   GATHERERS ADDITIONS
   ================================================================ */

/* ── Brand ── */
.logo-mark { width: auto; height: 40px; display: block; flex-shrink: 0; }
.logo-mark--lg { width: auto; height: 64px; }
.logo-word {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}
.signin-brand, .footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px;
}
.footer-brand { margin-bottom: 10px; }
.signin-lead { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 18px; text-align: center; }

/* ── Forms ── */
.form-label {
  display: block; font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 6px;
}
.modal-input.otp-input { font-size: 1.4rem; letter-spacing: 0.3em; text-align: center; }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-dim); padding: 10px 14px; font-size: 0.82rem; cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--text); }
.modal-heading { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 1.15rem; color: var(--gold-light); margin-bottom: 4px; }
.modal-subheading { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 0.9rem; color: var(--gold); margin: 22px 0 0; }
#accountModal .form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#accountModal .form-field { margin: 0; }
#accountModal .signin-lead { text-align: left; margin-bottom: 4px; }

/* ── Results ── */
.card-price small { font-size: 0.68rem; color: var(--text-muted); font-weight: 400; margin-right: 2px; }
.card-price.no-price small { color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.card-price-row { flex-wrap: wrap; gap: 2px 8px; }
.card-market { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.color-btn.foil-label { color: #a78bfa; }
.page-info { color: var(--text-muted); font-size: 0.85rem; align-self: center; padding: 0 12px; }
.filters-panel select {
  width: 100%; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 8px 10px; font-size: 0.85rem; outline: none;
}
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 48px 16px; }

/* ── FAB pitch filter: same size as the MTG mana symbols ── */
.pitch-disc {
  display: block; width: 26px; height: 26px; border-radius: 50%;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.35), inset 0 2px 4px rgba(255,255,255,0.25);
}

/* ── Cyberpunk colour symbols ── */
.cp-color-icon { width: 1.15em; height: 1.15em; margin-right: 0.35em; vertical-align: -0.22em; object-fit: contain; }
.color-btn.cp-btn img { width: 22px; height: 22px; object-fit: contain; border-radius: 0; }   /* frames, not round mana */

/* ── Set picker (filters sidebar) ── */
.set-picker { position: relative; }
.set-picker-btn {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 8px 10px; font-size: 0.85rem; cursor: pointer;
}
.set-picker.has-value .set-picker-btn { border-color: var(--gold-dim); }
.set-picker-label { flex: 1; min-width: 0; line-height: 1.35; overflow-wrap: anywhere; }
.set-picker-caret { color: var(--text-muted); flex-shrink: 0; }
.set-picker-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  background: var(--bg-card); border: 1px solid var(--border-glow); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 8px;
}
.set-picker-panel input {
  width: 100%; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 7px 10px; font-size: 0.85rem; outline: none; margin-bottom: 6px;
}
.set-picker-panel input:focus { border-color: var(--gold-dim); }
.set-picker-list { list-style: none; max-height: 300px; overflow-y: auto; margin: 0; padding: 0; }
.set-picker-list li {
  display: flex; align-items: flex-start; gap: 6px; padding: 7px 8px; border-radius: 4px;
  font-size: 0.82rem; line-height: 1.35; color: var(--text); cursor: pointer;
  content-visibility: auto; contain-intrinsic-size: auto 32px;   /* off-screen rows (and their icons) load on scroll */
}
.set-picker-list li:hover { background: var(--bg-card-2); }
.set-picker-list li.active { color: var(--gold-light); background: rgba(201,162,74,0.08); }
.set-picker-list .set-icon { flex-shrink: 0; margin-top: 0.1em; }
.set-opt-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.set-opt-year { color: var(--text-muted); font-size: 0.75rem; flex-shrink: 0; }
.set-picker-list li.set-opt-more { color: var(--text-muted); cursor: default; font-size: 0.75rem; }
.set-picker-list li.set-opt-more:hover { background: none; }

/* ── Set symbols, coloured by rarity like the printed cards ── */
.set-icon {
  display: inline-block; width: 1.1em; height: 1.1em; margin-right: 0.35em; vertical-align: -0.2em;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  background: #d8d8d8;
}
.set-icon.rarity-uncommon { background: linear-gradient(135deg, #8aa1ad, #e3f0f6 50%, #8aa1ad); }
.set-icon.rarity-rare     { background: linear-gradient(135deg, #a8862b, #f3dc93 50%, #a8862b); }
.set-icon.rarity-mythic   { background: linear-gradient(135deg, #c2421a, #f7a33a 50%, #c2421a); }
.set-icon.rarity-special  { background: linear-gradient(135deg, #6b3fa0, #c59ae8 50%, #6b3fa0); }
.card-set { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Card modal ── */
.modal-inner.modal-wide { max-width: 980px; }
#modalBody { display: block; padding: 32px; }
.card-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
.card-page > *, .listing-row > *, .modal-card-info > * { min-width: 0; }
.section-label {
  font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.price-box-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.price-source { font-size: 0.72rem; color: var(--text-dim); margin-top: 8px; }
.modal-error-text { color: var(--red); text-align: center; padding: 32px; }
/* Sits on the baseline at cap height so it lines up with the capitals, with a clear gap before the word */
.pitch-dot { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; vertical-align: baseline; margin-right: 0.4em; }
.pitch-1 { background: #ef4444; }
.pitch-2 { background: #facc15; }
.pitch-3 { background: #3b82f6; }

.listings-block, .printings-block { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 20px; }
.listings-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.listings-head h3, .printings-block h3 { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 1rem; color: var(--gold-light); }
.printings-block h3 { margin-bottom: 12px; }
.listing-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.listings-table { display: flex; flex-direction: column; gap: 8px; }
.listings-empty { color: var(--text-muted); font-size: 0.88rem; padding: 12px 0; }
.listing-row {
  display: grid; grid-template-columns: minmax(160px, 1.2fr) 1.5fr auto; gap: 16px; align-items: center;
  background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
}
.listing-seller { min-width: 0; }
.seller-name { font-weight: 600; color: var(--text); margin-right: 6px; }
.seller-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.seller-rating { color: var(--gold); }
.seller-rating small { color: var(--text-muted); }
.seller-rating.dim { color: var(--text-muted); }
.listing-attrs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.listing-comment { font-size: 0.75rem; color: var(--text-muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.listing-comment.full { white-space: normal; max-width: none; overflow: visible; overflow-wrap: anywhere; }   /* a unique copy's comment: all of it */
.listing-buy { display: grid; grid-template-columns: auto auto; gap: 2px 14px; align-items: center; justify-items: end; }
.listing-price { font-size: 1.05rem; font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.fixed-tag { display: block; font-size: 0.62rem; font-weight: 500; color: var(--text-muted); text-align: right; }
.listing-qty { font-size: 0.72rem; color: var(--text-muted); grid-column: 1; }
.listing-add { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; align-items: center; }
.listing-add select {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 7px 6px; font-size: 0.85rem;
}
.btn-add {
  background: var(--gold); color: #0d0f14; border: none; border-radius: var(--radius-sm);
  padding: 8px 16px; font-weight: 600; cursor: pointer; transition: background var(--transition);
}
.btn-add:hover { background: var(--gold-light); }
.in-cart-note { font-size: 0.75rem; color: var(--text-muted); }

.printings-list { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; }
.printing-row {
  display: grid; grid-template-columns: 1fr 70px 1fr auto; gap: 12px; align-items: center; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 8px 10px; color: var(--text); font-size: 0.82rem; cursor: pointer;
}
.printing-row:hover { background: var(--bg-card-2); border-color: var(--border); }
.printing-num, .printing-fin { color: var(--text-muted); }
.printing-price { color: var(--gold); white-space: nowrap; }

/* ── Cart groups ── */
.cart-group { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.cart-group-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--bg-card-2); padding: 10px 12px; font-weight: 600; font-size: 0.88rem;
}
.cart-group-sub { color: var(--gold-light); }
.cart-group-note { font-size: 0.72rem; color: var(--text-muted); padding: 8px 12px 0; }
.cart-group .cart-item { padding: 10px 12px; }
.cart-item-meta { font-size: 0.72rem; color: var(--text-muted); }
.cart-item-ph { display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.cart-note { font-size: 0.75rem; color: var(--text-muted); margin: 6px 0 12px; }

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 400;
  background: var(--bg-card-2); border: 1px solid var(--gold-dim); color: var(--text);
  padding: 10px 18px; border-radius: 999px; font-size: 0.85rem; box-shadow: var(--shadow);
}

.filters-toggle { display: none; }

@media (max-width: 760px) {
  .results-meta { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; }
  #resultsCount { flex-basis: 100%; }
  .filters-toggle { display: block; }
  .sort-filter { flex: 1; }
  .filters-panel:not(.open) { display: none !important; }
  #cardModal { padding: 8px; }
  #modalBody { padding: 20px 16px; }
  .card-page { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .listing-row { grid-template-columns: minmax(0, 1fr) !important; }
  .card-page .modal-left { max-width: 240px; margin: 0 auto; width: 100%; }
  .listing-row { grid-template-columns: 1fr; gap: 10px; }
  .listing-buy { justify-items: start; grid-template-columns: 1fr auto; }
  .listing-add { justify-self: end; }
  .printing-row { grid-template-columns: 1fr auto; }
  .printing-num, .printing-fin { display: none; }
  .logo-word { font-size: 0.95rem; letter-spacing: 0.12em; }
}

/* ================================================================
   SEARCH CONTROLS — styled dropdowns (sort, rarity, type, set) with the
   same corners as other fields; gold accents on every chip and input
   ================================================================ */
:root {
  --ctl-radius: var(--radius-sm);   /* same corners as the other fields */
  --ctl-bg: linear-gradient(180deg, #1d2130 0%, #171a25 100%);
  --ctl-border: #2f3346;
  --ctl-hover: #4a4a5e;
  --ctl-focus: 0 0 0 3px rgba(201,162,74,0.22);
  --ctl-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c9a24a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Dropdowns: sort, rarity, type, and the set picker button */
.sort-filter select,
.filters-panel select,
.set-picker-btn {
  -webkit-appearance: none; appearance: none;
  background: var(--ctl-caret) right 14px center / 12px 8px no-repeat, var(--ctl-bg);
  border: 1px solid var(--ctl-border);
  border-radius: var(--ctl-radius);
  color: var(--text);
  padding: 9px 38px 9px 16px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), color var(--transition);
}
.set-picker-caret { display: none; }   /* uses the same chevron as the selects */
.native-hidden { display: none !important; }   /* select behind a .picker dropdown */
.picker .set-picker-list { max-height: 260px; }
.set-picker.open .set-picker-btn { border-color: var(--gold-dim); box-shadow: var(--ctl-focus); }
.sort-filter select:hover,
.filters-panel select:hover,
.set-picker-btn:hover { border-color: var(--ctl-hover); }
.sort-filter select:focus,
.filters-panel select:focus,
.set-picker-btn:focus-visible { border-color: var(--gold-dim); box-shadow: var(--ctl-focus); }
/* A filter in use stays gold, so it's clear what's narrowing the results */
.filters-panel select.has-value,
.sort-filter select.has-value,
.set-picker.has-value .set-picker-btn {
  border-color: var(--gold-dim); color: var(--gold-light);
  background-color: rgba(201,162,74,0.08);
}
.sort-filter select option,
.filters-panel select option { background: var(--bg-card); color: var(--text); }

/* Set picker panel */
.set-picker-panel { border-radius: var(--ctl-radius); padding: 8px; border-color: var(--ctl-border); }
.set-picker-panel input { border-radius: var(--ctl-radius); }
.set-picker-list li { border-radius: 4px; }

/* Chips: availability, finish, colour words (original corners, gold colours) */
.color-btn {
  background: var(--ctl-bg);
  border-color: var(--ctl-border);
}
.color-btn:hover { border-color: var(--ctl-hover); color: var(--text); }
.color-btn.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(232,199,107,0.22), rgba(201,162,74,0.10));
  color: var(--gold-light);
  box-shadow: 0 0 10px rgba(201,162,74,0.15);
}
.color-btn.foil-label { color: #b9a3f5; }
.color-btn.foil-label.active { border-color: #a78bfa; color: #d6c8ff; background: rgba(167,139,250,0.14); box-shadow: 0 0 10px rgba(167,139,250,0.18); }
.color-btn.mana-btn { padding: 3px; }
.color-btn.mana-btn.active { box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(201,162,74,0.35); }
.color-filters { gap: 6px; }

/* Search bars (original corners, gold focus) */
.results-search-bar input {
  background: var(--ctl-bg);
  border-color: var(--ctl-border);
}
.results-search-bar input:hover { border-color: var(--ctl-hover); }

/* Dropdowns: a gap below the button, contents centred */
.set-picker-panel { top: calc(100% + 8px); }
.set-picker-btn { position: relative; justify-content: center; padding-left: 38px; }
.set-picker-label { flex: 0 1 auto; text-align: center; }
.sort-filter select, .filters-panel select { text-align: center; text-align-last: center; padding-left: 38px; }
.set-picker-list li { justify-content: center; text-align: center; }
.set-picker-list .set-opt-name { flex: 0 1 auto; }
.set-picker-panel input { text-align: center; }

/* Verified filter: grey with black text; gold when on */
.color-btn.verified-btn.active { background: var(--gold); border-color: var(--gold); color: #0d0f14; box-shadow: 0 0 10px rgba(201,162,74,0.3); }

/* ── Seller shop page + header Sell link ── */
.nav-sell { text-decoration: none; display: inline-flex; align-items: center; }
a.seller-name { color: var(--text); text-decoration: none; }
a.seller-name:hover { color: var(--gold-light); text-decoration: underline; }
.shop-page-head { margin-bottom: 18px; }
.shop-page-title { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 1.6rem; color: var(--gold-light); margin-bottom: 4px; }
.shop-bio { color: var(--text-dim); font-size: 0.9rem; margin-top: 8px; max-width: 720px; white-space: pre-line; }
.shop-closed {
  margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(250,204,21,0.45); background: rgba(250,204,21,0.08); color: #facc15;
}
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.shop-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.shop-item-img { cursor: pointer; aspect-ratio: 5 / 7; background: var(--bg-card-2); }
.shop-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-item-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-item-info .card-name { cursor: pointer; }
.shop-item-info .card-price-row { margin-top: auto; }

/* ── Account: sign out; phone header keeps only My Shop (Account + Cart are in the bottom nav) ── */
.account-signout {
  display: block; width: 100%; margin-top: 12px; padding: 8px;
  background: none; border: none; color: var(--text-muted, #9a9aaa); font: inherit; font-size: 0.85rem; cursor: pointer;
}
.account-signout:hover { color: var(--text); }
@media (max-width: 760px) {
  .user-nav .nav-account,
  .user-nav .user-nav-signout { display: none; }
}

/* ================================================================
   CONSISTENCY PASS (2026-11-02)
   ================================================================ */
/* Buttons and fields use the page font (browsers default them to the system font) */
button, input, select, textarea { font-family: inherit; }

/* Header buttons: My Shop / name / Sign In all the same size */
.user-nav-btn { line-height: 1.2; font-weight: 500; }
.user-nav-signout { color: var(--text-muted); }

/* Ghost buttons were so dim they looked disabled */
.btn-ghost { color: var(--text-muted); }

/* Readable lead text on the sign-in / account modals */
.signin-lead { color: var(--text-muted); }

/* Result cards: status line + price line, nothing over the card art */
.card-stock-row { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; }
.card-stock { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.card-stock.in { color: var(--green); }
.card-stock.out { color: var(--red); }
.card-stock-row .card-market { font-size: 0.85rem; }

/* MTG mana symbols in the card page */
.mana-sym { width: 1.05em; height: 1.05em; vertical-align: -0.15em; margin: 0 1px; display: inline-block; }
.modal-oracle .mana-sym { font-style: normal; }

/* Card page listings: fixed buy column so badges line up row to row,
   and "All in cart" takes the same space as the qty + Add controls */
.listing-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) 260px; }
.listing-buy { grid-template-columns: 1fr 122px; }
.listing-add { justify-content: flex-end; width: 122px; }
.listing-add select, .listing-add .btn-add { height: 36px; }
.listing-add select { width: 48px; padding-top: 0; padding-bottom: 0; }
@media (max-width: 760px) {
  .listing-row { grid-template-columns: minmax(0, 1fr); }
  .listing-buy { grid-template-columns: 1fr auto; }
  /* phones keep 48px touch targets: grow Add to match the qty dropdown */
  .listing-add select, .listing-add .btn-add { height: 48px; }
}

/* ================================================================
   PHASE 3: CHECKOUT + MY ORDERS
   ================================================================ */
.page-title { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 1.6rem; color: var(--gold-light); margin-bottom: 20px; }
.btn-sm { padding: 5px 10px; font-size: 0.78rem; }
.btn-ghost.full-width { width: 100%; }
.btn-ghost.danger:hover { border-color: var(--red); color: var(--red); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary:disabled:hover { background: var(--gold); }
.account-orders { margin-top: 10px; }
.sub { font-size: 0.74rem; color: var(--text-muted); }
.empty-state a, .co-signin a { color: var(--gold-light); }

.co-signin { text-align: center; padding: 48px 16px; color: var(--text-muted); }
.co-signin p { margin-bottom: 16px; }

.co-notice {
  background: rgba(201,162,74,0.08); border: 1px solid var(--gold-dim); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 18px; font-size: 0.85rem;
}
.co-notice ul { margin: 6px 0 0 18px; color: var(--text-muted); }

.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.co-groups { display: flex; flex-direction: column; gap: 16px; }
.co-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.co-group.blocked { border-color: rgba(246, 171, 55,0.45); }
.co-group-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--bg-card-2); padding: 12px 16px; font-weight: 600; font-size: 0.92rem;
}
.co-group-sub { color: var(--gold-light); }
.co-group-note { font-size: 0.75rem; color: var(--text-muted); padding: 10px 16px 0; }
.co-lines { padding: 6px 16px; }
.co-line {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.co-line:last-child { border-bottom: none; }
.co-line.changed .co-line-price span:first-child { color: var(--gold-light); font-weight: 600; }
.co-line-info { min-width: 0; }
.co-line-price { display: flex; flex-direction: column; align-items: flex-end; font-size: 0.85rem; white-space: nowrap; }
.co-was { font-size: 0.72rem; color: var(--text-muted); text-decoration: line-through; }
.co-blocked {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--border); color: var(--red); font-size: 0.85rem;
}
.co-methods { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--border); }
.co-method {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer;
  background: var(--bg-card-2); font-size: 0.85rem; transition: border-color var(--transition);
}
.co-method:hover { border-color: var(--border-glow); }
.co-method.active { border-color: var(--gold); background: rgba(201,162,74,0.08); }
.co-method input { accent-color: var(--gold); color-scheme: dark; width: 16px; height: 16px; margin: 0; }
.co-method-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-method-text strong { font-weight: 500; }
.co-method-fee { color: var(--gold-light); white-space: nowrap; }

.co-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.co-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.co-panel-title { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 1rem; color: var(--gold-light); }
.co-panel-sub { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 0.85rem; color: var(--gold); margin: 20px 0 0; }
.co-panel .form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.co-sum { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-muted); padding: 4px 0; }
.co-total { color: var(--text); font-size: 1.05rem; font-weight: 600; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }
.co-total span:last-child { color: var(--gold-light); }
.co-pay-note { font-size: 0.78rem; color: var(--text-muted); margin: 12px 0; }

.co-placed {
  background: rgba(34,197,94,0.07); border: 1px solid rgba(34,197,94,0.4); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 18px;
}
.co-placed h3 { font-size: 1rem; color: var(--green); margin-bottom: 6px; }
.co-placed p { font-size: 0.88rem; color: var(--text); }

/* My Orders */
.o-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; scroll-margin-top: 84px; }
.o-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none;
  background: var(--bg-card-2); flex-wrap: wrap;
}
.o-head::-webkit-details-marker { display: none; }
.o-head::before { content: '▸'; color: var(--text-muted); transition: transform var(--transition); }
.o-card[open] > .o-head::before { transform: rotate(90deg); }
.o-id { font-family: ui-monospace, Consolas, monospace; font-size: 0.9rem; color: var(--text); }
.o-date { font-size: 0.82rem; color: var(--text-muted); margin-left: auto; }
.o-total { color: var(--gold-light); font-weight: 600; }
.o-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.o-pay {
  background: rgba(250,204,21,0.06); border: 1px solid rgba(250,204,21,0.35); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 0.86rem; display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.o-ship { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.o-ship-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.o-ship-method, .o-ship-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.o-ship-note { color: var(--text); }
.o-items { margin-top: 8px; }
.o-item { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; padding: 6px 0; border-top: 1px solid var(--border); }
.o-item a { color: var(--text); text-decoration: none; }
.o-item a:hover { color: var(--gold-light); }
.o-item .sub { display: block; }
.o-item-price { white-space: nowrap; color: var(--text-muted); }
.o-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.o-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--text-muted); }
.o-foot strong { color: var(--gold-light); white-space: nowrap; }

@media (max-width: 900px) {
  .co-layout { grid-template-columns: minmax(0, 1fr); }
  .co-side { position: static; }
}
@media (max-width: 760px) {
  .user-nav .nav-orders { display: none; }
  .o-head { gap: 8px 10px; padding: 12px 14px; }
  .o-date { margin-left: 0; }
  .o-total { margin-left: auto; }
  .o-body { padding: 14px; }
  .co-method { padding: 12px; min-height: 48px; }
}

/* ── Phase 3b: reviews + decklist ── */
.stars { color: var(--gold-light); letter-spacing: 1px; }
.stars-off { color: var(--border-glow); }
.o-review { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 0.85rem; margin-top: 10px; color: var(--text-muted); }
.o-review-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.o-review-title { font-size: 0.88rem; font-weight: 500; }
.o-review-form .o-actions { margin-top: 0; }
.star-pick { display: flex; gap: 4px; }
.star-pick button {
  background: none; border: none; cursor: pointer; font-size: 1.6rem; line-height: 1; padding: 2px;
  color: var(--border-glow); transition: color var(--transition), transform var(--transition);
}
.star-pick button.on { color: var(--gold-light); }
.star-pick button:hover { transform: scale(1.1); }
.shop-reviews { margin-top: 14px; max-width: 720px; }
.shop-reviews summary { cursor: pointer; color: var(--gold-light); font-size: 0.88rem; }
.shop-review { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.shop-review p { flex-basis: 100%; color: var(--text); }

.hero-deck-link { display: inline-block; margin-top: 14px; font-size: 0.85rem; color: var(--gold-light); text-decoration: none; }
.hero-deck-link:hover { text-decoration: underline; }
.deck-lead { color: var(--text-muted); font-size: 0.9rem; max-width: 760px; margin-bottom: 18px; }
.deck-lead code { background: var(--bg-card-2); padding: 1px 6px; border-radius: 4px; color: var(--text); }
.deck-games { display: flex; flex-wrap: wrap; gap: 8px; }
.deck-game {
  background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted);
  padding: 8px 14px; font-size: 0.85rem; cursor: pointer;
}
.deck-game.active { border-color: var(--gold); color: var(--gold-light); background: rgba(201,162,74,0.1); }
.deck-summary {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; position: sticky; top: 72px; z-index: 5;
}
.deck-summary .bad { color: var(--red); }
.deck-total { margin-left: auto; font-size: 1.1rem; font-weight: 600; color: var(--gold-light); }
.deck-lines { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.deck-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 6px 18px; padding: 10px 18px; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.deck-line:last-child { border-bottom: none; }
.deck-line-name a { color: var(--text); text-decoration: none; }
.deck-line-name a:hover { color: var(--gold-light); }

.deck-flag { margin-left: 8px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #facc15; }
.deck-line.none .deck-flag, .deck-line.unknown .deck-flag { color: var(--red); }
.deck-picks { display: flex; flex-direction: column; gap: 3px; color: var(--text-muted); }
.deck-pick .sub { margin-left: 4px; }
.deck-price { color: var(--gold-light); margin-left: 6px; white-space: nowrap; }
@media (max-width: 760px) {
  .deck-line { grid-template-columns: minmax(0, 1fr); padding: 10px 14px; }
  .deck-summary { top: 64px; }
  .deck-summary .btn-primary { width: 100%; }
}

/* ================================================================
   FOIL SHINE + CONTROLS (2026-11-03)
   ================================================================ */
/* Result cards and shop items: one rainbow sweep across the art on hover.
   It only animates a transform, so it costs nothing at rest. */
.card-img-wrap::before,
.shop-item-img::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg,
    transparent 28%, rgba(255, 255, 255, 0.10) 36%,
    rgba(255, 90, 180, 0.30) 42%, rgba(90, 220, 255, 0.34) 50%, rgba(255, 235, 120, 0.30) 58%,
    rgba(255, 255, 255, 0.10) 64%, transparent 72%);
  mix-blend-mode: screen;
  transform: translateX(-135%);
}
.shop-item-img { position: relative; overflow: hidden; }
@media (any-hover: hover) {
  .card-item:hover .card-img-wrap::before,
  .shop-item:hover .shop-item-img::before {
    transform: translateX(135%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* Card page image: a foil shine and glare that follow the mouse (initHolo in app.js). The card itself stays still. */
.holo { --mx: 50%; --my: 50%; line-height: 0; }
.holo-shine, .holo-glare {
  position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none; opacity: 0; transition: opacity 0.35s;
}
.holo-shine {
  background: linear-gradient(115deg, transparent 18%, rgba(255, 80, 170, 0.55) 34%, rgba(80, 220, 255, 0.55) 46%,
    rgba(255, 230, 90, 0.55) 58%, rgba(140, 255, 160, 0.5) 70%, transparent 84%);
  background-size: 260% 260%; background-position: var(--mx) var(--my);
  mix-blend-mode: color-dodge;
}
.holo-glare { background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.42), transparent 48%); mix-blend-mode: overlay; }
.holo.active .holo-shine { opacity: 0.5; }
.holo.active .holo-glare { opacity: 0.85; }
.holo .modal-flip-btn { z-index: 3; line-height: normal; }

/* Radio buttons and checkboxes everywhere, one look for both (the user's radio design,
   in our colours): a round dot that fills gold, shows a centre dot and pulses when picked */
input[type="radio"], input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; margin: 0;
  width: 18px; height: 18px; display: inline-grid; place-items: center; cursor: pointer;
  background: var(--bg-card-2); border: 2px solid var(--border-glow); border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
}
input[type="radio"]::before, input[type="checkbox"]::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--bg);
  transform: scale(0); transition: transform 0.15s cubic-bezier(0.165, 0.84, 0.44, 1);
}
input[type="radio"]:checked, input[type="checkbox"]:checked {
  background: var(--gold); border-color: var(--gold);
  animation: pick-pulse 0.7s forwards;
}
input[type="radio"]:checked::before, input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="radio"]:hover:not(:checked):not(:disabled),
input[type="checkbox"]:hover:not(:checked):not(:disabled) { border-color: var(--gold-dim); }
input[type="radio"]:focus-visible, input[type="checkbox"]:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
input[type="radio"]:disabled, input[type="checkbox"]:disabled { opacity: 0.45; cursor: not-allowed; }
@keyframes pick-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 162, 74, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(201, 162, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 74, 0); }
}

/* The label around a control: tinted on hover, gold-outlined once picked, with a springy settle */
.co-method, .check-label, .discount-pick {
  transition: background 0.2s ease, border-color 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.co-method:has(input:checked), .discount-pick:has(input:checked) { transform: scale(1.01); }
.co-method:active, .check-label:active, .discount-pick:active { transform: scale(0.98); }

/* ================================================================
   COLOUR CHECK (2026-11-03): browser defaults in our colours
   ================================================================ */
/* Native controls (date pickers, number spinners, phone pickers) draw dark */
:root { color-scheme: dark; }
/* Selected text, text cursors, taps and keyboard focus: gold instead of system blue */
::selection { background: rgba(201, 162, 74, 0.35); color: var(--text); }
input, textarea, [contenteditable] { caret-color: var(--gold-light); }
* { -webkit-tap-highlight-color: rgba(201, 162, 74, 0.15); }
:where(a, button, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
:where(input, textarea, select):focus-visible { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.22); }
/* Links with no style of their own */
:where(a) { color: var(--gold-light); }
:where(a:hover) { color: var(--gold); }   /* :hover inside :where, so any styled link or button keeps its own colours */
/* The calendar icon on date fields */
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { filter: brightness(0) invert(57%) sepia(8%) saturate(420%) hue-rotate(14deg) brightness(91%); cursor: pointer; }

/* Dropdown lists (picker.js): opened in our colours instead of the browser's blue */
.gp-panel {
  position: fixed; z-index: 1000; overflow-y: auto; padding: 6px;
  background: var(--bg-card); border: 1px solid var(--border-glow); border-radius: var(--radius-sm);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  transform-origin: top center; animation: gp-in 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gp-panel.up { transform-origin: bottom center; }
@keyframes gp-in { from { opacity: 0; transform: scaleY(0.92) translateY(-4px); } to { opacity: 1; transform: none; } }
.gp-opt {
  position: relative; padding: 7px 12px 7px 30px; border-radius: 4px; cursor: pointer; white-space: nowrap;
  font-size: 0.85rem; line-height: 1.35; color: var(--text);
}
.gp-opt.hl { background: rgba(201, 162, 74, 0.14); color: var(--gold-light); }
.gp-opt.sel { color: var(--gold-light); font-weight: 600; }
.gp-opt.sel::before {
  content: ''; position: absolute; left: 12px; top: 50%; width: 5px; height: 9px; margin-top: -6px;
  border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.gp-opt.dis { opacity: 0.4; cursor: default; }
select.gp-open { border-color: var(--gold-dim) !important; box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.22); }
/* Phone pickers and any list the browser still draws: dark options */
select option { background: var(--bg-card); color: var(--text); }
select option:checked { background: var(--gold-dim); color: var(--text); }

/* Quantity boxes on the card page: our gold chevron instead of the browser's */
.listing-add select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--ctl-caret) right 7px center / 9px 6px no-repeat, var(--bg-card);
  width: 48px; padding-left: 9px; padding-right: 18px;
}

/* ── Decklist page: one centred card ── */
.deck-page { max-width: 860px; }
.deck-card {
  position: relative; overflow: hidden; display: grid; gap: 16px;
  background: radial-gradient(90% 70% at 50% 0%, rgba(201, 162, 74, 0.10), transparent 65%), var(--bg-card);
  border: 1px solid var(--border); border-radius: 18px; padding: 36px 40px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.deck-head { text-align: center; display: grid; justify-items: center; gap: 10px; }
.deck-fan { position: relative; width: 74px; height: 58px; margin-bottom: 4px; }
.deck-fan span {
  position: absolute; left: 50%; bottom: 0; width: 36px; height: 50px; margin-left: -18px; border-radius: 5px;
  background: linear-gradient(160deg, #2c2a22, #16140f); border: 2px solid var(--gold-dim);
  transform-origin: 50% 100%; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}
.deck-fan span:nth-child(1) { transform: rotate(-16deg); }
.deck-fan span:nth-child(2) { transform: rotate(0); border-color: var(--gold); background: linear-gradient(160deg, #3a3424, #1c1a12); }
.deck-fan span:nth-child(3) { transform: rotate(16deg); }
.deck-title { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 1.8rem; color: var(--gold-light); margin: 0; }
.deck-card .deck-lead { margin: 0 auto; max-width: 58ch; text-align: center; }
.deck-card .deck-games { justify-content: center; }
.deck-card textarea { width: 100%; min-height: 220px; font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; line-height: 1.6; resize: vertical; }
.deck-find { padding-block: 13px; font-size: 0.95rem; }
.deck-hint { margin: 0; text-align: center; font-size: 0.78rem; color: var(--text-muted); }
.deck-hint code { background: var(--bg-card-2); padding: 1px 6px; border-radius: 4px; color: var(--text); }
.deck-page #deckResults:not(:empty) { margin-top: 22px; }
@media (max-width: 760px) {
  .deck-card { padding: 26px 18px 22px; border-radius: 14px; }
  .deck-title { font-size: 1.5rem; }
}
.deck-fan { width: 96px; }
.deck-fan span:nth-child(1) { transform: translateX(-14px) rotate(-20deg); }
.deck-fan span:nth-child(3) { transform: translateX(14px) rotate(20deg); }
.deck-hint code { white-space: nowrap; }
.deck-pick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.deck-pick .deck-price { margin-left: auto; }

/* ── Card-colour light: a blurred wash of the card's own art.
   Card page: always on, spreading around the image. Results and shop tiles: on hover. ── */
.card-item, .shop-item { position: relative; isolation: isolate; }
.ambi {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background-size: cover; background-position: center;
  filter: blur(34px) saturate(1.9) brightness(0.65); opacity: 0; transition: opacity 0.4s ease;
}
@media (any-hover: hover) {
  .card-item:hover .ambi, .shop-item:hover .ambi { opacity: 0.45; }
}
.modal-left { position: relative; isolation: isolate; }
.ambi.ambi-page { inset: -6% -14%; filter: blur(60px) saturate(1.6); opacity: 0.5; }

.floating-card-wrap.foil-card .floating-card-front, .floating-card-wrap.cold-foil-card .floating-card-front { overflow: hidden; }

/* ================================================================
   TYPE POLISH (2026-11-04)
   ================================================================ */
/* Counts inside headings (was a fix for Cinzel's 1; Archivo's numerals match the heading) */
.num { font: inherit; }
.printings-block h3 .num { color: var(--text-muted); margin-left: 4px; }

/* Prices and amounts line up in columns */
.card-price, .card-market, .listing-price, .cart-item-price, .cart-group-sub, #cartTotal, .price-box-value, .price-box-sub,
.co-line-price, .co-sum, .co-group-sub, .co-method-fee, .o-total, .o-item-price, .o-foot, .deck-price, .deck-total,
.lprice, .order-money, .order-total, .admin-table td, .printing-price, .shop-item .card-price {
  font-variant-numeric: tabular-nums;
}

/* Headings and intro lines break evenly instead of leaving one word behind */
h1, h2, h3, .hero-title, .page-title, .modal-heading, .deck-title, .shop-page-title { text-wrap: balance; }
.hero-sub, .deck-lead, .about-inner > p, .admin-help, .co-pay-note, .signin-lead { text-wrap: pretty; }
.hero-sub { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Form dropdowns (My Shop, admin, checkout) read left like the fields around them.
   The search filters keep their centred look on purpose. */
select.modal-input { text-align: left; text-align-last: left; }

/* Long card names get two lines in the cart and checkout instead of being cut off */
.cart-item-name, .co-line-info .cart-item-name {
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3;
}

/* Shop bio and about icons in the palette */
.shop-bio { color: var(--text-muted); }
.about-icon { color: var(--gold); }

/* Phones: the three game logos on one row */
@media (max-width: 520px) {
  .game-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .game-tabs .game-tab { padding: 10px 8px; min-width: 0; }
  .game-tabs .game-tab img { max-width: 100%; height: 32px; object-fit: contain; }
}

/* ================================================================
   ACME-STYLE TYPE (2026-11-04): flat, graphic, condensed uppercase.
   Headings, buttons, menus and labels use the condensed bold cut;
   running text uses the normal width.
   ================================================================ */
body, button, input, select, textarea { font-family: var(--font-body); }
body { font-weight: 450; letter-spacing: -0.003em; }

/* Display: big, tight, condensed */
.hero-title { font-weight: 800; line-height: 0.92; letter-spacing: -0.01em; font-size: clamp(3rem, 8vw, 6rem); }
.page-title, .deck-title, .shop-page-title, .shop-title, .modal-card-name { font-weight: 800; line-height: 0.95; letter-spacing: 0; }
.page-title, .deck-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.modal-card-name { font-size: 2rem; }
.modal-heading, .modal-subheading, .co-panel-title, .co-panel-sub, .listings-head h3, .printings-block h3, .filters-title, .section-label { font-weight: 800; letter-spacing: 0.01em; }
.logo-word { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 1.45rem; }

/* Controls and labels: condensed bold uppercase, like a shop till receipt */
.nav-links a, .user-nav-btn, .user-nav-signout, .cart-btn, .btn-primary, .btn-ghost, .btn-add, .btn, .lv-add,
.admin-tab, .game-tab, .chip, .color-btn, .discount-pick, .deck-game, .page-btn, .search-bar button, .results-search-bar button,
.form-label, .price-box-label, .card-stock, .mob-nav-label, .hero-eyebrow, .kicker,
.cart-header h2, .account-signout, .account-orders, .co-method-fee,
.admin-table th, .seg button, .filters-toggle, .set-picker-btn, .sort-filter select, .filters-panel select, .modal-flip-btn {
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.nav-links a, .user-nav-btn, .user-nav-signout, .cart-btn { font-size: 0.95rem; }
.btn-primary, .btn-add, .search-bar button, .results-search-bar button { font-size: 0.95rem; border-radius: 3px; }
.btn-ghost, .admin-tab, .game-tab, .chip, .color-btn, .discount-pick, .deck-game, .page-btn { border-radius: 3px; }
.form-label, .price-box-label, .admin-table th { font-size: 0.78rem; letter-spacing: 0.05em; }
.card-stock { font-size: 0.78rem; }

/* Card and listing names read as product titles */
.card-name, .cart-item-name, .lname, .shop-item-info .card-name, .seller-name, .co-group-head, .cart-group-head, .o-ship-head strong {
  font-weight: 650;
}
/* Prices: bold, tight */
.card-price, .listing-price, .price-box-value, .co-total span:last-child, .o-total, .deck-total { font-weight: 750; letter-spacing: -0.01em; }

/* Squarer panels */
.card-item, .shop-item, .co-group, .co-panel, .o-card, .deck-card, .admin-card, .lively, .tile, .listing-row, .seller-row, .modal-inner { border-radius: 6px; }
.card-img-wrap { border-radius: 4px; }
.hero-tags span, .modal-game-label, .filters-panel h4, .results-count {
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.hero-tags span { border-radius: 3px; font-size: 0.85rem; }

/* ── Home statement band (Acme-style): big headline left, the details right, under the card fan ── */
.statement { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-card); }
.statement-inner {
  max-width: 1280px; margin: 0 auto; padding: 72px 24px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: end;
}
.statement-head { display: grid; gap: 16px; }
.statement .hero-eyebrow { margin: 0; text-align: left; }
.statement .hero-title { margin: 0; text-align: left; font-size: clamp(3.2rem, 7vw, 6.4rem); line-height: 0.9; }
.statement-body { display: grid; gap: 14px; justify-items: start; padding-bottom: 6px; }
.statement-body p { margin: 0; max-width: 42ch; color: var(--text-muted); font-size: 1.1rem; line-height: 1.5; text-wrap: pretty; }
.statement-body p:first-child { color: var(--text); }
.statement-btn { text-decoration: none; display: inline-block; margin-top: 8px; }
@media (max-width: 860px) {
  .statement-inner { grid-template-columns: minmax(0, 1fr); padding: 44px 16px; gap: 20px; }
  .statement .hero-title { font-size: clamp(2.8rem, 13vw, 4rem); }
  .statement-body p { font-size: 1rem; }
}

/* ── Filter panel: icons and chips fill the panel's width ── */
.filters-panel [data-pick="color"] { display: grid; gap: 8px 6px; justify-items: center; align-items: center; }
.filters-panel [data-game-only="mtg"] [data-pick="color"],
.filters-panel [data-game-only="fab"] [data-pick="color"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.filters-panel [data-game-only="cyberpunk"] [data-pick="color"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.filters-panel [data-pick="color"] .color-btn.mana-btn { width: 38px; height: 38px; }
.filters-panel [data-pick="color"] .color-btn.mana-btn img { width: 31px; height: 31px; }
/* morphing Multicolor symbol: the gold circle is CSS so it shows from the first paint; guild-morph.js draws the symbols */
.color-btn.mana-btn canvas.mana-morph { width: 26px; height: 26px; border-radius: 50%; display: block; background: var(--gold); }
.filters-panel [data-pick="color"] .color-btn.mana-btn canvas.mana-morph { width: 31px; height: 31px; }
/* filter button tooltips in the site's own style (the browser's title tooltip can't be styled), same look as
   the collapsed-rail tooltips; labels live in data-tip (+ aria-label) instead of title */
@media (any-hover: hover) {
  .color-btn[data-tip] { position: relative; }
  .color-btn[data-tip]::before {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 30;
    white-space: nowrap; padding: 4px 8px; border-radius: 4px; background: var(--bg-card-2); border: 1px solid var(--border);
    color: var(--text); font-size: 0.75rem; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.3;
    opacity: 0; pointer-events: none; transition: opacity 0.15s;
  }
  .color-btn[data-tip]:hover::before { opacity: 1; transition-delay: 0.25s; }
}
[data-tip].tip-off::before { opacity: 0 !important; transition: none !important; }   /* after a finger tap (app.js) */
.filters-panel [data-pick="color"] .color-btn.cp-btn img { width: 26px; height: 26px; }
.filters-panel [data-pick="color"] .color-btn.white { width: 100%; height: 38px; padding: 0 4px; }   /* "All" fills its cell */
.filters-panel .color-filters:not([data-pick="color"]) .color-btn { flex: 1 1 auto; text-align: center; }
.filters-panel [data-pick="color"] .pitch-disc { width: 31px; height: 31px; }
.filters-panel [data-game-only="cyberpunk"] [data-pick="color"] { gap: 8px 4px; }
.filters-panel [data-game-only="cyberpunk"] [data-pick="color"] .color-btn.mana-btn { width: 33px; height: 33px; }
.filters-panel [data-game-only="cyberpunk"] [data-pick="color"] .color-btn.cp-btn img { width: 22px; height: 22px; }
.filters-panel [data-game-only="cyberpunk"] [data-pick="color"] .color-btn.white { height: 33px; }

/* ── Flesh and Blood foilings: only the text takes the foil's colour; the chip and badge look like every other one.
   Selected chips get a soft glow on the lettering. ── */
.fin-rainbow .fin-text { color: #f2a5cb; }   /* Rainbow Foil: soft pink */
.fin-cold .fin-text { color: #a8dcff; }      /* Cold Foil: icy blue */
.fin-gold .fin-text { color: #f5d565; }      /* Gold Cold Foil: bright yellow-gold */
/* FAB foils use the normal chip and badge outline, not the purple foil one */
.color-btn.foil-label.fin-rainbow, .color-btn.foil-label.fin-cold, .color-btn.foil-label.fin-gold { border-color: var(--ctl-border); }
.color-btn.foil-label.fin-rainbow.active, .color-btn.foil-label.fin-cold.active, .color-btn.foil-label.fin-gold.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(232,199,107,0.22), rgba(201,162,74,0.10));
  box-shadow: 0 0 10px rgba(201,162,74,0.15);
}
.finish-tag.fin-rainbow, .finish-tag.fin-cold, .finish-tag.fin-gold { border-color: var(--border); }
.color-btn.fin-rainbow.active .fin-text { text-shadow: 0 0 8px rgba(242, 165, 203, 0.6); }
.color-btn.fin-cold.active .fin-text { text-shadow: 0 0 8px rgba(168, 220, 255, 0.6); }
.color-btn.fin-gold.active .fin-text { text-shadow: 0 0 8px rgba(245, 213, 101, 0.6); }
.fin-text { white-space: nowrap; }

/* ── Verified band: a hand-checked card beside how the checking works ── */
.verified-band { border-bottom: 1px solid var(--border); overflow: hidden; }
.verified-inner {
  max-width: 1280px; margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 72px; align-items: center;
}
.verified-art { position: relative; isolation: isolate; justify-self: center; width: min(320px, 100%); }
.verified-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }
.verified-copy { display: grid; gap: 16px; justify-items: start; }
.verified-copy .hero-eyebrow { margin: 0; text-align: left; }
.verified-title {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 0.92; color: var(--white); margin: 0;
}
.verified-title em { font-style: normal; color: var(--gold-light); }
.verified-copy p:not(.hero-eyebrow) { margin: 0; max-width: 52ch; color: var(--text); font-size: 1.08rem; line-height: 1.55; text-wrap: pretty; }
.verified-copy p.verified-note { color: var(--text-muted); font-size: 1rem; }
.verified-btn-cta { margin-top: 6px; }
@media (max-width: 860px) {
  .verified-inner { grid-template-columns: minmax(0, 1fr); padding: 48px 16px 56px; gap: 32px; }
  .verified-art { width: min(240px, 70%); }
  .verified-copy { justify-items: start; }
  .verified-copy p:not(.hero-eyebrow) { font-size: 1rem; }
}

/* ── Verified band card: foil layer + tilt on hover (verifiedCard in app.js) ── */
.verified-art { perspective: 1100px; }
.foil3d {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; transform-style: preserve-3d;
  border-radius: 4.75% / 3.41%;   /* the rounded corners of the card image */
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.foil3d.active { transition: transform 0.1s linear; }
.foil3d img { position: relative; z-index: 0; }
.foil3d-sheen, .foil3d-lines, .foil3d-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  transition: opacity 0.4s ease;
}
/* The rainbow band of a foil, sliding with the light */
.foil3d-sheen {
  background: linear-gradient(115deg,
    transparent 10%, rgba(255, 70, 160, 0.55) 26%, rgba(255, 215, 80, 0.5) 38%, rgba(70, 255, 180, 0.5) 50%,
    rgba(70, 180, 255, 0.55) 62%, rgba(180, 90, 255, 0.5) 74%, transparent 90%);
  background-size: 260% 260%; background-position: var(--mx) var(--my);
  mix-blend-mode: color-dodge; opacity: 0.14;
}
/* Fine diagonal lines: the texture of a real foil */
.foil3d-lines {
  background: repeating-linear-gradient(-58deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay; opacity: 0.35;
}
/* Light reflecting off the card where the mouse is */
.foil3d-glare {
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 35%, transparent 60%);
  mix-blend-mode: overlay; opacity: 0;
}
.foil3d.active .foil3d-sheen { opacity: 0.32; }
.foil3d.active .foil3d-lines { opacity: 0.45; }
.foil3d.active .foil3d-glare { opacity: 0.6; }

/* ── Hero fan foil cards: the Verified card's foil, without the tilt.
   A beam crosses the whole fan left to right every other shuffle (initShuffle in app.js sets --foil 0..1
   and --mx on each foil card as it passes); otherwise the foils sit with a faint sheen. ── */
.floating-card-wrap.foil-card .floating-card::after,
.floating-card-wrap.cold-foil-card .floating-card::before { display: none; }   /* old paused shimmer layers */
.fan-foil-sheen, .fan-foil-lines, .fan-foil-glare {
  position: absolute; inset: 0; border-radius: 8px; pointer-events: none; z-index: 2;
}
.fan-foil-sheen {
  background: linear-gradient(115deg,
    transparent 10%, rgba(255, 70, 160, 0.55) 26%, rgba(255, 215, 80, 0.5) 38%, rgba(70, 255, 180, 0.5) 50%,
    rgba(70, 180, 255, 0.55) 62%, rgba(180, 90, 255, 0.5) 74%, transparent 90%);
  background-size: 260% 260%; background-position: var(--mx, 0%) 50%;
  mix-blend-mode: color-dodge; opacity: calc(0.12 + var(--foil, 0) * 0.3);
}
.fan-foil-lines {
  background: repeating-linear-gradient(-58deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay; opacity: calc(0.3 + var(--foil, 0) * 0.2);
}
/* Stained-glass foil (Umbreon ex): coloured panes that glint under the beam and shift colour as it passes */
.fan-foil-glass {
  position: absolute; inset: 0; border-radius: 8px; overflow: hidden; pointer-events: none; z-index: 2;
  mix-blend-mode: color-dodge;
  opacity: calc(0.3 + var(--foil, 0) * 0.3);
  filter: hue-rotate(calc(var(--foil, 0) * 35deg));
  -webkit-mask-image: radial-gradient(ellipse 32% 95% at var(--mx, 0%) 45%, #000 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.45) 100%);
          mask-image: radial-gradient(ellipse 32% 95% at var(--mx, 0%) 45%, #000 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.45) 100%);
}
.fan-foil-glass svg { display: block; width: 100%; height: 100%; }
.fan-foil-glass .tw { animation: glass-twinkle 3s ease-in-out infinite; }
@keyframes glass-twinkle { 0%, 100% { fill-opacity: 0.1; } 50% { fill-opacity: 1; } }
.fan-foil-glare {
  background: radial-gradient(ellipse 45% 70% at var(--mx, 0%) 40%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 45%, transparent 70%);
  mix-blend-mode: overlay; opacity: calc(var(--foil, 0) * 0.7);
}

/* Home bands sit on the page itself: no band background or divider lines; paragraphs justified */
.statement { background: none; border: none; }
.verified-band { border: none; }
.statement-body p, .verified-copy p:not(.hero-eyebrow) { text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: wrap; }
/* Let the card's glow fade out instead of stopping at the band's top edge (still no sideways scroll) */
.verified-band { overflow: visible; overflow-x: clip; }
/* Statement band: same side margins as the Verified band below (its card sits ~70px further in) */
@media (min-width: 861px) { .statement-inner { padding-left: clamp(24px, 7vw, 97px); padding-right: clamp(24px, 10.7vw, 147px); } }
@media (min-width: 861px) { .statement .hero-title { font-size: clamp(3.2rem, 6vw, 5.6rem); white-space: nowrap; } }

/* ── Statement band, centred: one column, a closing statement after the Verified band ── */
.statement-inner {
  grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center;
  max-width: 900px; padding: 72px 24px 96px; gap: 22px;
}
@media (min-width: 861px) { .statement-inner { padding-left: 24px; padding-right: 24px; } }
.statement-head { justify-items: center; gap: 18px; }
.statement .hero-eyebrow { text-align: center; }
.statement .hero-title { text-align: center; white-space: normal; font-size: clamp(3rem, 7.5vw, 6.6rem); }
@media (min-width: 861px) { .statement .hero-title { white-space: nowrap; font-size: clamp(3rem, 6.4vw, 6.6rem); } }
.statement .hero-title br { display: none; }            /* one line: EVERY SELLER. ONE CART. */
.statement .hero-title em::before { content: ' '; }
.statement-body { justify-items: center; padding: 0; gap: 12px; }
.statement-body p { text-align: center; max-width: 54ch; }
/* desktop: the intro under "Every Seller. One Cart." on two even lines (user 2026-11-24) */
@media (min-width: 861px) { .statement-body p:first-child { max-width: 90ch; text-wrap: balance; } }
.statement-btn { margin-top: 10px; }
@media (max-width: 860px) {
  .statement .hero-title br { display: inline; }        /* phones: two lines again */
  .statement .hero-title em::before { content: none; }
  .statement-inner { padding: 48px 16px 64px; }
}
/* "Delivered across Qatar": a strong line under the description */
.statement-body p.statement-strong {
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 1.5rem; line-height: 1.1; color: var(--gold-light); margin-top: 4px;
}

/* ── Top sellers row (home, last section) ── */
.trending-inner { max-width: 1280px; margin: 0 auto; padding: 24px clamp(24px, 7vw, 97px) 88px; display: grid; gap: 22px; }
.trending-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.trending-title {
  font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase;
  font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; color: var(--white); margin: 0;
}
.trending-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.trending-nav { margin-left: auto; display: flex; gap: 8px; }
.trending-btn {
  width: 40px; height: 40px; border-radius: 3px; border: 1px solid var(--border); background-color: var(--bg-card-2); cursor: pointer;
  background-image: var(--ctl-caret); background-repeat: no-repeat; background-position: center; background-size: 14px 9px;
  transition: border-color var(--transition), opacity var(--transition);
}
.trending-btn.prev { transform: rotate(90deg); }
.trending-btn.next { transform: rotate(-90deg); }
.trending-btn:hover:not(:disabled) { border-color: var(--gold-dim); }
.trending-btn:disabled { opacity: 0.3; cursor: default; }
.trending-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 6px 2px 14px;
  overscroll-behavior-x: contain;
}
.trending-row > .card-item { scroll-snap-align: start; }
.trending-row .loading-state { grid-column: 1 / -1; width: 100%; }
.trending-all { justify-self: center; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold-light); text-decoration: none; font-size: 0.95rem; }
.trending-all:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 760px) {
  .trending-inner { padding: 8px 16px 64px; }
  .trending-nav { display: none; }
  .trending-row { grid-auto-columns: 46%; gap: 12px; }
}

/* Top sellers: the scroll controls sit on either side of the row; hovering one glides the row */
.trending-nav { display: none; }
.trending-track { position: relative; }
.trending-row.gliding { scroll-snap-type: none; }
.trending-side {
  position: absolute; top: 0; bottom: 14px; width: 64px; z-index: 3;
  display: flex; align-items: center; border: none; padding: 0; cursor: pointer;
  transition: opacity 0.3s ease;
}
.trending-side.prev { left: -2px; justify-content: flex-start; background: linear-gradient(90deg, var(--bg) 25%, transparent); }
.trending-side.next { right: -2px; justify-content: flex-end; background: linear-gradient(270deg, var(--bg) 25%, transparent); }
.trending-side.off { opacity: 0; pointer-events: none; }
.trending-side .trending-btn {
  display: block; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background-color: var(--bg-card-2);
  background-image: var(--ctl-caret); background-repeat: no-repeat; background-position: center; background-size: 14px 9px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.trending-side.prev .trending-btn { transform: rotate(90deg); }
.trending-side.next .trending-btn { transform: rotate(-90deg); }
.trending-side:hover .trending-btn { border-color: var(--gold); }
.trending-side.prev:hover .trending-btn { transform: rotate(90deg) scale(1.1); }
.trending-side.next:hover .trending-btn { transform: rotate(-90deg) scale(1.1); }
@media (max-width: 760px) { .trending-side { display: none; } }
.trending-inner { grid-template-columns: minmax(0, 1fr); } .trending-track { min-width: 0; }
/* Only the card row reaches out to the page's normal edges; the heading keeps its inset */
@media (min-width: 761px) { .trending-track { margin-inline: calc(24px - clamp(24px, 7vw, 97px)); } }

/* Home sections: half the space between them */
.hero { padding-bottom: 40px; }
.verified-inner { padding-top: 40px; padding-bottom: 40px; }
.statement-inner { padding-top: 36px; padding-bottom: 48px; }
.trending-inner { padding-top: 12px; padding-bottom: 44px; }
@media (max-width: 860px) {
  .verified-inner { padding-top: 24px; padding-bottom: 28px; }
  .statement-inner { padding-top: 24px; padding-bottom: 32px; }
}
@media (max-width: 760px) {
  .hero { padding-bottom: 24px; }
  .trending-inner { padding-top: 4px; padding-bottom: 32px; }
}
.hero { min-height: 0; }   /* size to its content, so the gap to the next section is just the padding */

/* ================================================================
   LINKS + BUTTONS (2026-11-04): no underlines anywhere; on hover a slight
   zoom alongside each one's existing colour change. Uses the separate `scale`
   property so it never clobbers a control's own transform.
   ================================================================ */
a, a:hover, a:focus, a:visited { text-decoration: none !important; }
a:not([class]), .admin-help a, .seller-meta a, .footer-inner a { display: inline-block; }   /* inline links need a box to zoom */
a, button, .btn-primary, .btn-ghost {
  transition: scale 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, background-color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
}
@media (any-hover: hover) {
  a:hover, button:not(:disabled):hover { scale: 1.05; }
  /* Wide controls and list rows grow less, or not at all */
  .full-width:hover, .btn-primary.full-width:hover, .account-signout:hover { scale: 1.02; }
  .printing-row:hover, .printing-pick:hover, .set-picker-btn:hover, .trending-side:hover,
  .logo:hover, .mob-nav-btn:hover, .cart-remove:hover, .trending-all:hover { scale: 1; }
  .trending-all:hover, .logo:hover { scale: 1.04; }
}
button:not(:disabled):active, a:active { scale: 0.97; }

/* ─────────────────────────────────────────────
   PRICE HISTORY CHART (card page, phase 4)
   Series colours passed the dataviz palette validator on #1a1d28 (dark band,
   colour-blind separation, contrast). The market gold is a step darker than
   --gold so the line sits inside the validated lightness band.
───────────────────────────────────────────── */
.price-chart {
  --pc-market: #b08b3a; --pc-low: #3f92dc; --pc-sold: #d4627f;
  margin-top: 14px; background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px;
}
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-title {
  font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.price-chart > .pc-chips { margin-top: 8px; }
.pc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 4px; font-size: 0.75rem; color: var(--text-muted); }
.pc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pc-key { display: inline-block; width: 14px; height: 2px; border-radius: 1px; vertical-align: middle; margin-right: 6px; }
.pc-legend .pc-key { margin-right: 0; }
.pc-key-market { background: var(--pc-market); }
.pc-key-low    { background: var(--pc-low); }
.pc-key-sold   { width: 8px; height: 8px; border-radius: 50%; background: var(--pc-sold); }
.pc-plot { position: relative; min-height: 190px; touch-action: pan-y; }
.pc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pc-grid { stroke: var(--border); stroke-width: 1; }
.pc-tick { fill: var(--text-dim); font-size: 10px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.pc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pc-market { stroke: var(--pc-market); }
.pc-low    { stroke: var(--pc-low); }
.pc-sold   { fill: var(--pc-sold); stroke: var(--bg-card-2); stroke-width: 2; }
.pc-crossline { stroke: var(--text-dim); stroke-width: 1; stroke-dasharray: 3 3; }
.pc-hit { stroke: var(--bg-card-2); stroke-width: 2; }
.pc-hit-market { fill: var(--pc-market); }
.pc-hit-low    { fill: var(--pc-low); }
.pc-overlay { fill: transparent; cursor: crosshair; }
.pc-tip {
  position: absolute; top: 4px; pointer-events: none; z-index: 2;
  background: var(--bg-card); border: 1px solid var(--border-glow); border-radius: var(--radius-sm);
  padding: 7px 10px; font-size: 0.75rem; color: var(--text-muted); white-space: nowrap;
  box-shadow: var(--shadow-card);
}
.pc-tip b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 4px; }
.pc-tip-day { color: var(--text); font-weight: 600; margin-bottom: 3px; }
.pc-empty {
  min-height: 190px; display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--text-dim); font-size: 0.82rem; padding: 0 20px;
}
.pc-table-wrap { margin-top: 6px; font-size: 0.75rem; color: var(--text-muted); }
.pc-table-wrap summary { cursor: pointer; width: fit-content; }
.pc-table-wrap .pc-empty { min-height: 0; padding: 8px 0; }
.pc-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.pc-table th, .pc-table td { text-align: right; padding: 5px 6px; border-bottom: 1px solid var(--border); }
.pc-table th:first-child, .pc-table td:first-child { text-align: left; }
.pc-table th { color: var(--text-dim); font-weight: 600; }
.pc-table td { color: var(--text); }
.pc-pt { stroke: var(--bg-card-2); stroke-width: 2; }
.pc-pt-market { fill: var(--pc-market); }
.pc-pt-low    { fill: var(--pc-low); }

/* ─────────────────────────────────────────────
   CARD CORNERS — one standard display shape for every card
   Scryfall's JPGs are square with white (or black) fills behind the card's rounded
   corners. Every card image is clipped to the same shape, sized for the roundest
   printing (Alpha: its scan needs ~34px radius at 488px wide; modern cards ~18px),
   so no set ever shows white corners. Modern cards come out a touch rounder than
   real, which is invisible on black borders.
───────────────────────────────────────────── */
:root { --card-radius: 7% / 5%; }
.card-img-wrap,
.shop-item-img,
.modal-card-img,
.modal-img-wrap .holo-shine,
.modal-img-wrap .holo-glare,
.cart-item-img,
.order-summary-item img { border-radius: var(--card-radius); }
.card-img-wrap, .shop-item-img { overflow: hidden; }

/* ── HUB ORDERS (2026-11-08): every card goes through the Gatherers office ── */
.listing-eta { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }
.listing-eta.fast { color: var(--gold-light); }
.cart-eta { margin: 0 0 12px; padding: 10px 12px; font-size: 0.8rem; line-height: 1.45; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cart-group-eta { font-size: 0.72rem; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.co-flow { margin: 0 0 4px; padding: 12px 14px; font-size: 0.9rem; line-height: 1.5; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-sm); }
.co-flow strong { color: var(--gold-light); }
.co-office { margin-top: 12px; padding: 10px 12px; font-size: 0.85rem; line-height: 1.5;
  border: 1px solid var(--gold-dim); border-radius: var(--radius-sm); }
.co-office strong { color: var(--gold-light); }
.co-blocked { color: #facc15; font-size: 0.85rem; }

.o-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 4px 0 12px; padding: 0; }
.o-steps li { position: relative; padding-top: 12px; font-size: 0.72rem; text-align: center; color: var(--text-dim); }
.o-steps li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--border); }
.o-steps li.done { color: var(--text-muted); }
.o-steps li.done::before { background: var(--gold-dim); }
.o-steps li.now { color: var(--gold-light); font-weight: 600; }
.o-steps li.now::before { background: var(--gold); }
.o-eta { margin: 0 0 10px; font-size: 0.85rem; color: var(--text-muted); }
.o-eta strong { color: var(--gold-light); }
.o-issue { margin: 0 0 12px; padding: 10px 12px; font-size: 0.85rem; color: #facc15;
  border: 1px solid rgba(250,204,21,0.45); border-radius: var(--radius-sm); }
.o-part-state { font-size: 0.75rem; color: var(--text-muted); }
.o-part-state.good { color: var(--green); }
.o-part-state.bad { color: var(--red); }
.o-item.gone > span:first-child a { text-decoration: line-through !important; opacity: 0.6; }
.o-item s { color: var(--text-dim); }
.o-foot .good { color: var(--green); }
.o-timeline { margin-top: 12px; font-size: 0.82rem; }
.o-timeline summary { cursor: pointer; color: var(--gold-light); }
.o-timeline ol { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--border); display: grid; gap: 6px; }
.o-timeline li { color: var(--text); line-height: 1.45; }
.o-timeline li .sub { display: block; font-size: 0.72rem; }

/* Cart drawer scroll (2026-11-08): the groups have overflow:hidden, so as flex children they shrank to
   fit instead of overflowing, and the list never scrolled. Keep them full height and let .cart-items scroll. */
.cart-drawer { height: 100vh; height: 100dvh; }
.cart-items { min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cart-items > * { flex-shrink: 0; }

/* ── PLAIN RADIOS (2026-11-08, user's call): no box, outline, tint, scale or pulse glow around a
   radio or checkbox. Just the dot; the picked option's text turns gold and bold. ── */
input[type="radio"]:checked, input[type="checkbox"]:checked { animation: none; box-shadow: none; }
/* The gold ring is back (2026-11-17, user): it spreads out once from a radio or checkbox the moment it's
   ticked, on every page. picker.js adds .picked on the change, so redrawn lists don't all pulse. */
input[type="radio"].picked:checked, input[type="checkbox"].picked:checked { animation: pick-pulse 0.7s forwards; }
.co-method, .radio-label {
  background: none !important; border: none !important; box-shadow: none !important; transform: none !important;
  padding: 6px 0; border-radius: 0;
}
.co-methods { gap: 4px; }
.co-method .co-method-text strong, .radio-label span { color: var(--text); font-weight: 500; transition: color 0.2s; }
.co-method:has(input:checked) .co-method-text strong, .co-method.active .co-method-text strong,
.radio-label:has(input:checked) span { color: var(--gold-light); font-weight: 700; }

/* Phones: the cart opens above the bottom menu bar, so its Checkout button isn't hidden under it */
@media (max-width: 760px) {
  .cart-overlay { z-index: 1001; }
  .cart-drawer { z-index: 1002; }
}

.o-foot .warn { color: #facc15; }

/* ── NO FOIL ON HOVER (2026-11-08, buyers found it confusing) ──
   Result tiles, Top sellers and shop items: no rainbow sweep, just a slight zoom of the card image.
   The card page shows its foil shine only when the card is foil (see renderCardModal). */
.card-img-wrap::before, .shop-item-img::before { content: none !important; display: none !important; }
.card-img-wrap img, .shop-item-img img { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
/* (2026-11-08, revised) The whole listing tile zooms slightly on hover, not just the image */
.card-item:hover .card-img-wrap img, .shop-item:hover .shop-item-img img { transform: none; }
.card-item, .shop-item { transition: border-color 0.2s ease, box-shadow 0.25s ease, scale 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
@media (any-hover: hover) {
  .card-item:hover, .shop-item:hover {
    transform: none; scale: 1.04; position: relative; z-index: 2;
    border-color: var(--gold-dim); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
}

/* ── CARD PAGE TILT (2026-11-08, the user's call): the card tilts toward the mouse like the Mystic Remora
   card on the home page. Foil cards also get its foil layers; non-foil cards tilt with no foil.
   The colour wash behind the card (.ambi-page) is gone. initTilt() in app.js. ── */
.modal-img-wrap { perspective: 1100px; }
.page-card { border-radius: var(--card-radius); line-height: 0; }
.page-card .modal-card-img { display: block; max-width: none; margin: 0; }
.page-card .modal-flip-btn { z-index: 3; line-height: normal; }
.page-card.active { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55); }
@media (max-width: 900px) {
  .page-card { max-width: 220px; margin: 0 auto; }
}

/* Card page: the rules text sits in the same box as the cost and type line, under it */
.modal-stats-line + .modal-oracle-text { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.modal-oracle-text { font-size: 0.88rem; line-height: 1.6; font-style: italic; color: var(--text-muted); }
.modal-oracle-text .mana-sym { font-style: normal; }
/* Flesh and Blood text symbols ({p} {d} {r} ...) as the game's own round icons; {x} is a bold X */
.fab-sym { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.22em; margin: 0 0.08em; }
.fab-x { font-style: normal; font-weight: 700; text-transform: uppercase; }
/* Room for a zoomed tile inside the sideways-scrolling Top sellers row (it clips at its edges) */
.trending-row { padding: 14px 10px 20px; scroll-padding-inline: 10px; }

/* Card page: the game's real logo above the card name, in gold like the selected game tab */
.modal-game-logo {
  display: block; height: 26px; width: auto; max-width: 140px; object-fit: contain; object-position: left center;
  filter: brightness(0) invert(1) sepia(1) saturate(2.5) hue-rotate(5deg) brightness(0.9);
}

/* ── GRADES PAGE (#grades, 2026-11-08) ── */
.grades-section { padding: 48px 24px 72px; }
.grades-inner { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.grades-inner > h2 {
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--gold-light); margin: 0;
}
.grades-lead { margin: 0; max-width: 68ch; color: var(--text); font-size: 1.02rem; line-height: 1.6; }
.grades-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grades-how > div {
  padding: 14px; font-size: 0.86rem; line-height: 1.5; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.grades-how strong { display: block; margin-bottom: 4px; color: var(--text); }
.grade-list { display: flex; flex-direction: column; gap: 14px; }
.grade-item {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 18px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.grade-card { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.grade-text h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px;
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.5rem;
}
.grade-text h3 .cond-badge { font-size: 0.9rem; padding: 3px 9px; }
.grade-us { font-family: var(--font-body); font-stretch: 100%; font-size: 0.78rem; font-weight: 500; text-transform: none; color: var(--text-muted); }
.grade-lead { margin: 0 0 12px; color: var(--text); line-height: 1.5; }
.grade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grade-cols h4 { margin: 0 0 6px; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.grade-cols ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 0.88rem; line-height: 1.45; color: var(--text); }
.grade-cols ul li::marker { color: var(--green); }
.grade-cols ul.no li::marker { color: var(--red); }
.grades-slabs { padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.grades-slabs h3 {
  margin: 0 0 8px; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800;
  text-transform: uppercase; font-size: 1.3rem; color: var(--gold-light);
}
.grades-slabs p { margin: 0 0 10px; line-height: 1.6; color: var(--text); max-width: 75ch; }
.grades-slabs .grades-note { color: var(--text-muted); font-size: 0.88rem; }
.grades-table { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 0.9rem; }
.grades-table th, .grades-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.grades-table th { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.grades-table td .cond-badge { margin-right: 6px; }
.grades-link { font-size: 0.8rem; color: var(--gold-light); margin-left: auto; }
@media (max-width: 860px) { .grades-how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .grades-section { padding: 32px 16px 56px; }
  .grades-how { grid-template-columns: 1fr; }
  .grade-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; align-items: start; }
  .grade-cols { grid-template-columns: 1fr; gap: 10px; }
  .grade-text h3 { font-size: 1.2rem; }
}

/* Grades page: one card per grade that flips between front and back when clicked or tapped (same 3D flip as the
   home page cards). 190 px wide (the user found the Remora size too big). The photos are cut-outs with
   transparent corners, so the faces need no rounding of their own. */
.grade-item { grid-template-columns: 218px minmax(0, 1fr); gap: 24px; }
.grade-art { display: flex; justify-content: center; }
.grade-flip { width: min(218px, 100%); aspect-ratio: 294 / 410; perspective: 1200px; cursor: pointer; outline: none; }
.grade-flip-inner {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), scale 0.3s ease;
}
.grade-flip.flipped .grade-flip-inner { transform: rotateY(180deg); }
.gf-face {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
}
.gf-back { transform: rotateY(180deg); }
@media (any-hover: hover) { .grade-flip:hover .grade-flip-inner { scale: 1.02; } }
.grade-flip:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 8px; border-radius: 10px; }
@media (max-width: 600px) {
  .grade-item { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .grade-flip { width: min(230px, 65%); }
}
/* Grades page: the longer description, above the Can have / Can't have lists */
.grade-desc { margin: 0 0 14px; max-width: 75ch; font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }

/* ── GRADES PAGE SPACING (2026-11-08): a centred, wider column; text uses the full width of each box;
   smaller paragraph text; more room between the card, the text and each block. ── */
.grades-section { padding: 56px 24px 88px; }
.grades-inner { max-width: 1100px; gap: 36px; }
.grades-inner > h2 { text-align: center; }
.grades-lead { max-width: 72ch; margin: -12px auto 0; text-align: center; font-size: 0.95rem; color: var(--text-muted); }
.grades-how { gap: 16px; }
.grades-how > div { padding: 18px 20px; font-size: 0.82rem; }
.grades-how strong { margin-bottom: 6px; font-size: 0.9rem; }
.grade-list { gap: 20px; }
.grade-item { grid-template-columns: 218px minmax(0, 1fr); gap: 44px; align-items: start; padding: 32px 36px; }
.grade-text h3 { margin: 0 0 10px; }
.grade-lead { margin: 0 0 12px; font-size: 0.95rem; font-weight: 500; }
.grade-desc { max-width: none; margin: 0 0 22px; font-size: 0.84rem; line-height: 1.7; }
.grade-cols { gap: 32px; padding-top: 18px; border-top: 1px solid var(--border); }
.grade-cols h4 { margin: 0 0 10px; }
.grade-cols ul { gap: 7px; font-size: 0.84rem; }
.grades-slabs { padding: 32px 36px; }
.grades-slabs h3 { margin-bottom: 14px; }
.grades-slabs p { max-width: none; font-size: 0.86rem; line-height: 1.7; margin-bottom: 14px; }
.grades-table { margin: 6px 0 16px; font-size: 0.86rem; }
.grades-table th, .grades-table td { padding: 11px 14px; }
@media (max-width: 860px) {
  .grade-item { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px; }
  .grade-art { justify-content: center; }
}
@media (max-width: 600px) {
  .grades-section { padding: 36px 16px 64px; }
  .grades-inner { gap: 28px; }
  .grades-lead { margin-top: -8px; }
  .grade-item, .grades-slabs { padding: 20px 18px; }
  .grade-cols { grid-template-columns: 1fr; gap: 18px; }
}

/* Grades page: a zoom pulse hints that the cards can be flipped. Each card pulses ONCE, one at a time down the
   page, when it is on screen (startGradePulse in app.js). A smooth swell, no bounce. */
@keyframes grade-pulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.045; }
}
.grade-flip.pulse .grade-flip-inner { animation: grade-pulse 0.9s cubic-bezier(0.45, 0, 0.55, 1); }
@media (any-hover: hover) { .grade-flip:hover .grade-flip-inner { animation: none; scale: 1.03; } }

/* Grades page, lighter to draw: one plain shadow per card instead of a drop-shadow filter traced around each photo,
   and each grade box keeps its layout and painting to itself. */
.gf-face { filter: none; }
.grade-flip-inner { border-radius: 4.5% / 3.3%; box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5); }
.grade-item { contain: layout paint; }

/* ── FAILED CARD CHOICE (#resolve, 2026-11-09): the buyer picks a replacement or a refund for each
   card that failed its check, or cancels the order. Round gold radios (global style), plain labels:
   the picked option's title turns gold and bold. A sticky bar adds it up; Confirm shows a summary first. ── */
.resolve-page { max-width: 760px; margin: 0 auto; }
#resolveBody { display: flex; flex-direction: column; gap: 16px; }
.rs-lead { color: var(--text); max-width: 62ch; }
.rs-note { color: var(--text-muted); font-size: 0.9rem; border-left: 2px solid var(--gold-dim); padding-left: 12px; max-width: 62ch; }
.rs-admin { padding: 10px 12px; border: 1px dashed var(--gold); border-radius: var(--radius-sm); color: var(--gold-light); font-size: 0.85rem; }
.rs-timer { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--gold-light);
  border: 1px solid var(--gold-dim); border-radius: var(--radius-sm); padding: 5px 10px; }
.rs-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: opacity 0.2s; }
.rs-card.muted { opacity: 0.4; }
.rs-card-head { display: flex; gap: 14px; align-items: flex-start; }
.rs-img { width: 86px; flex: 0 0 auto; border-radius: var(--card-radius); box-shadow: 0 2px 10px rgba(0,0,0,0.5); display: block; }
.rs-card-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rs-name { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.02em; line-height: 1.1; }
.rs-found { color: #f6ab37; font-size: 0.88rem; margin-top: 6px; }
.rs-none { margin: 0; }
.rs-opts { display: flex; flex-direction: column; }
.rs-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 2px; cursor: pointer; border-top: 1px solid var(--border); }
.rs-opt.off { cursor: not-allowed; opacity: 0.55; }
.rs-opt input { margin: 0; }
.rs-opt-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rs-opt-title { color: var(--text); font-weight: 500; transition: color 0.2s; }
.rs-opt:has(input:checked) .rs-opt-title { color: var(--gold-light); font-weight: 700; }
.rs-opt-title .verified-badge { margin-left: 4px; vertical-align: 1px; }
.rs-opt-right { text-align: right; font-weight: 700; font-size: 0.88rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-opt-right small { display: block; font-weight: 450; color: var(--text-muted); font-size: 0.76rem; }
.rs-good { color: var(--green); }
.rs-gold { color: var(--gold-light); }
.rs-cancel { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; background: var(--bg-card); }
.rs-confirm { border: 1px solid var(--gold); border-radius: var(--radius-lg); padding: 16px; background: rgba(201,162,74,0.06); display: flex; flex-direction: column; gap: 10px; }
.rs-confirm ul, .rs-done ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.rs-confirm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rs-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  background: #10131a; border: 1px solid var(--gold-dim); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: 0 -10px 30px rgba(13,15,20,0.9); }
.rs-bar-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.rs-big { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.02em; }
.rs-bar .btn-primary:disabled { opacity: 0.45; cursor: not-allowed; scale: 1; }
.rs-done { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.rs-done h3 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; margin: 0; }
.rs-done-head { display: flex; gap: 12px; align-items: center; }
.rs-done-ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(34,197,94,0.14); color: var(--green); display: grid; place-items: center; }
.o-action { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.o-action .btn-primary { flex: 0 0 auto; }
@media (max-width: 760px) {
  .rs-img { width: 70px; }
  .rs-card { padding: 14px; }
  .rs-bar { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }   /* above the phone's bottom menu */
  .rs-bar .btn-primary { width: 100%; }
}

/* ── TRUST BADGE (2026-11-09, the user's design; trust-badge.js) ──
   Matte gold hexagon, score in bold black, TRUST in grey inside. Small badges ripple once as they
   come into view and keep rippling on hover; the large badge sits in two still outlines with a slow
   ripple. The tip opens below, lined up with the badge's left edge. Animations are on for everyone. */
.tb { position: relative; display: inline-flex; flex: 0 0 auto; cursor: default; user-select: none; -webkit-user-select: none; outline: none; vertical-align: middle; }
.tb svg { display: block; overflow: visible; }
.tb.sm svg { width: 54px; height: 56px; }
.tb.lg svg { width: 68px; height: 71px; }
.tb .hex-fill { fill: #c4a052; filter: url(#tbMatte); }
.tb .num { font-family: var(--font-display); font-stretch: 72%; font-weight: 900; fill: #0d0f14; letter-spacing: -0.02em; font-size: 36px; }
.tb.lg .num { font-size: 38px; }
.tb .word { font-family: var(--font-display); font-stretch: 72%; font-weight: 700; letter-spacing: 0.06em; fill: #4a4538; font-size: 14px; }
.tb.lg .word { font-size: 12px; }
.tb:focus-visible svg { filter: drop-shadow(0 0 4px var(--gold)); }
.tb .halo { fill: none; stroke: var(--gold-light); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes tbRipple { 0% { transform: scale(1); opacity: 0.75; } 100% { transform: scale(1.6); opacity: 0; } }
.tb.ripple .halo { animation: tbRipple 1.3s cubic-bezier(0.2, 0.6, 0.3, 1) both; }
.tb.ripple .halo.h2 { animation-delay: 0.28s; }
.tb:hover .halo, .tb.open .halo { animation: tbRipple 1.5s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.tb:hover .halo.h2, .tb.open .halo.h2 { animation-delay: 0.5s; }
.tb .still { fill: none; stroke: var(--gold); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; display: none; }
.tb.lg .still { display: inline; }
.tb.lg .still.s1 { transform: scale(1.2); opacity: 0.55; }
.tb.lg .still.s2 { transform: scale(1.4); opacity: 0.28; }
.tb.lg .halo { animation: tbRipple 2.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.tb.lg .halo.h2 { animation-delay: 1.3s; }
.tb .hold-ring { fill: none; stroke: #fff; stroke-width: 6; stroke-dasharray: 300; stroke-dashoffset: 300; }
.tb.holding .hold-ring { transition: stroke-dashoffset 0.7s linear; stroke-dashoffset: 0; }
.tb[data-hold] { cursor: pointer; touch-action: none; }
.tb-tip { position: absolute; top: calc(100% + 10px); left: -6px; width: 230px; z-index: 30; display: flex; flex-direction: column;
  background: #0f1219; border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 10px 12px; text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: opacity 0.15s; font-size: 0.85rem; line-height: 1.45; }
.tb-tip::after { content: ""; position: absolute; bottom: 100%; left: 26px; border: 7px solid transparent; border-bottom-color: var(--gold-dim); }
.tb.lg .tb-tip::after { left: 33px; }
.tb:hover .tb-tip, .tb.open .tb-tip { opacity: 1; }
.tb-tip-t { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; color: var(--gold-light); letter-spacing: 0.03em; font-size: 0.9rem; }
.tb-tip-since { color: var(--text-muted); font-size: 0.78rem; margin-top: 1px; }
.tb-tip-rows { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin-top: 8px; }
.tb-tip-rows span { color: var(--text-muted); }
.tb-tip-rows b { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.tb-tip-foot { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--text-dim); }
/* Card page rows: badge at the start of the seller column; an empty slot keeps names lined up */
.listing-seller.has-tb { display: flex; gap: 12px; align-items: center; }
.listing-seller.has-tb > div { min-width: 0; }
.tb-slot { width: 54px; flex: 0 0 auto; }
/* Shop page head: room for the large badge's outlines */
.shop-head-trust { display: flex; gap: 28px; align-items: center; padding-left: 10px; }
.shop-head-trust > div { min-width: 0; }

/* ── SEARCH CORRECTION ("Showing results for …") ── */
#resultsCount strong { color: var(--text, #f0ede6); font-weight: 700; }
#resultsCount .search-instead { color: var(--text-dim); }
#resultsCount .search-instead a { color: var(--gold); }

/* ── SEO LINKS AND PAGES (api/seo.php) ──
   Card names on tiles are real links for search engines; they look and behave
   like the plain names they replaced (the whole tile reacts to hover, not the text) */
a.card-name { display: block; color: var(--text); }
a.card-name:hover { color: var(--gold-light); }
@media (any-hover: hover) { a.card-name:hover { scale: 1; } }
/* The server-drawn summary, seen only without JavaScript (app.js removes it) */
.seo-page { max-width: 900px; margin: 32px auto; padding: 0 24px; color: var(--text); }
.seo-page h1 { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; color: var(--gold-light); font-size: 2rem; margin: 8px 0; }
.seo-page h2 { font-size: 1rem; text-transform: uppercase; color: var(--gold); margin: 20px 0 8px; }
.seo-page .seo-crumbs, .seo-page .seo-sub { color: var(--text-muted); font-size: 0.85rem; }
.seo-page .seo-img { float: right; width: 244px; height: auto; border-radius: 12px; margin: 0 0 16px 24px; }
.seo-page .seo-list { padding-left: 18px; line-height: 1.7; }

/* ── WHATSAPP OPT-IN (checkout) ── */
.co-wa { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-size: 0.9rem; color: var(--text); cursor: pointer; }

/* ── Grades page "How we grade" (2026-11-10): one statement block like the home page's "Every Seller. One Cart."
   in place of the four small boxes. Option A from the type mockup: headline 56, paragraph 17 off-white and justified
   in four lines (desktop), gold line 22, closing line 17 semibold. ── */
.grades-statement .statement-inner { padding: 8px 0 12px; max-width: 1100px; }
.grades-statement .statement-body { gap: 0; }
.grades-statement .hero-title { font-size: clamp(2.5rem, 9vw, 3.5rem); }
@media (min-width: 861px) { .grades-statement .hero-title { font-size: 3.5rem; } }
.grades-statement .statement-body p:first-child {
  max-width: 775px; margin-top: 22px; font-size: 1.0625rem; line-height: 1.65; color: rgba(232, 230, 223, 0.82);
  text-align: justify; text-align-last: center; hyphens: none; -webkit-hyphens: none; text-wrap: wrap;
}
.grades-statement .statement-body p.statement-strong { font-size: 1.375rem; margin-top: 28px; }
.grades-statement .statement-body p:last-child { margin-top: 8px; color: var(--text); font-size: 1.0625rem; font-weight: 600; }
@media (max-width: 860px) {
  .grades-statement .statement-inner { padding: 4px 0 8px; }
  .grades-statement .statement-body p:first-child { font-size: 1rem; }
  .grades-statement .statement-body p.statement-strong { font-size: 1.2rem; }
  .grades-statement .statement-body p:last-child { font-size: 1rem; }
}

/* ── DECKLIST PAGE REWORK (2026-11-10, from the approved mockup): statement header, the list and three steps side by side,
   results in one section (count + bar, the cards in stock, then the total and Add to cart). ── */
.deck-page { max-width: 1100px; display: grid; gap: 28px; }
.deck-page #deckResults:not(:empty) { margin-top: 0; }
.dk-head { display: grid; justify-items: center; text-align: center; }
.dk-title {
  margin: 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.5rem, 7vw, 3.5rem); line-height: 0.92; letter-spacing: -0.01em; color: var(--text); text-wrap: balance;
}
.dk-title em { font-style: normal; color: var(--gold-light); }
.dk-lead { margin: 18px 0 0; max-width: 640px; font-size: 1.0625rem; line-height: 1.65; color: rgba(232, 230, 223, 0.82); text-wrap: pretty; }
.dk-head .deck-games { justify-content: center; margin-top: 22px; }
.dk-input { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dk-paste { display: grid; gap: 12px; min-width: 0; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.dk-paste-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.dk-paste-top b { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; }
.dk-paste-top span { color: var(--text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.dk-paste textarea { width: 100%; min-height: 240px; margin: 0; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 0.88rem; line-height: 1.65; }
.dk-paste .login-error { margin: 0; }
.dk-steps { padding: 6px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.dk-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.dk-step:last-child { border-bottom: 0; }
.dk-step i {
  font-style: normal; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-light); font-weight: 800; font-size: 0.9rem;
}
.dk-step h3 { margin: 4px 0; font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; letter-spacing: 0.03em; font-size: 1rem; }
.dk-step p { margin: 0; color: var(--text-muted); font-size: 0.86rem; line-height: 1.55; }
.dk-formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dk-formats span { font: 0.72rem ui-monospace, Consolas, monospace; color: var(--text); background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; }

.dk-results { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.dk-res-h { padding: 16px 18px; background: var(--bg-card-2); border-bottom: 1px solid var(--border); }
.dk-count { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.dk-count b { font-size: 1.25rem; }
.dk-meter { height: 6px; margin-top: 8px; border-radius: 3px; overflow: hidden; background: var(--border); }   /* the track; fills green as the deck goes in the cart */
.dk-meter i { display: block; height: 100%; background: var(--green); }
.dk-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; font-size: 0.78rem; color: var(--text-muted); }
.dk-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.dk-legend .ok::before { background: var(--green); }
.dk-legend .bad::before { background: var(--red); }
.dk-legend .alt { color: #e0a43a; }
.dk-legend .alt::before { background: #e0a43a; }
.dk-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 110px; gap: 16px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.dk-thumb { display: block; width: 52px; aspect-ratio: 63 / 88; border-radius: 4px; overflow: hidden; background: var(--bg-card-2); }
.dk-thumb img, .dk-thumb > * { display: block; width: 100%; height: 100%; object-fit: cover; }
.dk-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dk-name a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1rem; }
.dk-name a:hover { color: var(--gold-light); }
.dk-qty { font-size: 0.78rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; background: rgba(62, 207, 142, 0.12); color: var(--green); font-variant-numeric: tabular-nums; }
.dk-qty.short { background: rgba(224, 164, 58, 0.14); color: #e0a43a; }
.dk-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; margin-top: 6px; color: var(--text-muted); font-size: 0.84rem; line-height: 1.45; }
.dk-pick b { color: var(--text); font-weight: 600; }
.dk-short { margin-top: 6px; font-size: 0.82rem; color: #e0a43a; }
.dk-price { text-align: right; font-weight: 700; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.dk-price small { display: block; margin-top: 3px; color: var(--text-muted); font-weight: 500; font-size: 0.74rem; }
.dk-empty { margin: 0; padding: 22px 18px; color: var(--text-muted); }
.dk-res-f { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 16px 18px; background: var(--bg-card-2); }
.dk-total small { display: block; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dk-total b { font-size: 1.5rem; color: var(--gold-light); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .dk-input { grid-template-columns: minmax(0, 1fr); }
  .dk-row { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
  .dk-thumb { width: 40px; }
  .dk-price { grid-column: 2; text-align: left; }
  .dk-price small { display: inline; margin-left: 6px; }
  .dk-res-f .btn-primary { width: 100%; }
}
.dk-pick a.dk-set { color: inherit; text-decoration: underline; text-decoration-color: rgba(138, 135, 120, 0.5); text-underline-offset: 2px; }
.dk-pick a.dk-set:hover { color: var(--gold-light); text-decoration-color: currentColor; }

/* Decklist: the "cheapest across all printings" switch in step 2, and the other printings offered when a line's
   named printing is short (2026-11-10) */
.dk-step-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dk-qty.none { background: rgba(246, 171, 55, 0.12); color: var(--red); }
.dk-row-none .dk-thumb { opacity: 0.45; }
.dk-dash { color: var(--text-muted); }
.dk-link { margin-left: 4px; padding: 0; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: 0.78rem; text-decoration: underline; cursor: pointer; }
.dk-link:hover { color: var(--red); }

/* Card page "Other printings" (2026-11-10): rows don't zoom on hover. The general button:not(:disabled):hover zoom
   outranked the exception above, and the zoomed row was clipped by the scrolling list (set symbol and price cut off).
   Fixed column widths so the number, finish and price line up on every row whatever the price text. */
@media (any-hover: hover) {
  button.printing-row:not(:disabled):hover, button.printing-pick:not(:disabled):hover,
  button.set-picker-btn:not(:disabled):hover, button.trending-side:not(:disabled):hover,
  button.mob-nav-btn:not(:disabled):hover, button.cart-remove:not(:disabled):hover { scale: 1; }
}
.printing-row { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 0.8fr) 130px; }
.printing-set { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.printing-price { text-align: right; }
@media (max-width: 760px) { .printing-row { grid-template-columns: minmax(0, 1fr) auto; } }
/* Card page: a two-sided card flips when clicked anywhere on it */
.page-card.can-flip { cursor: pointer; }
.page-card.can-flip:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 6px; }
/* Card page: one finish choice for the page. Price boxes pick it too; the chosen finish's box is outlined in gold. */
.price-box.pickable { cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.price-box.pickable:hover { border-color: rgba(201, 162, 74, 0.5); }
.price-box.active { border-color: var(--gold); background: rgba(201, 162, 74, 0.06); }
.price-box.pickable:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.listings-empty .link-btn { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--gold-light); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* Card page with nothing for sale (or nothing in the finish picked): the copies of other printings, grouped by printing */
.alt-print { margin-top: 14px; }
.alt-print-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--text); font-weight: 600; text-decoration: none; }
.alt-print-head:hover { color: var(--gold-light); }
.alt-print-head .num { color: var(--text-muted); font-weight: 500; }
.alt-print-img { display: block; width: 30px; aspect-ratio: 63 / 88; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.alt-print-img img, .alt-print-img > * { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (any-hover: hover) { a.alt-print-head:hover { scale: 1; } }
/* Card page heading "1 listing from 1 seller": the numbers in white so they read as counts, not part of the title */
/* Other printings' copies (nothing for sale here): each printing as a browse tile, its sellers beside it, more air
   between printings (2026-11-10, replaces the small picture + "This printing" tag) */
.alt-print { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 24px; }
.alt-print + .alt-print { padding-top: 24px; border-top: 1px solid var(--border); }
.alt-print-tile .card-item { width: 100%; }
.alt-print .listings-table { margin: 0; }
@media (max-width: 760px) {
  .alt-print { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .alt-print-tile { width: min(200px, 60%); }
}
/* Beside the tile the rows are narrower: more room for the shop name, less for the price column */
.alt-print { grid-template-columns: 176px minmax(0, 1fr); }
.alt-print .listing-row { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(220px, auto); }
@media (max-width: 760px) {
  .alt-print { grid-template-columns: minmax(0, 1fr); }
  .alt-print .listing-row { grid-template-columns: minmax(0, 1fr); }
}
.listings-empty .listings-alt-note { color: var(--gold-light); }

/* Cyberpunk version name (Nova Rare, Epic, Iconic...) beside the set on tiles and in Other printings */
.card-ver { color: var(--text); }

/* Foil tint per treatment (2026-11-10): the same rainbow sheen with a slight colour washed in.
   --foil-tint is a soft colour layered over the sheen's rainbow; no tint for plain Foil, Rainbow Foil and Cyberpunk Rare. */
.foil3d-sheen {
  background:
    linear-gradient(var(--foil-tint, transparent), var(--foil-tint, transparent)),
    linear-gradient(115deg, transparent 10%, rgba(255, 70, 160, 0.55) 26%, rgba(255, 215, 80, 0.5) 38%, rgba(70, 255, 180, 0.5) 50%,
      rgba(70, 180, 255, 0.55) 62%, rgba(180, 90, 255, 0.5) 74%, transparent 90%);
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, var(--mx) var(--my);
}
.foil3d.tint-nova          { --foil-tint: rgba(255, 60, 60, 0.38); }    /* Nova Rare: red */
.foil3d.tint-cold          { --foil-tint: rgba(60, 140, 255, 0.38); }   /* Cold Foil: blue */
.foil3d.tint-gold          { --foil-tint: rgba(255, 196, 60, 0.38); }   /* Gold Cold Foil: gold */
.foil3d.tint-etched        { --foil-tint: rgba(230, 140, 80, 0.34); }   /* Etched: copper */
.foil3d.tint-epic          { --foil-tint: rgba(170, 90, 255, 0.38); }   /* Epic: violet */
.foil3d.tint-iconic        { --foil-tint: rgba(255, 190, 70, 0.38); }   /* Iconic Legend: amber gold */
.foil3d.tint-iconic-other  { --foil-tint: rgba(40, 215, 210, 0.36); }   /* Iconic Other: cyan */
.foil3d.tint-secret        { --foil-tint: rgba(60, 225, 120, 0.36); }   /* Secret: green */
.foil3d.tint-iconic-secret { --foil-tint: rgba(255, 80, 200, 0.38); }   /* Iconic Secret: magenta */

/* ── FILTERS SIDEBAR SCROLL (2026-11-10): the sidebar sticks beside the results, so when it's taller than the screen
   its lower filters (Set, Rarity, Type) and their open lists were out of reach. On wide screens it now scrolls on its
   own; revealInSidebar() (app.js) and picker.js scroll it to show an opened list. ── */
@media (min-width: 901px) {
  .filters-panel {
    max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  }
}

/* ── RARITY SYMBOLS + SET CODES (Flesh and Blood, Cyberpunk; 2026-11-10, approved mockup) ── */
.rar-sym { display: inline-block; flex-shrink: 0; vertical-align: -0.24em; margin-right: 0.35em; }
.set-code {
  display: inline-block; flex-shrink: 0; white-space: nowrap; margin-right: 0.4em; padding: 0 4px; vertical-align: 0.05em;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; line-height: 1.5; color: var(--text);
  background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 3px;
}
/* Magic rarities in the Rarity list: a dot in the set-symbol colours */
.rarity-dot { display: inline-block; flex-shrink: 0; width: 0.8em; height: 0.8em; border-radius: 50%; margin: 0 0.45em 0 0.1em; background: #d8d8d8; }
.rarity-dot.rarity-uncommon { background: linear-gradient(135deg, #8aa1ad, #e3f0f6 50%, #8aa1ad); }
.rarity-dot.rarity-rare     { background: linear-gradient(135deg, #a8862b, #f3dc93 50%, #a8862b); }
.rarity-dot.rarity-mythic   { background: linear-gradient(135deg, #c2421a, #f7a33a 50%, #c2421a); }
/* Tile set line: symbol and code tag keep their size, the set name shortens */
.card-set { display: flex; align-items: center; }
.card-set .card-set-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Set names link to Browse by set (2026-11-21): same text colour, gold on hover; inline so the tile's ellipsis still works */
a.set-link { color: inherit; display: inline; }
@media (any-hover: hover) { a.set-link:hover { color: var(--gold-light); scale: none; } }
.modal-card-set .set-code, .printing-set .set-code { vertical-align: 0.1em; }
.set-picker-list li .rar-sym, .set-picker-list li .rarity-dot, .set-picker-list li .set-code { margin-top: 0.1em; }

/* ── Sidebar (user, 2026-11-10): no visible scrollbar, more room under the search box and around list rows ── */
.filters-panel { scrollbar-width: none; }
.filters-panel::-webkit-scrollbar { display: none; }
.set-picker-panel { padding: 10px; }
.set-picker-panel input { margin-bottom: 10px; }
.set-picker-list { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.set-picker-list li { padding: 8px 10px; margin-bottom: 2px; align-items: center; }
/* Set list rows with a code tag (Flesh and Blood, Cyberpunk): left-aligned, the name fills the row and wraps between
   words only; no year (the narrow sidebar broke names mid-word, and the list is already newest first) */
.set-picker-list li:has(.set-code) { justify-content: flex-start; text-align: left; }
.set-picker-list li:has(.set-code) .set-opt-name { flex: 1 1 auto; overflow-wrap: normal; word-break: normal; }
.set-picker-list li:has(.set-code) .set-opt-year { display: none; }
.set-picker-list .set-code { min-width: 3.9em; text-align: center; }

/* ── SIDEBAR LISTS OPEN IN PLACE (user, 2026-11-10): Set / Rarity / Type open below their button inside the sidebar and
   push the filters under them down, instead of floating on top. Rows are left-aligned so icons sit in one column. ── */
.filters-panel .set-picker-panel {
  position: static; margin-top: 8px; box-shadow: none;
  background: var(--bg-card-2); border: 1px solid var(--border);
}
.filters-panel .set-picker-panel input { text-align: left; background: var(--bg-card); }
.filters-panel .set-picker-list li { justify-content: flex-start; text-align: left; }
.filters-panel .set-picker-list .set-opt-name { flex: 1 1 auto; }
/* "All ..." rows line up with the names of rows that have an icon or code in front */
.filters-panel .set-picker-list:has(.rar-sym, .rarity-dot) li:not(:has(.rar-sym, .rarity-dot)) { padding-left: calc(10px + 18px + 0.35em); }
.filters-panel .set-picker-list:has(.set-code) li:not(:has(.set-code)) { padding-left: calc(10px + 3.9 * 0.68rem + 0.4 * 0.68rem + 2px); }
.filters-panel .set-picker-list:has(.set-icon) li:not(:has(.set-icon)) { padding-left: calc(10px + 1.45em); }

/* ── SIDEBAR AS TEXT (user, 2026-11-10): no rectangular boxes in the filter sidebar. Options are words (the chosen one
   gold and underlined), drop-downs open from their own text ("All sets ▾") and list their rows underneath, nested
   behind a thin line. Mana / pitch / colour icons keep their round look. ── */
.filters-panel { background: none; border: none; box-shadow: none; padding: 4px 4px 4px 2px; }
.filters-panel .filter-group { margin-bottom: 22px; }
.filters-panel .filter-group label { margin-bottom: 8px; }

/* Word options: availability, finish, the "All" beside colour icons */
.filters-panel .color-filters { gap: 4px 16px; align-items: center; }
.filters-panel .color-btn:not(.mana-btn) {
  background: none; border: none; box-shadow: none; border-radius: 0; padding: 2px 0;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600; text-transform: none; letter-spacing: 0;
  text-decoration: underline 2px transparent; text-underline-offset: 5px; transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.filters-panel .color-btn:not(.mana-btn):hover { color: var(--text); background: none; border: none; }
.filters-panel .color-btn:not(.mana-btn).active,
.filters-panel .color-btn.verified-btn.active {
  color: var(--gold-light); background: none; border: none; box-shadow: none; text-decoration-color: var(--gold);
}
.filters-panel .color-btn.foil-label { color: #b9a3f5; }
.filters-panel .color-btn.foil-label.active { color: #d6c8ff; background: none; box-shadow: none; text-decoration-color: #a78bfa; }
.filters-panel .color-btn .fin-text { font: inherit; }
/* Icons: no box around them either, just the chosen one ringed */
.filters-panel .color-btn.mana-btn { background: none; border-color: transparent; }

/* Drop-down triggers: the current value as text with a small chevron */
.filters-panel .set-picker-btn {
  width: 100%; max-width: 100%; display: flex; align-items: center; gap: 8px; justify-content: space-between;
  background: none; border: none; box-shadow: none; padding: 2px 0; text-align: left;
  font-size: 0.9rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text);
}
.filters-panel .set-picker-btn::after {
  content: ''; flex-shrink: 0; width: 11px; height: 7px; background: var(--ctl-caret) center / 11px 7px no-repeat; transition: transform 0.2s ease;
}
.filters-panel .set-picker.open .set-picker-btn::after { transform: rotate(180deg); }
.filters-panel .set-picker-btn:hover, .filters-panel .set-picker.open .set-picker-btn { color: var(--gold-light); border: none; box-shadow: none; }
.filters-panel .set-picker.has-value .set-picker-btn { color: var(--gold-light); border: none; box-shadow: none; background: none; }
.filters-panel .set-picker-label { flex: 1 1 auto; min-width: 0; text-align: left; }

/* The open list: rows nested under the trigger behind a thin line, no box */
.filters-panel .set-picker-panel { background: none; border: none; border-left: 1px solid var(--border); border-radius: 0; padding: 2px 0 2px 12px; margin-top: 8px; }
.filters-panel .set-picker-panel input {
  background: none; border: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 6px 0; margin-bottom: 8px; text-align: left;
}
.filters-panel .set-picker-panel input:focus { border-bottom-color: var(--gold-dim); box-shadow: none; }
.filters-panel .set-picker-list li { padding: 6px 0; margin: 0; border-radius: 0; color: var(--text-muted); background: none; }
.filters-panel .set-picker-list li:hover { background: none; color: var(--text); }
.filters-panel .set-picker-list li.active { background: none; color: var(--gold-light); }
/* Store list rows (2026-11-21): name with "Expedited" under it on the left, cards listed on the right */
.set-picker-list li.store-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.store-opt-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.store-opt-text .set-opt-name { flex: none; }
.store-opt-text .verified-badge { align-self: flex-start; margin-top: 4px; }
/* a see-through line between stores */
.filters-panel .set-picker-list li.store-opt, .set-picker-list li.store-opt { padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.set-picker-list li.store-opt:last-child { border-bottom: none; }
.store-opt-count { flex-shrink: 0; padding-right: 12px; color: var(--text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.set-picker-list li.store-opt.active .store-opt-count { color: var(--gold-light); }
/* "All ..." rows line up with names that have an icon or code in front (no side padding now) */
.filters-panel .set-picker-list:has(.rar-sym, .rarity-dot) li:not(:has(.rar-sym, .rarity-dot)) { padding-left: calc(18px + 0.35em); }
.filters-panel .set-picker-list:has(.set-code) li:not(:has(.set-code)) { padding-left: calc(3.9 * 0.68rem + 0.4 * 0.68rem + 2px); }
.filters-panel .set-picker-list:has(.set-icon) li:not(:has(.set-icon)) { padding-left: 1.45em; }
.filters-panel .set-code { background: none; }
/* Word rows flow left to right (the old pill layout spread them into equal columns, centred) */
.filters-panel .color-filters:not([data-pick="color"]) { display: flex !important; flex-wrap: wrap; justify-content: flex-start !important; gap: 4px 16px; }
.filters-panel .color-filters:not([data-pick="color"]) .color-btn { flex: 0 0 auto; width: auto; min-width: 0; }
/* Sidebar follow-up (user, 2026-11-10): Availability and Finish are buttons again, but slim rounded ones (not the old
   chunky boxes); open lists have no side line and their icons start right under the drop-down's title. */
.filters-panel .color-filters:not([data-pick="color"]) { gap: 6px; }
.filters-panel .color-filters:not([data-pick="color"]) .color-btn {
  padding: 4px 11px; border: 1px solid var(--border); border-radius: 999px; background: none;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-decoration: none;
}
.filters-panel .color-filters:not([data-pick="color"]) .color-btn:hover { border-color: var(--ctl-hover); color: var(--text); }
.filters-panel .color-filters:not([data-pick="color"]) .color-btn.active {
  border-color: var(--gold); color: #0d0f14; background: var(--gold); text-decoration: none; box-shadow: none;
}
.filters-panel .color-filters:not([data-pick="color"]) .color-btn.foil-label { color: #b9a3f5; }
.filters-panel .color-filters:not([data-pick="color"]) .color-btn.foil-label.active { border-color: #a78bfa; color: #0d0f14; background: #b9a3f5; }
.filters-panel .set-picker-panel { border-left: none; padding-left: 0; }
/* The sidebar as a whole keeps its card (user, 2026-11-10); only the controls inside it lost their boxes */
.filters-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
@media (max-width: 900px) { .filters-panel { padding: 16px; } }
/* Availability (In stock, Expedited) back to the original rectangular buttons: they're the essential filters (user, 2026-11-10) */
.filters-panel .color-filters:not([data-pick]) { gap: 6px; }
.filters-panel .color-filters:not([data-pick]) .color-btn {
  padding: 5px 10px; border: 1px solid var(--ctl-border); border-radius: var(--radius-sm); background: var(--ctl-bg);
  font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase;
}
.filters-panel .color-filters:not([data-pick]) .color-btn:hover { border-color: var(--ctl-hover); color: var(--text); }
.filters-panel .color-filters:not([data-pick]) .color-btn.active {
  border-color: var(--gold); color: var(--gold-light);
  background: linear-gradient(180deg, rgba(232,199,107,0.22), rgba(201,162,74,0.10)); box-shadow: 0 0 10px rgba(201,162,74,0.15);
}
.filters-panel .color-filters:not([data-pick]) .color-btn.verified-btn.active { background: var(--gold); border-color: var(--gold); color: #0d0f14; }
.filters-panel .color-filters:not([data-pick]) .color-btn {
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; letter-spacing: 0.03em; border-radius: 3px;
}

/* ── SIDEBAR V4 (user-approved mockup, 2026-11-10): icons on every filter, centred top half, Set/Rarity/Type left,
   Finish as a segmented bar, sections spaced with a thin translucent line, and a collapsible icon column. Font sizes
   unchanged (titles 0.78rem, buttons 0.82rem). ── */
.filters-panel .fi, .filters-hide .fi { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.filters-panel h3 { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.filters-collapse {
  position: absolute; right: -8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  padding: 4px; border: none; border-radius: 4px; background: none; color: var(--text-muted); cursor: pointer;
}
.filters-collapse:hover { color: var(--gold-light); }
.filters-collapse:focus-visible, .filters-hide:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* Sections: more room and a thin translucent line between them */
.filters-panel .filter-group { margin: 0; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); text-align: center; }
.filters-panel h3 + .filter-group { border-top: none; padding-top: 12px; }
.filters-panel .filter-group:last-child { padding-bottom: 2px; }
.filters-panel .filter-group > label { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.filters-panel .filter-group > label .fi { width: 17px; height: 17px; color: var(--gold); }
.filters-panel .filter-group:not(.fg-left) .color-filters { justify-content: center !important; }

/* Set, Rarity, Type: left-aligned */
.filters-panel .filter-group.fg-left { text-align: left; }
.filters-panel .filter-group.fg-left > label { justify-content: flex-start; }

/* Finish: one segmented bar; 1px gaps over the border colour draw every divider, including between wrapped rows */
.filters-panel .color-filters[data-pick="finish"] {
  display: flex !important; flex-wrap: wrap; gap: 1px !important; justify-content: stretch !important;
  background: var(--ctl-border); border: 1px solid var(--ctl-border); border-radius: 4px; overflow: hidden;
}
.filters-panel .color-filters[data-pick="finish"] .color-btn {
  flex: 1 1 auto; margin: 0; padding: 7px 6px !important; border: none !important; border-radius: 0 !important;
  background: var(--bg-card-2) !important; box-shadow: none !important; text-decoration: none !important;
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; font-size: 0.82rem !important; color: var(--text-muted);
}
.filters-panel .color-filters[data-pick="finish"] .color-btn.foil-label { color: #b9a3f5; }
.filters-panel .color-filters[data-pick="finish"] .color-btn:hover { color: var(--text); }
.filters-panel .color-filters[data-pick="finish"] .color-btn.active { background: var(--gold) !important; color: #0d0f14 !important; }

/* "Hide filters" beside the sort menu (wide screens) */
.filters-hide { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .filters-hide, .filters-collapse { display: none !important; } }

/* Collapsed: a column of the filters' icons; the cards get the room */
@media (min-width: 901px) {
  .results-layout { transition: grid-template-columns 0.25s ease; }
  .results-layout.filters-collapsed { grid-template-columns: 56px minmax(0, 1fr); }
  .filters-collapsed .filters-panel { padding: 10px 0; overflow: visible; max-height: none; }
  .filters-collapsed .filters-panel .fp-title,
  .filters-collapsed .filters-panel .filter-group > :not(label) { display: none !important; }
  .filters-collapsed .filters-panel h3 { margin: 0 0 4px; }
  .filters-collapsed .filters-collapse { position: static; transform: none; }
  .filters-collapsed .filters-panel .filter-group { display: flex; justify-content: center; padding: 0; border: none; }
  .filters-collapsed .filters-panel .filter-group.hidden { display: none; }
  .filters-collapsed .filters-panel .filter-group > label {
    position: relative; width: 40px; height: 40px; margin: 2px 0; justify-content: center; border-radius: 6px; cursor: pointer;
  }
  .filters-collapsed .filters-panel .filter-group > label span { display: none; }
  .filters-collapsed .filters-panel .filter-group > label:hover { background: var(--bg-card-2); }
  .filters-collapsed .filters-panel .filter-group > label .fi { width: 20px; height: 20px; }
  .filters-collapsed .filters-panel label.fg-on::after {
    content: ''; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold-light); box-shadow: 0 0 0 2px var(--bg-card);
  }
  .filters-collapsed .filters-panel label[data-tip]::before {
    content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); z-index: 20;
    white-space: nowrap; padding: 4px 8px; border-radius: 4px; background: var(--bg-card-2); border: 1px solid var(--border);
    color: var(--text); font-size: 0.75rem; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: 0; pointer-events: none; transition: opacity 0.15s;
  }
  .filters-collapsed .filters-panel label[data-tip]:hover::before { opacity: 1; }
}
.results-meta .filters-hide { margin-left: auto; margin-right: 10px; }
@media (min-width: 901px) { .filters-collapsed .filters-panel { z-index: 30; } }   /* hover names sit above the cards */
@media (max-width: 900px) { .filters-panel { gap: 0 !important; } }   /* sections already have their own spacing and line */
/* Text triggers in the sidebar: focus shows as a gold underline, not a box */
.filters-panel .set-picker-btn:focus, .filters-panel .set-picker-btn:focus-visible { outline: none; border: none; box-shadow: none; }
.filters-panel .set-picker-btn:focus-visible .set-picker-label { text-decoration: underline 2px var(--gold); text-underline-offset: 5px; }

/* Cart icon: our drawing of a shopping cart (was a hexagon), sized to the text it sits beside */
.cart-svg { display: block; width: 1.15em; height: 1.15em; }
.cart-icon .cart-svg { width: 18px; height: 18px; }
.mob-nav-icon .cart-svg { width: 20px; height: 20px; margin: 0 auto; }

/* ═══ ABOUT PAGE (user-approved mockup, 2026-11-12): the mage with his cards, then how an order works and how we grade.
   The cards are built and moved by about-mage.js. Card classes are mg- so nothing clashes with the shop's cards. ═══ */
#aboutSection.about-section { display: block; min-height: 0; padding: 0; overflow-x: clip; }   /* the glow behind the mage never adds sideways scrolling */
.about-hero { max-width: 1100px; margin: 0 auto; padding: 40px 16px; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px; }
.about-copy h2 { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 3rem; line-height: 1; color: var(--gold-light); margin: 0 0 16px; }
.about-copy p { color: var(--text-muted); max-width: 460px; line-height: 1.6; margin: 0; text-align: justify; hyphens: none; overflow-wrap: normal; word-break: normal; }
.about-copy p + p { margin-top: 12px; }
.about-copy p.about-built { color: var(--text); font-weight: 600; }
.about-copy p.about-tag { color: var(--gold-light); font-weight: 700; font-size: 1.05rem; text-align: center; }
.about-hero > .mage-stage { margin: 0 0 0 auto; }   /* right edge lines up with the sections below */

.mage-stage { position: relative; width: min(520px, 100%); margin: 0 auto; aspect-ratio: 1 / 1.12; }
/* A soft pool of gold behind him, bright in the middle with a long fade, breathing slowly */
.mage-aura { position: absolute; left: 50%; top: 40%; width: 140%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(240,210,120,.55) 0%, rgba(232,199,107,.40) 10%, rgba(214,178,90,.26) 24%,
    rgba(201,162,74,.15) 40%, rgba(201,162,74,.08) 56%, rgba(201,162,74,.035) 72%, rgba(201,162,74,.01) 86%, transparent 100%);
  animation: mg-aura 4.5s ease-in-out infinite; will-change: transform, opacity; }
@keyframes mg-aura { 0%,100% { opacity: .7; transform: translate(-50%, -50%) scale(.97); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); } }
.mage, .mage-lit { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; }
/* The cards' light on him: a warm, brighter copy, strongest low down near the cards; faded in by about-mage.js */
.mage-lit { opacity: 0; pointer-events: none; will-change: opacity; filter: brightness(1.7) sepia(.55) saturate(1.5);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.85) 35%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.35) 85%, rgba(0,0,0,.25) 100%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.85) 35%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.35) 85%, rgba(0,0,0,.25) 100%); }

/* His shadow on the light behind him: a soft, dark, slightly larger silhouette, thrown up and back.
   When cards flare in front of him it darkens and stretches taller (--cast, 0 to 1, set by about-mage.js). */
.mage-shadow { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; pointer-events: none;
  transform-origin: 50% 92%; transform: translateY(-6%) scale(calc(1.16 + var(--cast, 0) * .04), calc(1.2 + var(--cast, 0) * .08));
  filter: brightness(0) blur(16px); opacity: calc(.16 + var(--cast, 0) * .12); will-change: transform, opacity; }   /* faint and well back (user, 2026-11-12) */
/* The floor in front of him, seen in perspective */
.mg-floor-wrap { position: absolute; left: -4%; right: -4%; bottom: 3%; height: 30%; perspective: 640px; perspective-origin: 50% -60%; }
.mg-floor { position: absolute; inset: 0; transform: rotateX(52deg); transform-style: preserve-3d; transform-origin: 50% 100%; }
.mg-floor::before { content: ''; position: absolute; left: 12%; right: 12%; top: 0; bottom: 0; border-radius: 50%; transform: translateZ(-8px);
  background: radial-gradient(ellipse at 50% 50%, rgba(201,162,74,.18), transparent 70%); animation: mg-floorlight 4.5s ease-in-out infinite; }
@keyframes mg-floorlight { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
/* Each card: .mg-fc (its place) > .mg-hop > .mg-lift (rises when cast) > .mg-card (spins). Only transform and opacity animate. */
.mg-fc { position: absolute; left: 0; top: 0; width: 15%; aspect-ratio: 63 / 88; transform-style: preserve-3d; will-change: transform; }
.mg-hop, .mg-lift { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.mg-card { position: absolute; inset: 0; border-radius: 5%; will-change: transform, opacity; }
.mg-card svg { display: block; width: 100%; height: 100%; }
.mg-logo { position: absolute; left: 50%; top: 50%; width: 60%; max-height: 30%; object-fit: contain; transform: translate(-50%, -50%);
  filter: brightness(0) invert(1) sepia(1) saturate(2.5) hue-rotate(5deg) brightness(1) drop-shadow(0 0 3px rgba(30,6,24,.95)) drop-shadow(0 0 8px rgba(30,6,24,.8)); }
.mg-logo-pokemon { width: 56%; } .mg-logo-cyberpunk { width: 64%; }
.mg-shade, .mg-flash, .mg-halo { position: absolute; inset: 0; border-radius: 5%; pointer-events: none; will-change: opacity; }
.mg-shade { background: rgba(18,4,14,.34); }
.mg-flash { background: linear-gradient(160deg, rgba(255,236,170,.30), rgba(255,200,90,.12)); opacity: 0; }
.mg-halo { box-shadow: 0 0 6px rgba(255,226,120,1), 0 0 20px rgba(255,210,90,1), 0 0 50px rgba(255,170,40,.75); opacity: 0; }
/* A cast, 3.2s: flare, rise, spin once when clear of its neighbours, land, fade */
.mg-fc.cast .mg-lift { animation: mg-lift 3.2s linear; }
.mg-fc.cast .mg-card { animation: mg-spin 3.2s linear; }
.mg-fc.cast .mg-halo, .mg-fc.cast .mg-flash { animation: mg-halo 3.2s linear; }
.mg-fc.cast .mg-shade { animation: mg-unshade 3.2s linear; }
@keyframes mg-lift {
  0%, 6% { transform: translateZ(0); animation-timing-function: cubic-bezier(.33,0,.2,1); }
  30%    { transform: translateZ(28px); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  44%    { transform: translateZ(30px); animation-timing-function: cubic-bezier(.5,0,.25,1); }
  66%    { transform: translateZ(0); }
  100%   { transform: translateZ(0); }
}
@keyframes mg-spin {
  0%, 19% { transform: rotateY(0); animation-timing-function: cubic-bezier(.45,0,.4,1); }
  45%     { transform: rotateY(360deg); }
  100%    { transform: rotateY(360deg); }
}
@keyframes mg-halo {
  0%   { opacity: 0; animation-timing-function: cubic-bezier(.2,0,.3,1); }
  12%  { opacity: 1; animation-timing-function: linear; }
  62%  { opacity: .85; animation-timing-function: cubic-bezier(.4,0,.3,1); }
  100% { opacity: 0; }
}
@keyframes mg-unshade {
  0%   { opacity: 1; animation-timing-function: cubic-bezier(.2,0,.3,1); }
  12%  { opacity: 0; }
  62%  { opacity: 0; animation-timing-function: cubic-bezier(.4,0,.3,1); }
  100% { opacity: 1; }
}
/* The flash also lights the floor under the card, each card's light at its own depth */
.mg-fc::after { content: ''; position: absolute; inset: -30%; border-radius: 50%; transform: translateZ(var(--pz, -2px)); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,190,70,.5), transparent); opacity: 0; will-change: opacity; }
.mg-fc.cast::after { animation: mg-pool 3.2s linear; }
@keyframes mg-pool { 0% { opacity: 0; animation-timing-function: cubic-bezier(.2,0,.3,1); } 12% { opacity: 1; }
  30%, 44% { opacity: .55; } 66% { opacity: .9; animation-timing-function: cubic-bezier(.4,0,.3,1); } 100% { opacity: 0; } }

/* Below the mage: one width with the top, 40px between sections, 14px inside, justified text that never splits a word */
.about-more { max-width: 1100px; margin: 40px auto 0; padding: 0 16px 60px; display: grid; gap: 40px; }
.about-sec { display: grid; gap: 14px; }
.about-h { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; color: var(--gold-light); font-size: 1.35rem; letter-spacing: .02em; margin: 0; line-height: 1.1; }
.about-p { color: var(--text-muted); line-height: 1.65; margin: 0; max-width: 760px; }
.about-p.about-wide, .about-p.about-signed { max-width: none; }
.about-small { font-size: .9rem; }
.about-noteh { color: var(--text); margin-right: 4px; }
.about-steps span, .about-box p, .about-p, .about-choices li, .g-lead { text-align: justify; hyphens: none; overflow-wrap: normal; word-break: normal; }
.about-steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.about-steps li { counter-increment: st; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.about-steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--gold-dim); color: var(--gold-light); font-weight: 800; margin-bottom: 10px; }
.about-steps b { display: block; color: var(--text); margin-bottom: 6px; }
.about-steps span, .about-box p { display: block; color: var(--text-muted); line-height: 1.6; font-size: .95rem; margin: 0; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 10px; align-content: start; }
.about-box .about-h { font-size: 1.15rem; }
.about-choices { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.about-choices li { color: var(--text-muted); line-height: 1.6; font-size: .95rem; padding-left: 14px; position: relative; }
.about-choices li::before { content: ''; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light); }
.about-choices b { color: var(--text); }
/* How we grade: each grade opens to its possible defects */
.about-grades { display: grid; }
.about-grades details { border-bottom: 1px solid var(--border); }
.about-grades details:first-child { border-top: 1px solid var(--border); }
.about-grades summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 170px 1fr 20px; gap: 16px; align-items: baseline; padding: 12px 0; }
.about-grades summary::-webkit-details-marker { display: none; }
.about-grades summary::after { content: '+'; color: var(--gold-light); font-weight: 800; text-align: right; }
.about-grades details[open] summary::after { content: '\2212'; }
.g-code { color: var(--gold-light); font-weight: 800; }
.g-code em { font-style: normal; color: var(--text); font-weight: 600; margin-left: 6px; }
.g-lead { color: var(--text-muted); line-height: 1.55; }
.about-grades .g-wear { padding: 0 0 14px 186px; }
@media (max-width: 860px) { .about-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero > .mage-stage { margin: 0 auto; }
  .about-copy { order: 2; } .about-copy p { max-width: none; } .about-copy h2 { font-size: 2.2rem; text-align: center; }
}
@media (max-width: 600px) {
  .about-steps, .about-cols { grid-template-columns: 1fr; }
  .about-grades summary { grid-template-columns: 1fr 20px; gap: 2px 12px; }
  .g-lead { grid-column: 1; }
  .about-grades .g-wear { padding-left: 0; }
}

/* ═══ GRADES PAGE: each grade's possible defects, opening under its Can have / Can't have lists (2026-11-12) ═══ */
.grade-wear { margin-top: 14px; border-top: 1px solid var(--border); }
.grade-wear summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0 4px; color: var(--gold-light); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.grade-wear summary::-webkit-details-marker { display: none; }
.grade-wear summary::after { content: '+'; font-weight: 800; font-size: 1.1rem; }
.grade-wear[open] summary::after { content: '\2212'; }
.grade-wear .about-choices { padding-top: 8px; }
.grade-signed { max-width: 1100px; margin: 24px auto 0; padding: 0 16px; color: var(--text-muted); font-size: .9rem; line-height: 1.6; text-align: center; }
.grade-signed b { color: var(--text); margin-right: 4px; }

/* ═══ POKÉMON (2026-11-13): energy type discs for the filter and the card page ═══ */
.energy-disc { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -3px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), 0 0 0 1px rgba(0,0,0,.35); }
.energy-grass { background: #5aa84a; }      .energy-fire { background: #e2532e; }     .energy-water { background: #3a8fd6; }
.energy-lightning { background: #f2c81e; }  .energy-psychic { background: #9b56b8; }  .energy-fighting { background: #b8692e; }
.energy-darkness { background: #2d4b55; }   .energy-metal { background: #9aa4ab; }    .energy-fairy { background: #e683b5; }
.energy-dragon { background: #b39a3a; }     .energy-colorless { background: #e9e6dc; }
.filters-panel [data-game-only="pokemon"] [data-pick="color"] { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 4px; }
.filters-panel [data-game-only="pokemon"] [data-pick="color"] .color-btn.mana-btn { width: 33px; height: 33px; }
.filters-panel [data-game-only="pokemon"] [data-pick="color"] .color-btn.white { height: 33px; }

/* Copy protection (app.js protectPage): no selecting text or dragging images on the buyer site,
   except typing fields and the details buyers need to copy (.selectable) */
html.protect body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.protect img { -webkit-user-drag: none; user-drag: none; }
html.protect input, html.protect textarea, html.protect select, html.protect [contenteditable="true"], html.protect .selectable {
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* ── PHONE + TABLET LAYOUT (user, 2026-11-18). Every rule here sits inside a max-width query, so screens wider than
   900px (desktop) never read any of it. ── */
@media (max-width: 760px) {
  /* Browse: two cards per row on phones (four on an upright iPad mini) instead of one huge card */
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .cards-grid .card-info { padding: 9px 10px 10px; gap: 4px; }
  .cards-grid .card-name { font-size: 0.84rem; }
  .cards-grid .card-set { font-size: 0.72rem; }
  .cards-grid .card-price-row { padding-top: 4px; }
  .cards-grid .card-price { font-size: 0.86rem; }
}
/* Upright iPads (761-900px) also get the Filters button instead of the always-open block above the results */
@media (min-width: 761px) and (max-width: 900px) {
  .filters-toggle { display: block; }
  .filters-panel:not(.open) { display: none !important; }
}
@media (max-width: 900px) {
  /* Filters: a compact sheet that slides up over the results, closed with Show results or a tap outside */
  .filters-panel.open {
    position: fixed !important; left: 0; right: 0; bottom: 0; top: auto !important; z-index: 1100;
    max-height: 72vh; overflow-y: auto; overscroll-behavior: contain;
    border-radius: 14px 14px 0 0 !important; border-bottom: none !important; padding: 6px 16px 0 !important;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6);
    animation: filters-sheet-in 0.22s ease-out;
  }
  .filters-panel.open::before {
    content: ''; display: block; width: 40px; height: 4px; margin: 4px auto 6px; border-radius: 2px; background: var(--border);
  }
  .filters-panel.open h3 { margin-bottom: 0; }
  .filters-panel.open .filter-group { padding: 11px 0; }
  .filters-panel.open .filter-group > label { margin-bottom: 8px; }
  .filters-panel .filters-done { display: block; }
  body.filters-sheet-open { overflow: hidden; }
}
@keyframes filters-sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
/* The Show results button exists only in the phone and tablet sheet */
.filters-done { display: none; }
/* The hidden button follows the Type group, so keep the Type group's last-section spacing (desktop unchanged) */
.filters-panel .filter-group:has(+ .filters-done) { padding-bottom: 2px; }
@media (max-width: 900px) {
  .filters-done {
    position: sticky; bottom: 0; width: calc(100% + 32px); margin: 4px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg-card); border: none; border-top: 1px solid var(--border); cursor: pointer;
  }
  .filters-done span {
    display: block; padding: 11px; border-radius: var(--radius-sm); background: var(--gold); color: #0d0f14;
    font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  }
}

/* Home, Verified band: once the card sits above the text, the text is centred under it */
@media (max-width: 860px) {
  .verified-copy { justify-items: center; text-align: center; }
  .verified-copy .hero-eyebrow, .verified-copy h2, .verified-copy p:not(.hero-eyebrow) { text-align: center; }
  .verified-copy p:not(.hero-eyebrow) { hyphens: manual; -webkit-hyphens: manual; text-wrap: pretty; }
}

/* Touch screens: press and hold the Remora or the card-page card, then drag to move the light (initTilt in app.js).
   No iOS image menu or text selection while holding. */
@media (any-hover: none) {
  .foil3d, .foil3d img, #modalImgWrap, #modalImgWrap img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}

/* ── PHONE + TABLET round 2 (user, 2026-11-18) ── */
/* Bottom bar: four drawn icons of one size and weight (Cart keeps its own drawing) */
.mob-nav-icon .mob-svg, .mob-nav-icon .cart-svg { display: block; width: 22px; height: 22px; margin: 0 auto; }
@media (max-width: 760px) {
  .mob-nav-btn { gap: 4px; }
  .mob-nav-label { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; letter-spacing: 0.05em; }
  /* Home search: the same space on both sides of the box and the button */
  .search-bar { padding: 10px; }
}
@media (max-width: 900px) {
  /* Filters and Sort as two equal halves of one row, the same height */
  .results-meta { flex-direction: row !important; flex-wrap: wrap; align-items: stretch !important; gap: 10px; }
  #resultsCount { flex-basis: 100%; }
  .results-meta .filters-toggle { flex: 1 1 0; min-width: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
  .results-meta .sort-filter { flex: 1 1 0; min-width: 0; }
  .results-meta .sort-filter select { width: 100%; height: 100%; }
  /* Filter sheet: one column always; on iPads a centred sheet instead of one stretched across the screen */
  .filters-panel.open { grid-template-columns: minmax(0, 1fr) !important; width: min(100%, 600px); margin-inline: auto; }
  .filters-panel.open > * { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  /* Filters button styled like the Sort box beside it; Sort's text fits its half */
  .results-meta .filters-toggle {
    background: var(--ctl-bg); border: 1px solid var(--ctl-border); border-radius: var(--ctl-radius);
    color: var(--text); font-size: 0.85rem; padding: 9px 12px;
  }
  .results-meta .sort-filter select { padding-left: 12px; padding-right: 30px; background-position: right 10px center, 0 0; }
}
@media (max-width: 900px) {
  .results-meta { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .results-meta > :not(.filters-toggle):not(.sort-filter) { grid-column: 1 / -1; }
  .results-meta .sort-filter { width: auto; margin: 0; display: flex; }
  .results-meta .sort-filter select { flex: 1; min-width: 0; }
}
@media (max-width: 420px) {
  .results-meta .filters-toggle, .results-meta .sort-filter select { font-size: 0.8rem; letter-spacing: 0.02em; }
  .results-meta .sort-filter select { padding-left: 8px; padding-right: 26px; background-position: right 8px center, 0 0; }
}

/* ── Wrapped button rows are centred (user, 2026-11-18): a button that drops to the next row sits in the middle ── */
@media (max-width: 520px) {
  /* Home game logos: three per row as before, the fourth (Cyberpunk) centred under them */
  .game-tabs { display: flex; flex-wrap: wrap; justify-content: center; }
  .game-tabs .game-tab { flex: 0 0 calc((100% - 16px) / 3); }
}
@media (max-width: 900px) {
  .results-game-tabs { justify-content: center; }
  .trending-tabs { flex-basis: 100%; justify-content: center; }
}
@media (max-width: 900px) {
  /* Centred with auto margins so a row that scrolls sideways (phones) can still reach its first tab */
  .results-game-tabs { justify-content: flex-start; }
  .results-game-tabs > :first-child { margin-left: auto; }
  .results-game-tabs > :last-child { margin-right: auto; }
  /* Top sellers: title centred above its centred tabs */
  .trending-head { justify-content: center; text-align: center; }
}
/* Upright iPads: the Browse game tabs wrap (they don't scroll), so plain centring */
@media (min-width: 761px) and (max-width: 900px) {
  .results-game-tabs { justify-content: center; }
  .results-game-tabs > :first-child, .results-game-tabs > :last-child { margin-left: 0; margin-right: 0; }
}

/* Sign-in and code messages (user, 2026-11-18): smaller, with room between them and the buttons */
.login-error { font-size: 0.82rem; line-height: 1.45; margin: 12px 0; }
.login-error.code-wait { color: var(--text-muted); font-variant-numeric: tabular-nums; }
/* Sign-in and code messages sit under the button, centred (user, 2026-11-18) */
#signInModal .login-error, .admin-login .login-error, #rmErr { text-align: center; margin: 12px 0 0; }

/* ═════════════════════════════════════════════
   EVENTS (events.js, PLAN.md phase 10; mockup https://claude.ai/artifact/BFd62Jtme31AQBCZ7CZUXX)
   ═════════════════════════════════════════════ */
.ev-wrap { display: flex; flex-direction: column; gap: 22px; }
/* event page centred at a reading width, so the game logo sits near the title */
.ev-page { max-width: 1000px; margin: 0 auto; width: 100%; }
.ev-page .ev-narrow { max-width: none; width: 100%; }   /* same edges as the header above */
/* wide buttons grow 2% on hover like the site's full-width buttons (5% pushes them out of their box) */
.ev-big-btn:hover, .ev-btn:hover, .ev-form-btns .btn-primary:hover, .ev-res-save .btn-primary:hover, .ev-dlg-btns button:hover, .ev-qr-btns button:hover { scale: 1.02; }
/* disabled: plain grey, normal pointer, no "not allowed" sign */
.ev-wrap .btn-primary:disabled, .ev-wrap .btn-ghost:disabled { background: var(--border); border-color: var(--border); color: var(--text-dim); opacity: 1; cursor: default; }
.ev-wrap .btn-primary:disabled:hover { background: var(--border); }
.ev-title { margin: 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 4rem); line-height: .92; letter-spacing: .01em; color: var(--text); }
.ev-lead { margin: 8px 0 0; color: var(--text-muted); font-size: 1rem; max-width: 560px; }
.ev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.ev-host-btn { padding: 14px 22px; }
.ev-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 999 1 420px; }
.ev-selects { display: flex; gap: 8px; flex: 1 1 280px; justify-content: flex-end; }
.ev-selects .modal-input { margin: 0; width: auto; min-width: 140px; }
/* Event menus: the site's gold arrow with room around it (like the browse filters) */
.ev-wrap select.modal-input { -webkit-appearance: none; appearance: none; background: var(--ctl-caret) right 14px center / 12px 8px no-repeat, var(--ctl-bg); padding-right: 40px; }
/* Format menu: always as wide as the longest format of any game, so it doesn't jump when the game changes */
.ev-selects #evFormat { flex: none; width: 15.5rem; }
.ev-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ev-empty { grid-column: 1 / -1; }
.ev-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 11px; cursor: pointer; transition: border-color var(--transition); }
.ev-card:hover { border-color: var(--gold-dim); }
.ev-card-mine { border-color: var(--gold-dim); }
.ev-card-dim { opacity: .72; }
.ev-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.ev-card-logo { height: 26px; width: auto; max-width: 96px; object-fit: contain; object-position: right center; flex: none; filter: brightness(0) invert(1) sepia(1) saturate(2.5) hue-rotate(5deg) brightness(0.9); }
.ev-gameline { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: .78rem; }
.ev-card-name { margin: 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; color: var(--text); }
.ev-row { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .9rem; }
.ev-row svg { flex: none; }
.ev-row a, .ev-page-facts a { color: var(--gold-light); }
.ev-row-fee { color: var(--text); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tags:empty { display: none; }
.ev-spots { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.ev-spots-text { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--text-muted); }
.ev-bar { height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
.ev-bar > div { height: 100%; background: var(--gold); }
.ev-bar > .ev-bar-full { background: var(--gold-dim); }
.ev-btn { width: 100%; padding: 12px; text-align: center; display: block; box-sizing: border-box; }
a.ev-btn { text-decoration: none; }
.ev-btn-row { display: flex; gap: 8px; }
.ev-btn-row .ev-btn { flex: 1; }
.ev-btn-in { color: #4ade80; border-color: #22c55e; }
.ev-btn-wait, .ev-btn-gold { color: var(--gold-light); border-color: var(--gold); }
.ev-btn-off { color: var(--text-dim); cursor: default; }
.ev-btn-side { flex: none; }
/* Withdraw / Leave: solid orange like a picked Loss in results (user, 2026-11-19) */
.btn-ghost.ev-btn-orange { background: #f6ab37; border-color: #f6ab37; color: #0d0f14; }
.btn-ghost.ev-btn-orange:hover { background: #f8bb5a; border-color: #f8bb5a; color: #0d0f14; }
/* Show QR: white with dark text (user, 2026-11-19) */
.btn-ghost.ev-btn-white { background: #f4f2ec; border-color: #f4f2ec; color: #0d0f14; }
.btn-ghost.ev-btn-white:hover { background: #ffffff; border-color: #ffffff; color: #0d0f14; }
/* Edit: lime green with black text (user, 2026-11-19) */
.btn-ghost.ev-btn-lime { background: #a3e635; border-color: #a3e635; color: #0d0f14; }
.btn-ghost.ev-btn-lime:hover { background: #bef264; border-color: #bef264; color: #0d0f14; }
.ev-live { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius-lg); border: 1px solid var(--border-glow); background: linear-gradient(180deg, var(--bg-card-2) 0%, var(--bg-card) 100%); margin-bottom: 10px; }
.ev-live-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; }
.ev-live-text b { font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 1.15rem; }
.ev-live-text span { color: var(--text-muted); font-size: .88rem; }
.ev-live-btn { text-decoration: none; }
.ev-live-logo { height: 30px; max-width: 110px; }
@media (max-width: 760px) { .ev-live-logo { display: none; } }
.ev-dlg { max-width: 420px; background: var(--bg); }
.ev-dlg-body { padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.ev-dlg-title { margin: 0; font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 1.4rem; }
.ev-dlg-text { margin: 0; color: var(--text-muted); font-size: .9rem; }
.ev-dlg-btns { display: flex; gap: 10px; }
.ev-dlg-btns .btn-primary { flex: 1; }
.ev-dlg-btns .btn-ghost { flex: 1; padding: 12px; }
.btn-ghost.ev-btn-solid-gold { background: var(--gold); border-color: var(--gold); color: #0d0f14; }
.btn-ghost.ev-btn-solid-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: #0d0f14; }
.ev-dlg-note { margin: 0; resize: vertical; }
.ev-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Done: at the right end of the page's last row (host tools / footer); forms have Cancel instead */
.ev-host-tools .ev-back { margin-left: auto; }
.ev-foot-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-ghost.ev-back { text-decoration: none; color: var(--text); }   /* Done: back to the events list */
.ev-crumb-link, .ev-crumb a { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; color: var(--text-muted); }
.ev-host { max-width: 760px; }
/* host / edit form centred like the event page */
.ev-host-page { max-width: 760px; margin: 0 auto; width: 100%; }
.ev-host-page .ev-host { max-width: none; }
/* date and time pickers in our own style (the browser's popups can't be styled) */
.ev-pick-field { position: relative; }
.ev-pick { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; color: var(--text); width: 100%; }
.ev-pick svg { color: #8a8778; flex: none; }
.ev-pick-empty span { color: var(--text-dim); }
.ev-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 300px; max-width: calc(100vw - 40px); background: var(--bg-card-2); border: 1px solid var(--border-glow); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 12px; }
.ev-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ev-cal-head b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.ev-cal-head button { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--gold-light); font-size: 1.2rem; cursor: pointer; }
.ev-cal-head button:disabled { color: var(--border-glow); cursor: default; }
.ev-cal-week, .ev-cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.ev-cal-week span { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; font-size: .7rem; color: var(--text-dim); padding: 4px 0; }
.ev-cal-days button { height: 36px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--text); cursor: pointer; font-variant-numeric: tabular-nums; }
.ev-cal-days button:hover:not(:disabled) { border-color: var(--gold-dim); }
.ev-cal-days button.today { border-color: var(--border-glow); }
.ev-cal-days button.on { background: var(--gold); border-color: var(--gold); color: #0d0f14; font-weight: 700; }
.ev-cal-days button:disabled { color: var(--border-glow); cursor: default; }
.ev-time { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.ev-time-col { display: flex; flex-direction: column; gap: 3px; max-height: 216px; overflow-y: auto; padding: 3px 6px; }   /* padding: the hover outline isn't clipped */
.ev-time-col + .ev-time-col { border-left: 1px solid rgba(232,230,223,.12); }   /* translucent line between hours, minutes and AM/PM */
.ev-time-col button { min-height: 34px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--text); cursor: pointer; font-variant-numeric: tabular-nums; flex: none; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; font-size: .95rem; letter-spacing: .03em; }
/* no grow-on-hover inside the pickers */
.ev-pop button:hover, .ev-pop button:active, .ev-pop button:not(:disabled):hover, .ev-pick:hover, .ev-pick:active, .ev-pick:not(:disabled):hover { scale: 1; }   /* the fields themselves are buttons too */
.ev-time-col button:hover { border-color: var(--gold-dim); }
.ev-time-col button.on { background: var(--gold); border-color: var(--gold); color: #0d0f14; font-weight: 700; }
.ev-time-done { width: 100%; margin-top: 10px; padding: 10px; }
.ev-pick-field:last-child .ev-pop { left: auto; right: 0; }
.ev-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.ev-field { display: flex; flex-direction: column; gap: 8px; }
.ev-field .form-label { margin: 0; }
.ev-field .modal-input { margin: 0; }
.ev-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ev-hint { margin: 0; color: var(--text-dim); font-size: .82rem; line-height: 1.45; }
.ev-toggle { display: flex; border: 1px solid var(--border-glow); border-radius: var(--radius); overflow: hidden; }
.ev-toggle button { flex: 1 1 0; padding: 14px 12px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ev-toggle button + button { border-left: 1px solid var(--border-glow); }
.ev-toggle button b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .03em; }
.ev-toggle button span { font-size: .76rem; }
.ev-toggle button.on { background: var(--gold); color: #0d0f14; }
.ev-toggle button.on span { font-weight: 600; }
.ev-toggle-tight button { padding: 11px 10px; }
.ev-games { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; padding: 4px 0; }   /* a short last row sits in the middle */
.ev-games .ev-game { flex: 0 0 calc((100% - 70px) / 6); min-width: 0; }   /* 6 per row (5 gaps of 14px) */
@media (max-width: 760px) { .ev-games .ev-game { flex-basis: calc((100% - 28px) / 3); } }   /* 3 per row */
.ev-game { height: 64px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 6px; color: var(--text-muted); transition: scale var(--transition); }   /* just the logo, no box */
.ev-game img { max-width: 100%; max-height: 42px; object-fit: contain; opacity: .4; filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(0.78); }   /* gold, like the home game tabs */
.ev-game span { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: .9rem; }
.ev-game.on { color: var(--gold-light); scale: 1.12; }   /* picked: bright gold, slightly bigger */
.ev-game.on:hover { scale: 1.12; }
.ev-game:not(.on):hover img { opacity: .75; }
.ev-game.on img { opacity: 1; filter: brightness(0) invert(1) sepia(1) saturate(2.5) hue-rotate(5deg) brightness(0.9); }
.ev-scoring { margin-top: 4px; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.ev-scoring-h { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; color: var(--gold-light); }
.ev-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; margin-top: 10px; }
.ev-scoring-top { display: flex; align-items: center; justify-content: space-between; }
.ev-info { background: none; border: 0; padding: 4px; color: var(--gold-light); cursor: pointer; display: inline-flex; border-radius: 50%; }
.ev-info:hover { color: var(--text); }
.ev-info-h { margin: 6px 0 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; color: var(--gold-light); }
.ev-info-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--text-muted); font-size: .9rem; line-height: 1.45; }
.ev-info-list b { color: var(--text); }
.ev-info-kill { height: 15px; vertical-align: -2px; }
.ev-dlg:has(.ev-info-list) { max-width: 520px; }
.ev-points-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ev-points div { padding: 4px; display: flex; flex-direction: column; gap: 2px; }   /* no boxes: just the number and its label */
.ev-points b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.ev-points b.gold { color: var(--gold-light); }
.ev-points span { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; color: var(--text-muted); }
.ev-kill-hint { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.ev-kill-hint img { height: 18px; }
.ev-switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.ev-switch-row .form-label { margin: 0; color: var(--text); }
.ev-form-btns { display: flex; gap: 10px; padding-top: 18px; border-top: 1px solid var(--border); }
.ev-form-btns .btn-primary { flex: 1; padding: 13px; }
.ev-form-btns .btn-ghost { text-decoration: none; display: flex; align-items: center; }
.ev-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ev-page-meta { display: flex; flex-direction: column; gap: 10px; }
.ev-page-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ev-page-title { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.ev-page-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-muted); font-size: .92rem; }
.ev-page-facts span { display: inline-flex; align-items: center; gap: 7px; }
.ev-page-logo { max-width: 150px; max-height: 60px; object-fit: contain; filter: brightness(0) invert(1) sepia(1) saturate(2.5) hue-rotate(5deg) brightness(0.9); }
.ev-cols { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.ev-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ev-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
.ev-side:empty { display: none; }
.ev-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ev-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ev-h { margin: 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; color: var(--gold-light); }
.ev-h-gold { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; color: var(--gold-light); }
.ev-names { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ev-names li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.ev-names li:last-child { border-bottom: 0; }
/* Sign-in and the name box open from inside other popups (e.g. Join the waitlist), so they always sit on top */
#signInModal { z-index: 260; }
#evDialog { z-index: 250; }
/* upcoming event as a popup over the list */
.ev-modal { max-width: 760px; width: 100%; background: var(--bg); }
.ev-modal-body { padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 18px; }
.ev-modal .ev-page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); padding-right: 30px; }
.ev-modal .ev-narrow { max-width: none; }
.ev-modal .ev-page-logo { margin-top: 34px; }
@media (max-width: 760px) { .ev-modal-body { padding: 26px 18px 22px; } }
/* open event page: one column at a reading width */
.ev-narrow { max-width: 900px; display: flex; flex-direction: column; gap: 16px; }
.ev-signup { flex-direction: row; align-items: center; gap: 24px; padding: 20px 22px; }
.ev-signup-in { border-color: #22c55e; }
.ev-signup-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ev-signup-state { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; }
.ev-signup-in .ev-signup-state { color: #4ade80; }
.ev-signup-act .btn-primary, .ev-signup-act .btn-ghost { padding: 13px 30px; white-space: nowrap; }
.ev-signup-act { display: flex; gap: 10px; }   /* I'm here + Withdraw side by side (self check-in, 2026-11-22) */
.ev-count { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.ev-wait-head .ev-count, .ev-wait-head .ev-h { color: var(--text); }
.ev-panel-head:has(.ev-count) { align-items: center; }
.ev-panel-head:has(.ev-count) .ev-h { font-size: 1.1rem; font-weight: 800; letter-spacing: .03em; }
.ev-who { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }   /* one player per row */
.ev-who li { padding: 11px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ev-who-when { color: var(--text-dim); font-size: .82rem; white-space: nowrap; }
.ev-wait-head { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.ev-wait li { color: var(--text-muted); }
.ev-wait-n { display: inline-block; min-width: 22px; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; color: var(--gold-dim); }
.ev-who li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 760px) {
  .ev-signup { flex-direction: column; align-items: stretch; gap: 14px; }
  .ev-signup-act .btn-primary, .ev-signup-act .btn-ghost { width: 100%; }
  .ev-signup-act { flex-direction: column; }
}
.ev-note { margin: 0; color: var(--text-muted); }
.ev-you { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid var(--gold-dim); background: rgba(201,162,74,.07); }
.ev-you-in { border-color: #22c55e; background: rgba(34,197,94,.06); }
.ev-big-btn { width: 100%; padding: 14px; }
.ev-link { background: none; border: 0; padding: 6px 0; color: var(--gold-light); cursor: pointer; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: .8rem; }
.ev-danger { color: #e0a3a3 !important; }
.ev-checklist { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ev-check { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; }
.ev-check:last-child { border-bottom: 0; }
.ev-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ev-box { width: 22px; height: 22px; border-radius: 3px; border: 1.5px solid var(--border-glow); display: flex; align-items: center; justify-content: center; flex: none; color: transparent; }
.ev-check input:checked + .ev-box { background: var(--gold); border-color: var(--gold); color: #0d0f14; }
.ev-check input:focus-visible + .ev-box { box-shadow: var(--ctl-focus); }
.ev-check-name { flex: 1; }
.ev-check-off .ev-check-name { color: var(--text-dim); }
.ev-checklist-plain .ev-box { display: none; }
.ev-walkin { display: flex; gap: 8px; }
.ev-walkin .modal-input { margin: 0; flex: 1; min-width: 0; }
.ev-start-bar, .ev-host-bar { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.ev-start-text { display: flex; justify-content: space-between; gap: 10px; color: var(--text-muted); font-size: .9rem; }
.ev-white { color: var(--text); }
.ev-warn { color: #e0a3a3 !important; }
.ev-center { text-align: center; }
.ev-host-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-host-tools .btn-ghost { text-decoration: none; }
.ev-view-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ev-updates { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: .8rem; }
.ev-rounds { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ev-round { background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 2px; color: var(--text-muted); cursor: pointer; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 5px; }
.ev-round svg { color: #22c55e; }
.ev-round.now { color: var(--gold-light); }
.ev-round.on { border-bottom-color: var(--gold); color: var(--text); }
.ev-round.on.now { color: var(--gold-light); }
.ev-timer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--bg-card-2); border: 1px solid var(--border); }
.ev-timer-l { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; color: var(--text-muted); }
.ev-timer-v { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: 2rem; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.ev-timer-v.ev-warn { color: #e0a3a3; }
.ev-timer-btns { display: flex; gap: 8px; width: 100%; }
.ev-mine { padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--gold); background: rgba(201,162,74,.07); display: flex; flex-direction: column; gap: 10px; }
.ev-mine-top { display: flex; justify-content: space-between; }
.ev-mine-t { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; color: var(--gold-light); }
.ev-mine-players { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ev-mine-players span { display: flex; flex-direction: column; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; }
.ev-mine-players small, .ev-pod small { font-family: var(--font-body); font-stretch: normal; font-weight: 450; text-transform: none; color: var(--text-dim); font-size: .78rem; }
.ev-mine-players i, .ev-pod-players i { font-style: normal; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; font-size: .72rem; color: var(--text-dim); }
.ev-awaiting { margin: 0; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--gold-dim); background: rgba(201,162,74,.07); color: var(--gold-light); font-size: .92rem; }
.ev-pods { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ev-pods-edit { background: none; border: 0; border-radius: 0; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ev-pod { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.ev-pod:last-child { border-bottom: 0; }
.ev-pods-edit .ev-pod { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.ev-pod-mine { background: rgba(201,162,74,.06); }
.ev-pod-bye { color: var(--text-muted); }
.ev-tno { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; color: var(--text-dim); font-size: .82rem; }
.ev-pod-mine .ev-tno { color: var(--gold-light); }
.ev-pod-players { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ev-pod-1v1 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.ev-pod-1v1 span:last-child { text-align: right; justify-content: flex-end; }
.ev-pod-players span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ev-b { font-style: normal; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; font-size: .68rem; padding: 2px 6px; border-radius: 3px; display: inline-flex; align-items: center; gap: 3px; }
.ev-b img { height: 12px; }
.ev-b-win { background: #22c55e; color: #0d0f14; }
.ev-b-loss { background: #f6ab37; color: #0d0f14; }
.ev-b-draw { border: 1px solid var(--border-glow); color: var(--text-muted); }
.ev-res-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; }
.ev-res-need { border-color: var(--gold-dim); }
.ev-res-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; }
.ev-done { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; font-size: .75rem; color: #4ade80; }
.ev-need { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; font-size: .75rem; color: var(--gold-light); }
.ev-res-player { display: flex; flex-direction: column; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.ev-res-player:last-of-type { border-bottom: 0; }
.ev-res-top { display: flex; justify-content: space-between; align-items: center; }
.ev-res-name { display: inline-flex; align-items: center; font-size: .95rem; }
.ev-seat { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; color: var(--text-muted); margin-right: 8px; }
.ev-res-pts { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: 1.35rem; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.ev-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ev-seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ev-seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ev-seg button.on-win { background: #22c55e; border-color: #22c55e; color: #0d0f14; }
.ev-seg button.on-loss { background: #f6ab37; border-color: #f6ab37; color: #0d0f14; }
.ev-seg button.on-drop { background: #e0a3a3; border-color: #e0a3a3; color: #0d0f14; }
.ev-res-line { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--text-muted); }
.ev-kill-label { display: inline-flex; align-items: center; gap: 7px; }
.ev-kill-label img { height: 18px; }
.ev-step { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.ev-step button { width: 40px; height: 32px; background: var(--bg-card-2); border: 0; color: var(--gold-light); font-size: 1.1rem; cursor: pointer; }
.ev-step b { width: 34px; text-align: center; color: var(--text); font-variant-numeric: tabular-nums; }
.ev-draw-row { padding-top: 11px; }
.ev-res-save { display: flex; gap: 8px; padding-top: 10px; }
.ev-res-save .btn-primary { flex: 1; }
.ev-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; }
.ev-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ev-table th { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; color: var(--text); text-align: right; padding: 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ev-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-table th:nth-child(2), .ev-table td:nth-child(2) { text-align: left; }
.ev-table tr:last-child td { border-bottom: 0; }
.ev-rank { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; color: var(--text-muted); }
.ev-table tbody tr:nth-child(-n+3) .ev-rank { color: var(--gold-light); }
.ev-pname-in { display: flex; align-items: center; gap: 8px; }   /* inside the cell, so the cell keeps its row line */
.ev-pname-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ev-ptags { margin-left: auto; display: flex; gap: 4px; flex: none; }   /* tags line up on the right, not after each name */
.ev-strong { font-weight: 700; }
.ev-dropped { opacity: .5; }
.ev-me td { background: rgba(201,162,74,.06); }
.ev-th-kill { height: 15px; vertical-align: -3px; }
.ev-gold { color: var(--gold-light); }
.ev-qr-screen { position: fixed; inset: 0; z-index: 3000; background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 20px 22px; overflow-y: auto; }
.ev-qr-top { width: calc(100% + 40px); margin: 0 -20px; height: 64px; padding: 0 24px; box-sizing: border-box; flex: none; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
@media (max-width: 760px) { .ev-qr-top { padding: 0 16px; } }
.ev-qr-meta { text-align: center; }
.ev-qr-meta span { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; color: var(--text-muted); }
.ev-qr-meta h2 { margin: 6px 0 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.ev-qr-code { position: relative; width: min(340px, 86vw); aspect-ratio: 1; }
.ev-qr-code svg { width: 100%; height: 100%; }
.ev-qr-code img { position: absolute; top: 50%; left: 50%; height: 12%; transform: translate(-50%, -50%); }
.ev-qr-text { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ev-qr-text b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; }
.ev-qr-text span { color: var(--gold-light); font-size: .9rem; }
.ev-qr-btns { width: 100%; max-width: 520px; display: flex; gap: 8px; margin-top: auto; }
.ev-qr-btns .btn-ghost { flex: 1; padding: 14px; }
@media (max-width: 760px) {
  .ev-two { grid-template-columns: 1fr; }
  .ev-selects { flex: 1 1 100%; justify-content: stretch; }
  .ev-selects .modal-input { flex: 1 1 0; width: 0; min-width: 0; }
  .ev-selects #evFormat { flex: 1 1 0; width: 0; }
  .ev-table { font-size: .84rem; }
  .ev-table th, .ev-table td { padding: 9px 6px; }
  .ev-page-logo { display: none; }
  .ev-form { padding: 18px; }
  .ev-grid, .ev-pods-edit { grid-template-columns: 1fr; }
}

/* ═════════════════════════════════════════════
   HOME GAME TABS: logos only (user, 2026-11-19), same as the events game picker:
   no box, the picked game bright gold and slightly bigger, the others dim
   ═════════════════════════════════════════════ */
.game-tabs .game-tab { background: transparent; border: 0; padding: 8px 14px; transition: scale var(--transition); }
.game-tabs .game-tab:hover { background: transparent; }
.game-tabs .game-tab.active { background: transparent; scale: 1.12; }
.game-tabs .game-tab.active:hover { scale: 1.12; }
.game-tabs .game-tab-logo { height: 42px; max-width: 140px; opacity: .4; }
.game-tabs .game-tab:hover .game-tab-logo { opacity: .75; filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(0.78); }
.game-tabs .game-tab.active .game-tab-logo { opacity: 1; filter: brightness(0) invert(1) sepia(1) saturate(2.5) hue-rotate(5deg) brightness(0.9); }
@media (max-width: 520px) { .game-tabs .game-tab img { height: 38px; } }

/* 2026-11-19: version bump so this file never reuses the ?v=ba31291d54 address Cloudflare cached with an older copy */

/* ── A copy in another language (pickListingPic, cardPagePic in app.js, 2026-11-19): clicking the row or its
   language pill shows that copy's picture on the big card; the pill of a copy with its own picture is gold ── */
.listing-row.pic-on { border-color: var(--gold-dim); box-shadow: 0 0 0 1px var(--gold-dim); }

/* ── Sort uses the site's own dropdown, like Rarity and Type (enhanceSelect in app.js, 2026-11-19) ── */
.sort-filter .picker { min-width: 190px; }
@media (max-width: 900px) {
  .results-meta .sort-filter .picker { flex: 1 1 auto; min-width: 0; display: flex; }
  .results-meta .sort-filter .set-picker-btn { height: 100%; }
}
@media (max-width: 420px) {
  .results-meta .sort-filter .set-picker-btn { font-size: 0.8rem; letter-spacing: 0.02em; padding-left: 8px; padding-right: 26px; background-position: right 8px center, 0 0; }
}

/* ── Events dropdowns are the site's own, like Rarity, Type and Sort (enhanceSelectsIn in app.js, 2026-11-19).
   The wrappers take over the sizes the menus had. ── */
.ev-selects .picker { min-width: 140px; }
.ev-selects #evFormat + .picker { flex: none; width: 15.5rem; }
.ev-field .picker { width: 100%; }
.picker.disabled .set-picker-btn { opacity: 0.45; }
@media (max-width: 760px) {
  .ev-selects .picker, .ev-selects #evFormat + .picker { flex: 1 1 0; width: 0; min-width: 0; }
}
/* Date and time pickers open centred under their own field (user, 2026-11-19), not pinned to its left or right edge */
.ev-pick-field .ev-pop, .ev-pick-field:last-child .ev-pop { left: 50%; right: auto; translate: -50% 0; }

/* ── One dropdown on every page (picker.js, 2026-11-19). The list floats above the page so tables and dialogs never
   clip it; the button takes the size the plain dropdown had (as-<class> copies the select's classes). ── */
.set-picker-panel.gp-float { position: fixed; right: auto; z-index: 1100; max-width: calc(100vw - 16px); padding: 6px;
  transition: none; }   /* appears in place: a site-wide 'transition: all' made it slide and shrink into position (a gap, a second edge) */
.gp-float .set-picker-list li { padding-left: 4px; padding-right: 4px; }   /* narrow lists (NM, quantity) still fit their text */
/* Rows drawn at once: the lazy drawing the long Set list uses guessed 48px rows while the list was being placed,
   so it was sized and placed for a taller list, then shrank (extra space, a second edge, a gap above the button) */
.gp-float .set-picker-list li { content-visibility: visible; contain-intrinsic-size: none; }
.gp-float .set-picker-list li.hl { background: var(--bg-card-2); }
.gp-float .set-picker-list li.dis { opacity: 0.4; }
.picker.as-modal-input { width: 100%; }
.picker.as-cell-input { display: inline-block; width: auto; vertical-align: middle; }
.picker.as-cell-input .set-picker-btn { padding: 6px 30px 6px 10px; font-size: 0.78rem; background-position: right 10px center, 0 0; }
/* Never squeezed onto two lines in a narrow table (admin Manage stock showed N over M): as wide as the text and arrow */
.picker.as-cell-input { min-width: max-content; flex: none; }
.picker.as-cell-input .set-picker-btn { white-space: nowrap; }
.picker.as-cell-input .set-picker-label { overflow-wrap: normal; white-space: nowrap; }
.listing-add .picker { width: 56px; flex: none; }
.listing-add .set-picker-btn { height: 36px; padding: 0 22px 0 8px; background-position: right 7px center, 0 0; }
.picker.hidden { display: none; }

/* ── Footer: Download Companion (user, 2026-11-20): rounded, the site's dark card and gold, text only ── */
.companion-dl { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 74px 10px 18px; position: relative; overflow: hidden;
  background: var(--bg-card-2); border: 1px solid var(--gold-dim); border-radius: 10px; color: var(--gold-light);
  text-decoration: none; transition: border-color var(--transition), background var(--transition); }
.footer-inner a.companion-dl { display: inline-flex; color: var(--gold-light); }   /* beats the footer's inline-block link rule */
.companion-dl:hover { border-color: var(--gold); background: rgba(201, 162, 74, 0.08); }
.companion-dl-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; }
.companion-dl-text b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.03em; font-size: 1.05rem; color: var(--gold-light); }
.companion-dl-text small { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }
/* The peeking picture (assets/companion-peek.png: swap the file to change it) rises from the bottom right of the button */
.companion-dl-bot { position: absolute; right: 0; bottom: -26px; height: 66px; width: auto; pointer-events: none;
  transition: transform var(--transition); }
.companion-dl:hover .companion-dl-bot { transform: translateY(-5px); }
/* Footer: one group, the copyright line, then the links, then the download button (user, 2026-11-21; no logo, no divider) */
.footer-inner .footer-copy { margin: 0 0 10px; font-size: 0.75rem; color: var(--text-dim); text-align: center; }
/* Footer: one line of links, the policies in quieter grey, then "Follow us" and the Instagram icon (user, 2026-11-21) */
.footer-inner .footer-links { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; font-size: 0.8rem; color: var(--text-dim); }
.footer-inner .footer-links .legal { color: var(--text-muted); }
/* Every footer link looks like Privacy policy (user, 2026-11-21): dark gold, brighter gold + the site's slight zoom on hover.
   The Instagram glyph (assets/insta-gold.png) is used as a mask so it takes the link's colour. */
.footer-inner a.footer-ig { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; }
.footer-ig-icon { width: 17px; height: 17px; display: block; background-color: currentColor;
  -webkit-mask: url(/assets/insta-gold.png) center / contain no-repeat; mask: url(/assets/insta-gold.png) center / contain no-repeat; }
.footer-inner .companion-dl { margin-top: 12px; }

/* Policy pages (terms, privacy, returns): one quiet reading column */
.policy-body { background: var(--bg); color: var(--text); margin: 0; }
.policy-page { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.policy-back { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: var(--gold-light); text-decoration: none; font-size: .9rem; }
.policy-title { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3rem); line-height: 1; margin: 18px 0 10px; color: #fff; }
.policy-lead { color: var(--text-muted); margin: 0 0 28px; }
.policy-text { line-height: 1.7; }
.policy-soon { padding: 14px 16px; border: 1px dashed var(--border-glow); border-radius: var(--radius-sm); color: var(--text-muted); }
.policy-soon a { color: var(--gold-light); }
/* Written policy pages (2026-11-21) */
.policy-lead { margin-bottom: 6px; }
.policy-updated { color: var(--text-muted); font-size: .8rem; margin: 0 0 28px; }
.policy-text h2 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase;
  letter-spacing: .03em; font-size: 1.15rem; color: var(--gold-light); margin: 36px 0 10px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); }
.policy-text p { margin: 0 0 12px; }
.policy-text ul { margin: 0 0 14px; padding-left: 20px; }
.policy-text li { margin-bottom: 6px; }
.policy-text li::marker { color: var(--gold); }
.policy-text strong { color: #fff; font-weight: 600; }
.policy-text a { color: var(--gold-light); }
/* Header, footer and phone bar on the policy pages; a wider, tighter, justified column (user, 2026-11-21) */
.policy-body .policy-page { max-width: 1100px; padding: 28px 24px 40px; }
.policy-body .policy-title { margin-top: 0; }
.policy-body .policy-text { line-height: 1.6; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.policy-body .policy-text h2 { margin: 24px 0 8px; padding-top: 16px; text-align: left; }
.policy-body .policy-text li { margin-bottom: 4px; }
.policy-body .policy-text p { margin-bottom: 10px; }
.policy-text .policy-sub { padding-left: 20px; }   /* subsection titles line up with the bullet text (ul padding-left: 20px) */
.policy-body a.cart-btn, .policy-body a.user-nav-btn, .policy-body a.mob-nav-btn { text-decoration: none; }
@media (max-width: 760px) { .policy-body .policy-page { padding: 20px 16px 28px; } }

/* ── Dialogs (dialog.js, 2026-11-25): the site's own confirm / prompt boxes on every page, same look as admin's
   Unsaved changes box ── */
.g-dialog { position: fixed; inset: 0; z-index: 3000; background: rgba(5,6,9,0.72); display: grid; place-items: center; padding: 16px; }
.g-dialog-box { width: min(440px, 100%); background: var(--bg-card); border: 1px solid var(--border-glow); border-radius: var(--radius-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.7); }
.g-dialog-box h3 { margin: 0; font-family: var(--font-display); font-stretch: var(--display-stretch); text-transform: uppercase; font-weight: 800;
  font-size: 1.25rem; color: var(--text); line-height: 1.2; }
.g-dialog-text { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }
.g-dialog-input { margin: 0; width: 100%; }
.g-dialog-btns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.btn-primary.g-dialog-danger { background: #f6ab37; border-color: #f6ab37; color: #0d0f14; }
@media (any-hover: hover) { .btn-primary.g-dialog-danger:hover { background: #f8bb5a; border-color: #f8bb5a; } }
.g-dialog-btns button:disabled { opacity: 0.45; cursor: default; }

/* ── One look for every popup (2026-11-25, user: all popups the same colours) ──
   Box #13161e (--bg-card) with the blue-grey --border-glow edge, backdrop = page colour at 90% (2026-11-27, was 75% black). Covers modals, the sign-in and
   event windows, the cart drawer, dialogs (dialog.js + admin's), toasts, event pickers, dropdown lists and tooltips. */
:root { --pop-bg: var(--bg-card); --pop-border: var(--border-glow); --pop-backdrop: color-mix(in srgb, var(--bg) 90%, transparent); }
.modal-overlay, .cart-overlay, .g-dialog { background: var(--pop-backdrop); }
.modal-inner, .ev-modal, .g-dialog-box, .toast, .ev-pop, .set-picker-panel { background: var(--pop-bg); border-color: var(--pop-border); }
.cart-drawer { background: var(--pop-bg); border-left-color: var(--pop-border); }
@media (any-hover: hover) {
  .color-btn[data-tip]::before, .filters-collapsed .filters-panel label[data-tip]::before { background: var(--pop-bg); border-color: var(--pop-border); }
}

/* ── THE on/off switch (2026-11-26, user: one switch everywhere = the app scanner's, 52 x 30; app/www/scan.css .switch
   is the same). Markup: <label class="switch-row"><span class="switch"><input type="checkbox"><span></span></span>Text</label>
   or, with no text, <label class="switch"><input type="checkbox"><span></span></label>. Never add another switch style. ── */
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; }
.switch input[type="checkbox"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
  border: 0; background: none; box-shadow: none; animation: none; }
.switch > span { position: absolute; inset: 0; background: var(--border); border-radius: 30px; transition: background 0.2s; pointer-events: none; }
.switch > span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%;
  background: var(--text); transition: transform 0.2s, background 0.2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::before { transform: translateX(22px); background: #14120c; }
.switch input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.switch-row { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch-row .form-label { margin: 0; color: var(--text); }

/* ── THE LABEL (2026-11-26, user picked F = the app's grade tag): every outline label on the website, admin and seller
   pages (app.css has the same rule). Words always in capitals. One set of meaning colours. Never add another label style. ── */
.status-pill, .o-pill, .o-check, .admin-tag, .ev-tag, .ev-live-dot, .cond-badge, .lang-badge, .finish-tag, .verified-badge, .unique-badge {
  display: inline-block; vertical-align: middle; white-space: nowrap; font-family: var(--font-display); font-stretch: 100%;
  font-weight: 800; font-size: 11px; line-height: 1.3; letter-spacing: normal; text-transform: uppercase;
  padding: 4px 6px; border-radius: 3px; border: 1px solid var(--border); color: #c9c6bb; }
.ev-live-dot { display: inline-flex; align-items: center; gap: 6px; }
.ev-live-dot i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.o-check { margin-left: 6px; }
.status-pill.good, .o-pill.good, .o-check.good, .ev-live-dot, .cond-NM { color: #22c55e; border-color: #1f5d36; }
.cond-EX { color: #a3e635; border-color: #3f5a1d; }
.status-pill.warn, .o-pill.warn, .o-check.warn, .cond-GD { color: #facc15; border-color: #5c4d14; }
.cond-PL { color: #fb923c; border-color: #5f3a17; }
.status-pill.bad, .o-pill.bad, .o-check.bad, .ev-tag-red, .cond-PO { color: #f6ab37; border-color: #6b4a12; }
.status-pill.gold, .o-pill.gold, .o-check.gold, .admin-tag, .ev-tag-gold, .lang-badge.has-pic { color: var(--gold-light); border-color: var(--gold-dim); }
.finish-tag.is-foil { color: #d6c8ff; border-color: #5b4a99; }
/* The solid badge (Expedited / Verified): the same label, filled gold */
.verified-badge { color: #0d0f14; background: var(--gold); border-color: var(--gold); }
/* A unique copy (signed, altered...; 2026-12-02): the Expedited badge in white */
.unique-badge { color: #0d0f14; background: #fff; border-color: #fff; }

/* MINIMUM SPACING (2026-11-26, user): a line below a row of labels never touches them: at least 6px clear. Labels always
   come after the name, one after the other. */
:is(.status-pill, .o-pill, .o-check, .admin-tag, .ev-tag, .cond-badge, .lang-badge, .finish-tag, .verified-badge, .unique-badge) ~ :is(.sub, div, p) { margin-top: 6px; }
strong + .unique-badge { margin-left: 4px; }   /* after a card name (seller inventory), as Expedited after a shop name */

/* GOLD WORDS, WHITE VALUES (2026-11-26, user): one pattern for important info lines, as in '3 listings from 2 sellers'.
   The words are gold, the values (dates, names, email, phone, address numbers, amounts) white in a .num span. */
.listings-head h3 .num, .sub.meta .num { color: var(--text); }
.sub.meta { font-size: 0.86rem; line-height: 1.5; color: var(--gold-light); }
.sub.meta .num { font-weight: 600; }

/* SEARCH BOXES HAVE NO GOLD FOCUS (2026-11-26, user; same as the app since 11-23): typing in a search keeps its normal
   frame, with no gold border or glow on the bar or the box inside it (the site-wide input focus glow is switched off here) */
.search-bar input:focus, .search-bar input:focus-visible,
.results-search-bar input:focus, .results-search-bar input:focus-visible { outline: none; box-shadow: none; }
.results-search-bar input:focus, .results-search-bar input:focus-visible { border-color: var(--border); }

/* ═══ ONE TAB / CHOICE BUTTON (option 8, user 2026-11-26: "use option 8 for everything") ═══
   Every tab and choice on the site and admin: admin and shop sections, order filters and pick-order picks, home best
   sellers / expedited, price chart ranges and finishes, card page finishes, events filters and view tabs, results.
   Outlined at rest, filled gold when picked (events results keep their own colours: win green, loss orange).
   The game-logo rows are not part of it: a filled gold button would hide the gold logos. */
.ev-seg button, .admin-tab, .discount-pick, .trending-tab, .chip, .ev-view-tabs button {
  min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 3px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer;
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; font-size: .8rem; line-height: 1.1; white-space: nowrap; transition: border-color var(--transition), color var(--transition);
}
@media (any-hover: hover) {
  .admin-tab:not(.active):hover, .discount-pick:not(.active):not(:has(input:checked)):hover, .trending-tab:not(.active):hover,
  .chip:not(.active):hover, .ev-view-tabs button:not(.on):hover, .ev-seg button:not([class*="on-"]):hover { color: var(--text); border-color: var(--ctl-hover); }
}
.admin-tab.active, .discount-pick.active, .discount-pick:has(input:checked), .trending-tab.active, .chip.active,
.ev-view-tabs button.on, .ev-seg button.on-draw, .ev-seg button.on-gold { background: var(--gold); border-color: var(--gold); color: #0d0f14; }

/* ONE COUNT BUBBLE (option E): tab counts, header cart, phone nav cart, admin pick order */
.tab-count, .cart-count, .mob-nav-badge, .pick-n {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--gold); color: #0d0f14;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 900; font-stretch: 100%;
  letter-spacing: 0; text-transform: none; line-height: 1; font-variant-numeric: tabular-nums;
}
.tab-count { margin-left: 4px; }
.tab-count.urgent { background: var(--red); color: #0d0f14; box-shadow: 0 0 0 3px rgba(246, 171, 55, 0.28); }   /* due now: orange with a soft glow (user picked C, 2026-12-02) */
.admin-tab.active .tab-count:not(.urgent) { background: #0d0f14; color: var(--gold-light); }   /* stays visible on gold */

/* Deck results: Available printings / Out of stock titles (2026-12-02) */
.dk-sec-h { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 14px 18px 10px; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; color: var(--text); }
.dk-sec-h::before { content: ''; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.dk-sec-h.bad::before { background: var(--red); }
.dk-sec-h span { font-family: var(--font-body, inherit); font-stretch: normal; font-weight: 500; text-transform: none; font-size: .8rem; letter-spacing: 0; color: var(--text-muted); }
.dk-row-none .dk-thumb { filter: grayscale(1); }
/* Deck results: closed "All shops (N)" menu under each card (2026-12-02) */
.dk-menu-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-light); }
.dk-menu-btn { transform-origin: left center; }   /* hover = the site's own button zoom (scale + its transition), grown from the left */
.dk-menu-btn[aria-expanded="true"] { color: var(--text); }   /* open = white, closed = gold */

/* Deck page OTHER PRINTINGS (2026-12-02): tiles in a sideways strip (zoom a little on hover = click me), a popup with
   the card-page card (tilt, foil, flip) and seller block, and the "In your cart" list under the card */
.dk-row > .dk-strip { grid-column: 1 / -1; }
.dk-strip { display: flex; gap: 12px; overflow-x: auto; padding: 12px 8px 14px; margin-top: -4px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--border-glow) transparent; }
.dk-tile { flex: 0 0 172px; scroll-snap-align: start; display: grid; grid-template-rows: auto 2.6em 24px 24px auto; gap: 8px; align-items: center;
  padding: 10px; background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; outline: none;
  transition: transform .18s ease, border-color .18s ease; }
.dk-tile:hover, .dk-tile:focus-visible { transform: scale(1.04); border-color: var(--gold); }
.dk-tile-img { display: block; aspect-ratio: 63 / 88; border-radius: var(--card-radius); overflow: hidden; }
.dk-tile-img img, .dk-tile-img > * { display: block; width: 100%; height: 100%; object-fit: cover; }
.dk-tile-name { align-self: start; font-size: .84rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dk-tile-name span { color: var(--text-muted); font-weight: 500; }
.dk-tile-tags { display: flex; gap: 5px; min-width: 0; overflow: hidden; }
.dk-tile-shop { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; font-size: .8rem; white-space: nowrap; }
.dk-tile-shop > span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dk-tile-buy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.dk-tile-buy b { color: var(--gold-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dk-tile-buy small { color: var(--text-dim); font-size: .74rem; white-space: nowrap; }

.dk-incart { margin-top: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card-2); display: grid; gap: 6px; }
.dk-incart-h { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.dk-incart-it { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: .84rem; }
.dk-incart-img { display: block; width: 26px; aspect-ratio: 63 / 88; border-radius: 3px; overflow: hidden; }
.dk-incart-img img, .dk-incart-img > * { display: block; width: 100%; height: 100%; object-fit: cover; }
.dk-incart-txt { min-width: 0; color: var(--text-muted); }
.dk-incart-txt b { color: var(--text); font-weight: 600; margin-right: 4px; }
.dk-incart-price { color: var(--gold-light); font-variant-numeric: tabular-nums; white-space: nowrap; }

.dk-pop-bg { position: fixed; inset: 0; z-index: 1000; background: var(--pop-backdrop); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.dk-pop { width: min(720px, 100%); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 26px;
  background: var(--pop-bg); border: 1px solid var(--pop-border); border-radius: 10px; box-shadow: var(--shadow); animation: dkPopIn .2s ease-out; }
@keyframes dkPopIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dk-pop-img .modal-card-img { width: 260px; }
.dk-pop-info { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.dk-pop-info h3 { margin: 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; text-wrap: balance; }
.dk-pop-set { margin: 0; font-weight: 600; }
.dk-pop-set span { color: var(--text-muted); font-weight: 500; }
.dk-pop-each { padding-top: 12px; border-top: 1px solid var(--border); font-size: .86rem; color: var(--text-muted); }
.dk-pop-step { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dk-pop-total { font-size: 1.4rem; color: var(--gold-light); font-variant-numeric: tabular-nums; }
/* ONE quantity stepper (user, 2026-12-02): round - and + with the number between, in the deck popup and the cart drawer */
.qty-circles { display: inline-flex; align-items: center; gap: 10px; }
.qty-circles button, .cart-item-qty.qty-circles button { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--gold-light);
  font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.qty-circles button:not(:disabled):hover, .cart-item-qty.qty-circles button:not(:disabled):hover { background: var(--gold); color: #0d0f14; }
.qty-circles button:disabled, .cart-item-qty.qty-circles button:disabled { border-color: var(--border); color: var(--text-dim); cursor: default; }
.qty-circles output { min-width: 20px; text-align: center; font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.dk-pop-btns { margin-top: auto; display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 640px) {
  .dk-pop { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 18px; }
  .dk-pop-img { width: min(240px, 100%); justify-self: center; }
  .dk-pop-img .modal-card-img { width: 100%; }
  .dk-pop-btns > * { flex: 1; }
}
/* Deck page: every negative or remove item uses the events page's Cancel orange (#f6ab37, .ev-btn-orange) (user, 2026-12-02) */
.dk-legend .bad, .dk-legend .alt { color: #f6ab37; }
.dk-legend .bad::before, .dk-legend .alt::before, .dk-sec-h.bad::before { background: #f6ab37; }
.dk-qty.none, .dk-qty.short { background: rgba(246, 171, 55, 0.14); color: #f6ab37; }
.dk-short { color: #f6ab37; }
.dk-link { color: #f6ab37; text-decoration: none; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.dk-link:hover, .dk-link:focus-visible { color: #f8bb5a; }
.dk-pop-btns > button { min-height: 44px; padding: 0 22px; font-size: 1rem; }   /* Cancel and Add to cart the same size */
/* Cart drawer: the remove X sits in the item's top-right corner, the -/+ stays centred on the right (user, 2026-12-02) */
.cart-item { position: relative; }
.cart-item .cart-remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; display: grid; place-items: center; }
.cart-item .cart-item-info { padding-right: 4px; }
