:root {
  --bg: #121216;
  --surface: #1b1b22;
  --surface-2: #24242d;
  --line: #30303b;
  --text: #ececf1;
  --muted: #9a9aa8;
  --accent: #e4002b;
  --accent-soft: rgba(228, 0, 43, 0.14);
  --ok: #2fbf71;
  --ok-soft: rgba(47, 191, 113, 0.14);
  --legacy: #f2a93b;
  --legacy-soft: rgba(242, 169, 59, 0.14);
  --mark: rgba(242, 169, 59, 0.35);
  --star: #f5b301;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f4f7;
    --surface: #ffffff;
    --surface-2: #ececf1;
    --line: #dcdce3;
    --text: #18181d;
    --muted: #61616e;
    --accent: #c80026;
    --accent-soft: rgba(200, 0, 38, 0.09);
    --ok: #138a4b;
    --ok-soft: rgba(19, 138, 75, 0.1);
    --legacy: #a5640a;
    --legacy-soft: rgba(196, 122, 16, 0.13);
    --mark: rgba(242, 169, 59, 0.45);
    --star: #e29a00;
    --shadow: 0 6px 24px rgba(20, 20, 40, 0.12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
a { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ---------- cabecera ---------- */

/* ---------- selector de idioma ---------- */

.langbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.langbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: max(6px, env(safe-area-inset-top));
  padding-bottom: 6px;
}
.langbar svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang-switch button { border: 0; background: none; padding: 4px 12px; font-size: 0.8rem; color: var(--muted); }
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 600; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 14px; /* el margen seguro superior lo pone la barra de idioma */
  padding-bottom: 14px;
}

.brand {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 22px;
  height: 28px;
  border-radius: 4px 4px 7px 7px;
  background: linear-gradient(var(--accent) 0 62%, var(--surface-2) 62%);
  border: 2px solid var(--accent);
}

.stats { display: flex; gap: 14px; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.stats b { color: var(--text); font-size: 1.05rem; }
.stats .pct { color: var(--ok); font-weight: 600; }

.top-actions { display: flex; gap: 8px; }
.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.top-btn:hover { border-color: var(--accent); }
.top-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Móvil: marca y botones en la primera fila, estadísticas debajo */
@media (max-width: 819px) {
  .brand { order: 1; }
  .top-actions { order: 2; }
  .stats { order: 3; flex-basis: 100%; }
  .progress { order: 4; }
}
@media (max-width: 400px) {
  .brand { font-size: 1.1rem; }
  .top-btn { flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 10px; font-size: 0.68rem; }
  .top-btn svg { width: 18px; height: 18px; }
  .stats { gap: 10px; font-size: 0.82rem; }
  .tabs button { padding: 8px 4px; font-size: 0.86rem; }
  .tabs button .count { display: block; margin: 0; }
  .stats span { white-space: nowrap; }
}
@media (max-width: 360px) {
  .chev, .mini-bar { display: none; }
  .mini-text { white-space: normal; }
}

.progress { flex-basis: 100%; height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--ok); transition: width 0.3s ease; }

/* ---------- barra de búsqueda y filtros ---------- */

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner { display: grid; gap: 10px; padding-top: 12px; padding-bottom: 12px; }

.search { position: relative; }
.search svg {
  position: absolute; left: 12px; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round;
}
.search input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 16px; /* evita el zoom automático en iOS */
}
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.icon-btn {
  position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--surface-2); font-size: 1.2rem; line-height: 1;
}

[hidden] { display: none !important; }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; }
.tabs button { border: 0; background: none; padding: 8px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.tabs button .count { font-weight: 400; font-size: 0.85em; opacity: 0.8; margin-left: 4px; font-variant-numeric: tabular-nums; }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }

.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.filters::-webkit-scrollbar { display: none; }
.seg { display: flex; flex: none; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 12px; font-size: 0.85rem; white-space: nowrap; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); font-weight: 600; }
.filters select {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 6px 12px;
  font-size: 0.85rem;
}

@media (min-width: 820px) {
  .toolbar-inner { grid-template-columns: 1fr 460px; align-items: center; }
  .filters { grid-column: 1 / -1; margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
}

/* ---------- lista de cartuchos ---------- */

main { padding-top: 16px; padding-bottom: 24px; min-height: 60vh; }
.loading, .empty-state { text-align: center; color: var(--muted); padding: 48px 0; }
.empty-state button { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; }

.cart-list { display: grid; gap: 10px; }

.cart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 190px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cart.owned { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.cart.flash { box-shadow: 0 0 0 3px var(--accent); }

.cart-head { display: flex; align-items: stretch; }
.cart-toggle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 0;
  background: none;
  text-align: left;
}
.cart-toggle:hover { background: var(--surface-2); }

.cover {
  flex: none;
  width: 64px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2);
}
.cart:not(.owned) .cover { filter: grayscale(0.55); opacity: 0.85; }

.cart-info { display: grid; gap: 6px; min-width: 0; flex: 1; }
.cart-title { font-weight: 650; font-size: 1.02rem; line-height: 1.25; }
.cart-num {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--text);
  color: var(--bg);
  font: 700 0.78rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  vertical-align: 2px;
}
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
  vertical-align: middle;
}
.badge.legacy { background: var(--legacy-soft); color: var(--legacy); text-transform: uppercase; letter-spacing: 0.04em; }
.badge.tag { background: var(--accent-soft); color: var(--accent); }
.badge.have { background: var(--ok-soft); color: var(--ok); }
.badge.done { background: var(--ok); color: #fff; }
.badge.plain { background: none; padding-left: 2px; font-weight: 400; }
.match { margin: 0; font-size: 0.82rem; color: var(--muted); }

.chev { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; transition: rotate 0.2s; }
.cart-toggle[aria-expanded="true"] .chev { rotate: 180deg; }

.own-btn {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 92px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  font-size: 0.75rem;
  color: var(--muted);
}
.own-btn:hover { background: var(--surface-2); }
.own-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
}
.own-btn[aria-pressed="true"] { color: var(--ok); font-weight: 600; background: var(--ok-soft); }
.own-btn[aria-pressed="true"] .own-check { background: var(--ok); border-color: var(--ok); }
.own-btn[aria-pressed="true"] .own-check::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  rotate: 45deg;
  translate: 0 -1px;
}

.cart-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 10px 6px;
  border-top: 1px dashed var(--line);
}
/* "Calidad" ocupa la columna de la portada, así las estrellas quedan alineadas con el título */
.rating-label { flex: none; width: 64px; text-align: center; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.stars { display: flex; }
.star {
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--line);
  transition: color 0.1s, transform 0.1s;
}
.star.on { color: var(--star); }
.star:active { transform: scale(0.88); }
@media (hover: hover) {
  .stars:hover .star { color: var(--star); }
  .stars .star:hover ~ .star { color: var(--line); }
}
.rating-text { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.cart-body { border-top: 1px solid var(--line); padding: 14px; }
.cart-desc { margin: 0 0 8px; color: var(--muted); max-width: 75ch; }
.cart-note { margin: 0 0 8px; color: var(--legacy); font-size: 0.88rem; }
.cart-edition { margin: 0 0 8px; font-size: 0.85rem; color: var(--muted); max-width: 75ch; }
.cart-edition b { color: var(--text); }
.cart-links { margin: 0 0 14px; display: flex; gap: 14px; font-size: 0.88rem; }

/* ---------- juegos dentro de un cartucho ---------- */

.games-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

.game { background: var(--surface-2); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.game.hit { box-shadow: 0 0 0 2px var(--legacy); }

.shot {
  display: block;
  padding: 0;
  border: 0;
  background: #000;
  width: 100%;
  cursor: zoom-in;
}
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.shot.empty { display: grid; place-items: center; aspect-ratio: 4 / 3; color: #777; font-size: 0.8rem; cursor: default; }

.game-text { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.game.done { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ok) 55%, transparent); }
.game.done.hit { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ok) 55%, transparent), 0 0 0 2px var(--legacy); }

.done-btn {
  margin-top: auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.game-text > :nth-last-child(2) { margin-bottom: 6px; }
/* Estrellas del juego: centradas justo encima de "Por pasar", ambos pegados al fondo de la tarjeta */
.game-stars { justify-content: center; }
.game-text > .game-stars { margin-top: auto; }
.game-stars + .done-btn { margin-top: 0; }
.game-stars .star { width: 28px; height: 28px; font-size: 1.2rem; }
.done-btn:hover { border-color: var(--ok); }
.done-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--muted);
  display: grid;
  place-items: center;
}
.done-btn[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.done-btn[aria-pressed="true"] .done-check { border-color: #fff; }
.done-btn[aria-pressed="true"] .done-check::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
  translate: 0 -1px;
}

.cart-progress { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--muted); }
.cart-progress b { color: var(--text); font-variant-numeric: tabular-nums; }
.cart-progress.full b { color: var(--ok); }
.mini-bar { flex: 0 1 90px; min-width: 36px; height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.mini-text { white-space: nowrap; }
.cart-toggle:hover .mini-bar { background: var(--line); }
.mini-bar > span { display: block; height: 100%; background: var(--ok); transition: width 0.3s ease; }
.game-text h3 { margin: 0; font-size: 0.92rem; line-height: 1.25; }
.meta { margin: 0; font-size: 0.75rem; color: var(--muted); }
.desc {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.desc { cursor: pointer; }
.desc.open { -webkit-line-clamp: unset; }
.also { margin: 4px 0 0; font-size: 0.75rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  text-align: left;
}
.chip:hover { border-color: var(--accent); }
.chip.owned { border-color: color-mix(in srgb, var(--ok) 60%, var(--line)); color: var(--ok); background: var(--ok-soft); font-weight: 600; }

/* ---------- vista de juegos ---------- */

.game-list { display: grid; gap: 10px; }
@media (min-width: 820px) {
  .game-list { grid-template-columns: 1fr 1fr; }
}
.grow {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  align-items: flex-start;
}
.grow-media { width: 120px; flex: none; display: flex; flex-direction: column; gap: 4px; }
.grow .shot { border-radius: 8px; overflow: hidden; }
.grow .game-stars .star { width: 24px; height: 26px; font-size: 1.1rem; }
.grow-text { display: grid; gap: 4px; min-width: 0; }
.grow-text h3 { margin: 0; font-size: 1rem; line-height: 1.25; }
.in-carts { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 0.78rem; color: var(--muted); }
.in-carts > span { width: 100%; }

@media (max-width: 420px) {
  .cover { width: 54px; }
  .cart-toggle { gap: 10px; }
  .own-btn { width: 72px; }
  .cart-rating { gap: 10px; }
  .rating-label { width: 54px; }
  .star { width: 32px; height: 32px; }
  .grow-media { width: 100px; }
  .grow .game-stars .star { width: 20px; font-size: 1rem; }
}
@media (max-width: 360px) {
  .cart-rating { gap: 6px; }
  .star { width: 26px; font-size: 1.25rem; }
  .rating-text { font-size: 0.74rem; }
}

/* ---------- desbloqueables ---------- */

.subtabs { display: flex; gap: 8px; margin-bottom: 16px; }
.subtabs button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  color: var(--muted);
}
.subtabs button span { font-weight: 400; font-size: 0.85em; margin-left: 4px; }
.subtabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.usection + .usection { margin-top: 28px; }
.usection h2 { font-size: 1.1rem; margin: 0 0 4px; }
.uhelp { margin: 0 0 12px; color: var(--muted); font-size: 0.88rem; }
.usummary { margin: 0 0 12px; font-size: 0.92rem; }
.usummary b { color: var(--ok); }

.ugrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.ucard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ucard.ready { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.ucard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ucard-head h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.ucard-head .badge { flex: none; }

.secret { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.secret-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); flex: none; width: 58px; }
.secret code {
  font: 600 1rem/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.08em;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  word-break: break-all;
  user-select: all;
}
.combo { flex: 1; min-width: 0; font-size: 0.9rem; line-height: 1.9; }
.how { flex: 1; min-width: 0; font-size: 0.86rem; line-height: 1.75; }
kbd {
  display: inline-block;
  min-width: 26px;
  text-align: center;
  font: 600 0.78rem/1 ui-monospace, Consolas, monospace;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
}
.unote { margin: 0; font-size: 0.82rem; color: var(--legacy); }

.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; }
.plus { align-self: center; font-size: 1.3rem; font-weight: 700; color: var(--muted); }
.cart-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  text-align: center;
  min-width: 0;
}
.cart-mini:hover { border-color: var(--accent); }
.cart-mini img { width: 56px; aspect-ratio: 1; object-fit: cover; border-radius: 6px; filter: grayscale(0.55); opacity: 0.85; }
.cart-mini.owned { border-color: color-mix(in srgb, var(--ok) 60%, var(--line)); background: var(--ok-soft); }
.cart-mini.owned img { filter: none; opacity: 1; }
.cart-mini-title { font-size: 0.8rem; font-weight: 600; line-height: 1.25; }
.cart-mini-own { font-size: 0.72rem; color: var(--muted); }
.cart-mini.owned .cart-mini-own { color: var(--ok); font-weight: 600; }
.ustatus { margin: 0; font-size: 0.82rem; color: var(--muted); }
.ustatus.ok { color: var(--ok); font-weight: 600; }

/* ---------- pie ---------- */

.foot { padding-bottom: max(24px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.8rem; text-align: center; }

/* ---------- visor de capturas ---------- */

#lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1000px);
  max-height: 92vh;
  overflow: visible;
}
#lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
#lb-img { max-width: 100%; max-height: 84vh; margin: 0 auto; border-radius: 8px; image-rendering: pixelated; min-width: min(90vw, 640px); object-fit: contain; }
.lb-caption { text-align: center; color: #fff; padding-top: 10px; font-weight: 600; }
.lb-close {
  position: absolute;
  top: -14px;
  right: -6px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #000;
  font-size: 1.4rem;
  line-height: 1;
  z-index: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  translate: -50% 0;
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  z-index: 20;
  max-width: calc(100vw - 32px);
}
