:root,
[data-theme="dark-classic"] {
  --bg: #0c0e14;
  --panel: #141824;
  --border: #252a3a;
  --text: #e8ecf4;
  --muted: #8b93a8;
  --steam: #66c0f4;
  --ig: #ff6b2c;
  --good: #4ade80;
  --warn: #fbbf24;
  --link: #66c0f4;
  --accent: #66c0f4;
  --input-bg: #0a0c10;
  --elevated: #1a2030;
  --overlay: rgba(8, 10, 16, 0.72);
  --on-accent: #111;
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --float-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --popover-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

[data-theme="dark-gamer"] {
  --bg: #121824;
  --panel: #1e2640;
  --border: #2d3654;
  --text: #f8fafc;
  --muted: #94a3b8;
  --steam: #66c0f4;
  --ig: #6366f1;
  --good: #22c55e;
  --warn: #fbbf24;
  --link: #6366f1;
  --accent: #6366f1;
  --input-bg: #161c2e;
  --elevated: #252d48;
  --overlay: rgba(18, 24, 36, 0.75);
  --on-accent: #fff;
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --float-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --popover-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

[data-theme="light-pro"] {
  --bg: #f8fafc;
  --panel: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --steam: #2563eb;
  --ig: #4f46e5;
  --good: #15803d;
  --warn: #b45309;
  --link: #4f46e5;
  --accent: #4f46e5;
  --input-bg: #ffffff;
  --elevated: #f1f5f9;
  --overlay: rgba(15, 23, 42, 0.45);
  --on-accent: #ffffff;
  --card-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  --float-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  --popover-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

[data-theme="light-classic"] {
  --bg: #eef1f7;
  --panel: #ffffff;
  --border: #d4dae6;
  --text: #0c0e14;
  --muted: #5c6378;
  --steam: #1a8fd8;
  --ig: #e85a1a;
  --good: #16a34a;
  --warn: #ca8a04;
  --link: #1a8fd8;
  --accent: #1a8fd8;
  --input-bg: #ffffff;
  --elevated: #f4f6fa;
  --overlay: rgba(12, 14, 20, 0.45);
  --on-accent: #ffffff;
  --card-shadow: 0 12px 40px rgba(12, 14, 20, 0.1);
  --float-shadow: 0 4px 16px rgba(12, 14, 20, 0.08);
  --popover-shadow: 0 8px 28px rgba(12, 14, 20, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.brand { display: flex; gap: 1rem; align-items: center; }
.brand-logo-link {
  display: flex;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 12px;
}
.brand-logo-link:hover { opacity: 0.9; }
.brand-logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.logo {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--steam), var(--ig));
  display: grid; place-items: center; font-weight: 800;
  flex-shrink: 0;
}
.logo.logo-img {
  display: block;
  width: auto;
  height: 88px;
  max-width: min(280px, 55vw);
  object-fit: contain;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}
@media (max-width: 640px) {
  .logo.logo-img {
    height: 64px;
    max-width: min(200px, 42vw);
  }
}
.brand h1 { margin: 0; font-size: 1.25rem; }
.brand p { margin: 0; color: var(--muted); font-size: 0.85rem; }

.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  line-height: 1.2;
  white-space: nowrap;
  min-height: 2.375rem;
  box-sizing: border-box;
}
.btn.primary { border-color: var(--ig); color: var(--ig); }
.btn.accent { background: var(--ig); border-color: var(--ig); color: var(--on-accent); font-weight: 600; }
.btn.secondary { border-color: var(--steam); color: var(--steam); }
.btn.upload { display: inline-flex; align-items: center; }
a.btn { text-decoration: none; }
a.btn:hover { text-decoration: none; opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: wait; }
.btn-steam-nav { border-color: #47bfff !important; color: #47bfff !important; }
.btn-conta { gap: 0.45rem; }
.btn-conta-avatar { border-radius: 50%; flex-shrink: 0; }

.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.theme-picker-label {
  font-size: 0.9rem;
  color: var(--steam);
  white-space: nowrap;
}
.theme-picker-menu {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
}
.theme-picker select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--steam);
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='currentColor' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.75rem;
  color: var(--steam);
  padding: 0.55rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  text-align-last: center;
  white-space: nowrap;
  min-height: 2.375rem;
  box-sizing: border-box;
}
.theme-picker select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-picker select option {
  font: inherit;
  font-size: 0.9rem;
  background: var(--panel);
  color: var(--text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wishlist-controls {
  padding: 0 0 0.25rem;
}
.wishlist-controls > .toolbar-wishlist {
  margin: 0 0 0.35rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.wishlist-controls > .toolbar-wishlist .search input {
  min-height: 2.65rem;
  font-size: 1rem;
}
.discover-categories {
  padding: 0.75rem 1.5rem 0.25rem;
}
.discover-categories-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.discover-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.discover-category {
  min-width: auto;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.discover-category-count {
  opacity: 0.6;
  font-size: 0.78rem;
  margin-left: 0.15rem;
}
@media (max-width: 640px) {
  .discover-categories {
    padding: 0.75rem 0.75rem 0.25rem;
  }
}
.controls-collapse {
  margin: 0;
}
.controls-collapse-summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.controls-collapse-summary::-webkit-details-marker { display: none; }
.controls-collapse-summary::before {
  content: "▾";
  color: var(--muted);
  font-size: 0.8rem;
  transition: transform 0.15s;
}
.controls-collapse:not([open]) .controls-collapse-summary::before {
  transform: rotate(-90deg);
}
.controls-collapse-hint {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.85;
}
.controls-collapse[open] .controls-collapse-hint::after { content: ""; }
@media (max-width: 640px) {
  .controls-collapse-summary {
    padding: 0.6rem 0.75rem;
  }
}
.filter-block-label {
  margin: 0 0 0.5rem;
  padding: 0 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-block-hint {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  opacity: 0.85;
}
.filter-block-inline .filter-block-label {
  padding: 0;
  margin-bottom: 0.35rem;
}
.active-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  flex-wrap: wrap;
  margin: 0.35rem 1.5rem 0.75rem;
  padding: 0.5rem 0.85rem;
  background: rgba(102, 192, 244, 0.22);
  border: 1px solid rgba(102, 192, 244, 0.55);
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(102, 192, 244, 0.12);
}
.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.active-filter-clear {
  flex: 0 0 auto;
  margin-left: auto;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--panel, #141824);
  border: 1px solid var(--border, #252a3a);
  font-size: 0.82rem;
  color: var(--text, #e8ecf4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.filter-chip-remove {
  color: var(--muted, #8b93a8);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.1rem;
  background: transparent;
  border: 0;
  appearance: none;
  cursor: pointer;
  font: inherit;
}
.filter-chip-remove:hover { color: var(--warn, #fbbf24); }
.search-filter-notice {
  margin: 0 1.5rem 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  background: color-mix(in srgb, var(--warn) 14%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--border));
  color: var(--text);
}
.search-filter-notice a {
  font-weight: 600;
  margin-left: 0.35rem;
}
.active-filter-clear {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.stats-group-toggles {
  align-items: center;
  gap: 0.45rem;
}

.filter-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.5rem 1rem;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}
.filter-row-label {
  flex: 0 0 100%;
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #8b93a8);
}
.filter-row-primary.filter-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 160px));
  justify-content: start;
}
.filter-row-primary.filter-row-grid .stat {
  min-width: 0;
}
.stat-label-stack {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.2;
}
.stat-label-stack > span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
a.stat-filter.stat-filter-actionable.is-active {
  border-color: var(--good);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--good) 55%, transparent);
}
.stat-toggle {
  min-width: auto;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.stat-toggle:hover {
  color: var(--text);
  border-color: var(--good);
}
.stat-toggle.is-active {
  color: var(--good, #4ade80);
  background: rgba(74, 222, 128, 0.18);
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.25);
}
.filter-more {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 90%, var(--bg));
  padding: 0.5rem 0.75rem;
}
.filter-more-summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.filter-more-summary::-webkit-details-marker { display: none; }
.filter-more-summary::before {
  content: "▸";
  color: var(--muted);
  font-size: 0.75rem;
  transition: transform 0.15s;
}
.filter-more[open] .filter-more-summary::before {
  transform: rotate(90deg);
}
.filter-more-hint {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}
.filter-row-stores {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.filter-offer-groups {
  margin-top: 0.65rem;
}
.filter-offer-groups .filter-store-group {
  margin: 0;
}
.filter-offer-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
  max-width: 100%;
}
.filter-store-groups {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.filter-store-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}
.filter-store-group-label {
  flex: 0 0 auto;
  min-width: 7.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.filter-store-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
}
.filter-store-group-actions .stat {
  min-width: 96px;
}
.stat-filter-cheaper.is-active strong {
  color: var(--good);
}
.filter-rows .sync-status {
  margin-left: 0;
  margin-top: 0.15rem;
}
.filter-toggle-stat {
  min-width: auto;
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
}

.stats {
  display: flex; gap: 0.65rem; padding: 0 1.5rem 1rem; flex-wrap: wrap; align-items: stretch;
}
.stats-grouped {
  align-items: flex-end;
  gap: 0.85rem;
}
.stats-group {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.stats-group + .stats-group {
  padding-left: 0.85rem;
  border-left: 1px solid var(--border);
}
.stat-filter-actionable strong { color: var(--good); }
.stat-filter-discount strong { color: var(--warn); font-size: 1.1rem; }

.filter-toggle {
  align-self: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.filter-toggle:hover {
  color: var(--text);
  border-color: var(--good);
}
.filter-toggle.is-active {
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 55%, var(--border));
  background: color-mix(in srgb, var(--good) 10%, var(--panel));
}
.toolbar-wishlist {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}
.toolbar-wishlist .search {
  flex: 1 1 280px;
}
.wishlist-sort-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
.wishlist-sort {
  min-width: 12rem;
  max-width: 100%;
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.wishlist-sort:focus {
  outline: 2px solid color-mix(in srgb, var(--good) 45%, transparent);
  border-color: var(--good);
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  min-width: 110px;
}
.stat strong { display: block; font-size: 1.4rem; }
.stat span { color: var(--muted); font-size: 0.8rem; }
.stat.good strong { color: var(--good); }
.stat.highlight strong { color: var(--ig); }
.stat.highlight-steam strong { color: var(--steam); }
.stat.warn strong { color: var(--warn); }

button.stat-filter,
a.stat-filter {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
button.stat-filter {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: center;
}
button.stat-filter:hover,
a.stat-filter:hover {
  border-color: var(--steam);
  transform: translateY(-1px);
}
button.stat-filter.is-active,
a.stat-filter.is-active {
  background: rgba(102, 192, 244, 0.18);
  border-color: var(--steam, #66c0f4);
  box-shadow: 0 0 0 1px rgba(102, 192, 244, 0.55);
}
button.stat-filter.highlight.is-active,
a.stat-filter.highlight.is-active {
  border-color: var(--ig);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ig) 55%, transparent);
}
button.stat-filter.highlight-steam.is-active,
a.stat-filter.highlight-steam.is-active {
  border-color: var(--steam);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--steam) 55%, transparent);
}
button.stat-filter.stat-filter-instant_gaming.is-active strong,
a.stat-filter.stat-filter-instant_gaming.is-active strong { color: var(--ig); }
button.stat-filter.stat-filter-steam.is-active strong,
a.stat-filter.stat-filter-steam.is-active strong { color: var(--steam); }
button.stat-filter.stat-filter-green_man_gaming.is-active strong,
a.stat-filter.stat-filter-green_man_gaming.is-active strong { color: #7dce82; }
button.stat-filter.stat-filter-nuuvem.is-active strong,
a.stat-filter.stat-filter-nuuvem.is-active strong { color: #5eb3ff; }

.toolbar {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0 1.5rem 1rem; flex-wrap: wrap;
}
.search { display: flex; gap: 0.5rem; align-items: stretch; }
.search input {
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text); padding: 0.55rem 0.8rem; border-radius: 8px; min-width: 220px;
  flex: 1;
}
.search-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: stretch;
}
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filters a {
  padding: 0.45rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem;
}
.filters a.active, .filters a:hover { color: var(--text); border-color: var(--ig); }

.table-wrap { padding: 0 1.5rem 2rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--bg); }

.games-price-table {
  table-layout: fixed;
  width: 100%;
}
.games-price-table .col-title,
.games-price-table .title-cell {
  text-align: left;
}
.games-price-table .col-store,
.games-price-table .store-cell,
.games-price-table .col-best,
.games-price-table .best-cell,
.games-price-table .col-review,
.games-price-table .review-cell,
.games-price-table .col-links,
.games-price-table td.links,
.games-price-table .col-action,
.games-price-table td.wishlist-action-cell,
.games-price-table th.col-store,
.games-price-table th.col-best,
.games-price-table th.col-review,
.games-price-table th.col-links,
.games-price-table th.col-action {
  text-align: center;
}
.games-price-table .store-cell .discount,
.games-price-table .best-cell .discount,
.price-stack__discount .discount,
.best-meta .discount {
  margin-left: 0;
}
.games-price-table .store-cell small,
.price-stack__extras small {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.games-price-table td.links {
  white-space: normal;
  line-height: 1.6;
  vertical-align: middle;
}
.links-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-content: flex-start;
  min-height: 2rem;
  width: 100%;
}
.games-price-table td.links a {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
  max-width: 100%;
  box-sizing: border-box;
}
.games-price-table td.wishlist-action-cell {
  text-align: center;
  width: 8rem;
  min-width: 8rem;
  max-width: 8rem;
  box-sizing: border-box;
  vertical-align: middle;
}
.games-price-table td.wishlist-action-cell .btn-remove-wishlist,
.games-price-table td.wishlist-action-cell .btn-add-wishlist {
  margin-left: auto;
  margin-right: auto;
}
tbody tr.row-deal td { background: rgba(74, 222, 128, 0.05); }
tbody tr.row-historic-low td { background: rgba(74, 222, 128, 0.08); }
tbody tr.row-warn td { background: rgba(251, 191, 36, 0.05); }

.cell-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  width: 100%;
}
.cell-stack--start { align-items: flex-start; }
.cell-stack__primary { min-height: 1.35em; line-height: 1.25; }
.cell-stack__secondary { min-height: 1.1em; font-size: 0.78rem; line-height: 1.2; }
.cell-stack__extras {
  font-size: 0.72rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
}
.cell-stack--start .cell-stack__extras { text-align: left; }
.price-stack__extras:empty { min-height: 0; }

.game-title-stack {
  flex: 1;
  min-width: 0;
  gap: 0.3rem;
}
.game-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.4rem;
  width: 100%;
}
.game-title-text {
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
.game-title-link {
  color: inherit;
  text-decoration: none;
}
.game-title-link:hover,
.game-title-link:focus-visible {
  text-decoration: none;
}
.game-title-link:hover .game-title-text,
.game-title-link:focus-visible .game-title-text {
  color: var(--steam);
  text-decoration: none;
}
.game-cover-link {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 6px;
  line-height: 0;
  text-decoration: none;
}
.game-cover-link:hover,
.game-cover-link:focus-visible {
  text-decoration: none;
}
.game-cover-link:hover .game-cover,
.game-cover-link:focus-visible .game-cover {
  outline: 2px solid var(--steam);
  outline-offset: 1px;
}
.game-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  width: 100%;
}
.game-title strong,
.steam-stats-title-wrap .steam-stats-title {
  display: inline;
}
.game-release-year {
  margin-left: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.game-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.game-cover {
  width: 120px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--border);
}
.game-cover.is-broken { display: none; }
.price { font-weight: 600; }
.discount { color: var(--good); font-size: 0.8rem; margin-left: 0.35rem; }
.store-coupon {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--good);
  border: 1px dashed color-mix(in srgb, var(--good) 55%, transparent);
  border-radius: 4px;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
}
.best-meta .store-coupon { margin-left: 0.25rem; margin-top: 0; }
.price-stack__extras .store-coupon { display: block; width: fit-content; }
.na { color: var(--muted); }
.ig-name { display: block; color: var(--muted); margin-top: 0.25rem; max-width: 280px; }
.badge {
  display: inline-block; font-size: 0.7rem; padding: 0.1rem 0.45rem;
  border-radius: 999px; margin-top: 0.25rem;
}
.badge.ok { background: rgba(74,222,128,0.15); color: var(--good); }
.badge.warn { background: rgba(251,191,36,0.15); color: var(--warn); }
.badge.muted { background: rgba(139,147,168,0.15); color: var(--muted); }
.best { font-weight: 700; font-size: 0.85rem; }
.best.ig { color: var(--ig); }
.best.steam { color: var(--steam); }
.links a { margin-right: 0.6rem; }
.banner {
  margin: 0 1.5rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.banner.warn { background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.35); }
.banner.account-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  background: rgba(102,192,244,0.08);
  border: 1px solid rgba(102,192,244,0.25);
  line-height: 1.35;
}
.account-banner-sep {
  color: var(--muted);
  opacity: 0.65;
  line-height: 1;
  user-select: none;
}
.account-banner-email { font-weight: 600; }
.account-banner-note { color: var(--muted); font-size: 0.88rem; }
.banner.account-banner a { line-height: inherit; }
.banner.account-banner .user-chip-inline { vertical-align: middle; }
.banner code { background: rgba(0,0,0,0.25); padding: 0.1rem 0.35rem; border-radius: 4px; }

.welcome-screen {
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem 3rem;
  min-height: calc(100vh - 180px);
}
.guest-home .welcome-screen.welcome-compact {
  min-height: auto;
  padding: 1.5rem 1.5rem 0.5rem;
}
.guest-home .welcome-card {
  max-width: 640px;
}
.recommendations-section {
  padding: 0 1.5rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  scroll-margin-top: 1rem;
}
#recomendacoes:target {
  scroll-margin-top: 1rem;
}
/* Âncora do freio mobile (JS); sem scroll-snap — mandatory puxava a página no load. */
.rec-scroll-snap-point {
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  scroll-margin-top: 0.5rem;
}
.recommendations-section.recommendations-compact {
  border-top: none;
  margin-top: 0;
  padding-top: 0.5rem;
}
.recommendations-header {
  padding: 1.25rem 0 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.recommendations-heading {
  flex: 1;
  min-width: 220px;
}
.recommendations-search {
  flex-shrink: 0;
}
.recommendations-search .rec-search-clear {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
}
.recommendations-header h2 {
  margin: 0;
  font-size: 1.25rem;
}
.recommendations-lead {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 52rem;
}
.guest-home .recommendations-section .table-wrap {
  padding: 0 0 1.5rem;
}
.guest-promocoes-link {
  margin: 0 0 2rem;
  text-align: center;
}
.btn-add-wishlist {
  font-size: 0.82rem;
  padding: 0.4rem 0.65rem;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}
.btn-add-wishlist.is-added {
  border-color: var(--good);
  color: var(--good);
  opacity: 0.85;
  cursor: default;
}
.btn-add-wishlist:disabled {
  opacity: 0.7;
  cursor: wait;
}
.btn-open-steam {
  font-size: 0.82rem;
  padding: 0.4rem 0.55rem;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}
.btn-remove-wishlist {
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  min-width: 2rem;
}
.btn-remove-wishlist .btn-remove-text {
  display: none;
  font-size: 0.82rem;
  line-height: 1.2;
}
.wishlist-remove-col {
  width: 8rem;
}
td.wishlist-action-cell {
  text-align: center;
}
.rec-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 0 0.5rem;
}
.rec-pagination-status {
  color: var(--muted);
  font-size: 0.9rem;
  min-width: 8rem;
  text-align: center;
}
.rec-pagination .btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.recommendations-meta {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.rec-loading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 1.5rem 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--steam) 10%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--steam) 28%, var(--border));
  color: var(--muted);
  font-size: 0.88rem;
}
.rec-loading-spinner {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--steam);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
[data-rec-dynamic].is-loading {
  opacity: 0.45;
  pointer-events: none;
}
.welcome-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
}
.welcome-icon {
  display: inline-block;
  font-size: 2.5rem;
  color: var(--steam);
  margin-bottom: 0.5rem;
}
.welcome-card h2 { margin: 0 0 0.75rem; font-size: 1.45rem; }
.welcome-lead { color: var(--muted); line-height: 1.6; margin: 0 0 1.25rem; }
.welcome-steps {
  text-align: left;
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  line-height: 1.75;
  color: var(--text);
}
.welcome-hint { margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--muted); }
.welcome-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.welcome-auth-divider {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: lowercase;
}
.guest-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}
.guest-auth-actions--hero {
  width: 100%;
  max-width: 22rem;
}
.guest-auth-actions--hero .btn {
  flex: 1 1 9rem;
  min-width: 0;
}
.btn-steam-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.75rem;
  background: linear-gradient(180deg, #47bfff 0%, #1b6aa5 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #2a7aba;
  box-shadow: 0 2px 0 #0d3a5c;
}
.btn-steam-big:hover { filter: brightness(1.08); text-decoration: none; }
.btn-steam-icon { font-size: 1.2rem; }

.activity-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.activity-overlay.activity-overlay--toast {
  inset: auto;
  right: 1rem;
  bottom: 1rem;
  left: auto;
  top: auto;
  place-items: end;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
}
.activity-overlay.hidden { display: none; }
.activity-card {
  pointer-events: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  min-width: 260px;
  max-width: min(360px, calc(100vw - 2rem));
  text-align: left;
  box-shadow: var(--card-shadow);
}
.activity-overlay:not(.activity-overlay--toast) .activity-card {
  text-align: center;
  padding: 1.75rem 2rem;
}
.activity-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.activity-overlay--toast .spinner {
  width: 28px;
  height: 28px;
  margin: 0;
  border-width: 2px;
}
.activity-dismiss {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}
.activity-dismiss:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--border) 70%, transparent);
}
.activity-wait {
  margin: 0.75rem 0 0 !important;
  color: var(--steam) !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.activity-card p { margin: 0.35rem 0 0; color: var(--text); font-size: 0.95rem; }
.activity-card #activity-message { margin-top: 0.15rem; font-weight: 600; }
.activity-detail { color: var(--muted); font-size: 0.88rem; margin-top: 0.35rem !important; }
.activity-elapsed { color: var(--steam); font-size: 0.82rem; margin-top: 0.25rem !important; font-variant-numeric: tabular-nums; }
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid var(--border);
  border-top-color: var(--steam);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.activity-bar {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin: 0.85rem 0 0;
  overflow: hidden;
}
.activity-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--steam), var(--ig));
  border-radius: 999px;
  transition: width 0.35s ease;
}
.activity-bar span.indeterminate {
  width: 40% !important;
  animation: progress-indeterminate 1.2s ease-in-out infinite;
}
@keyframes progress-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.sync-status { color: var(--steam); font-size: 0.9rem; margin-left: auto; font-weight: 500; }
.sync-status.active { color: var(--ig); animation: sync-pulse 1.5s ease-in-out infinite; }
@keyframes sync-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } }

.store-cell small { display: block; color: var(--muted); font-size: 0.72rem; margin-top: 0.15rem; max-width: 140px; }
.price-stack__extras small:first-child { margin-top: 0; }
.store-cell small.store-alt-edition a,
.store-cell small.ig-alt-edition a { color: var(--ig); text-decoration: none; }
.store-cell small.store-alt-edition a:hover,
.store-cell small.ig-alt-edition a:hover { text-decoration: underline; }
.store-cell small.steam-alt-offer a,
.store-cell small.steam-bundle-offer a { color: var(--steam); text-decoration: none; }
.store-cell small.steam-alt-offer a:hover,
.store-cell small.steam-bundle-offer a:hover { text-decoration: underline; }
.na.warn-match { color: var(--warn); font-size: 0.82rem; cursor: help; }
.best-offer-stack { width: 100%; }
.best-price { display: block; font-size: 1.05rem; color: var(--good); font-weight: 700; line-height: 1.2; }
.best-meta { display: block; margin-top: 0; font-size: 0.78rem; line-height: 1.25; }
.best-meta .discount { display: inline; margin: 0; font-size: inherit; }
.best-store-name { font-weight: 500; display: block; }
.best-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.best-link:hover { text-decoration: none; }
.best-link:hover .best-price { text-decoration: underline; }
.best-link.best-store-instant_gaming .best-store-name,
.best-store-name.best-store-instant_gaming { color: var(--ig); }
.best-link.best-store-steam .best-store-name,
.best-store-name.best-store-steam { color: var(--steam); }
.best-link.best-store-green_man_gaming .best-store-name,
.best-store-name.best-store-green_man_gaming { color: #7dce82; }
.best-link.best-store-nuuvem .best-store-name,
.best-store-name.best-store-nuuvem { color: #5eb3ff; }
.games-price-table td .discount { display: block; font-size: 0.78rem; margin-top: 0; }
.price-stack__discount .discount,
.best-meta .discount { display: inline; }
.store-instant_gaming .price { color: var(--ig); }
.store-steam .price { color: var(--steam); }
.store-steam .demo-link { font-weight: 600; color: var(--steam); text-decoration: none; }
.store-steam .demo-link:hover { text-decoration: underline; }
.store-green_man_gaming .price { color: #7dce82; }
.store-nuuvem .price { color: #5eb3ff; }
.empty { text-align: center; color: var(--muted); padding: 2rem; }
footer {
  padding: 1.25rem 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}
.site-footer-brand {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  color: var(--text);
}
.site-footer-brand strong { font-size: 0.95rem; }
.site-footer-tagline { color: var(--muted); font-size: 0.85rem; }
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
}
.site-footer-nav a {
  color: var(--steam);
  text-decoration: none;
  font-size: 0.88rem;
}
.site-footer-nav a:hover { text-decoration: underline; }
.site-footer-meta {
  margin: 0;
  max-width: 36rem;
  line-height: 1.45;
  font-size: 0.8rem;
}
.site-footer-note {
  margin: 0 1.5rem 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.site-footer-note code {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.scroll-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--steam);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: var(--float-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, border-color 0.2s;
}
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  border-color: var(--steam);
  background: var(--elevated);
}

.ajuda-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 4.75rem;
  z-index: 89;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem 0.55rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--float-shadow);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.ajuda-fab:hover {
  border-color: var(--steam);
  background: var(--elevated);
  color: var(--text);
  transform: translateY(-1px);
}
.ajuda-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--steam);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}
.ajuda-fab-label { white-space: nowrap; }

.ajuda-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}
.ajuda-table th,
.ajuda-table td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ajuda-table th { font-weight: 600; color: var(--muted); }
.ajuda-body h3 { margin: 1rem 0 0.4rem; font-size: 1.02rem; }
.ajuda-body h3:first-child { margin-top: 0; }

.ferramentas-page {
  padding: 0 1.5rem 2rem;
  max-width: 1100px;
}
.ferramentas-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.ferramenta-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ferramenta-card h3 {
  margin: 0;
  font-size: 1.1rem;
}
.ferramenta-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}
.ferramenta-card .btn {
  align-self: flex-start;
}
.ferramenta-card-locked {
  border-color: color-mix(in srgb, var(--warn) 35%, var(--border));
}
.ferramenta-hint {
  margin: 0;
  font-size: 0.9rem;
}
.ferramenta-hint.ok { color: #4ade80; }
.ferramenta-upload { cursor: pointer; }
.ferramenta-card-steam-import {
  scroll-margin-top: 5rem;
}
.ferramenta-card-steam-import.is-open,
.ferramenta-card-playnite.is-open {
  grid-column: 1 / -1;
}
.ferramenta-card-playnite {
  scroll-margin-top: 5rem;
  min-width: 0;
  overflow-x: hidden;
}
.ferramenta-steam-import-panel {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}
.ferramenta-steam-import-panel[hidden] {
  display: none !important;
}
.ferramenta-steam-import-hint {
  margin: 0;
}
.ferramenta-steps {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ferramenta-steps li {
  min-width: 0;
}
.ferramenta-uri-line {
  display: block;
  margin-top: 0.35rem;
}
.ferramenta-uri {
  display: inline-block;
  max-width: 100%;
  padding: 0.15rem 0.35rem;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
}
.ferramenta-playnite {
  min-width: 0;
  max-width: 100%;
}
.playnite-token-panel {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.playnite-token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.playnite-token-reveal {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 70%, var(--bg));
}
.playnite-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}
.playnite-token-input {
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  padding: 0.55rem 0.65rem;
}
.ig-wishlist-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.ig-wishlist-breadcrumb a:hover {
  color: var(--text);
}

.ig-wishlist-page { padding: 0 1.5rem 2rem; display: grid; gap: 1rem; max-width: 1100px; }
.ig-wishlist-page .panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.ig-wishlist-page h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.auth-page .auth-panel { max-width: 440px; }
.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.auth-form input {
  font-size: 1rem;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}
.auth-form input[readonly] {
  opacity: 0.85;
  cursor: default;
}
.site-user-pill {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 14rem;
}
.user-chip-lg { max-width: none; gap: 0.85rem; }
.user-chip-inline { max-width: none; }
.user-chip-text { display: grid; gap: 0.15rem; min-width: 0; }
.user-chip-text strong { font-size: 1rem; }
.user-chip-label {
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.user-chip-lg .user-avatar { width: 56px; height: 56px; }
.user-avatar-fallback {
  display: grid;
  place-items: center;
  background: rgba(102, 192, 244, 0.15);
  color: var(--steam);
  font-size: 1.25rem;
}

.entrar-page {
  padding: 0 1.5rem 2rem;
  display: grid;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
}
.entrar-page .panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.entrar-page h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.entrar-hero { text-align: center; }
.entrar-hero .hint { margin-bottom: 1rem; }
.entrar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.entrar-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.entrar-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.entrar-tab.is-active {
  border-color: var(--steam);
  color: var(--steam);
  background: rgba(102, 192, 244, 0.1);
}
.entrar-tab:hover { text-decoration: none; color: var(--text); }

.platform-connect-wizard {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.platform-connect-wizard-lead { margin: 0 0 0.75rem; }
.platform-connect-tabs { margin-bottom: 0; }
.platform-connect-step { margin-top: 0.75rem; }
.platform-connect-tab {
  cursor: pointer;
  background: transparent;
  font: inherit;
}
.platform-connection .btn-platform-connect { margin-top: 0.5rem; }
.platform-connection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.platform-connection-actions .btn-sm { margin-top: 0; }
.steam-cookie-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.steam-cookie-block-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.steam-cookie-steps { margin: 0.5rem 0 0.75rem; }
.steam-cookie-actions { margin-top: 0.5rem; }
.steam-cookie-method {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}
.steam-cookie-method summary {
  cursor: pointer;
  font-weight: 600;
}
.steam-cookie-advanced {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.steam-cookie-advanced summary {
  cursor: pointer;
  color: var(--muted);
}
.steam-cookie-advanced-body {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.js-steam-cookie-blob {
  width: 100%;
  margin-top: 0.35rem;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  resize: vertical;
}

.platform-connections {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (min-width: 640px) {
  .platform-connections { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
}
.platform-connection {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}
.platform-connection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.platform-connection-label { margin: 0.35rem 0 0; }
.platform-connection .btn-sm {
  margin-top: 0.5rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
}
.account-settings { margin-top: 0; }
.account-collapsible { padding: 0; }
.account-collapsible > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  user-select: none;
}
.account-collapsible > summary::-webkit-details-marker { display: none; }
.account-collapsible > summary::after {
  content: "▸";
  float: right;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.account-collapsible[open] > summary::after {
  transform: rotate(90deg);
}
.account-collapsible-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}
.account-alert-channel {
  margin: 1rem 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.account-alert-channel:first-of-type { margin-top: 0.75rem; }
.account-alert-target-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.account-alert-target {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--elevated, var(--panel));
}
.account-alert-target-title {
  display: block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin: 0 0 0.65rem;
  line-height: 1.3;
}
.account-alert-target-title:hover,
.account-alert-target-title:focus-visible {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.account-alert-target-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.75rem;
  margin: 0;
}
.account-alert-target-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  flex: 1 1 11rem;
  min-width: min(100%, 11rem);
}
.account-alert-target-label-text {
  font-size: 0.82rem;
  color: var(--muted);
}
.account-alert-target-wrap {
  width: 100%;
  max-width: 11rem;
  box-sizing: border-box;
}
.account-alert-target-wrap input {
  width: 100%;
}
.account-alert-target-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.account-alert-target-status { margin: 0.5rem 0 0; }
.account-alert-target-status.ok { color: var(--good, #3d9a5f); }
.account-alert-target-status.error,
.account-alert-target-status.warn { color: var(--warn, #c48a2a); }
.account-alert-targets-empty { margin: 0.35rem 0 0; }
.account-collapsible-danger > summary { color: #f87171; }
.account-collapsible-danger .account-collapsible-body {
  border-top-color: rgba(239, 68, 68, 0.25);
}
.account-subheading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.account-password-form { margin-bottom: 0; }
.account-danger-zone {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(239, 68, 68, 0.25);
}
.account-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.account-checkbox input { margin-top: 0.2rem; }
.btn-danger {
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}
.entrar-page .hint.ok { color: #4ade80; }
.entrar-page .hint.warn { color: var(--warn); }
.entrar-page .hint.error { color: #f87171; font-weight: 600; }
.hint.hint-security {
  margin-top: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-left: 3px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  font-size: 0.85rem;
}
.platform-connect-panel {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}
.platform-connect-alert {
  margin: 0 0 1rem;
}
.platform-connect-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.platform-connect-panel-head strong { font-size: 1rem; }
.platform-connect-ubisoft { border-color: #0070ff44; }
.ubisoft-snippet {
  display: block;
  margin: 0.35rem 0;
  word-break: break-all;
  white-space: pre-wrap;
  font-size: 0.78rem;
}
.compact-steps { margin: 0.75rem 0; padding-left: 1.25rem; line-height: 1.65; font-size: 0.9rem; }
.oauth-connect-steps { margin-top: 0.35rem; }
.oauth-connect-form { margin-top: 0.5rem; }
.oauth-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}
.oauth-connect-actions .btn { margin: 0; }
#steam-cookie-form textarea {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  resize: vertical;
}
.ig-wishlist-page ol { margin: 0.5rem 0; padding-left: 1.25rem; line-height: 1.7; }
.ig-wishlist-page .hint { margin: 1rem 0 0; font-size: 0.9rem; }
.ig-wishlist-page .hint.warn { color: var(--warn); }
.ig-wishlist-page .controls {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.ig-wishlist-page .controls label { display: flex; gap: 0.75rem; align-items: center; flex: 1; min-width: 240px; }
.ig-wishlist-page textarea {
  width: 100%; font-family: ui-monospace, monospace; font-size: 0.75rem;
  background: var(--input-bg); color: var(--muted); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.75rem;
}
kbd {
  background: var(--border); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.85em;
}

.topbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.topbar-controls .btn,
.topbar-controls .theme-picker:not(.theme-picker-menu) select {
  min-height: 2.375rem;
  height: 2.375rem;
  font-size: 0.9rem;
}
.topbar-controls .hub-nav .btn {
  min-width: 5.75rem;
}
.topbar-controls .actions-secondary > .btn {
  min-width: 10.5rem;
}
.topbar-controls .theme-picker-compact select {
  min-width: 10.5rem;
}
.user-menu {
  position: relative;
}
.nav-admin-menu {
  display: inline-flex;
}
.nav-admin-menu .user-menu-trigger {
  min-width: 0;
  gap: 0.35rem;
}
.hub-nav .nav-admin-menu .user-menu-panel {
  left: 0;
  right: auto;
  min-width: 10.5rem;
}
.user-menu-trigger {
  gap: 0.45rem;
  min-width: 10.5rem;
  justify-content: space-between;
}
.user-menu.is-open .user-menu-trigger {
  background: var(--elevated);
}
.user-menu-trigger:focus {
  outline: none;
}
.user-menu-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--steam) 55%, transparent);
  outline-offset: 2px;
}
.user-menu.is-open .user-menu-trigger:focus-visible {
  outline: none;
}
.user-menu-trigger .user-chip {
  min-width: 0;
  flex: 1;
}
.user-menu-trigger .user-chip-label {
  color: inherit;
  font-size: inherit;
}
.user-menu-chevron {
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='currentColor' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.85;
  transition: transform 0.15s;
}
.user-menu.is-open .user-menu-chevron {
  transform: rotate(180deg);
}
.user-menu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 200;
  min-width: 12.5rem;
  padding: 0.3rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--float-shadow);
}
.user-menu-panel[hidden] {
  display: none;
}
.user-menu-item {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.35;
}
.user-menu-item:hover {
  background: var(--elevated);
  text-decoration: none;
}
.user-menu-item-accent {
  color: var(--steam);
  font-weight: 600;
}
.user-menu-danger {
  color: var(--muted);
}
.user-menu-danger:hover {
  color: var(--warn);
}
.user-menu-panel > .user-menu-section {
  border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  margin-top: 0.1rem;
  padding: 0.45rem 0.65rem;
}
.user-menu-guest .user-menu-panel > .user-menu-section {
  border-top: none;
  margin-top: 0;
  padding-top: 0.35rem;
}
.user-menu-item.user-menu-danger {
  border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  margin-top: 0.1rem;
  padding-top: 0.5rem;
  border-radius: 0 0 6px 6px;
}
.user-menu-logout-form {
  margin: 0;
  padding: 0;
}
.user-menu-logout-btn {
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}
.logout-form .link-button {
  border: none;
  background: none;
  padding: 0;
  color: var(--steam);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
.logout-form .link-button:hover {
  color: var(--accent);
}
.user-menu-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.user-menu-section .theme-picker-menu select {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0.4rem 1.65rem 0.4rem 0.6rem;
  border-color: var(--border);
  background-color: var(--input-bg);
  color: var(--text);
  font-size: 0.85rem;
  text-align: left;
  text-align-last: left;
}
.user-menu-section .theme-picker-menu select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--steam) 45%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--steam) 35%, var(--border));
}
.topbar-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.topbar-primary .guest-auth-actions {
  margin-left: auto;
}
.topbar-primary .guest-auth-actions .btn {
  min-width: 5.5rem;
}
.topbar-menu-toggle { display: none; }
.topbar-menu-nav { display: none; }
.actions-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .topbar { flex-direction: column; align-items: stretch; }
  .topbar-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-primary {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .hub-nav {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    margin-right: 0;
  }
  .topbar-controls .hub-nav .btn {
    min-width: 0;
    flex: 1 1 0;
    padding: 0.45rem 0.35rem;
    font-size: 0.8rem;
  }
  .hub-nav .hub-nav-desktop-only { display: none; }
  .topbar-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  .topbar-menu-nav .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .topbar-menu-nav .nav-admin-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .topbar-menu-nav .nav-admin-menu .user-menu-trigger {
    width: 100%;
  }
  .topbar-menu-nav .nav-admin-menu .user-menu-panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
    box-shadow: none;
  }
  .hub-nav .btn {
    justify-content: center;
    text-align: center;
  }
  .topbar-menu-toggle {
    display: inline-flex;
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
  }
  .actions-secondary {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border);
  }
  .actions-secondary.is-open {
    display: flex;
  }
  .actions-secondary .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .actions-secondary .user-menu {
    width: 100%;
  }
  .actions-secondary .user-menu-trigger {
    width: 100%;
    min-width: 0;
  }
  .user-menu-panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
    box-shadow: none;
  }
  .topbar-primary:not(:has(.hub-nav)) .topbar-menu-toggle {
    flex: 1;
    justify-content: center;
  }
  .topbar-primary .guest-auth-actions {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    order: -1;
  }
  .topbar-primary .guest-auth-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.45rem 0.5rem;
    font-size: 0.82rem;
  }
}

/* Desktop: cabeçalho da tabela de preços acompanha a rolagem da página */
@media (min-width: 1200px) {
  .table-wrap {
    overflow-x: visible;
  }

  .games-price-table thead th {
    z-index: 2;
    box-shadow: 0 1px 0 var(--border);
  }

  .games-price-table .links-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    justify-items: stretch;
  }

  .games-price-table .links-stack > * {
    min-width: 0;
  }

  .games-price-table td.links a {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* Tabela de preços: layout em cards abaixo de 1200px (muitas colunas de lojas) */
@media (max-width: 1199px) {
  .table-wrap {
    padding: 0 1rem 2rem;
    overflow-x: visible;
  }

  .games-price-table {
    table-layout: auto;
    width: 100%;
    font-size: 0.88rem;
  }
  .games-price-table colgroup {
    display: none;
  }
  .games-price-table thead {
    display: none;
  }
  .games-price-table tbody {
    display: block;
    width: 100%;
  }
  .games-price-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    padding: 0.85rem;
  }
  .games-price-table tbody tr.row-deal { border-left: 3px solid var(--good); }
  .games-price-table tbody tr.row-warn { border-left: 3px solid var(--warn); }
  .games-price-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0;
    border-bottom: none;
  }
  .games-price-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 4.25rem;
    padding-top: 0.1rem;
  }
  .games-price-table tbody td.title-cell,
  .games-price-table tbody td.review-cell,
  .games-price-table tbody td.best-cell,
  .games-price-table tbody td.links,
  .games-price-table tbody td.wishlist-action-cell {
    grid-column: 1 / -1;
  }
  .games-price-table tbody td.title-cell {
    display: block;
    padding: 0 0 0.65rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.35rem;
  }
  .games-price-table tbody td.title-cell::before { display: none; }
  .games-price-table tbody td.best-cell {
    background: rgba(74, 222, 128, 0.08);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    margin: 0.15rem 0;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .games-price-table tbody td.best-cell::before { display: none; }
  .games-price-table tbody td.best-cell .cell-stack { align-items: center; }
  .games-price-table tbody td.links {
    flex-wrap: wrap;
    gap: 0.45rem;
    border-top: 1px solid var(--border);
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    white-space: normal;
    justify-content: flex-start;
  }
  .games-price-table tbody td.links::before { display: none; }
  .games-price-table tbody td.links a {
    margin: 0;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    text-decoration: none;
  }
  .games-price-table tbody td.store-cell {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    text-align: right;
  }
  .games-price-table tbody td.store-cell::before {
    margin-bottom: 0.25rem;
    padding-top: 0;
    min-width: 0;
  }
  .games-price-table tbody td.store-cell .price-stack {
    align-items: flex-end;
    text-align: right;
  }
  .games-price-table tbody td.store-cell .cell-stack__extras {
    text-align: right;
  }
  .games-price-table tbody td.store-cell small {
    max-width: none;
    text-align: right;
    margin-left: 0;
    margin-right: 0;
  }
  .games-price-table tbody td.review-cell {
    align-items: center;
  }
  .games-price-table tbody td.review-cell .cell-stack {
    margin-left: auto;
    width: auto;
    max-width: 100%;
  }
  .games-price-table tbody td.review-cell .review-col {
    text-align: right;
  }
  .games-price-table tbody td .discount { margin-left: 0; }

  .games-price-table .game-header { flex-direction: column; width: 100%; }
  .games-price-table .game-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 460 / 215;
    max-height: none;
  }

  .games-price-table #empty-row td {
    display: block;
    grid-column: 1 / -1;
    text-align: center;
    padding: 1.5rem 0.5rem;
  }
  .games-price-table #empty-row td::before { display: none; }
  .games-price-table td.wishlist-action-cell {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .games-price-table tbody td.wishlist-action-cell {
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .games-price-table tbody td.links:has(+ td.wishlist-action-cell) {
    padding-bottom: 0.35rem;
    border-bottom: none;
  }
  .games-price-table tbody td.links:not(:has(a)):has(+ td.wishlist-action-cell) {
    display: none;
  }
  .games-price-table tbody td.links + td.wishlist-action-cell {
    border-top: 1px solid var(--border);
    margin-top: 0;
    padding-top: 0.65rem;
    padding-bottom: 0.15rem;
  }
  .games-price-table tbody td.links:not(:has(a)) + td.wishlist-action-cell {
    margin-top: 0.35rem;
    padding-top: 0.75rem;
  }
  .games-price-table tbody td.wishlist-action-cell::before { display: none; }
  .games-price-table tbody td.wishlist-action-cell .btn-add-wishlist,
  .games-price-table tbody td.wishlist-action-cell .btn-remove-wishlist {
    width: auto;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }
  .games-price-table tbody td.wishlist-action-cell .btn-remove-wishlist {
    font-size: inherit;
    line-height: 1.2;
    padding: 0.45rem 0.85rem;
    min-height: 2.375rem;
  }
  .games-price-table tbody td.wishlist-action-cell .btn-remove-wishlist .btn-remove-icon {
    display: none;
  }
  .games-price-table tbody td.wishlist-action-cell .btn-remove-wishlist .btn-remove-text {
    display: inline;
  }
}

@media (max-width: 768px) {
  .filter-block-label {
    padding: 0 0.75rem;
  }
  .wishlist-page-intro {
    padding: 1rem 0.75rem 0.75rem;
  }
  .active-filter-bar {
    margin: 0.25rem 0.75rem 0.65rem;
    align-items: flex-start;
  }
  .active-filter-clear {
    margin-left: 0;
  }
  .rec-loading {
    margin: 0 0.75rem 0.65rem;
  }
  .filter-rows {
    padding: 0 0.75rem 0.75rem;
  }
  .filter-row {
    gap: 0.5rem;
  }
  .stat-toggle {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }
  .stats-grouped {
    flex-direction: column;
    align-items: stretch;
  }
  .stats-group {
    display: flex;
    flex-wrap: wrap;
  }
  .stats {
    padding: 0 0.75rem 0.75rem;
  }
  .stats-group + .stats-group {
    padding-left: 0;
    border-left: none;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
  .toolbar-wishlist .filter-toggle {
    width: 100%;
    text-align: center;
  }
  .toolbar-wishlist {
    flex-direction: column;
    align-items: stretch;
  }
  .wishlist-controls > .toolbar-wishlist {
    margin-bottom: 0.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.9rem;
  }
  .wishlist-controls > .toolbar-wishlist .search input {
    min-height: 2.85rem;
    font-size: 1.05rem;
  }
  .toolbar-wishlist .search {
    flex: 0 0 auto;
    width: 100%;
  }
  .toolbar-wishlist .search input {
    flex: 0 0 auto;
    height: auto;
  }
  .wishlist-sort-label {
    display: block;
    margin-bottom: 0.35rem;
  }
  .wishlist-sort {
    width: 100%;
    min-width: 0;
  }
  .stat { min-width: 0; padding: 0.65rem 0.75rem; }
  .stat strong { font-size: 1.2rem; }
  .sync-status {
    grid-column: 1 / -1;
    margin-left: 0;
    text-align: center;
  }

  .toolbar {
    flex-direction: column;
    padding: 0 0.75rem 0.75rem;
    gap: 0.75rem;
  }
  .search {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    min-height: 44px;
  }
  .search-actions {
    width: 100%;
  }
  .search-actions .btn,
  .search-actions button {
    flex: 1;
    min-height: 44px;
    justify-content: center;
  }
  .toolbar-library {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .toolbar-library .search {
    flex: 1 1 12rem;
    width: auto;
    max-width: min(28rem, 100%);
  }
  .toolbar-library .search input {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    width: 100%;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters a { white-space: nowrap; flex-shrink: 0; }

  .banner { margin: 0 0.75rem 0.75rem; }

  .table-wrap {
    padding: 0 0.75rem 2rem;
  }

  footer { padding: 1rem 0.75rem 2rem; }

  .scroll-top-btn {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .ajuda-fab {
    right: 0.75rem;
    bottom: 3.75rem;
    padding: 0.45rem 0.75rem 0.45rem 0.5rem;
    font-size: 0.88rem;
  }
  .ajuda-fab-icon {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.85rem;
  }

  .library-page,
  .steam-stats-page {
    padding: 0 0.75rem 2rem;
  }
  .recommendations-section {
    padding: 0 0.75rem 2rem;
  }
}

.hub-nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-right: 0.5rem;
}
.hub-nav a.is-navigating {
  opacity: 0.65;
  pointer-events: none;
}
body.hub-navigating {
  cursor: progress;
}
.hub-nav-wrap {
  align-items: center;
  flex-wrap: wrap;
}
.hub-nav-link {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.hub-nav-link:hover { color: var(--text); text-decoration: none; }
.hub-nav-link.is-active {
  border-color: var(--steam);
  color: var(--steam);
  font-weight: 600;
}

.library-page,
.steam-stats-page { padding: 0 1.5rem 2rem; }
.library-page + .recommendations-section {
  padding-top: 0.25rem;
}
.library-page-intro {
  padding: 1rem 0 0.75rem;
}
.wishlist-page-intro {
  padding: 1rem 1.5rem 0.75rem;
}
.library-page-intro-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.library-page-intro-actions {
  flex-shrink: 0;
}
.library-page-intro h2 {
  margin: 0;
  font-size: 1.25rem;
}
.library-page-intro p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.library-sync-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ig) 12%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--ig) 35%, var(--border));
}
.library-sync-bar-spinner {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  border: 2px solid var(--border);
  border-top-color: var(--ig);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.library-sync-bar-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
}
.library-sync-bar-text small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.steam-privacy-help {
  margin: 0 0 1rem;
  border-color: color-mix(in srgb, var(--warn) 35%, var(--border));
  background: color-mix(in srgb, var(--warn) 8%, var(--panel));
}
.steam-privacy-help h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.steam-privacy-steps {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  color: var(--text);
}
.steam-privacy-steps li + li {
  margin-top: 0.35rem;
}
#steam-privacy-help-live:not([hidden]) {
  margin-bottom: 1rem;
}
#steam-cookies-expired-live:not([hidden]) {
  margin-bottom: 1rem;
}
.library-steam-import-hint {
  margin: 0 0 1rem;
}
.steam-supplement-steps {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}
.steam-supplement-snippet-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.steam-supplement-snippet {
  flex: 1 1 16rem;
  min-width: 0;
  margin: 0;
  padding: 0.5rem 0.65rem;
  overflow-x: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.82rem;
  border-radius: 6px;
  background: var(--surface-2, rgba(0, 0, 0, 0.06));
}
.steam-supplement-snippet-wrap > .btn {
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.steam-supplement-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}
.steam-supplement-console-hint {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  background: var(--surface-2, rgba(0, 0, 0, 0.06));
}
.steam-supplement-console-hint code {
  font-size: 0.9em;
}
.steam-supplement-replace-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.65rem;
  font-size: 0.92rem;
  cursor: pointer;
}
.steam-supplement-replace-label input {
  margin-top: 0.2rem;
}
.steam-supplement-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
}
.toolbar-library {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0 1rem;
}
.toolbar-library .search {
  flex: 1 1 16rem;
  max-width: 100%;
}
.library-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.library-stats .stat-filter.is-active strong { color: var(--ig); }
.library-stats .stat-filter-steam.is-active strong { color: var(--steam); }
.library-stats .stat-filter-epic.is-active strong { color: #ccc; }
.library-stats .stat-filter-gog.is-active strong { color: #c084fc; }
.library-stats .stat-filter-amazon.is-active strong { color: #ffad33; }
.library-stats .stat-filter-ubisoft.is-active strong { color: #4d9fff; }
.library-steam-stats {
  margin-top: -0.25rem;
}
.library-steam-stats .stat-filter.is-active strong { color: var(--steam); }
.library-steam-stats .stat-filter strong {
  font-size: 1.05rem;
}
.library-kind {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  vertical-align: middle;
}
.library-page .toolbar .search { max-width: 28rem; }
.library-grid-wrap {
  min-height: 4rem;
}
.library-loading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--steam) 10%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--steam) 28%, var(--border));
  color: var(--muted);
  font-size: 0.88rem;
}
.library-loading[hidden] { display: none !important; }
.library-loading-spinner {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--steam);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.library-grid-wrap.is-loading .library-grid,
.library-grid.is-loading {
  opacity: 0.35;
  pointer-events: none;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  padding: 0 0 1.5rem;
}
.library-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.library-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.library-card-link:hover {
  border-color: var(--steam);
  transform: translateY(-1px);
}
.library-card-link:focus-visible {
  outline: 2px solid var(--steam);
  outline-offset: 2px;
}
.library-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 460 / 215;
  object-fit: cover;
  display: block;
  background: var(--input-bg);
}
.library-cover-fallback {
  display: grid;
  place-items: center;
  font-size: 2rem;
  aspect-ratio: 460 / 215;
  background: var(--elevated);
}
.library-card-body { padding: 0.65rem 0.75rem 0.85rem; }
.library-platform {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
  border: 1px solid var(--border);
  color: var(--muted);
}
.library-platform-steam { border-color: #47bfff55; color: #66c0f4; }
.library-platform-epic { border-color: #88888855; color: #ccc; }
.library-platform-gog { border-color: #a855f755; color: #c084fc; }
.library-platform-amazon { border-color: #ff990055; color: #ffad33; }
.library-platform-ubisoft { border-color: #0070ff55; color: #4d9fff; }
.library-title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 600;
}
.library-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 2rem 0;
}

.library-sync-pill {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--popover-shadow);
  color: var(--text);
  font-size: 0.9rem;
}
.library-sync-pill[hidden] { display: none; }
.library-sync-pill-spinner {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--steam);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.library-sync-pill-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.library-sync-pill-text small {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-range {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.library-range strong { color: var(--text); }

.library-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 0 2rem;
}
.library-pagination-status {
  color: var(--muted);
  font-size: 0.9rem;
  min-width: 9rem;
  text-align: center;
}
.library-pagination .btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.wishlist-range-status {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.list-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
}
.list-meta-row .library-range,
.list-meta-row .wishlist-range-status {
  margin: 0;
  text-align: left;
}
.list-meta-row--rec {
  justify-content: flex-end;
  margin-top: 0.25rem;
}
.per-page-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.list-meta-row .per-page-control {
  margin-left: auto;
}
.per-page-label {
  white-space: nowrap;
}
.per-page-select {
  min-width: 4.25rem;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.wishlist-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 0 2rem;
}
.wishlist-pagination-status {
  color: var(--muted);
  font-size: 0.9rem;
  min-width: 9rem;
  text-align: center;
}
.wishlist-pagination .btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.wishlist-pagination--top {
  display: none;
}

.th-sortable {
  white-space: nowrap;
}

.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.th-sort,
a.th-sort {
  text-decoration: none;
}

.th-sort:hover,
.th-sort:focus-visible {
  color: var(--accent);
}

.th-sort.is-active {
  color: var(--accent);
}

.th-sort-indicator {
  font-size: 0.85em;
  opacity: 0.9;
}

.toolbar-library {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.toolbar-library .search {
  flex: 1 1 16rem;
}

.library-sort-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.library-sort-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.library-toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 0 0.85rem;
}
.library-toolbar-meta .library-range {
  margin: 0;
  text-align: left;
}

.library-pagination--top {
  display: none;
}

.steam-stats-table .th-sort {
  justify-content: flex-start;
}

.games-price-table .th-sortable.col-title .th-sort {
  justify-content: flex-start;
}

.games-price-table .th-sortable.col-store .th-sort,
.games-price-table .th-sortable.col-best .th-sort,
.games-price-table .th-sortable.col-review .th-sort {
  justify-content: center;
}

.steam-stats-page .library-page-intro { margin-bottom: 1rem; }
.steam-stats-page .stats,
.steam-stats-page .toolbar,
.steam-stats-page .filter-block-label,
.steam-stats-page .active-filter-bar {
  padding-left: 0;
  padding-right: 0;
}
.steam-stats-page .active-filter-bar {
  margin-left: 0;
  margin-right: 0;
}
.steam-stats-controls {
  margin-bottom: 0.5rem;
}
.steam-stats-breadcrumb {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.steam-stats-breadcrumb a { color: var(--steam); text-decoration: none; }
.steam-stats-breadcrumb a:hover { text-decoration: underline; }

.steam-stats-filters .stat-steam-total strong { color: var(--steam); }
.steam-stats-filters .stat-steam-windows strong { color: #4fc3f7; }
.steam-stats-filters .stat-steam-mac strong { color: #b39ddb; }
.steam-stats-filters .stat-steam-deck strong { color: #81c784; }
.steam-stats-filters .stat-steam-updates strong { color: #ffb74d; }
.steam-stats-filters .stat-filter.is-active strong { color: var(--steam); }
.steam-stats-filters .stats-group-sort .stat strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.steam-stats-filters .stats-group-summary .stat {
  min-width: 7.5rem;
}

.steam-stats-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 1rem;
}
.steam-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.steam-stats-table th,
.steam-stats-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.steam-stats-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.steam-stats-table tbody tr:last-child td { border-bottom: none; }
.steam-stats-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.steam-stats-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.steam-stats-game-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 12rem;
}
.steam-stats-game-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}
.steam-stats-game-link:hover .steam-stats-title {
  color: var(--steam);
  text-decoration: underline;
}
.steam-stats-game-link:focus-visible {
  outline: 2px solid var(--steam);
  outline-offset: 2px;
}
.steam-stats-cover {
  width: 92px;
  height: auto;
  aspect-ratio: 460 / 215;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--input-bg);
}
.steam-stats-title {
  font-weight: 600;
  line-height: 1.3;
}
.steam-stats-patch-link {
  color: var(--steam);
  text-decoration: none;
}
.steam-stats-patch-link:hover { text-decoration: underline; }
.steam-stats-patch-badge {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  border: 1px solid #47bfff55;
  color: #66c0f4;
  vertical-align: middle;
}
.steam-stats-empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem 1rem !important;
}

@media (max-width: 720px) {
  .steam-stats-table thead { display: none; }
  .steam-stats-table tr {
    display: block;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border);
  }
  .steam-stats-table tbody tr:last-child { border-bottom: none; }
  .steam-stats-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0;
    border: none;
  }
  .steam-stats-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    flex-shrink: 0;
  }
  .steam-stats-game {
    display: block;
    padding-bottom: 0.5rem !important;
  }
  .steam-stats-game::before { display: none; }
}

.owned-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  cursor: help;
}
.meta-badge__sep {
  opacity: 0.65;
  font-weight: 500;
}
.owned-badge {
  border: 1px solid var(--warn);
  color: var(--warn);
  cursor: default;
}
.owned-badge.owned-steam { border-color: #47bfff88; color: #66c0f4; }
.owned-badge.owned-epic { border-color: #88888888; color: #bbb; }
.owned-badge.owned-gog { border-color: #a855f788; color: #c084fc; }
.promo-source-chip {
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: default;
}
.promo-source-wishlist { border-color: #47bfff66; color: #66c0f4; }
.promo-source-library { border-color: #f59e0b66; color: #fbbf24; }
.promo-source-recommendation { border-color: #34d39966; color: #6ee7b7; }
.promotions-search-meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.links-stack .btn-copy-best-link {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  padding: 0.2rem 0.45rem;
}

.abandoned-badge {
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  color: var(--warn);
}

.ea-update-badge {
  border: 1px solid rgba(102, 192, 244, 0.35);
  background: rgba(102, 192, 244, 0.08);
  color: #8ec8ef;
  font-weight: 500;
}

.historic-low-badge {
  background: rgba(74, 222, 128, 0.18);
  color: var(--good);
  cursor: help;
}

.review-col {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: help;
}
.review-col--good { color: var(--good); }
.review-col--mid { color: var(--warn); }
.review-col--low { color: #f87171; }

tbody tr.row-abandoned { border-left: 3px solid rgba(251, 191, 36, 0.55); }
tbody tr.row-historic-low { border-left: 3px solid var(--good); }

.stat-filter-historic strong { color: var(--good); }
.stat-filter-reviewed strong { color: var(--good); }
.stat-filter-abandoned strong { color: var(--warn); }
.stat-filter-recent strong { color: var(--warn); }
.stat-filter-coupon strong { color: #f0b429; }
.stat-filter-wishlist strong { color: var(--steam); }
.stat-filter-owned strong { color: var(--steam); }
.stat-filter-free-demo strong { color: #7dd3fc; }

.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 2rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .rec-pagination,
  .library-pagination,
  .wishlist-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem 0.75rem;
    width: 100%;
    flex-wrap: unset;
    justify-content: stretch;
    align-items: stretch;
  }
  .rec-pagination > :nth-child(1),
  .library-pagination > :nth-child(1),
  .wishlist-pagination > :nth-child(1) {
    grid-row: 2;
    grid-column: 1;
  }
  .rec-pagination > :nth-child(2),
  .library-pagination > :nth-child(2),
  .wishlist-pagination > :nth-child(2) {
    grid-row: 1;
    grid-column: 1 / -1;
    min-width: 0;
    text-align: center;
  }
  .rec-pagination > :nth-child(3),
  .library-pagination > :nth-child(3),
  .wishlist-pagination > :nth-child(3) {
    grid-row: 2;
    grid-column: 2;
  }
  .rec-pagination-status,
  .library-pagination-status,
  .wishlist-pagination-status {
    min-width: 0;
  }
  .rec-pagination .btn,
  .library-pagination .btn,
  .wishlist-pagination .btn {
    width: 100%;
    justify-content: center;
  }
  .wishlist-pagination--top {
    display: grid;
    margin: 0 0 1rem;
  }
  .library-pagination--top {
    display: grid;
    margin: 0 0 1rem;
  }
  body[data-wishlist-paginated="1"] .wishlist-pagination--bottom {
    padding-bottom: 2.5rem;
    scroll-margin-bottom: 3rem;
  }
  body[data-wishlist-paginated="1"] .recommendations-section {
    margin-top: 1.5rem;
    padding-top: 0.75rem;
  }
}

/* Admin */
.admin-page {
  padding: 0 1.5rem 2rem;
  display: grid;
  gap: 1rem;
}
.admin-page .panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.admin-page .library-page-intro {
  padding: 1rem 0 0;
}
.admin-page .hint[role="status"] {
  margin: 0;
}
.admin-page .admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
}
.admin-toolbar-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.admin-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
  flex: 1 1 16rem;
}
.admin-search-form label {
  width: 100%;
  font-size: 0.85rem;
  color: var(--muted);
}
.admin-search-input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--bg);
  color: var(--text);
}
.admin-user-count { margin: 0; white-space: nowrap; }
.admin-table-panel { padding: 0; overflow: hidden; }
.admin-table-scroll { overflow-x: auto; }
.admin-users-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin-users-table .col-user { width: 24%; }
.admin-users-table .col-steam { width: 22%; }
.admin-users-table .col-login { width: 24%; }
.admin-users-table .col-status { width: 12%; }
.admin-users-table .col-actions { width: 18%; }
.admin-user-row {
  cursor: pointer;
}
.admin-user-row:hover,
.admin-user-row:focus-visible {
  background: color-mix(in srgb, var(--elevated) 70%, transparent);
  outline: none;
}
.admin-user-cell,
.admin-login-cell,
.admin-status-cell {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.admin-status-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.admin-platform-counts,
.admin-platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.admin-platform-counts .badge {
  font-size: 0.78rem;
  white-space: nowrap;
}
.admin-sync-lines {
  display: grid;
  gap: 0.5rem;
}
.admin-sync-line {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.admin-sync-line-primary,
.admin-sync-line-secondary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
}
.admin-sync-line-secondary .hint {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-sync-error {
  margin: 0;
  text-align: right;
  font-size: 0.78rem;
  line-height: 1.35;
}
.admin-sync-line .hint {
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-sync-label {
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.admin-sync-count {
  flex-shrink: 0;
}
.admin-sync-line .badge {
  font-size: 0.75rem;
  flex-shrink: 0;
}
.admin-user-id {
  display: block;
  max-width: 100%;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-users-table th,
.admin-users-table td {
  vertical-align: top;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  min-width: 0;
}
.admin-users-table td:first-child,
.admin-users-table td[data-label="Usuário"],
.admin-users-table td[data-label="Steam"],
.admin-users-table td[data-label="Último login"] {
  overflow: hidden;
}
.admin-users-table td[data-label="Status"] {
  vertical-align: middle;
}
.admin-users-table th {
  position: static;
  background: var(--elevated);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-users-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-row-inactive { opacity: 0.72; }
.admin-steam-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}
.admin-steam-cell > span,
.admin-steam-cell > small {
  min-width: 0;
}
.admin-steam-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.admin-steam-text > span,
.admin-steam-profile-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-steam-profile-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.admin-steam-profile-link:hover {
  color: var(--accent, #66c0f4);
}
.admin-steam-cell .user-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}
.admin-platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.admin-actions-cell {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  min-width: 0;
}
.admin-inline-form { margin: 0; }
.admin-delete-collapsible {
  margin-top: 0.15rem;
  width: 100%;
}
.admin-delete-collapsible > summary {
  padding: 0.35rem 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f87171;
}
.admin-delete-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.admin-confirm-input {
  max-width: 12rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--bg);
  color: var(--text);
}
.admin-delete-btn { justify-self: start; }
@media (max-width: 768px) {
  .admin-page {
    padding: 0 0.75rem 1.5rem;
  }
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-search-form .btn {
    flex: 1 1 auto;
  }
  .admin-user-count {
    white-space: normal;
  }
  .admin-table-scroll {
    overflow-x: visible;
  }
  .admin-users-table,
  .admin-users-table tbody {
    display: block;
    width: 100%;
  }
  .admin-users-table {
    table-layout: auto;
    min-width: 0;
  }
  .admin-users-table thead {
    display: none;
  }
  .admin-users-table tbody tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
  }
  .admin-users-table tbody tr:last-child {
    border-bottom: none;
  }
  .admin-users-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.4rem 0;
    border-bottom: none;
    text-align: right;
  }
  .admin-users-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 4.5rem;
    text-align: left;
    padding-top: 0.1rem;
  }
  .admin-users-table td[data-label="Usuário"],
  .admin-users-table td[data-label="Steam"],
  .admin-users-table td[data-label="Último login"],
  .admin-users-table td[data-label="Ações"] {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .admin-users-table td[data-label="Usuário"]::before,
  .admin-users-table td[data-label="Steam"]::before,
  .admin-users-table td[data-label="Último login"]::before,
  .admin-users-table td[data-label="Ações"]::before {
    margin-bottom: 0.15rem;
  }
  .admin-platform-counts,
  .admin-platform-badges {
    justify-content: flex-start;
  }
  .admin-sync-line-primary,
  .admin-sync-line-secondary {
    justify-content: flex-start;
  }
  .admin-sync-line-secondary .hint {
    white-space: normal;
  }
  .admin-sync-error {
    text-align: left;
  }
  .admin-steam-cell {
    justify-content: flex-start;
  }
  .admin-steam-text > span {
    white-space: normal;
  }
  .admin-actions-cell {
    gap: 0.65rem;
  }
  .admin-actions-cell .btn {
    width: 100%;
    justify-content: center;
  }
  .admin-delete-collapsible {
    width: 100%;
  }
  .admin-confirm-input {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }
}

body.admin-detail-open {
  overflow: hidden;
}
.admin-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
}
.admin-detail-overlay.hidden {
  display: none;
}
.admin-detail-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.admin-detail-panel {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  height: 100%;
  background: var(--panel);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  outline: none;
}
.admin-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--elevated);
}
.admin-detail-header h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}
.admin-detail-header .hint {
  margin: 0;
}
.admin-detail-close {
  flex-shrink: 0;
}
.admin-detail-body {
  overflow: auto;
  padding: 1.1rem 1.25rem 1.5rem;
  display: grid;
  gap: 1.25rem;
}
.admin-detail-section h4 {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.admin-detail-dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}
.admin-detail-dl > div {
  display: grid;
  gap: 0.25rem;
}
.admin-detail-dl dt {
  font-size: 0.78rem;
  color: var(--muted);
}
.admin-detail-dl dd {
  margin: 0;
}
.admin-detail-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.admin-detail-status .admin-detail-recordings-btn {
  margin-left: 0.15rem;
}
.admin-login-table-wrap {
  overflow-x: auto;
}
.admin-login-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-login-table th,
.admin-login-table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.admin-login-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-login-table code {
  font-size: 0.82em;
}
@media (max-width: 640px) {
  .admin-detail-panel {
    width: 100%;
  }
}

/* Ajuda */
.ajuda-page {
  display: grid;
  gap: 1rem;
  padding: 0 1.5rem 2rem;
  max-width: 900px;
}
.ajuda-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
}
.ajuda-toc a { font-size: 0.92rem; }
.ajuda-section { scroll-margin-top: 5rem; }
.ajuda-body p:first-child { margin-top: 0; }
.ajuda-body ol,
.ajuda-body ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.ajuda-faq {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.ajuda-faq dt { font-weight: 600; }
.ajuda-faq dd { margin: 0.25rem 0 0; color: var(--muted); }
.ajuda-section h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.ajuda-contact-panel { max-width: 36rem; }
.ajuda-contact-form { margin-top: 0.75rem; }
.ajuda-contact-form .contact-fields-row {
  display: grid;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 560px) {
  .ajuda-contact-form .contact-fields-row {
    grid-template-columns: 1fr 1fr;
  }
}
.ajuda-contact-form .contact-field-note {
  font-size: 0.82rem;
  margin-top: 0.15rem;
}
.ajuda-contact-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.25rem;
}
.ajuda-contact-form input[readonly] {
  opacity: 0.85;
  cursor: default;
}
.ajuda-contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  resize: vertical;
  min-height: 6.5rem;
}

/* Histórico de preços — botão na tabela + overlay/gráfico */
.best-tools .price-history-trigger,
.price-history-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
}
.best-tools .price-history-trigger {
  margin-top: 0;
}
.price-history-trigger:hover,
.price-history-trigger:focus-visible {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  outline: none;
}
.price-history-trigger__label--full {
  display: none;
}

/* Mobile (layout em cards): botão de histórico largo e com texto completo no card de melhor preço */
@media (max-width: 1199px) {
  .games-price-table tbody td.best-cell .price-history-trigger {
    width: 100%;
    box-sizing: border-box;
    gap: 0.45rem;
    margin-top: 0.6rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    color: var(--text);
    border-radius: 8px;
  }
  .games-price-table tbody td.best-cell .price-history-trigger svg {
    width: 16px;
    height: 16px;
  }
  .games-price-table tbody td.best-cell .price-history-trigger .price-history-trigger__label--full {
    display: inline;
  }
  .games-price-table tbody td.best-cell .price-history-trigger .price-history-trigger__label--short {
    display: none;
  }
}

.ph-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ph-overlay.hidden {
  display: none;
}
.ph-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.ph-panel {
  position: relative;
  z-index: 1;
  width: min(46rem, 100%);
  max-height: 90vh;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  outline: none;
}
.ph-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--elevated);
  border-radius: 12px 12px 0 0;
}
.ph-header h3 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
}
.ph-header .hint {
  margin: 0;
}
.ph-close {
  flex-shrink: 0;
}
.ph-body {
  overflow: auto;
  padding: 1.1rem 1.25rem 1.4rem;
  display: grid;
  gap: 1rem;
}
.ph-zoom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.ph-zoom-btn {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--elevated);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ph-zoom-btn:hover,
.ph-zoom-btn:focus-visible {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  outline: none;
}
.ph-zoom-btn.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.ph-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.ph-nav-btn {
  min-width: 2rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--elevated);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ph-nav-btn:hover,
.ph-nav-btn:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  outline: none;
}
.ph-nav-btn:disabled,
.ph-nav-btn.is-disabled {
  opacity: 0.4;
  cursor: default;
}
.ph-nav-hint {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.ph-brush {
  fill: color-mix(in srgb, var(--accent) 22%, transparent);
  stroke: var(--accent);
  stroke-width: 1;
  pointer-events: none;
}
.ph-brush[hidden] {
  display: none;
}
.ph-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 200px;
}
.ph-chart {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
  cursor: crosshair;
}
.ph-hit {
  pointer-events: all;
}
.ph-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  pointer-events: none;
}
.ph-area {
  fill: color-mix(in srgb, var(--accent) 14%, transparent);
  stroke: none;
  pointer-events: none;
}
.ph-low-dot {
  fill: var(--good);
  stroke: var(--panel);
  stroke-width: 2;
  pointer-events: none;
}
.ph-crosshair {
  pointer-events: none;
}
.ph-crosshair[hidden] {
  display: none;
}
.ph-crosshair-x {
  stroke: color-mix(in srgb, var(--text) 45%, transparent);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.ph-active-dot {
  fill: var(--accent);
  stroke: var(--panel);
  stroke-width: 2;
}
.ph-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 8.5rem;
  max-width: 14rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--elevated);
  box-shadow: var(--card-shadow);
  pointer-events: none;
  color: var(--text);
}
.ph-tooltip[hidden] {
  display: none;
}
.ph-tooltip-date {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.ph-tooltip-price {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.ph-tooltip-meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.ph-tooltip-meta[hidden] {
  display: none;
}
.ph-grid {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  pointer-events: none;
}
.ph-low-line {
  stroke: var(--good);
  stroke-width: 1;
  stroke-dasharray: 5 4;
  opacity: 0.8;
  pointer-events: none;
}
.ph-axis-label {
  fill: var(--muted);
  font-size: 11px;
  pointer-events: none;
}
.ph-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.ph-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--elevated);
  min-width: 8rem;
}
.ph-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ph-stat-value {
  font-size: 1.05rem;
  font-weight: 600;
}
.ph-stat-conjunto {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--elevated));
}
.ph-table-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
}
.ph-table-wrap {
  margin-top: 0.6rem;
  overflow: auto;
  max-height: 16rem;
}
.ph-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.ph-table th,
.ph-table td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ph-table th {
  color: var(--muted);
  font-weight: 600;
}
body.ph-open {
  overflow: hidden;
}
.ph-buckets h4 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ph-bucket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.ph-bucket-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--elevated);
  font-size: 0.9rem;
}
.ph-bucket-value {
  font-weight: 600;
}

/* Mosparo — modo invisível (design configurado no painel Mosparo) */
:root {
  --mosparo-content-display: none !important;
  --mosparo-container-position: static;
  --mosparo-border-radius: 0;
  --mosparo-border-width: 0;
  --mosparo-padding-top: 0;
  --mosparo-padding-left: 0;
  --mosparo-padding-right: 0;
  --mosparo-padding-bottom: 0;
  --mosparo-shadow-blur-radius: 0;
  --mosparo-shadow-spread-radius: 0;
  --mosparo-loader-position: fixed;
  --mosparo-loader-background-color: rgba(0, 0, 0, 0.55);
  --mosparo-loader-text-color: #ffffff;
  --mosparo-loader-circle-color: #ffffff;
}


.meta-badge.recent-drop-badge {
  background: color-mix(in srgb, var(--accent, #4f8cff) 22%, transparent);
  color: var(--text, #e8ecf4);
}
.best-tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  width: 100%;
}
.best-tools .price-history-trigger,
.best-tools .price-alert-trigger {
  flex: 1 1 0;
  min-width: 0;
  margin-top: 0;
  box-sizing: border-box;
}
.price-alert-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.price-alert-trigger:hover,
.price-alert-trigger:focus-visible {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  outline: none;
}
.price-alert-trigger.is-active {
  color: var(--warn, #f0b429);
  border-color: color-mix(in srgb, var(--warn, #f0b429) 45%, var(--border));
  background: color-mix(in srgb, var(--warn, #f0b429) 10%, transparent);
}
.price-alert-trigger__label {
  display: inline;
}
.pa-panel {
  max-width: 26rem;
}
.pa-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pa-hint {
  margin: 0;
}
.pa-best {
  margin: 0;
}
.pa-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pa-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
}
.pa-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg, var(--bg));
}
.pa-currency {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.pa-input-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  outline: none;
}
.pa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pa-status {
  margin: 0;
  min-height: 1.2em;
}
.pa-status.is-ok {
  color: var(--good);
}
.pa-status.is-err {
  color: #f87171;
}
.pa-status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 1199px) {
  .games-price-table tbody td.best-cell .best-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .games-price-table tbody td.best-cell .price-alert-trigger {
    width: 100%;
    box-sizing: border-box;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    color: var(--text);
    border-radius: 8px;
  }
  .games-price-table tbody td.best-cell .price-alert-trigger__label {
    display: inline;
  }
  .games-price-table tbody td.best-cell .price-alert-trigger.is-active {
    color: var(--warn, #f0b429);
  }
}

/* Vue wishlist app */
.vue-wishlist-active .wishlist-legacy-toolbar,
.vue-wishlist-active .wishlist-legacy-table,
.vue-wishlist-active .wishlist-legacy-pagination {
  display: none !important;
}

.vue-wishlist-active #wishlist-filters-app .wishlist-controls {
  display: block;
}

.vue-table-wrap {
  padding: 0 0 2rem;
}
