/* ============================================================
   FINISH — restrained, theme-aware depth.
   The token layer owns colour; this file adds only the small
   amount of elevation, separation and motion the UI needs.
   ============================================================ */

/* No decorative stage washes or film grain; the theme background
   and real content carry the page. */
body::before,
body::after { display: none; }

/* ---------- surfaces sit on the page, not above it ---------- */
.card, .dg-cell, .char-card, .auc-mini, .action-btn, .event-strip,
.menu-item, .lg-tabs, .set-card, .sk-card, .hm-row, .au-row,
.ca-card, .trade-card, .podium .pod {
  box-shadow: none;
}
.chips-row, .pill-tabs, .hm-view, .au-tabs {
  box-shadow: none;
}

/* ---------- tactile press ---------- */
.btn, .chip, .qa-item, .action-btn, .char-card, .auc-mini,
.icon-btn, .seg-btn, .theme-card, .menu-item,
.pill-tab, .lg-tab, .hm-row, .au-row {
  transition: transform .12s ease, background .16s ease,
              border-color .16s ease, color .16s ease, opacity .16s ease;
}
.btn:active, .chip:active, .qa-item:active, .action-btn:active,
.char-card:active, .auc-mini:active,
.icon-btn:active, .theme-card:active, .menu-item:active,
.pill-tab:active, .lg-tab:active, .hm-row:active, .au-row:active {
  transform: scale(.985);
}

/* ---------- buttons: flat fills, no glow ---------- */
.btn-primary, .btn-gold, .btn-ghost, .btn-danger, .btn-success, .btn-cyan {
  box-shadow: none;
  text-shadow: none;
}
.btn-primary, .chip.active {
  box-shadow: none;
  text-shadow: none;
}
.btn-primary:active, .btn-gold:active {
  box-shadow: none;
}

/* ---------- artwork: just the image ---------- */
.char-art, .auc-mini .art, .char-hero, .hm-row-art, .au-art,
.pf-show-art, .ca-sel-art, .char-hero-art {
  box-shadow: none;
}
.char-art { position: relative; isolation: isolate; }
.char-art::before { display: none; }
.char-art::after { display: none; }
.rarity-ring {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc, transparent) 62%, transparent);
}
.char-art img, .auc-mini .art img, .au-art img {
  filter: none;
}
.char-card .char-info { background: none; }
.count-chip { box-shadow: none; }

/* ---------- floating chrome ---------- */
.topbar {
  background: var(--nav-bg);
  box-shadow: none;
}
.tabbar {
  background: var(--card);
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .55);
  border-radius: 20px;
}

/* ---------- sheets ---------- */
.overlay {
  background: var(--overlay);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.sheet {
  box-shadow: 0 -14px 44px -30px rgba(0, 0, 0, .55);
}
.grabber {
  background: color-mix(in srgb, var(--text) 16%, transparent);
  box-shadow: none;
}

/* ---------- toast ---------- */
.toast {
  box-shadow: 0 10px 32px -22px rgba(0, 0, 0, .55);
}

/* ---------- avatars: one quiet ring ---------- */
.avatar, .hero-greeting .avatar {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent);
}
.pf-av-wrap {
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 4px color-mix(in srgb, var(--accent) 44%, transparent);
}

/* ---------- form fields ---------- */
input, textarea, select {
  box-shadow: none;
}
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============================================================
   HOME
   ============================================================ */
.home-hero {
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, .55);
}
.home-hero::after { display: none; }
.hh-tag {
  box-shadow: none;
  background: rgba(9, 8, 14, .46);
  border-color: rgba(255, 255, 255, .16);
}
.hh-tag::before { display: none; }
.hh-spin,
.hh-view { box-shadow: none; }
.hh-view {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .20);
}

.quick-actions {
  background: var(--card);
  box-shadow: none;
}
.qa-item { box-shadow: none; }
.qa-item svg {
  background: none;
  box-shadow: none;
  border: 0;
  padding: 0;
}
.qa-item:active svg { filter: none; }

.sk-card {
  box-shadow: none;
}
.sk-card-ic {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.sk-claim-pill {
  box-shadow: none;
}
.sk-card-done {
  box-shadow: none;
}

.home-empty {
  background: var(--card);
  box-shadow: none;
}

/* ============================================================
   PROFILE
   ============================================================ */
.pf-cover {
  box-shadow: none;
}
.pf-cover-empty {
  background:
    radial-gradient(105% 135% at 18% 0%, rgba(var(--accent-rgb), .16), transparent 62%),
    var(--surface-2);
}
[data-theme="ivory"] .pf-cover-empty,
[data-theme="light"] .pf-cover-empty,
[data-theme="soda"] .pf-cover-empty {
  background:
    radial-gradient(105% 135% at 18% 0%, rgba(var(--accent-rgb), .10), transparent 62%),
    var(--surface-2);
}
.pf-cover-empty::after { display: none; }
[data-theme="ivory"] .pf-cover-empty .pf-cover-scrim,
[data-theme="light"] .pf-cover-empty .pf-cover-scrim,
[data-theme="soda"] .pf-cover-empty .pf-cover-scrim {
  background:
    linear-gradient(180deg, rgba(60, 40, 20, .06), transparent 30%),
    linear-gradient(0deg, rgba(60, 40, 20, .08), transparent 32%);
}
.pf-gear {
  background: rgba(10, 8, 15, .28);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  box-shadow: none;
  filter: none;
}
[data-theme="ivory"] .pf-gear,
[data-theme="light"] .pf-gear,
[data-theme="soda"] .pf-gear {
  background: rgba(255, 255, 255, .60);
  border-color: rgba(90, 70, 45, .12);
  box-shadow: none;
}
.pf-edit {
  background: var(--card);
  box-shadow: none;
}
.pf-show-art {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 55%, transparent);
}
.pf-show-card:active .pf-show-art {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 80%, transparent);
}
.pf-id {
  box-shadow: none;
}
.pf-social-stat {
  box-shadow: none;
}
.pf-social {
  background: none;
}

/* ============================================================
   LEADERBOARD
   ============================================================ */
.podium .pod {
  position: relative;
  overflow: hidden;
}
.podium .pod::before { display: none; }
.pod .p-av {
  box-shadow: inset 0 0 0 1px var(--border);
}
.pod.first .p-av {
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, .42);
}
.pod .medal {
  box-shadow: none;
}
.pod.first .medal {
  box-shadow: none;
}
.pill-tabs {
  background: var(--card);
}
.pill-tab.active {
  background: var(--accent);
  box-shadow: none;
}
.lb-row.me-row {
  background: var(--accent-soft);
  box-shadow: none;
}
.lb-av {
  box-shadow: inset 0 0 0 1px var(--border);
}

/* ============================================================
   SETTINGS / SUBPAGES
   ============================================================ */
.set-card {
  background: var(--card);
}
.set-ic {
  background: none;
  color: var(--accent);
  border: 0;
  box-shadow: none;
}
.set-row:active .set-ic { filter: none; }
.set-chev { opacity: .45; }

/* ============================================================
   MARKET — rows and filters
   ============================================================ */
.hm-row {
  background: var(--card);
}
.hm-row-art {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc, transparent) 48%, transparent);
}
.hm-mini-rarity,
.au-rarity-pill,
.ca-rarity-pill {
  box-shadow: none;
}
.hm-rarity-dot {
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: none;
}
.hm-view-btn.active {
  background: var(--card);
  box-shadow: none;
}
.au-row {
  background: var(--card);
}
.au-row.is-winning {
  background: color-mix(in srgb, var(--success) 7%, var(--card));
}
.au-art {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc, transparent) 48%, transparent);
}
.au-tab.active,
.au-tab[aria-selected="true"] {
  box-shadow: none;
}
.hm-search input,
.au-search input,
.search-bar input {
  box-shadow: none;
}
.lg-tab.active {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}

/* ============================================================
   ARCADE — keep the jewel palette, calm the frame
   ============================================================ */
.game-card {
  box-shadow: 0 10px 24px -20px rgba(0, 0, 0, .55);
}

/* ---------- coin marks ---------- */
.sp-coin,
.bs-coin-dot,
.mn-coin-dot,
.price-tag::before,
.coin-offer::before {
  background: var(--coin-asset) center / contain no-repeat;
  border-radius: 50%;
  box-shadow: none;
}
.sp-coin {
  filter: drop-shadow(0 1px 1px rgba(80, 40, 0, .28));
}
.price-tag::before,
.coin-offer::before {
  flex: 0 0 auto;
}

/* ============================================================
   THEME PICKER — 5 tactile swatch cards (settings page)
   ============================================================ */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 4px 0 6px;
}
.theme-card {
  position: relative;
  border-radius: 16px;
  padding: 10px 4px 9px;
  background: var(--card);
  border: 1px solid var(--stroke);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 800; color: var(--muted);
  box-shadow: none;
}
.theme-card.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-soft);
  box-shadow: none;
}
.theme-card.active::after { display: none; }
.theme-orb {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--tb, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.theme-note { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* legacy 2-way segmented control (kept as fallback) */
.theme-seg { display: flex; gap: 8px; }

/* kitsune: dark text on gold reads best without a light crown */
[data-theme="kitsune"] .btn-primary,
[data-theme="kitsune"] .chip.active {
  text-shadow: none;
}

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  body::before, body::after { display: none; }
}
