/* Amiibo Collection Checklist — Stylesheet
   Prefix: --ami-
   Cluster: hobby (accent: --tf-accent #9c4221 in light, #e08355 in dark). */

:root {
  --ami-surface: #ffffff;
  --ami-card: #ffffff;
  --ami-border: #e2e8f0;
  --ami-text: #0f172a;
  --ami-muted: #64748b;
  --ami-code-bg: #f8fafc;
  --ami-radius: 6px;
}

.ami-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

.ami-main {
  padding: 16px 0 60px;
}

/* Stats Hero Card */
.ami-hero-card {
  background: var(--ami-surface);
  border: 1.5px solid var(--ami-border);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ami-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}

@media (max-width: 720px) {
  .ami-hero-grid {
    grid-template-columns: 1fr;
  }
}

.ami-hero-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ami-h-lbl {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ami-muted);
}

.ami-prog-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ami-h-val {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--tf-accent);
  font-family: ui-monospace, monospace;
}

.ami-h-val.red {
  color: #dc2626;
}

.ami-h-val.emerald {
  color: #059669;
}

.ami-h-sub {
  font-size: 0.9375rem;
  color: var(--ami-muted);
  font-weight: 700;
}

.ami-bar-bg {
  height: 10px;
  background: var(--ami-border);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 6px;
}

.ami-bar-fill {
  height: 100%;
  background: var(--tf-accent);
  border-radius: 5px;
  transition: width 0.4s ease;
}

.ami-hero-item.actions {
  justify-content: center;
  gap: 8px;
}

.ami-btn-export {
  background: var(--ami-surface);
  border: 1.5px solid var(--ami-border);
  color: var(--ami-text);
  padding: 10px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ami-btn-export:hover {
  border-color: var(--tf-accent);
  color: var(--tf-accent);
}

.ami-btn-export.primary {
  background: var(--tf-accent);
  border-color: var(--tf-accent);
  color: var(--tf-accent-ink, #ffffff);
}

.ami-btn-export.primary:hover {
  background: var(--tf-accent-hover);
  color: var(--tf-accent-ink, #ffffff);
}

/* Toolbar */
.ami-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.ami-search-input {
  padding: 8px 12px;
  border: 1.5px solid var(--ami-border);
  border-radius: var(--ami-radius);
  background: var(--ami-surface);
  color: var(--ami-text);
  font-size: 0.875rem;
  min-width: 220px;
}

.ami-list-status {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ami-muted);
  margin: 0 0 24px;
}

.ami-series-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.ami-filter-status {
  font-size: 0.75rem;
  color: var(--ami-muted);
}

.ami-chip {
  background: var(--ami-surface);
  border: 1.5px solid var(--ami-border);
  color: var(--ami-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ami-chip:hover {
  border-color: var(--tf-accent);
  color: var(--ami-text);
}

.ami-chip.active {
  background: var(--tf-accent-wash);
  border-color: var(--tf-accent);
  color: var(--tf-accent);
  font-weight: 800;
}

.ami-tab-btn {
  background: var(--ami-surface);
  border: 1.5px solid var(--ami-border);
  color: var(--ami-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ami-tab-btn:hover {
  border-color: var(--tf-accent);
  color: var(--ami-text);
}

.ami-tab-btn.active {
  background: var(--tf-accent-wash);
  border-color: var(--tf-accent);
  color: var(--tf-accent);
  font-weight: 800;
}

/* Friendly Amiibo Cards Grid */
.ami-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.ami-figure-card {
  background: var(--ami-surface);
  border: 1.5px solid var(--ami-border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ami-figure-card:hover {
  transform: translateY(-3px);
  border-color: var(--tf-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ami-figure-card.owned {
  border-color: #059669;
  background: rgba(5, 150, 105, 0.02);
}

.ami-card-top-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ami-wave-pill {
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ami-muted);
  background: var(--ami-code-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.ami-val-pill {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  color: #059669;
}

.ami-fig-img-wrap {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: radial-gradient(circle, var(--ami-code-bg) 0%, transparent 70%);
  border-radius: 6px;
}

.ami-fig-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}

.ami-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.ami-fig-name {
  font-size: 1rem;
  font-weight: 900;
  color: var(--ami-text);
  margin: 0 0 2px;
  line-height: 1.25;
}

.ami-fig-series {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tf-accent);
  margin-bottom: 6px;
}

.ami-fig-compat {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ami-muted);
  margin: 0;
}

.ami-toggle-btn {
  width: 100%;
  background: var(--ami-surface);
  border: 1.5px solid var(--ami-border);
  color: var(--ami-text);
  padding: 8px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ami-figure-card.owned .ami-toggle-btn {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.ami-ad-container {
  margin-block: 2rem;
  min-height: 280px;
  border: 1px dashed var(--ami-border);
  border-radius: var(--ami-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ami-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: ami-spin 0.6s linear infinite;
}

.ami-spinner-lg {
  width: 20px;
  height: 20px;
  border-width: 2.5px;
  display: block;
  margin: 0 auto 12px;
}

@keyframes ami-spin {
  to { transform: rotate(360deg); }
}

.ami-loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ami-muted);
  font-weight: 700;
}

.ami-figure-card {
  animation: ami-fade-in 0.25s ease-out;
}

@keyframes ami-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --ami-surface: var(--tf-surface);
  --ami-card: var(--tf-surface);
  --ami-border: var(--tf-surface);
  --ami-text: var(--tf-ink);
  --ami-muted: var(--tf-ink-faint);
  --ami-code-bg: var(--tf-surface);
}
