/* mestoy · estilo Power (design-systems): negro absoluto, monocromo casi blanco, titulares Oswald enormes.
   Tokens = fuente de verdad; ver la sección mestoy de DESIGN.md. */

@font-face {
  font-family: 'Oswald';
  src: url('/static/fonts/oswald-variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Superficies */
  --surface: #000000;
  --surface-1: #0f0f0f;
  --surface-2: #1a1a1a;
  --surface-3: #262626;
  --line: #262626;
  --line-strong: #8a8a8a;
  /* Texto y primario monocromo */
  --text: #fafafa;
  --text-muted: #a3a3a3;
  --primary: #fafafa;
  --primary-hover: #d4d4d4;
  --on-primary: #000000;
  /* Acento único: oro, solo para tronos (top del ranking, marcadores con nota ≥ 4, nivel máximo) */
  --gold: #d4af37;
  /* Estados */
  --success: #16a34a;
  --warning: #d97706;
  --danger: #ef4444;
  --focus: #fafafa;
  /* Tipografía */
  --font-display: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 3rem;
  --fs-display: clamp(2.75rem, 9vw, 5.5rem);
  --fs-display-sm: clamp(1.75rem, 4.5vw, 2.5rem);
  --tracking-caps: 0.14em;
  /* Espaciado (rejilla de 8) */
  --sp-half: 4px;
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  /* Forma */
  --r-sm: 4px;
  --r-md: 8px;
  --r-pill: 999px;
  --control-h: 44px;
  --control-h-sm: 36px;
  --panel-w: 420px;
  --content-w: 1200px;
  --ease: 160ms ease;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--ease);
}
a:hover {
  text-decoration-color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
main:focus {
  outline: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 var(--sp-2);
}
h1 {
  font-size: var(--fs-3xl);
}
h2 {
  font-size: var(--fs-xl);
}
h3 {
  font-size: var(--fs-lg);
}
p {
  margin: 0 0 var(--sp-2);
}

.display {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 0.95;
  overflow-wrap: anywhere;
}
.display-sm {
  font-size: var(--fs-display-sm);
  font-weight: 700;
}
.h-label,
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-muted);
  margin: 0 0 var(--sp-2);
  line-height: 1.3;
}
.lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 60ch;
}
.muted {
  color: var(--text-muted);
}
.small {
  font-size: var(--fs-sm);
}

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

.skip-link {
  position: absolute;
  left: var(--sp-2);
  top: -100px;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-pill);
  font-weight: 600;
}
.skip-link:focus {
  top: var(--sp-1);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.25em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: var(--control-h);
  padding: 0 var(--sp-3);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: 600 var(--fs-sm) / 1.2 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition:
    background-color var(--ease),
    border-color var(--ease),
    color var(--ease),
    transform var(--ease);
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled,
.btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.55;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-secondary {
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-danger {
  color: var(--danger);
}
/* Botón destructivo sin variante fantasma (p. ej. «Borrar mi cuenta» del núcleo): contorno rojo. */
.btn-danger:not(.btn-ghost) {
  border-color: var(--danger);
}
.btn-danger:not(.btn-ghost):hover {
  background: var(--surface-3);
}
.btn-sm {
  min-height: var(--control-h-sm);
  padding: 0 var(--sp-2);
  font-size: var(--fs-xs);
}
.btn-lg {
  min-height: 56px;
  padding: 0 var(--sp-4);
  font-size: var(--fs-md);
}
.btn-icon {
  width: var(--control-h);
  padding: 0;
}
.btn-block {
  width: 100%;
}
.inline-form {
  display: inline;
  margin: 0;
}

/* ---------- Cabecera ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--sp-1) var(--sp-2);
}
.is-map .header-bar,
.is-map .main-nav ul {
  max-width: none;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-width: 0;
  padding: var(--sp-half) 0;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.wordmark-sm {
  font-size: var(--fs-lg);
}
.tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 2px;
}
.header-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  transition:
    background 120ms,
    color 120ms;
}
/* Al pasar por encima, cada icono se pone con el color de su red (las negras, en blanco sobre el fondo negro) */
.social-instagram {
  --brand: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social-tiktok {
  --brand: #fe2c55;
}
.social-youtube {
  --brand: #ff0000;
}
.social-facebook {
  --brand: #0866ff;
}
.social-threads,
.social-x {
  --brand: #fff;
  --brand-fg: #000;
}
.header-social [class^='social-']:is(:hover, :focus-visible) {
  background: var(--brand);
  color: var(--brand-fg, #fff);
}
.header-account {
  display: flex;
  align-items: center;
  gap: var(--sp-half);
  flex: none;
}
.account-name {
  max-width: 10ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main-nav ul {
  display: flex;
  gap: var(--sp-half);
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--sp-1);
  max-width: var(--content-w);
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav a {
  display: flex;
  align-items: center;
  min-height: var(--control-h);
  padding: 0 var(--sp-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover {
  color: var(--text);
}
/* La lista hace scroll horizontal y recortaría un contorno exterior. */
.main-nav a:focus-visible {
  outline-offset: -3px;
}
.main-nav a[aria-current='page'] {
  color: var(--text);
  border-bottom-color: var(--text);
}

@media (max-width: 599px) {
  .main-nav ul {
    justify-content: space-between;
  }
  .main-nav a {
    letter-spacing: 0.06em;
    padding: 0 6px;
  }
  .hide-sm {
    display: none;
  }
  .tagline {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
  }
  .wordmark {
    font-size: 1.625rem;
  }
  /* Redes en su propia fila bajo la marca; en el mapa no, para no quitarle alto */
  .header-bar {
    flex-wrap: wrap;
  }
  .brand {
    flex: 1 1 0;
  }
  .header-social {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin: 0;
  }
  .header-social a {
    width: 28px;
    height: 28px;
  }
  .is-map .header-social {
    display: none;
  }
}
@media (min-width: 900px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--sp-3);
  }
  .site-header > * {
    flex: none;
  }
  .header-bar {
    display: contents;
  }
  .brand {
    order: 1;
    flex-direction: row;
    align-items: baseline;
    gap: var(--sp-2);
  }
  .main-nav {
    order: 2;
  }
  .header-social {
    order: 3;
    margin: 0;
  }
  .header-account {
    order: 4;
  }
  .main-nav ul {
    gap: var(--sp-1);
  }
  .main-nav a {
    min-height: 64px;
    padding: 0 var(--sp-1);
  }
  .is-map .site-header,
  .site-header {
    max-width: none;
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .tagline {
    display: none;
  }
}

/* ---------- Contenido ---------- */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-2) var(--sp-6);
}
@media (min-width: 900px) {
  .main {
    padding: var(--sp-5) var(--sp-3) var(--sp-6);
  }
}
.page-narrow {
  max-width: 760px;
  margin: 0 auto;
}
.page-head {
  margin-bottom: var(--sp-4);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-2);
}
.section-head h2 {
  margin: 0;
}
.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-2);
}
@media (min-width: 600px) {
  .card {
    padding: var(--sp-3);
  }
}
.empty {
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Avisos ---------- */
.alert {
  display: block;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: var(--sp-2);
  margin: 0 0 var(--sp-3);
}
.alert > :last-child {
  margin-bottom: 0;
}
.alert ul {
  margin: 0 0 var(--sp-2);
  padding-left: var(--sp-3);
}
.alert-ok {
  border-left-color: var(--success);
}
.alert-ok > .icon {
  color: var(--success);
}
.alert-error {
  border-left-color: var(--danger);
}
.alert-error > .icon {
  color: var(--danger);
}
.alert-warn {
  border-left-color: var(--warning);
}

/* ---------- Formularios ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.field label,
.fieldset legend,
.rating-field legend,
.inline-filter label,
.upload-form > label {
  font-weight: 600;
  font-size: var(--fs-sm);
}
input[type='text'],
input[type='email'],
input[type='password'],
input[type='search'],
input[type='number'],
select,
textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: 10px 14px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--fs-md);
}
textarea {
  resize: vertical;
  min-height: 120px;
}
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--text);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
input[type='file'] {
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  min-height: var(--control-h);
}
input[type='file']::file-selector-button {
  min-height: var(--control-h);
  margin-right: var(--sp-2);
  padding: 0 var(--sp-2);
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font: 600 var(--fs-sm) var(--font-body);
  cursor: pointer;
}
[aria-invalid='true'] {
  border-color: var(--danger) !important;
  border-width: 2px !important;
}
.field-error {
  color: var(--danger);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin: 0;
}
.field-error::before {
  content: '⚠ ';
}
.fieldset {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.fieldset legend {
  padding: 0 var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  text-transform: uppercase;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  min-height: var(--control-h);
  padding: 0 var(--sp-2) 0 var(--sp-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  cursor: pointer;
  font-size: var(--fs-sm);
}
.choice:hover {
  border-color: var(--text);
}
.choice:has(input:checked) {
  background: var(--surface-3);
  border-color: var(--text);
  font-weight: 600;
}
.choice input {
  width: 20px;
  height: 20px;
  margin: 0 var(--sp-half);
  accent-color: var(--text);
}
.choice-confirm {
  border-color: var(--warning);
  border-radius: var(--r-md);
  padding: var(--sp-1) var(--sp-2);
}
/* Servicios: lista de casillas sin borde, en columnas; todas iguales, con o sin explicación debajo. */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-half) var(--sp-2);
}
.check-grid .choice {
  display: flex;
  align-items: flex-start;
  padding: var(--sp-1);
  border: 0;
  border-radius: var(--r-md);
  line-height: 1.4;
}
.check-grid .choice:hover {
  background: var(--surface-2);
}
.check-grid .choice:has(input:checked) {
  background: none;
}
.check-grid .choice input {
  flex: none;
  margin: 0 var(--sp-half);
}
.choice-sub {
  display: block;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 400;
}
.field-inline {
  max-width: 260px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}
.coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
.picker {
  height: 320px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
}
.picker:empty {
  display: none;
}
.picker-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
.picker-actions p {
  margin: 0;
}
/* «Tu nota» en el alta: la nota general a la vista; subnotas y comentario en un plegable. */
.add-review,
.add-review-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.add-review > p {
  margin: 0;
}
.add-review-body {
  margin-top: var(--sp-2);
}
.add-review-more > summary {
  list-style: none;
}
.add-review-more > summary::-webkit-details-marker {
  display: none;
}
.add-review-more[open] > summary .icon {
  transform: rotate(45deg);
}

/* Valoración en rollos (radios) */
.rating-field {
  border: 0;
  padding: 0;
  margin: 0;
}
.rating-field legend {
  margin-bottom: var(--sp-1);
}
.rating-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.rating-opt {
  position: relative;
}
.rating-opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.rating-opt > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 56px;
  min-height: var(--control-h);
  padding: 0 var(--sp-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-weight: 600;
}
.rating-opt .r-on {
  display: none;
}
.rating-opt input:checked + span {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.rating-opt input:checked + span .r-on {
  display: inline;
}
.rating-opt input:checked + span .r-off {
  display: none;
}
.rating-opt input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.rating-opt:hover > span {
  border-color: var(--text);
}
.rating-none > span {
  font-weight: 500;
  font-size: var(--fs-sm);
}

/* ---------- Rollos, insignias, rankings ---------- */
.rollos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.rollos-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
}
.rollos-icons {
  display: inline-flex;
  gap: 1px;
}
.rollos .icon {
  width: 22px;
  height: 22px;
}
.rollos .icon.on {
  color: var(--text);
}
.rollos .icon.off {
  color: var(--line-strong);
}
.rollos-sm .icon {
  width: 19px;
  height: 19px;
}
.rollos-sm .rollos-num {
  font-size: var(--fs-md);
}
.rollos-lg .icon {
  width: 28px;
  height: 28px;
}
.rollos-count {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}
.rollos-empty {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.badge .icon {
  width: 14px;
  height: 14px;
}
.score-chip {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.rank {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 1;
  color: var(--text-muted);
}
.rank .icon {
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
}
.rank-top {
  color: var(--gold);
}
.gold-title {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.gold-title .icon {
  color: var(--gold);
}

/* Listas de baños */
.toilet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toilet-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'rank main' 'rank score';
  gap: var(--sp-1) var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
}
.toilet-item:last-child {
  border-bottom: 0;
}
.toilet-item > .rank {
  grid-area: rank;
}
.toilet-item:not(:has(.rank)) {
  grid-template-columns: 1fr;
  grid-template-areas: 'main' 'score';
}
.toilet-item-main {
  grid-area: main;
  min-width: 0;
}
.toilet-item-score {
  grid-area: score;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.toilet-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.toilet-name:hover {
  text-decoration: underline;
}
.toilet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-half) var(--sp-1);
  margin: var(--sp-half) 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.toilet-meta .badge {
  color: var(--text);
}
.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  grid-column: 1 / -1;
}
.toilet-list-page {
  margin-bottom: var(--sp-4);
}
@media (min-width: 700px) {
  .toilet-list-page .toilet-item {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'main score';
    align-items: center;
  }
}

.filters {
  display: grid;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  align-items: end;
}
@media (min-width: 700px) {
  .filters {
    grid-template-columns: 2fr 1fr 1fr auto;
  }
}
.inline-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-2);
}
.inline-filter select,
.inline-filter input {
  width: auto;
  flex: 1 1 160px;
  min-height: var(--control-h-sm);
  padding: 6px 12px;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
}

/* ---------- Mapa (portada) ---------- */
body.is-map {
  height: 100dvh;
  overflow: hidden;
}
.main-map {
  flex: 1;
  min-height: 0;
  position: relative;
}
.map-shell {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.map {
  position: relative;
  min-height: 0;
  background: #0c0c0c;
}
.map-search {
  position: absolute;
  top: var(--sp-1);
  left: var(--sp-1);
  right: var(--sp-1);
  z-index: 2;
  display: flex;
  gap: var(--sp-1);
  padding: 6px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow);
}
.map-search input {
  border-radius: var(--r-pill);
  border-color: var(--line);
  background: var(--surface-1);
}
.map-search .btn {
  border-radius: var(--r-pill);
  flex: none;
}
.panel {
  position: relative;
  z-index: 3;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: var(--sp-1) var(--sp-2) var(--sp-2);
  overflow-y: auto;
  max-height: 52dvh;
  overscroll-behavior: contain;
}
.panel-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  width: 100%;
  min-height: var(--control-h);
  margin-bottom: var(--sp-1);
  background: none;
  border: 0;
  color: var(--text-muted);
  font: 600 var(--fs-xs) var(--font-body);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  cursor: pointer;
  border-radius: var(--r-md);
}
.panel-handle:hover {
  color: var(--text);
}
.panel-grip {
  width: 40px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
}
.panel-handle .chev {
  transition: transform var(--ease);
}
.panel.is-open .panel-handle .chev {
  transform: rotate(180deg);
}
.panel.js-sheet:not(.is-open) .panel-body {
  display: none;
}
.panic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-half);
  width: 100%;
  min-height: 88px;
  padding: var(--sp-2);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--r-md);
  text-decoration: none;
  text-align: center;
  transition:
    background-color var(--ease),
    transform var(--ease);
}
.panic:hover {
  background: var(--primary-hover);
}
.panic:active {
  transform: scale(0.98);
}
.panic[aria-busy='true'] {
  cursor: progress;
}
.panic-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 2.75rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.panic-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.status {
  min-height: 1.5em;
  margin: var(--sp-1) 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.status:empty {
  margin: 0;
  min-height: 0;
}
.status.is-error {
  color: var(--text);
}
.status.is-error::before {
  content: '⚠ ';
  color: var(--warning);
}
.panel-body section {
  margin-top: var(--sp-2);
}
.nearest {
  border: 1px solid var(--text);
  border-radius: var(--r-md);
  padding: var(--sp-2);
}
.nearest .toilet-item {
  grid-template-columns: 1fr;
  grid-template-areas: 'main' 'score';
}
.dist {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--text);
}
.panel-footer {
  margin-top: var(--sp-4);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}
.panel-footer .site-links {
  margin-bottom: var(--sp-1);
}

@media (min-width: 900px) {
  .map-shell {
    grid-template-rows: none;
    grid-template-columns: var(--panel-w) minmax(0, 1fr);
  }
  .panel {
    order: -1;
    max-height: none;
    border-top: 0;
    border-right: 1px solid var(--line);
    padding: var(--sp-3);
  }
  .panel-handle {
    display: none;
  }
  .panel.js-sheet:not(.is-open) .panel-body {
    display: block;
  }
  .map-search {
    left: calc(var(--panel-w) + var(--sp-2));
    right: auto;
    top: var(--sp-2);
    width: min(440px, calc(100% - var(--panel-w) - var(--sp-4)));
  }
}

/* Leyenda del mapa (<details> flotante bajo el buscador) */
.map-legend {
  position: absolute;
  z-index: 2;
  top: calc(var(--sp-1) + 66px);
  left: var(--sp-1);
  max-width: calc(100% - var(--sp-2) - 56px);
}
.map-legend > summary {
  list-style: none;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: var(--shadow);
}
.map-legend > summary::-webkit-details-marker {
  display: none;
}
.map-legend[open] > summary {
  background: var(--surface-3);
  border-color: var(--text);
}
.map-legend-body {
  margin-top: var(--sp-1);
  width: 300px;
  max-width: 100%;
  max-height: min(60vh, 460px);
  overflow-y: auto;
  padding: var(--sp-2);
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.map-legend-body .h-label {
  margin: 0 0 var(--sp-1);
}
.map-legend-body .h-label + .legend-list + .h-label {
  margin-top: var(--sp-2);
}
.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  font-size: var(--fs-sm);
}
.legend-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.legend-list img,
.legend-cluster {
  flex: none;
}
.legend-places {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.legend-credit {
  margin-top: var(--sp-2);
}
/* Réplica en CSS del clúster que pinta MapLibre (círculo sin imagen). */
.legend-cluster {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--fs-sm);
}
.legend-cluster {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--text);
}
@media (min-width: 900px) {
  .map-legend {
    left: calc(var(--panel-w) + var(--sp-2));
    top: calc(var(--sp-2) + 66px);
  }
}

/* Conmutador de la capa de OSM y sugerencias de «ME ESTOY CAGANDO» */
.places-toggle {
  margin: 0 0 var(--sp-1);
}
.places-toggle .check {
  min-height: var(--control-h);
  align-items: center;
}
.places-toggle p {
  margin: 0;
}
.places-toggle p:empty {
  display: none;
}
#nearby-places {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}
#nearby-places .h-label,
#nearby-places p {
  margin: 0 0 var(--sp-1);
}
.place-item .toilet-name {
  margin: 0;
}
.place-card-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.15;
}
.maplibregl-popup-content .place-card-name {
  margin: 0;
  font-size: var(--fs-lg);
}
.place-card .item-actions {
  margin-top: var(--sp-1);
}
.osm-note a {
  white-space: nowrap;
}

/* Marcadores DOM y controles de MapLibre en oscuro */
.pin-marker {
  width: 36px;
  height: 36px;
  color: var(--text);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}
.pin-marker svg {
  width: 100%;
  height: 100%;
}
.pin-marker svg path:first-child {
  fill: var(--surface);
}
/* Propuesta de ubicación: punto actual (gris, fijo, no tapa los clics al mapa) y punto propuesto (oro). */
.pin-marker.pin-old {
  color: var(--text-muted);
  opacity: 0.85;
  pointer-events: none;
}
.pin-marker.pin-new {
  color: var(--gold);
}
.pin-legend {
  list-style: none;
  margin: 0 0 var(--sp-1);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-half) var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.pin-legend li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-half);
}
.legend-pin {
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid var(--text-muted);
  background: var(--surface);
  flex: none;
}
.legend-pin.legend-new {
  border-color: var(--gold);
}
.me-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 2px var(--text);
}
.maplibregl-popup-content {
  background: var(--surface-1);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);
  font-family: var(--font-body);
  box-shadow: var(--shadow);
}
.maplibregl-popup-content p {
  margin: var(--sp-half) 0 0;
  font-size: var(--fs-sm);
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: var(--line-strong);
}
.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: var(--line-strong);
}
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: var(--line-strong);
}
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: var(--line-strong);
}
.maplibregl-popup-close-button {
  color: var(--text);
  font-size: 22px;
  width: 36px;
  height: 36px;
}
.maplibregl-popup-close-button:hover {
  background: var(--surface-3);
}
.maplibregl-ctrl-group {
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
}
.maplibregl-ctrl-group:not(:empty) {
  box-shadow: none;
}
.maplibregl-ctrl-group button {
  width: var(--control-h);
  height: var(--control-h);
}
.maplibregl-ctrl-group button + button {
  border-top-color: var(--line);
}
.maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  filter: invert(1);
}
.maplibregl-ctrl-group button:not(:disabled):hover {
  background-color: var(--surface-3);
}
.maplibregl-ctrl button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.maplibregl-ctrl.maplibregl-ctrl-attrib {
  background: rgba(0, 0, 0, 0.8);
  color: var(--text-muted);
}
.maplibregl-ctrl-attrib a {
  color: var(--text);
}
.maplibregl-ctrl-attrib-button {
  filter: invert(1);
}
.maplibregl-ctrl-attrib.maplibregl-compact {
  background: var(--surface-1);
}
.maplibregl-canvas:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}
/* Botón de estilo del mapa (StyleControl, bajo el zoom): la lista se abre a su izquierda. */
.style-ctrl {
  position: relative;
}
.style-ctrl-btn {
  display: grid;
  place-items: center;
  color: var(--text);
}
.style-ctrl-btn .icon {
  width: 22px;
  height: 22px;
}
.style-ctrl-menu {
  position: absolute;
  right: calc(100% + var(--sp-1));
  bottom: 0;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: var(--sp-half);
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.style-ctrl-menu[hidden] {
  display: none;
}
.maplibregl-ctrl-group .style-ctrl-option {
  width: auto;
  height: var(--control-h);
  padding: 0 var(--sp-1);
  text-align: left;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  border-radius: var(--r-sm);
}
.maplibregl-ctrl-group .style-ctrl-option + .style-ctrl-option {
  border-top: 0;
}
.style-ctrl-option[aria-pressed='true'] {
  background: var(--surface-3);
  font-weight: 700;
}
.style-ctrl-option[aria-pressed='true']::after {
  content: ' ✓';
}

/* ---------- Ficha ---------- */
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
}
.detail-grid {
  display: grid;
  gap: var(--sp-3);
}
.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 0;
}
@media (min-width: 900px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }
}
.score-big {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.score-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 6rem);
  line-height: 0.9;
}
.score-big p {
  margin: var(--sp-1) 0 0;
}
/* La cifra grande ya está al lado: los rollos grandes solo muestran iconos. */
.score-big .rollos-num {
  display: none;
}
.score-empty {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  text-transform: uppercase;
  margin: 0;
}
.subscores {
  display: grid;
  gap: var(--sp-1);
  margin: var(--sp-3) 0 0;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}
.subscore {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  min-height: 32px;
}
.subscore dt {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.subscore dd {
  margin: 0;
}
.description {
  white-space: pre-line;
}
.hours {
  display: flex;
  gap: var(--sp-1);
  align-items: flex-start;
}
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--sp-1);
}
.feature {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-sm);
}
.feature-yes .icon {
  color: var(--text);
}
.feature-no {
  color: var(--text-muted);
}
.feature-no > span:not(.sr-only) {
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}
.checkin-count {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  font-weight: 600;
}
.checkin-num {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1;
}
.minimap {
  height: 220px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: var(--sp-1);
}
/* Sin JS el minimapa no se pinta; con JS minimap.js marca la caja con .is-js y la monta al entrar en pantalla. */
.minimap:empty:not(.is-js) {
  display: none;
}
.minimap-sm {
  height: 180px;
}
.coords-text {
  margin: 0;
}
.gallery {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-2);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-2);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-half);
  margin-top: var(--sp-half);
}

/* Visor de fotos (js/lightbox.js): ventana emergente a pantalla completa con carrusel. */
a[data-lightbox] {
  cursor: zoom-in;
}
html:has(dialog.lightbox[open]) {
  overflow: hidden;
}
dialog.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 0.97);
  color: var(--text);
  overscroll-behavior: contain;
}
dialog.lightbox::backdrop {
  background: rgb(0 0 0 / 0.6);
}
.lightbox-figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: calc(var(--sp-6) + env(safe-area-inset-top)) var(--sp-2) calc(var(--sp-3) + env(safe-area-inset-bottom));
}
.lightbox-img {
  max-width: min(100%, 1400px);
  max-height: calc(100dvh - 200px);
  object-fit: contain;
  border-radius: var(--r-md);
  touch-action: pan-y;
  user-select: none;
  transition: opacity 0.15s ease;
}
.lightbox-img.is-loading {
  opacity: 0.35;
}
.lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  justify-content: center;
  align-items: baseline;
  max-width: 60ch;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.lightbox-count {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-caps);
  color: var(--gold);
}
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgb(0 0 0 / 0.6);
  color: var(--text);
  cursor: pointer;
}
.lightbox-btn:hover {
  background: var(--surface-3);
}
.lightbox-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.lightbox-btn[hidden] {
  display: none;
}
.lightbox-close {
  top: calc(var(--sp-2) + env(safe-area-inset-top));
  right: calc(var(--sp-2) + env(safe-area-inset-right));
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev {
  left: calc(var(--sp-2) + env(safe-area-inset-left));
}
.lightbox-next {
  right: calc(var(--sp-2) + env(safe-area-inset-right));
}
@media (max-width: 640px) {
  /* En el móvil las flechas van abajo para no tapar la foto (también se puede deslizar). */
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: calc(var(--sp-2) + env(safe-area-inset-bottom));
    transform: none;
  }
  .lightbox-figure {
    padding-bottom: calc(var(--sp-6) + var(--sp-2) + env(safe-area-inset-bottom));
  }
}
.upload-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  align-items: flex-start;
}
.upload-form > label {
  display: inline-flex;
  gap: var(--sp-1);
  align-items: center;
}
.upload-form p {
  margin: 0;
}

/* Denuncias plegables */
.report {
  display: inline-block;
}
.report > summary,
.block-form .btn {
  list-style: none;
  color: var(--text-muted);
}
.block-form .btn:hover {
  color: var(--text);
}
.report > summary::-webkit-details-marker {
  display: none;
}
.report[open] > summary {
  color: var(--text);
}
/* Denuncia del baño en la cabecera de la ficha: botón de 44 px con texto normal; abierta, ocupa su propia fila. */
.report-big > summary {
  color: var(--text);
}
.detail-actions .report-big[open] {
  flex-basis: 100%;
}
.detail-actions .report-big .report-form {
  max-width: 420px;
}
.report-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-top: var(--sp-1);
  padding: var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  min-width: min(280px, 80vw);
}
.report-form label {
  font-size: var(--fs-sm);
  font-weight: 600;
}
/* Pista que solo sale con un motivo concreto elegido (p. ej. «La ubicación está mal» → proponer el punto bueno). */
.report-hint {
  display: none;
  margin: 0;
}
.report-form:has(option[data-hint]:checked) .report-hint {
  display: block;
}
.report-hint .icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}
/* Borrar baño (admins): mismo plegable que la denuncia, en rojo. */
.report.delete-toilet > summary,
.report.delete-toilet[open] > summary {
  color: var(--danger);
}
.delete-toilet .check {
  font-weight: 400;
}

/* Reseñas */
.reviews {
  margin-top: var(--sp-5);
}
.tabs {
  display: flex;
  gap: var(--sp-1);
}
.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h);
  padding: 0 var(--sp-2);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
}
.tabs a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.tabs a[aria-current='true'] {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.reviews-grid {
  display: grid;
  gap: var(--sp-3);
  align-items: start;
}
@media (min-width: 900px) {
  .reviews-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }
}
.review-form {
  gap: var(--sp-2);
}
.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.review {
  padding: var(--sp-2) 0 var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.review:first-child {
  padding-top: 0;
}
.review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
  margin-bottom: var(--sp-1);
}
.review-author {
  font-weight: 700;
}
.review-subs {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.review-subs strong {
  color: var(--text);
}
.review-body {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--sp-1);
}
.vote[aria-pressed='true'] {
  background: var(--primary);
  color: var(--on-primary);
}
.vote-static {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  min-height: var(--control-h-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
}
.vote-msg {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  align-self: center;
}

/* ---------- Ranking, perfil, actividad ---------- */
.ranking-grid,
.profile-grid {
  display: grid;
  gap: var(--sp-3);
  align-items: start;
}
@media (min-width: 900px) {
  .ranking-grid,
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
}
.leader {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
}
.leader:last-child {
  border-bottom: 0;
}
.leader-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-half);
}
.leader-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.leader-name:hover {
  text-decoration: underline;
}
.points {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  white-space: nowrap;
}
.points strong {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--text);
}
.level {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.level-step {
  color: var(--text-muted);
  font-weight: 500;
}
.level-4 {
  border-color: var(--gold);
}
.level-4 .icon {
  color: var(--gold);
  width: 14px;
  height: 14px;
}
.profile-head .level {
  font-size: var(--fs-sm);
  padding: 4px 14px;
}
.level-card {
  margin-bottom: var(--sp-3);
}
.points-big {
  font-size: var(--fs-lg);
  color: var(--text-muted);
}
.points-big strong {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--text);
  margin-right: var(--sp-1);
}
.progress {
  appearance: none;
  width: 100%;
  height: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
  display: block;
  margin-bottom: var(--sp-1);
}
.progress::-webkit-progress-bar {
  background: var(--surface-3);
}
.progress::-webkit-progress-value {
  background: var(--primary);
}
.progress::-moz-progress-bar {
  background: var(--primary);
}
.level-ladder {
  list-style: none;
  padding: 0;
  margin: var(--sp-2) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.level-ladder li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.level-ladder li.reached {
  border-style: solid;
  border-color: var(--text);
  color: var(--text);
}
.level-ladder .icon {
  width: 14px;
  height: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin: 0 0 var(--sp-5);
}
@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
.stat {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}
.stat dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: 1;
}
.feed {
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
}
.feed-item {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
}
.feed-item > div {
  min-width: 0;
}
.feed-item p {
  margin: 0 0 var(--sp-half);
}
.feed-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.feed-thumb {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  margin: var(--sp-1) 0;
}
.feed-item-plain {
  display: block;
}

/* ---------- Admin ---------- */
.admin-section {
  margin-bottom: var(--sp-5);
}
.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.admin-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.admin-item p {
  margin: 0;
}
.admin-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-2);
  align-items: center;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.admin-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.admin-thumb {
  max-width: 200px;
  border-radius: var(--r-md);
}
.quote {
  margin: 0;
  padding-left: var(--sp-2);
  border-left: 2px solid var(--line-strong);
  color: var(--text-muted);
  white-space: pre-line;
}

/* ---------- Auth y errores (marcado de src/lib) ---------- */
.auth {
  max-width: 460px;
  margin: 0 auto;
}
.auth h1 {
  font-size: var(--fs-display-sm);
  font-weight: 700;
}
.auth .form {
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.auth .btn-primary {
  min-height: 52px;
  font-size: var(--fs-md);
}
/* Marcado del núcleo: casilla con texto (registro), página «Tu cuenta» y bloqueados */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}
.account dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sp-half) var(--sp-2);
  margin: 0 0 var(--sp-2);
}
.account dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-muted);
  align-self: center;
}
.account dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.account h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: var(--sp-4) 0 var(--sp-1);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.account .btn-danger {
  min-height: 52px;
  font-size: var(--fs-md);
}
.blocked-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blocked-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
  border-bottom: 1px solid var(--line);
}
.blocked-list form {
  margin: 0;
}
.blocked-list .btn {
  border-color: var(--line-strong);
}
.blocked-list .btn:hover {
  background: var(--surface-3);
}

/* Menú de usuario (<details>) */
.user-menu {
  position: relative;
}
.user-menu > summary {
  list-style: none;
}
.user-menu > summary::-webkit-details-marker {
  display: none;
}
.user-menu .chev {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
  transition: transform var(--ease);
}
.user-menu[open] .chev {
  transform: none;
}
.user-menu[open] > summary {
  background: var(--surface-2);
}
.user-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + var(--sp-half));
  z-index: 30;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: var(--sp-half);
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.user-menu-list a,
.user-menu-list button {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  width: 100%;
  min-height: var(--control-h);
  padding: 0 var(--sp-2);
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font: 500 var(--fs-sm) / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.user-menu-list a:hover,
.user-menu-list button:hover {
  background: var(--surface-3);
}
.user-menu-list a[aria-current='page'] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.user-menu-list form {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: var(--sp-half);
  margin-top: var(--sp-half);
}

/* Contador (pendientes de revisión en Admin y en la cola) */
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 0.4em;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font: 700 var(--fs-xs) / 1 var(--font-body);
  letter-spacing: 0;
  vertical-align: 0.35em;
}
.display-sm .count-badge {
  font-size: var(--fs-sm);
}

/* Envíos sin cuenta */
.alert-info {
  border-left-color: var(--text);
}
.alert p {
  margin: 0 0 var(--sp-1);
}
/* Campo trampa para bots: fuera de la vista y del orden de tabulación. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.thanks-card p {
  margin-top: 0;
}
.pending-banner .admin-actions {
  margin-top: var(--sp-1);
}
.pending-item {
  gap: var(--sp-2);
}
.pending-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
}
.pending-grid {
  display: grid;
  gap: var(--sp-2);
}
@media (min-width: 760px) {
  .pending-grid {
    grid-template-columns: minmax(240px, 1fr) 1.2fr;
  }
}
.pending-media .admin-thumb {
  margin-top: var(--sp-1);
}
.pending-data {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.pending-data dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-muted);
}
.pending-data dd {
  margin: 0;
}
.pending-data .quote {
  display: block;
}
.profile-block {
  margin-top: var(--sp-4);
}

/* Enlaces legales del pie y del panel del mapa */
.legal-links {
  list-style: none;
  margin: 0 0 var(--sp-2);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-2);
}
.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.legal-links a:hover {
  color: var(--text);
}
.panel-footer .legal-links {
  margin-bottom: var(--sp-1);
}
.error-page {
  max-width: 560px;
  margin: var(--sp-5) auto;
  text-align: center;
}
.error-page h1 {
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
}

/* ---------- Pie ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-4) var(--sp-2);
}
.footer-inner {
  max-width: var(--content-w);
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  flex-wrap: wrap;
}
.site-links {
  list-style: none;
  margin: 0 0 var(--sp-2);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-half) var(--sp-2);
}
.site-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h);
  font-size: var(--fs-sm);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .only-touch {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .btn:active,
  .panic:active {
    transform: none;
  }
}

@media (forced-colors: active) {
  .btn,
  .badge,
  .rating-opt > span,
  .choice {
    border: 1px solid CanvasText;
  }
}

/* ---------- Publicidad propia (siempre etiquetada; la app copia este bloque en apps/mestoy/src/styles/power.css) ---------- */
/* Etiqueta «Patrocinado» / «Publicidad» / «Enlaces de afiliado»: legible, sin oro (el oro es de los tronos). */
.ad-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--text);
  font: 600 0.6875rem/1.4 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.panic-sponsor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 var(--sp-1);
  margin: var(--sp-half) 0 0;
  font-size: var(--fs-xs);
}
.panic-sponsor a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--control-h);
  color: var(--text-muted);
  text-decoration: none;
}
.panic-sponsor a:hover strong,
.panic-sponsor a:focus-visible strong {
  text-decoration: underline;
}
.panic-sponsor strong {
  color: var(--text);
}
.panic-sponsor img {
  height: 20px;
  width: auto;
}
/* Tarjeta de sitio patrocinado (encima de «Los más cercanos»), aviso de la ficha y vista previa: borde discontinuo
   para que se distinga a simple vista de los resultados. */
.sponsor-card,
.sponsor-note {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-1);
  padding: var(--sp-2);
}
.sponsor-card {
  margin: 0 0 var(--sp-2);
}
.sponsor-card-head,
.sponsor-note-head {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin: 0 0 var(--sp-1);
}
.sponsor-card-head .dist {
  margin-left: auto;
}
.sponsor-card-head img,
.sponsor-note-head img {
  height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.sponsor-card .toilet-name {
  display: block;
}
.sponsor-card-text {
  margin: var(--sp-half) 0 0;
  font-size: var(--fs-sm);
}
.sponsor-card .item-actions {
  margin-top: var(--sp-1);
}
.sponsor-note {
  margin: 0 0 var(--sp-3);
}
.sponsor-note p:last-of-type {
  margin-bottom: var(--sp-1);
}
.popup-sponsored > .ad-tag {
  display: flex;
  width: fit-content;
  margin-bottom: var(--sp-half);
}
.popup-sponsored .sponsor-card-text {
  color: var(--text-muted);
}
.toilet-meta .ad-tag {
  font-size: 0.625rem;
}
/* Chip de institución: en el mapa, bajo la leyenda (abajo chocaría con la atribución en el móvil). */
.city-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  max-width: 420px;
  min-height: 36px;
  padding: 4px 6px 4px 12px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: var(--fs-xs);
  line-height: 1.3;
  text-decoration: none;
}
.map-shell > .city-chip {
  position: absolute;
  z-index: 1;
  top: calc(var(--sp-1) + 66px + 46px);
  left: var(--sp-1);
  max-width: calc(100% - var(--sp-2) - 56px);
}
@media (max-width: 899px) {
  /* En el móvil el mapa es pequeño: letra menor y, con la hoja abierta (el mapa casi no se ve), fuera. */
  .map-shell > .city-chip {
    min-height: 32px;
    padding: 3px 4px 3px 10px;
    font-size: 0.6875rem;
    line-height: 1.25;
  }
  .map-shell:has(.panel.is-open) > .city-chip {
    display: none;
  }
  .map-shell > .city-chip .ad-tag {
    font-size: 0.5625rem;
    padding: 0 6px;
  }
}
.city-chip:hover {
  border-color: var(--text);
}
@media (min-width: 900px) {
  .map-shell > .city-chip {
    left: calc(var(--panel-w) + var(--sp-2));
    top: calc(var(--sp-2) + 66px + 46px);
    max-width: min(460px, calc(100% - var(--panel-w) - var(--sp-4) - 56px));
  }
}
.city-chip img {
  height: 18px;
  width: auto;
}
.legend-sponsor {
  display: inline-grid;
  place-items: center;
  width: 32px;
  flex: none;
}
.kit-line {
  margin: var(--sp-2) 0 0;
  padding-top: var(--sp-1);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-half) var(--sp-1);
}
/* /kit */
.affiliate-note {
  font-size: var(--fs-sm);
  max-width: 70ch;
}
.affiliate-note .ad-tag {
  margin-right: var(--sp-half);
}
.kit-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--sp-2);
}
.kit-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.kit-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
.kit-name {
  font-size: var(--fs-lg);
  margin: 0;
}
.kit-foot {
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1);
}
.kit-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
}
/* AdSense (solo páginas secundarias, tras el contenido) */
.ad-slot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
  min-height: 120px;
}
.ad-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-muted);
  margin: 0 0 var(--sp-1);
}
/* /anunciate */
.ad-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.ad-section {
  margin-bottom: var(--sp-5);
}
.ad-section > h2 {
  margin-bottom: var(--sp-2);
}
.ad-stats {
  margin-bottom: var(--sp-2);
}
.ad-stats .stat {
  gap: var(--sp-1);
}
.ad-cities {
  font-size: var(--fs-sm);
}
.ad-cities .h-label {
  display: block;
  margin-bottom: var(--sp-half);
}
.ad-formats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}
@media (min-width: 900px) {
  .ad-formats {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ad-format h3 {
  font-size: var(--fs-xl);
  margin: 0 0 var(--sp-half);
}
.ad-format .h-label {
  margin-bottom: var(--sp-1);
}
.ad-format p:last-child {
  margin: 0;
}
.ad-format-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: 1;
  margin: 0 0 var(--sp-1);
  color: var(--text-muted);
}
.ad-rules {
  list-style: none;
  margin: 0 0 var(--sp-2);
  padding: 0;
  display: grid;
  gap: var(--sp-1);
  max-width: 80ch;
}
.ad-rules li {
  display: flex;
  gap: var(--sp-1);
  align-items: flex-start;
}
.ad-rules .icon {
  flex: none;
  margin-top: 2px;
}
.ad-mail {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  overflow-wrap: anywhere;
}
.ad-contact p:last-child {
  margin: 0;
}
/* Admin de patrocinios */
.preview {
  margin: var(--sp-1) 0;
  padding: var(--sp-2);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.preview-panel {
  max-width: var(--panel-w);
}
.kit-item-preview {
  max-width: 280px;
}
.badge-live {
  border-color: var(--success);
  color: var(--success);
}

/* Dossier en PDF (scripts/dossier-mestoy.mjs imprime /anunciate en una sola página A4, con el fondo negro). */
@media print {
  @page {
    size: A4;
    margin: 0;
  }
  html,
  body {
    background: var(--surface);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .skip-link,
  .site-header,
  .site-footer,
  .ad-slot,
  .ad-cta,
  .no-print {
    display: none !important;
  }
  .main {
    max-width: none;
    padding: 10mm 12mm;
  }
  .anunciate {
    font-size: 9.5pt;
    line-height: 1.4;
  }
  .anunciate .page-head {
    margin-bottom: 4mm;
  }
  .anunciate .display {
    font-size: 28pt;
  }
  .anunciate .display-sm {
    font-size: 17pt;
  }
  .anunciate .lead {
    font-size: 11pt;
    max-width: none;
    margin-bottom: 0;
  }
  .anunciate .ad-cta {
    margin-top: 3mm;
  }
  .anunciate .ad-section {
    margin-bottom: 4mm;
    break-inside: avoid;
  }
  .anunciate .ad-format p:last-child {
    font-size: 8.5pt;
  }
  .anunciate .ad-stats {
    grid-template-columns: repeat(6, 1fr);
    gap: 2mm;
  }
  .anunciate .stat {
    padding: 2.5mm;
    gap: 1.5mm;
  }
  .anunciate .stat dd {
    font-size: 19pt;
    line-height: 1.15;
  }
  .anunciate .stat dt {
    font-size: 6.5pt;
    line-height: 1.3;
  }
  .anunciate .ad-formats {
    grid-template-columns: repeat(3, 1fr);
    gap: 3mm;
  }
  .anunciate .card {
    padding: 3.5mm;
  }
  .anunciate .ad-format h3 {
    font-size: 13pt;
  }
  .anunciate .ad-format-num {
    font-size: 20pt;
  }
  .anunciate .ad-rules {
    max-width: none;
    grid-template-columns: 1fr 1fr;
    gap: 1.5mm 5mm;
  }
  .anunciate .ad-mail {
    font-size: 16pt;
  }
  /* Cabe en una sola página A4 aunque crezca la lista de ciudades. */
  .anunciate {
    zoom: 0.86;
  }
  .anunciate p {
    margin-bottom: 2mm;
  }
  .anunciate .ad-format .h-label {
    letter-spacing: 0.05em;
  }
  .anunciate .ad-contact {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 6mm;
    align-items: center;
    margin-bottom: 0;
  }
  .anunciate .ad-contact > h2 {
    grid-column: 1 / -1;
    margin-bottom: 1mm;
  }
  .anunciate .ad-contact p {
    margin: 0;
  }
}

/* Rey del trono (ficha del baño): la mejor marca de cada juego de jugar.cagando.es conseguida en este baño. */
.kings {
  list-style: none;
  margin: 0 0 var(--sp-1);
  padding: 0;
}
.king {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0 var(--sp-1);
  padding: var(--sp-1) 0;
  border-bottom: 1px solid var(--line);
}
.king-game {
  grid-column: 1 / -1;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--text-muted);
}
.king-score {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--gold);
}
