/* dequepartido.es · hoja de estilo única
   Dirección: consola cívica oscura, datos grandes y una sola señal naranja. */

@font-face {
  font-family: "Switzer";
  src: url("fonts/switzer-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("fonts/switzer-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("fonts/switzer-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("fonts/switzer-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0a0c10;
  --bg-soft: #0e1117;
  --panel: #12161e;
  --panel-raised: #171c26;
  --panel-soft: #10141b;
  --line: #28303d;
  --line-soft: #1c222c;
  --ink: #f4f1ea;
  --muted: #a1a9b6;
  --muted-2: #8791a1;
  --accent: #ff6a3d;
  --accent-strong: #ff7d55;
  --accent-soft: rgba(255, 106, 61, 0.13);
  --accent-2: #f3c969;
  --on-accent: #16100d;
  --on-accent-2: #201a0a;
  --good: #7ee2a8;
  --good-soft: rgba(126, 226, 168, 0.11);
  --bad: #ff8080;
  --bad-soft: rgba(255, 128, 128, 0.11);

  --pp: #4d92e8;
  --psoe: #f05d62;
  --vox: #77c45b;
  --sumar: #e06cae;
  --podemos: #9b7cff;
  --junts: #44b8a8;

  --bg-glow-accent: rgba(255, 106, 61, 0.12);
  --bg-glow-blue: rgba(77, 146, 232, 0.07);
  --grid-line: rgba(255, 255, 255, 0.022);
  --header-line: rgba(40, 48, 61, 0.72);
  --header-bg: rgba(10, 12, 16, 0.82);
  --menu-bg: rgba(10, 12, 16, 0.97);
  --backdrop: rgba(4, 6, 9, 0.72);
  --ghost-hover: rgba(255, 255, 255, 0.04);
  --panel-sheen: rgba(255, 255, 255, 0.025);
  --inset-line: rgba(255, 255, 255, 0.05);
  --panel-inset: rgba(255, 255, 255, 0.035);
  --panel-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
  --hero-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  --hero-overlay: rgba(8, 10, 14, 0.96);
  --hero-glow: rgba(255, 106, 61, 0.14);
  --hero-caption: rgba(244, 241, 234, 0.56);
  --hero-image-filter: grayscale(1) contrast(1.12) brightness(0.78);
  --sample-bg: rgba(12, 15, 20, 0.9);
  --sample-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  --accent-border: rgba(255, 106, 61, 0.42);
  --accent-line: rgba(255, 106, 61, 0.7);
  --accent-2-soft: rgba(243, 201, 105, 0.07);
  --accent-2-border: rgba(243, 201, 105, 0.3);
  --accent-2-line: rgba(243, 201, 105, 0.25);
  --good-border: rgba(126, 226, 168, 0.65);
  --good-line: rgba(126, 226, 168, 0.25);
  --bad-border: rgba(255, 128, 128, 0.65);
  --bad-line: rgba(255, 128, 128, 0.25);
  --dialog-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  --toast-border: rgba(255, 106, 61, 0.4);
  --toast-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);

  --font: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 18px;
  --radius-sm: 11px;
  --max: 1320px;
  --pad: clamp(1.1rem, 3.4vw, 3.5rem);
  --section-y: clamp(4.5rem, 8vw, 8.5rem);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg: #f3efe7;
    --bg-soft: #ebe5db;
    --panel: #fbf8f3;
    --panel-raised: #ffffff;
    --panel-soft: #f0ebe2;
    --line: #d5ccbf;
    --line-soft: #e2dacf;
    --ink: #171410;
    --muted: #5c564e;
    --muted-2: #6d665c;
    --accent: #b83a12;
    --accent-strong: #9f2f0c;
    --accent-soft: rgba(184, 58, 18, 0.1);
    --accent-2: #7a4a00;
    --on-accent: #fffaf2;
    --on-accent-2: #fffaf2;
    --good: #176b45;
    --good-soft: rgba(23, 107, 69, 0.1);
    --bad: #b42318;
    --bad-soft: rgba(180, 35, 24, 0.09);

    --pp: #1f5fae;
    --psoe: #b3262e;
    --vox: #3a7226;
    --sumar: #a63370;
    --podemos: #5b3fc4;
    --junts: #1f7a6d;

    --bg-glow-accent: rgba(184, 58, 18, 0.1);
    --bg-glow-blue: rgba(31, 95, 174, 0.06);
    --grid-line: rgba(23, 20, 16, 0.035);
    --header-line: rgba(213, 204, 191, 0.85);
    --header-bg: rgba(243, 239, 231, 0.86);
    --menu-bg: rgba(243, 239, 231, 0.98);
    --backdrop: rgba(23, 20, 16, 0.42);
    --ghost-hover: rgba(23, 20, 16, 0.06);
    --panel-sheen: rgba(255, 255, 255, 0.42);
    --inset-line: rgba(255, 255, 255, 0.85);
    --panel-inset: rgba(255, 255, 255, 0.7);
    --panel-shadow: 0 20px 60px rgba(48, 36, 22, 0.1);
    --hero-shadow: 0 40px 100px rgba(48, 36, 22, 0.18);
    --hero-overlay: rgba(23, 20, 16, 0.82);
    --hero-glow: rgba(184, 58, 18, 0.12);
    --hero-caption: rgba(255, 250, 242, 0.72);
    --hero-image-filter: grayscale(1) contrast(1.03) brightness(0.86);
    --sample-bg: rgba(251, 248, 243, 0.92);
    --sample-shadow: 0 24px 60px rgba(48, 36, 22, 0.22);
    --accent-border: rgba(184, 58, 18, 0.45);
    --accent-line: rgba(184, 58, 18, 0.65);
    --accent-2-soft: rgba(122, 74, 0, 0.08);
    --accent-2-border: rgba(122, 74, 0, 0.35);
    --accent-2-line: rgba(122, 74, 0, 0.25);
    --good-border: rgba(23, 107, 69, 0.55);
    --good-line: rgba(23, 107, 69, 0.25);
    --bad-border: rgba(180, 35, 24, 0.55);
    --bad-line: rgba(180, 35, 24, 0.22);
    --dialog-shadow: 0 40px 100px rgba(48, 36, 22, 0.28);
    --toast-border: rgba(184, 58, 18, 0.45);
    --toast-shadow: 0 20px 60px rgba(48, 36, 22, 0.2);
  }
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 280px;
  margin: 0;
  background:
    radial-gradient(1100px 640px at 88% -8%, var(--bg-glow-accent), transparent 62%),
    radial-gradient(900px 600px at 0% 28%, var(--bg-glow-blue), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}

kbd {
  display: inline-grid;
  min-width: 1.65em;
  min-height: 1.65em;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-raised);
  color: var(--ink);
  font-size: 0.75rem;
}

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

.wrap {
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Cabecera */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--header-line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.head-inner {
  display: flex;
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  min-height: 72px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 1;
}

.brand-mark span {
  color: var(--on-accent);
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.brand-name span {
  color: var(--muted-2);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.desktop-nav a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 140ms ease;
}

.desktop-nav a {
  min-height: 44px;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--ink);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  position: fixed;
  inset: 72px 0 0;
  z-index: 54;
  background: var(--backdrop);
  content: "";
}

.mobile-nav {
  position: fixed;
  top: 72px;
  right: 0;
  left: 0;
  z-index: 55;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  background: var(--menu-bg);
  backdrop-filter: blur(18px);
}

.mobile-nav nav {
  display: grid;
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  margin-inline: auto;
  padding: 12px 0 18px;
  gap: 4px;
}

.mobile-nav a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 1.05rem;
}

/* Botones y enlaces */

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--muted-2);
  background: var(--ghost-hover);
}

.text-button {
  display: inline-flex;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.text-button:hover {
  color: var(--ink);
}

/* Ticker */

.ticker {
  overflow-x: auto;
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: none;
}

.ticker::-webkit-scrollbar {
  display: none;
}

.ticker-track {
  display: flex;
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  min-width: max-content;
  margin-inline: auto;
  padding: 11px 0;
  align-items: center;
  gap: 26px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-live {
  color: var(--ink);
}

.ticker-live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Hero */

.hero {
  display: grid;
  padding-block: clamp(3.5rem, 7vw, 7rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.panel-label {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.eyebrow-line {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4rem, 9vw, 8.6rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.tagline {
  margin-top: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.1vw, 0.86rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lede {
  max-width: 53ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  margin-top: 27px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-stats {
  display: grid;
  margin-top: clamp(2.2rem, 4vw, 3.5rem);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-stats dt {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-figure {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--hero-shadow);
}

.hero-figure::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--hero-overlay), transparent 55%),
    linear-gradient(120deg, var(--hero-glow), transparent 55%);
  content: "";
  pointer-events: none;
}

.hero-figure picture {
  display: block;
  height: 100%;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  filter: var(--hero-image-filter);
}

.hero-figure figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--hero-caption);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-sample {
  position: absolute;
  right: -16px;
  bottom: -26px;
  z-index: 2;
  width: min(82%, 380px);
  padding: 17px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--sample-bg);
  box-shadow: var(--sample-shadow);
  backdrop-filter: blur(16px);
}

.sample-top {
  display: flex;
  justify-content: space-between;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sample-text {
  margin-top: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.sample-options {
  display: flex;
  margin-top: 13px;
  flex-wrap: wrap;
  gap: 5px;
}

.sample-options span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.sample-note {
  margin-top: 12px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Secciones */

.workspace,
.section {
  padding-block: var(--section-y);
}

.workspace {
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: grid;
  margin-bottom: clamp(1.6rem, 3vw, 2.8rem);
  align-items: end;
  gap: 24px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
}

.section-kicker {
  margin-bottom: 13px;
}

.section-head h2,
.about h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-note {
  max-width: 40ch;
  justify-self: end;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Pestañas juego / comparador */

.workspace-tabs {
  display: flex;
  width: min(100%, 460px);
  margin: 0 auto 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  gap: 4px;
}

.workspace-tabs button {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.workspace-tabs button[aria-selected="true"] {
  background: var(--panel-raised);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--inset-line) inset;
}

.workspace-tabs button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

.workspace-tabs button.is-locked::after {
  margin-left: 8px;
  color: var(--muted-2);
  content: "en partida";
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Layout del juego y el comparador */

.workspace-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.workspace-grid > .game-shell {
  width: min(100%, 980px);
  margin-inline: auto;
}

.workspace-grid > .is-tab-hidden {
  display: none;
}

.panel {
  min-width: 0;
  padding: clamp(18px, 2.3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, var(--panel-sheen), transparent 40%),
    var(--panel);
  box-shadow: 0 1px 0 var(--panel-inset) inset, var(--panel-shadow);
}

.panel-topline {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px var(--good-soft);
}

.panel-status-muted {
  color: var(--muted-2);
}

.panel-title {
  max-width: 20ch;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.02;
}

.panel-title-small {
  max-width: none;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.panel-lede {
  max-width: 48ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.5;
}

/* Modos */

.mode-grid {
  display: grid;
  margin-top: 22px;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mode-card {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 13px;
  align-items: start;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease;
}

.mode-card:hover {
  border-color: var(--muted-2);
  background: var(--panel-raised);
}

.mode-card.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.mode-index {
  align-self: start;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.mode-body {
  display: grid;
  gap: 2px;
}

.mode-body strong {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mode-body span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.mode-arrow {
  color: var(--muted-2);
  font-size: 0.9rem;
}

.mode-card.is-active .mode-arrow {
  color: var(--accent);
}

.theme-field {
  display: grid;
  margin-top: 14px;
  gap: 6px;
}

.theme-field label,
.select-field span,
.alias-field span,
.share-box label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

select,
input[type="text"],
input[type="search"] {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.86rem;
}

select {
  cursor: pointer;
}

input::placeholder {
  color: var(--muted-2);
}

select:focus-visible,
input:focus-visible {
  border-color: var(--accent);
}

.start-actions {
  display: flex;
  margin-top: 19px;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.microcopy {
  margin-top: 15px;
  color: var(--muted-2);
  font-size: 0.75rem;
  line-height: 1.5;
}

.microcopy kbd {
  margin-inline: 1px;
  vertical-align: 1px;
}

/* HUD y pregunta */

.game-hud {
  display: grid;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hud-cell {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line-soft);
}

.hud-cell:last-child {
  border-right: 0;
}

.hud-cell span {
  display: block;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hud-cell strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.hud-timer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-soft);
  border-right: 0;
}

.hud-timer strong {
  color: var(--accent-2);
}

.progress,
.timer-track {
  overflow: hidden;
  height: 3px;
  border-radius: 99px;
  background: var(--line-soft);
}

.progress {
  margin-bottom: 8px;
}

.progress span,
.timer-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 220ms ease;
}

.timer-track {
  margin-bottom: 16px;
}

.timer-track span {
  width: 100%;
  background: var(--accent-2);
  transition: width 100ms linear;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.question-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.meta-separator {
  color: var(--line);
}

#area {
  color: var(--accent-2);
}

#mode-label {
  color: var(--muted);
}

.question {
  margin-top: 15px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.options {
  display: grid;
  margin-top: 20px;
  gap: 7px;
}

.option {
  display: grid;
  width: 100%;
  min-height: 48px;
  padding: 8px 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
  gap: 11px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease;
}

.option:hover:not(:disabled) {
  border-color: var(--muted-2);
  background: var(--panel-raised);
}

.option:disabled {
  cursor: default;
}

.option-key {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.option-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.option-mark {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.option.is-correct {
  border-color: var(--good-border);
  background: var(--good-soft);
}

.option.is-correct .option-key,
.option.is-correct .option-mark {
  border-color: var(--good-border);
  color: var(--good);
}

.option.is-wrong {
  border-color: var(--bad-border);
  background: var(--bad-soft);
}

.option.is-wrong .option-key,
.option.is-wrong .option-mark {
  border-color: var(--bad-border);
  color: var(--bad);
}

/* Feedback */

.feedback {
  margin-top: 15px;
}

.feedback:empty {
  display: none;
}

.feedback-main {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.feedback-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.feedback-source {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.feedback-actions {
  display: flex;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.feedback.is-correct {
  padding-top: 13px;
  border-top: 1px solid var(--good-line);
}

.feedback.is-wrong {
  padding-top: 13px;
  border-top: 1px solid var(--bad-line);
}

/* Fin de partida */

#game-over {
  padding-top: 3px;
}

.result-head {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.result-head h3 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
}

.result-head p:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.85rem;
}

.result-score {
  display: grid;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  grid-template-columns: 1fr 1fr;
}

.result-score > div {
  padding: 13px;
  background: var(--bg-soft);
}

.result-score > div + div {
  border-left: 1px solid var(--line);
}

.result-score span {
  display: block;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-score strong {
  display: block;
  margin-top: 2px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
}

.result-score > div + div strong {
  color: var(--ink);
}

.challenge-result {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--accent-2-border);
  border-radius: 7px;
  background: var(--accent-2-soft);
  color: var(--accent-2);
  font-size: 0.8rem;
}

.share-box {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.share-row {
  display: flex;
  margin-top: 7px;
  gap: 6px;
}

.share-row input {
  min-width: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.result-actions {
  display: flex;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 9px;
}

/* Reto */

.challenge-banner {
  display: flex;
  margin-bottom: 18px;
  padding: 11px 12px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--accent-2-border);
  border-radius: 8px;
  background: var(--accent-2-soft);
}

.challenge-signal {
  display: inline-grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--on-accent-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.challenge-banner p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.challenge-banner strong {
  color: var(--accent-2);
}

/* Comparador */

.explorer {
  min-height: 640px;
}

.explorer-head {
  padding-bottom: 17px;
}

.filters {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--bg-soft);
}

.search-field {
  position: relative;
  display: block;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--muted-2);
  font-size: 1.1rem;
  transform: translateY(-52%);
  pointer-events: none;
}

.search-field input {
  padding-left: 34px;
}

.filter-row {
  display: flex;
  margin-top: 10px;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.chip-group {
  display: flex;
  overflow-x: auto;
  flex-wrap: wrap;
  gap: 5px;
  scrollbar-width: none;
}

.chip-group::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  min-height: 31px;
  padding: 0 9px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--muted-2);
  color: var(--ink);
}

.chip.is-active {
  border-color: var(--muted-2);
  background: var(--panel-raised);
  color: var(--ink);
}

.chip[data-party-filter]:not([data-party-filter="all"])::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--party-color, var(--muted));
  content: "";
}

.chip[data-party-filter="pp"] {
  --party-color: var(--pp);
}

.chip[data-party-filter="psoe"] {
  --party-color: var(--psoe);
}

.chip[data-party-filter="vox"] {
  --party-color: var(--vox);
}

.chip[data-party-filter="sumar"] {
  --party-color: var(--sumar);
}

.chip[data-party-filter="podemos"] {
  --party-color: var(--podemos);
}

.chip[data-party-filter="junts"] {
  --party-color: var(--junts);
}

.select-field {
  display: grid;
  min-width: 150px;
  gap: 5px;
}

.select-field select {
  min-height: 32px;
  padding: 0 8px;
  font-size: 0.75rem;
}

.proposal-list {
  display: grid;
  margin-top: 14px;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proposal-card {
  display: flex;
  min-width: 0;
  padding: 14px;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--panel-soft);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.proposal-card:hover {
  border-color: var(--line);
  background: var(--panel-raised);
  transform: translateY(-1px);
}

.proposal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.party-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--party-color, var(--muted));
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.party-badge::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.party-badge[data-party="pp"] {
  --party-color: var(--pp);
}

.party-badge[data-party="psoe"] {
  --party-color: var(--psoe);
}

.party-badge[data-party="vox"] {
  --party-color: var(--vox);
}

.party-badge[data-party="sumar"] {
  --party-color: var(--sumar);
}

.party-badge[data-party="podemos"] {
  --party-color: var(--podemos);
}

.party-badge[data-party="junts"] {
  --party-color: var(--junts);
}

.proposal-area {
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.proposal-title {
  margin-top: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.22;
}

.proposal-text {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.42;
}

.proposal-note {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 5px;
  border: 1px solid var(--accent-2-line);
  border-radius: 3px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.proposal-source {
  margin-top: auto;
  padding-top: 11px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-decoration: none;
}

.proposal-source:hover {
  color: var(--accent);
}

.empty-state {
  margin-top: 14px;
  padding: 32px 20px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  text-align: center;
}

.empty-state p {
  color: var(--muted);
  font-size: 0.84rem;
}

.empty-title {
  margin-bottom: 4px;
  color: var(--ink) !important;
  font-weight: 600;
}

.empty-state .text-button {
  margin-top: 12px;
}

/* Ranking y perfil */

.ranking-grid {
  display: grid;
  align-items: start;
  gap: 20px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.alias-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alias-field input {
  width: 128px;
  min-height: 32px;
  padding: 0 8px;
  font-size: 0.75rem;
}

.ranking-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--line-soft);
}

.ranking-row {
  display: grid;
  padding: 10px 12px;
  align-items: center;
  background: var(--panel-soft);
  gap: 10px;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
}

.rank-pos {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.rank-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-mode {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.rank-score {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.rank-date {
  grid-column: 2 / -1;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.profile-stats {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-stat {
  padding: 12px;
  border-right: 1px solid var(--line-soft);
  background: var(--panel-soft);
}

.profile-stat:last-child {
  border-right: 0;
}

.profile-stat span {
  display: block;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-stat strong {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1;
}

.category-stats {
  display: grid;
  margin-top: 16px;
  gap: 9px;
}

.category-row {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: minmax(72px, 0.7fr) minmax(0, 1fr) auto;
}

.category-name {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-bar {
  overflow: hidden;
  height: 4px;
  border-radius: 99px;
  background: var(--line-soft);
}

.category-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.category-value {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.profile-insight {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.profile-insight strong {
  color: var(--ink);
}

/* Metodología */

.method-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.method-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.method-card h3 {
  margin-top: 16px;
  font-size: 1.04rem;
  letter-spacing: -0.025em;
}

.method-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.method-details {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.method-details details {
  border-bottom: 1px solid var(--line);
}

.method-details summary {
  padding: 16px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.method-details details p {
  max-width: 76ch;
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* Acerca de */

.about {
  display: grid;
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
}

.about-copy > p:not(.section-kicker) {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-actions {
  display: flex;
  margin-top: 22px;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.about-meta {
  display: grid;
  border-top: 1px solid var(--line);
}

.about-meta div {
  display: flex;
  padding: 13px 0;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}

.about-meta span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.about-meta strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: right;
}

/* 404 */

.not-found {
  display: grid;
  min-height: 100vh;
  padding-block: 70px;
  align-content: center;
  justify-items: start;
  gap: 18px;
}

.not-found h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 0.98;
}

.not-found .lede {
  max-width: 48ch;
  color: var(--muted);
}

/* Pie */

.site-foot {
  margin-top: var(--section-y);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.foot-inner {
  display: grid;
  padding-block: 34px;
  align-items: start;
  gap: 28px;
  grid-template-columns: 1fr auto;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-brand p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.foot-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.foot-inner nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
}

.foot-inner nav a:hover {
  color: var(--ink);
}

.foot-note {
  grid-column: 1 / -1;
  color: var(--muted-2);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Páginas editoriales */

.seo-body .site-foot {
  margin-top: 0;
}

.seo-main {
  padding-block: clamp(1.6rem, 4vw, 3.2rem) 0;
}

.breadcrumbs {
  display: flex;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs span[aria-hidden="true"] {
  opacity: 0.45;
}

.seo-hero {
  max-width: 980px;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.seo-hero h1 {
  max-width: 18ch;
  margin-top: 15px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.seo-lede {
  max-width: 68ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}

.seo-meta {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seo-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.seo-section {
  padding-block: clamp(2.1rem, 4vw, 4rem);
}

.seo-section + .seo-section {
  border-top: 1px solid var(--line-soft);
}

.seo-section-head {
  display: grid;
  margin-bottom: 24px;
  align-items: end;
  gap: 22px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.seo-section-head h2 {
  max-width: 22ch;
  font-size: clamp(1.65rem, 3.2vw, 2.7rem);
  line-height: 1;
}

.seo-section-note {
  max-width: 44ch;
  justify-self: end;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.seo-proposals {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-proposal {
  display: flex;
  min-width: 0;
  padding: 17px;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel-soft);
}

.seo-proposal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.seo-proposal h3 {
  margin-top: 11px;
  font-size: 1rem;
  line-height: 1.2;
}

.seo-proposal p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.seo-proposal .proposal-source {
  padding-top: 15px;
}

.seo-proposal .proposal-note {
  align-self: flex-start;
}

.seo-proposal .seo-reference {
  margin-top: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
}

.seo-proposal .seo-reference strong {
  color: var(--ink);
  font-weight: 600;
}

.party-group + .party-group {
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

.party-group-head {
  display: flex;
  padding-bottom: 12px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}

.party-group-head h3 {
  font-size: 1.2rem;
}

.party-group-head h3 span {
  margin-left: 4px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
}

.party-group-head a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.party-group-head a:hover {
  color: var(--ink);
}

.party-group .seo-proposals {
  margin-top: 14px;
}

.seo-link-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-link-card {
  display: flex;
  min-height: 190px;
  padding: 20px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.seo-link-card:hover {
  border-color: var(--muted-2);
  background: var(--panel-raised);
  transform: translateY(-1px);
}

.seo-link-card > span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-link-card strong {
  margin-top: 14px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.seo-link-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.seo-link-card em {
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.seo-cta {
  display: grid;
  padding: clamp(22px, 3.5vw, 38px);
  align-items: center;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 68%),
    var(--panel);
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.seo-cta h2 {
  max-width: 22ch;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.seo-cta p {
  max-width: 55ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.seo-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-related a {
  display: inline-flex;
  min-height: 38px;
  padding: 0 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.seo-related a:hover {
  border-color: var(--muted-2);
  color: var(--ink);
}

.seo-copy {
  display: grid;
  max-width: 72ch;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.seo-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.seo-copy .text-button {
  justify-self: start;
}

.seo-note {
  max-width: 72ch;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 0.8rem;
  line-height: 1.55;
}

.seo-callout {
  max-width: 78ch;
  margin-top: 24px;
  padding: 15px 18px;
  border: 1px solid var(--accent-2-border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.seo-callout strong {
  color: var(--ink);
  font-weight: 600;
}

.seo-callout a {
  color: var(--accent);
  text-decoration: none;
}

.seo-callout a:hover {
  text-decoration: underline;
}

/* Diálogo */

.method-dialog {
  width: min(calc(100% - 32px), 560px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--dialog-shadow);
}

.method-dialog::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(4px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.dialog-close {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
}

.dialog-close:hover {
  color: var(--ink);
}

.method-dialog h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 0.98;
}

.dialog-steps {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  counter-reset: step;
  gap: 13px;
  list-style: none;
}

.dialog-steps li {
  position: relative;
  padding-left: 31px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.dialog-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  content: "0" counter(step);
  counter-increment: step;
}

.dialog-steps strong {
  color: var(--ink);
}

.dialog-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.79rem;
}

.method-dialog .button {
  margin-top: 20px;
}

/* Toast */

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 14px;
  border: 1px solid var(--toast-border);
  border-radius: 8px;
  background: var(--panel-raised);
  color: var(--ink);
  font-size: 0.8rem;
  box-shadow: var(--toast-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(9px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 1180px) {
  .proposal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-visual {
    max-width: 760px;
  }

  .hero-figure,
  .hero-figure img {
    min-height: 460px;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .section-note {
    justify-self: start;
  }

  .mode-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticker {
    overflow: visible;
  }

  .ticker-track {
    width: 100%;
    min-width: 0;
    max-width: var(--max);
    padding: 10px var(--pad);
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    white-space: normal;
  }

  .ticker-track span {
    white-space: nowrap;
  }

  .ranking-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .method-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-meta {
    max-width: 520px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 78px;
  }

  .head-inner {
    min-height: 64px;
  }

  .mobile-nav {
    top: 64px;
    max-height: calc(100vh - 64px);
  }

  body.menu-open::before {
    inset: 64px 0 0;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .head-actions .button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.75rem;
  }

  .hero {
    padding-block: 2.8rem 3.4rem;
    gap: 2.4rem;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 16vw, 5.2rem);
  }

  .lede {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-figure,
  .hero-figure img {
    min-height: 360px;
  }

  .hero-sample {
    right: 10px;
    bottom: -18px;
    left: 10px;
    width: auto;
  }

  .sample-text {
    font-size: 0.96rem;
  }

  .hero-figure figcaption {
    display: grid;
    right: 12px;
    bottom: 12px;
    left: 12px;
    font-size: 0.75rem;
  }

  .panel {
    padding: 16px;
    border-radius: 14px;
  }

  .panel-topline {
    align-items: flex-start;
  }

  .panel-status {
    max-width: 45%;
    text-align: right;
  }

  .game-hud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hud-cell {
    padding: 9px 8px;
  }

  .hud-cell strong {
    font-size: 1.1rem;
  }

  .option {
    min-height: 50px;
  }

  .result-score strong {
    font-size: 1.65rem;
  }

  .share-row {
    flex-direction: column;
  }

  .share-row .button {
    width: 100%;
  }

  .filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .select-field {
    min-width: 0;
  }

  .proposal-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .proposal-card {
    padding: 12px;
  }

  .ranking-row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .rank-mode {
    display: none;
  }

  .rank-date {
    grid-column: 2 / -1;
  }

  .profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-stat {
    padding: 10px 8px;
  }

  .profile-stat strong {
    font-size: 1.05rem;
  }

  .category-row {
    grid-template-columns: minmax(64px, 0.8fr) minmax(0, 1fr) auto;
  }

  .foot-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-inner nav {
    justify-content: flex-start;
  }

  .foot-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .method-dialog {
    padding: 20px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .brand-name {
    display: none;
  }

  .workspace-tabs button.is-locked::after {
    display: none;
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  .alias-field {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .alias-field input {
    width: 100%;
  }

  .profile-stat span {
    font-size: 0.75rem;
  }
}

@media (max-width: 1180px) {
  .seo-proposals,
  .seo-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .seo-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .seo-section-note {
    justify-self: start;
  }

  .seo-cta {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .seo-main {
    padding-top: 1.4rem;
  }

  .seo-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .seo-proposals,
  .seo-link-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .seo-link-card {
    min-height: 0;
  }

  .seo-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .seo-cta-actions .button {
    width: 100%;
  }

  .party-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-head,
  .ticker,
  .workspace-tabs,
  .site-foot,
  .method-dialog,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .panel,
  .method-card {
    border-color: #ccc;
    background: #fff;
    box-shadow: none;
  }
}
