/* Shared Magical Meta shell — breadcrumbs, game switch, hub groups */
.mm-crumb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: var(--mm-text-muted, #8b949e);
  margin: 0.35rem 0 0.75rem;
}
.mm-crumb {
  color: inherit;
  text-decoration: none;
}
.mm-crumb:hover {
  color: var(--mm-accent, #58a6ff);
  text-decoration: underline;
}
.mm-crumb--current {
  color: var(--mm-text, #e6edf3);
  font-weight: 600;
}
.mm-crumb-sep {
  opacity: 0.45;
}
.mm-game-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}
.mm-game-switch-select {
  min-width: 9rem;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--mm-border, #30363d);
  background: var(--mm-surface, #161b22);
  color: var(--mm-text, #e6edf3);
}
.mm-hub-groups {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}
.sidebar-hub-groups {
  padding: 0.35rem 0.85rem 0.85rem;
  border-top: 1px solid var(--mm-border, #30363d);
}
.mm-hub-groups-details {
  border: 1px solid var(--mm-border, #30363d);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}
.mm-hub-groups-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mm-text-muted, #8b949e);
}
.mm-hub-groups-summary::-webkit-details-marker {
  display: none;
}
.mm-hub-groups-body {
  padding: 0 0.55rem 0.65rem;
  max-height: 36vh;
  overflow: auto;
}
.sidebar-hub-groups .mm-hub-group-title {
  font-size: 0.68rem;
}
.sidebar-hub-groups .mm-hub-tool {
  font-size: 0.78rem;
  padding: 0.28rem 0.5rem;
}
.mm-home-search-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}
.mm-sync-optin-wrap {
  max-width: 640px;
  margin: 0 auto 1.25rem;
}
.mm-sync-optin {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}
.mm-sync-optin input {
  margin-top: 0.15rem;
}
.mm-watch-chip {
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
}
.mm-watch-chip:hover {
  border-color: var(--mm-accent, #58a6ff);
}
.md-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.md-cta-bar .md-buy-btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  max-width: 100%;
  -webkit-text-stroke: 0 !important;
}
.md-cta-bar .md-buy-footnote {
  flex: 1 1 100%;
  margin: 0;
}
.mm-hub-group-title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mm-text-muted, #8b949e);
}
.mm-hub-group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mm-hub-tool {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--mm-border, #30363d);
  background: var(--mm-surface, #161b22);
  color: var(--mm-text, #e6edf3);
  text-decoration: none;
  font-size: 0.85rem;
}
.mm-hub-tool:hover {
  border-color: var(--mm-accent, #58a6ff);
  color: var(--mm-accent, #58a6ff);
}

/* Watchlist ticker */
.mm-watch-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  margin: 0.75rem 0 1rem;
}
.mm-watch-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--mm-border, #30363d);
  background: var(--mm-surface, #0d1117);
  min-width: 0;
  max-width: 14rem;
}
.mm-watch-chip img {
  width: 32px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.mm-watch-chip-meta {
  min-width: 0;
  overflow: hidden;
}
.mm-watch-chip-name {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-watch-chip-price {
  font-size: 0.8rem;
  font-weight: 600;
}
.mm-watch-chip-age {
  font-size: 0.65rem;
  color: var(--mm-text-muted, #8b949e);
}
.mm-watch-empty {
  font-size: 0.8rem;
  color: var(--mm-text-muted, #8b949e);
}

/* Modal printing swap */
.mm-print-swap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0.75rem;
}
.mm-print-swap-btn {
  border: 1px solid var(--mm-border, #30363d);
  background: var(--mm-surface, #161b22);
  color: var(--mm-text, #e6edf3);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  cursor: pointer;
}
.mm-print-swap-btn.is-active {
  border-color: var(--mm-accent, #58a6ff);
  color: var(--mm-accent, #58a6ff);
}
.mm-print-swap-btn img {
  width: 28px;
  height: 40px;
  object-fit: cover;
  vertical-align: middle;
  border-radius: 3px;
  margin-right: 0.25rem;
}

/* Last sale / cooldown badges */
.mm-price-provenance,
.md-provenance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  font-size: 0.72rem;
  color: var(--mm-text-muted, #8b949e);
  margin-top: 0.35rem;
}
.mm-price-provenance strong {
  color: var(--mm-text, #e6edf3);
  font-weight: 600;
}
.md-prov-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--mm-border, #30363d);
  background: rgba(255, 255, 255, 0.03);
}
.md-variant-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.65rem 0 0.45rem;
  min-width: 0;
  max-width: 100%;
}
.md-variant-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mm-text-muted, #8b949e);
  font-weight: 700;
}
.md-variant-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.55rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.2rem 0.1rem 0.4rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.md-variant-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
  width: 64px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: var(--mm-text, #e6edf3);
  border-radius: 10px;
  padding: 0.28rem 0.28rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 650;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.md-variant-chip:hover {
  border-color: var(--md-accent-ring, rgba(196, 181, 253, 0.45));
  transform: translateY(-1px);
}
/* Selected frame follows card color theme (--md-accent* from getCardColors on .md-modal). */
.md-variant-chip.is-selected,
.md-variant-chip[aria-current="true"],
.md-variant-chip.md-variant-slot {
  border-color: var(--md-accent, #c4b5fd);
  color: var(--md-accent, #c4b5fd);
  box-shadow:
    0 0 0 1px var(--md-accent-ring, rgba(196, 181, 253, 0.55)),
    0 0 12px var(--md-accent-soft, rgba(196, 181, 253, 0.28));
}
.md-variant-chip.is-selected .md-variant-chip-label,
.md-variant-chip[aria-current="true"] .md-variant-chip-label,
.md-variant-chip.md-variant-slot .md-variant-chip-label {
  color: var(--md-accent, #c4b5fd);
}
.md-variant-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}
.md-variant-chip img,
.md-variant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.md-variant-chip-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}
.md-watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  padding: 0.55rem 1rem;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f0f0f0;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.md-watch-btn i {
  font-size: 1rem;
  opacity: 0.95;
}
.md-watch-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}
.md-watch-btn[aria-pressed="true"],
.md-watch-btn.is-watching {
  border-color: rgba(0, 179, 55, 0.75);
  background: rgba(0, 179, 55, 0.14);
  color: #4ade80;
  box-shadow: 0 0 0 1px rgba(0, 179, 55, 0.25);
}
.md-cta-bar .md-watch-btn {
  margin-right: 0.35rem;
}
.mm-watch-section {
  margin: 0.75rem 0 1rem;
}
.mm-watch-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}
.mm-watch-section-title {
  margin: 0;
  font-size: 0.95rem;
}
.mm-watch-section-sub {
  font-size: 0.75rem;
}
.mm-home-search {
  max-width: 640px;
  margin: 0 auto 1.25rem;
}
.mm-home-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.mm-home-search-form select {
  min-width: 8.5rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}
.mm-home-search-form input {
  flex: 1;
  min-width: 12rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}
.mm-home-search-form button {
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  border: 0;
  background: #3d7ea6;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.mm-home-search-form button:hover {
  background: #4a93bd;
}
.mm-continue-strip:not([hidden]) {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}
.mm-continue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  font-size: 0.9rem;
  color: #e8eef3;
}
.mm-continue-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  font-size: 0.72rem;
}
.mm-continue-link {
  color: var(--mm-accent, #58a6ff);
  text-decoration: none;
}
.mm-continue-link:hover {
  text-decoration: underline;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mm-game-switch-mount {
  margin-right: 0.5rem;
}
