:root {
  --brand: #ee4d2d;
  --brand-2: #ff7337;
  --brand-dark: #d0011b;
  --brand-soft: #fff1ec;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #222;
  --muted: #757575;
  --line: #e8e8e8;
  --accent: #3d7bff;
  --indie: #7b3fe4;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-hover: 0 4px 18px rgba(0, 0, 0, .12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pixel: 'Press Start 2P', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.header {
  background: linear-gradient(-180deg, var(--brand), var(--brand-2));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  font-size: 13px;
}
.tagline { margin: 0; opacity: .95; }
.topbar-links { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.topbar-links a:hover { opacity: .8; }
.topbar-links .sep { opacity: .5; }

.header-main {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding-top: 10px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-top: 2px; }
.brand img { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .15)); transition: transform .2s; }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand-name {
  font-family: var(--pixel);
  font-size: 17px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  letter-spacing: .5px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .15);
}
.brand-name span { font-size: 13px; color: #ffe3a3; }

.search-wrap { flex: 1; min-width: 0; }
.search {
  position: relative;
  display: flex;
  background: #fff;
  border-radius: 2px;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  color: var(--text);
  background: transparent;
}
.search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0 22px;
  border-radius: 2px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.search button:hover { background: #f05d40; }

.suggest {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #fff;
  color: var(--text);
  border-radius: 2px;
  box-shadow: var(--shadow-hover);
  z-index: 60;
}
.suggest li {
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest li:hover, .suggest li[aria-selected="true"] { background: #fafafa; color: var(--brand); }

.quick-tags { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; font-size: 12px; }
.quick-tags a { opacity: .92; }
.quick-tags a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Main ---------- */
.main { padding-top: 20px; padding-bottom: 40px; }

.demo-banner {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #7a5b00;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
}
.demo-banner code { background: #fff3c4; padding: 1px 5px; border-radius: 3px; }

.banners {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  margin-bottom: 20px;
}
.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  transition: filter .2s;
}
.banner:hover { filter: brightness(1.06); }
.banner h2, .banner h3 { margin: 0 0 6px; font-family: var(--pixel); line-height: 1.4; }
.banner h2 { font-size: 22px; }
.banner h3 { font-size: 13px; }
.banner p { margin: 0; opacity: .92; max-width: 420px; }
.banner-big {
  grid-row: span 2;
  min-height: 236px;
  background: radial-gradient(120% 140% at 100% 0%, #b05cff 0%, #5b2ad1 45%, #22105c 100%);
}
.banner-kicker {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  background: #ffd23f;
  color: #22105c;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.banner-cta {
  margin-top: 16px;
  align-self: flex-start;
  background: #fff;
  color: #5b2ad1;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 2px;
}
.banner-pixels {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 220px;
  height: 220px;
  opacity: .25;
  background:
    linear-gradient(90deg, transparent 50%, rgba(255,255,255,.6) 50%) 0 0 / 40px 40px,
    linear-gradient(transparent 50%, rgba(255,255,255,.6) 50%) 0 0 / 40px 40px;
  mask-image: radial-gradient(circle at 70% 70%, #000 30%, transparent 70%);
}
.banner-a { background: linear-gradient(135deg, #00b4d8, #3a0ca3); }
.banner-b { background: linear-gradient(135deg, #ff9f1c, #e63946); }

.card-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.box-title {
  margin: 0;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  transition: box-shadow .15s, transform .15s;
}
.cat-item:hover { box-shadow: 0 0 12px rgba(0, 0, 0, .08); transform: translateY(-1px); z-index: 1; }
.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  transition: background .15s, color .15s;
}
.cat-item:hover .cat-icon { background: var(--brand); color: #fff; }
.cat-name { font-size: 13px; line-height: 1.3; }
.cat-count { font-size: 11px; color: var(--muted); }

/* ---------- Results layout ---------- */
.results-layout { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; scroll-margin-top: 150px; }
/* sem isso, itens de grid crescem até o conteúdo (barra de ordenação) e estouram a tela no celular */
.results-layout > *, .main > * { min-width: 0; }
.filters { position: sticky; top: 140px; }
.filters-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: 15px; text-transform: uppercase; font-weight: 700;
}
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.filter-cats { list-style: none; margin: 0; padding: 0; }
.filter-cats a {
  display: flex;
  justify-content: space-between;
  padding: 5px 0 5px 10px;
  font-size: 13px;
  position: relative;
}
.filter-cats a:hover { color: var(--brand); }
.filter-cats a.active { color: var(--brand); font-weight: 600; }
.filter-cats a.active::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  border: 4px solid transparent; border-left-color: var(--brand);
  transform: translateY(-50%);
}
.filter-cats small { color: var(--muted); font-weight: 400; }
.price-form { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.price-form input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fff;
  font-size: 13px;
}
.price-form span { color: #bbb; }
.price-form button, .clear-filters {
  grid-column: 1 / -1;
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px;
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.clear-filters { width: 100%; margin-top: 16px; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 13px; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }
.filters-close, .filters-open { display: none; }

.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.results-title { margin: 0; font-size: 18px; font-weight: 700; }
.results-title em { color: var(--brand); font-style: normal; }

.sort-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #ededed;
  padding: 12px 16px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.sort-label { color: #555; }
.sort-bar button, .sort-bar select {
  border: 0;
  background: #fff;
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.sort-bar button.active, .sort-bar select.active { background: var(--brand); color: #fff; }
.sort-bar select { padding-right: 28px; }
.result-count { margin-left: auto; color: var(--muted); font-size: 13px; }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 2px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-hover); z-index: 1; }
.card-img { position: relative; aspect-ratio: 1; background: #fafafa; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-discount {
  position: absolute; top: 0; right: 0;
  background: #ffd839; color: var(--brand);
  font-size: 12px; font-weight: 700;
  padding: 4px 6px 6px;
  text-align: center; line-height: 1.1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
}
.badge-discount small { display: block; color: #fff; font-size: 11px; font-weight: 700; }
.badge-indie, .badge-mall {
  position: absolute; left: 0; top: 10px;
  font-size: 11px; font-weight: 700; color: #fff;
  padding: 2px 6px; border-radius: 0 2px 2px 0;
}
.badge-indie { background: var(--indie); display: inline-flex; align-items: center; gap: 4px; }
.badge-mall { background: var(--brand-dark); }
.badge-mall + .badge-indie { top: 32px; }
.card-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-cat {
  align-self: flex-start;
  font-size: 10px;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 1px 4px;
  border-radius: 2px;
}
.card-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.card-price { color: var(--brand); font-size: 16px; font-weight: 600; white-space: nowrap; }
.card-price small { font-size: 12px; font-weight: 500; margin-right: 1px; }
.card-sold { font-size: 11px; color: var(--muted); white-space: nowrap; }
.card-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); gap: 6px; }
.card-meta .stars { color: #ffce3d; letter-spacing: -1px; }
.card-shop { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-cta {
  position: absolute;
  left: -1px; right: -1px; top: 100%;
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
  border-radius: 0 0 2px 2px;
}
.card:hover .card-cta { opacity: 1; }

.skeleton .card-img, .skeleton .sk-line {
  background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease infinite;
}
.sk-line { height: 12px; border-radius: 2px; }
.sk-line.short { width: 50%; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.empty { text-align: center; padding: 60px 20px; background: #fff; box-shadow: var(--shadow); }
.empty-icon { color: #ccc; display: flex; justify-content: center; }
.empty h3 { margin: 10px 0 4px; }
.empty p { color: var(--muted); margin: 0; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 30px 0 10px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 32px;
  display: grid; place-items: center;
  font-size: 15px; color: var(--muted); border-radius: 2px; padding: 0 8px;
}
.pagination a:hover { color: var(--brand); }
.pagination a.current { background: var(--brand); color: #fff; }
.pagination a.disabled { pointer-events: none; opacity: .35; }

/* ---------- Como funciona ---------- */
.how { margin-top: 40px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px; }
.how-grid span {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--pixel); font-size: 12px;
}
.how-grid h4 { margin: 10px 0 4px; font-size: 15px; }
.how-grid p { margin: 0; color: var(--muted); line-height: 1.5; }

/* ---------- Footer ---------- */
.footer { background: #fbfbfb; border-top: 4px solid var(--brand); padding: 28px 0; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--pixel); font-size: 12px; color: var(--brand); }
.footer-brand img { background: var(--brand); border-radius: 8px; padding: 4px; }
.disclosure { margin: 0; line-height: 1.6; max-width: 820px; }
.copy { margin: 0; }

.to-top {
  position: fixed; right: 20px; bottom: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--brand); color: #fff;
  box-shadow: var(--shadow-hover); cursor: pointer; z-index: 40;
}

.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 70; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .header-main { gap: 16px; }
  .brand-name { font-size: 13px; }
  .brand-name span { font-size: 10px; }
  .results-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: min(300px, 85vw);
    background: #fff; padding: 20px; z-index: 80; overflow-y: auto;
    transform: translateX(-100%); transition: transform .2s;
  }
  .filters.open { transform: none; }
  .filters-close { display: block; position: absolute; right: 12px; top: 12px; border: 0; background: none; font-size: 18px; cursor: pointer; }
  .filters-open {
    display: block; border: 1px solid var(--brand); color: var(--brand);
    background: #fff; padding: 6px 14px; border-radius: 2px; cursor: pointer;
  }
  .how-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-links { display: none; }
  .tagline { font-size: 12px; padding: 4px 0; }
  .header-main { flex-direction: column; gap: 8px; padding-top: 4px; }
  .brand img { width: 36px; height: 36px; }
  .search-wrap { width: 100%; }
  .quick-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .quick-tags a { white-space: nowrap; }
  .banners { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .banner-big { grid-column: 1 / -1; grid-row: auto; min-height: 170px; }
  .banner h2 { font-size: 16px; }
  .banner h3 { font-size: 10px; }
  .banner { padding: 14px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-icon { width: 48px; height: 48px; }
  .cat-icon .ico { width: 24px; height: 24px; }
  .cat-name { font-size: 11px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .sort-label, .result-count { display: none; }
  .sort-bar { padding: 8px; gap: 6px; overflow-x: auto; flex-wrap: nowrap; }
  .sort-bar button, .sort-bar select { white-space: nowrap; padding: 7px 10px; font-size: 13px; }
  .card-cta { display: none; }
  .filters { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: rgba(34, 34, 34, .92);
  color: #fff;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: var(--shadow-hover);
  z-index: 90;
}
.card.loading { opacity: .6; pointer-events: none; }

/* ---------- Explore seus jogos favoritos ---------- */
.games-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 22px 26px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(90% 120% at 100% 100%, rgba(238, 77, 45, .55) 0%, transparent 60%),
    linear-gradient(120deg, #141a33 0%, #23204d 55%, #3a1f4f 100%);
  transition: filter .2s;
}
.games-banner:hover { filter: brightness(1.08); }
.games-banner-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.games-banner .banner-kicker { margin-bottom: 10px; }
.games-banner h2 { margin: 0 0 8px; font-family: var(--pixel); font-size: 18px; line-height: 1.5; }
.games-banner p { margin: 0; opacity: .88; max-width: 380px; line-height: 1.5; }
.games-banner .banner-cta { color: #23204d; }
.games-banner-covers {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: hsl(var(--hue) 45% 30%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  transform: rotate(-2deg);
  transition: transform .2s;
}
.cover:nth-child(even) { transform: rotate(2deg) translateY(8px); }
.games-banner:hover .cover { transform: none; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover span {
  position: absolute; inset: auto 0 0;
  padding: 18px 6px 6px;
  font-size: 10px; font-weight: 700; line-height: 1.2;
  background: linear-gradient(transparent, hsl(var(--hue) 60% 12% / .92));
}

.games-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 4px 0 16px;
}
.games-hero h1 { margin: 0 0 6px; font-family: var(--pixel); font-size: 18px; line-height: 1.5; color: var(--text); }
.games-hero p { margin: 0; color: var(--muted); max-width: 520px; }
.games-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.games-tabs { display: flex; background: #ededed; border-radius: 2px; padding: 3px; }
.games-tabs button {
  border: 0; background: none; padding: 7px 14px; border-radius: 2px;
  cursor: pointer; font: inherit; color: #555;
}
.games-tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.games-filter {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: 0 10px; color: var(--muted);
}
.games-filter:focus-within { border-color: var(--brand); }
.games-filter input { border: 0; outline: 0; padding: 8px 0; font: inherit; width: 170px; background: none; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 4px solid hsl(var(--hue) 70% 50%);
  transition: box-shadow .15s, transform .15s;
}
.game-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.game-mosaic {
  display: grid;
  gap: 2px;
  aspect-ratio: 1;
  background: hsl(var(--hue) 40% 94%);
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.game-mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.game-mosaic.n2 { grid-template-rows: 1fr; }
.game-mosaic.n3 .game-shot:first-child { grid-row: span 2; }
.game-shot { position: relative; overflow: hidden; background: #fafafa; }
.game-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.game-shot:hover img { transform: scale(1.06); }
.game-shot.loading { opacity: .6; }
.game-shot-price {
  position: absolute; left: 4px; bottom: 4px;
  background: rgba(255, 255, 255, .94); color: var(--brand);
  font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 2px;
}
.game-info { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 12px 12px; }
.game-name { font-weight: 700; font-size: 15px; grid-column: 1; }
.game-meta { grid-column: 1; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.game-meta .badge-indie { position: static; font-size: 10px; padding: 1px 6px; }
.game-cta { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--brand); font-weight: 600; white-space: nowrap; }
.game-info:hover .game-name { color: var(--brand); }

.back-link { display: inline-block; margin-bottom: 6px; color: var(--brand); font-weight: 600; }
.back-link:hover { text-decoration: underline; }
.game-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.game-chips a {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; white-space: nowrap;
}
.game-chips a small { color: var(--muted); margin-left: 2px; }
.game-chips a:hover { border-color: var(--brand); color: var(--brand); }
.game-chips a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.game-chips a.active small { color: #fff; opacity: .85; }

@media (max-width: 900px) {
  .games-banner { grid-template-columns: 1fr; }
  .games-banner-covers { grid-template-columns: repeat(6, 92px); overflow: hidden; }
}
@media (max-width: 640px) {
  .games-banner { padding: 16px; gap: 14px; }
  .games-banner h2 { font-size: 14px; }
  .games-banner-covers { grid-template-columns: repeat(6, 72px); gap: 6px; }
  .games-hero h1 { font-size: 14px; }
  .games-tools { width: 100%; }
  .games-filter { flex: 1 1 100%; }
  .games-filter input { width: 100%; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .game-info { grid-template-columns: 1fr; padding: 8px 10px 10px; }
  .game-name { font-size: 13px; }
  .game-cta { grid-column: 1; grid-row: auto; font-size: 12px; }
  .game-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}
.toast-action {
  margin-left: 8px; padding: 4px 10px; border-radius: 2px;
  background: var(--brand); color: #fff; font-weight: 700; white-space: nowrap;
}
.toast { pointer-events: auto; }
