:root {
  --bg: #0a0e17;
  --bg-elevated: #111827;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --glass: rgba(17, 24, 39, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f1f5f9;
  --text-soft: #94a3b8;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.25);
  --nvidia: #76b900;
  --amd: #ed1c24;
  --intel: #0071c5;
  --apple: #a2aaad;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --scrollbar-size: 9px;
  --scrollbar-track: rgba(255, 255, 255, 0.02);
  --scrollbar-thumb: rgba(148, 163, 184, 0.22);
  --scrollbar-thumb-hover: rgba(118, 185, 0, 0.5);
}

* { box-sizing: border-box; }

button,
[type="button"],
[type="submit"],
[type="reset"] {
  font: inherit;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  overflow-x: hidden;
  max-width: 100%;
}

/* Barra de scroll lateral — estilo Components */
*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(118, 185, 0, 0.35) 0%,
    rgba(99, 102, 241, 0.35) 100%
  );
  border-radius: 999px;
  border: 2px solid var(--bg);
  background-clip: padding-box;
  min-height: 48px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(118, 185, 0, 0.55) 0%,
    rgba(99, 102, 241, 0.5) 100%
  );
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    180deg,
    rgba(118, 185, 0, 0.7) 0%,
    rgba(99, 102, 241, 0.65) 100%
  );
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  /* Sin overflow-x aquí: en móvil overflow-x:hidden + overflow-y:visible fuerza overflow-y:auto en body y rompe el scroll en iOS */
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99, 102, 241, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(118, 185, 0, 0.06), transparent);
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(20px);
  background: rgba(10, 14, 23, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 0;
  padding: 4px 0 2px;
}

.logo-gpu-mark {
  display: block;
  width: 88px;
  height: auto;
  max-height: 36px;
  margin-left: -8px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.logo-word-com {
  color: #f1f5f9;
  letter-spacing: 0.13em;
}

.logo-word-ponents {
  color: #76b900;
  letter-spacing: 0.11em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.header-nav-rail {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.nav-rail-indicator {
  position: absolute;
  top: 3px;
  left: 0;
  width: 0;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.32);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.18);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-rail-indicator--no-motion {
  transition: none !important;
}

.header-nav-rail--ready .nav-rail-indicator {
  opacity: 1;
}

.nav-rail-indicator--compert {
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.34);
  box-shadow: 0 2px 12px rgba(167, 139, 250, 0.18);
}

.ia-orbit-scene--nav .ia-orbit-arm--1 {
  animation-duration: 14s;
}

.ia-orbit-scene--nav .ia-orbit-arm--2 {
  animation-duration: 14s;
  animation-direction: reverse;
  animation-delay: -7s;
}

.nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-link.active {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.nav-link-compert.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.nav-label-short { display: none; }

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.nav-icon img {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.nav-icon-gpu img { width: 20px; height: auto; max-height: 9px; }
.nav-icon-cpu img { width: 14px; max-height: 14px; }
.nav-icon-game img { width: 16px; max-height: 11px; }
.nav-icon-pc img { width: auto; height: 14px; max-width: 11px; }

.nav-icon-compert {
  padding: 0;
  overflow: hidden;
  border-color: rgba(167, 139, 250, 0.25);
  background: rgba(30, 27, 75, 0.5);
}

.ia-orbit-scene--nav {
  width: 24px;
  height: 24px;
  position: relative;
}

.ia-orbit-scene--nav .ia-orbit-star {
  width: 7px;
  height: 7px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  grid-column: 3;
  grid-row: 1;
}

.header-actions-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.header-fuentes {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
  white-space: nowrap;
}

.header-fuentes:hover,
.header-fuentes.active {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.lang-toggle {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.lang-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(99, 102, 241, 0.22);
}

.lang-btn.active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.22);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* ── Hero (home) ── */
.hero {
  padding: 28px 0 48px;
}

.hero-shell {
  position: relative;
  overflow: visible;
  padding: 36px 36px 40px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(99, 102, 241, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(118, 185, 0, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 50% at 80% 100%, rgba(34, 211, 238, 0.08), transparent 45%),
    var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.hero-glow-a {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -40px;
  background: rgba(99, 102, 241, 0.18);
}

.hero-glow-b {
  width: 220px;
  height: 220px;
  bottom: -60px;
  right: 10%;
  background: rgba(118, 185, 0, 0.12);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr);
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #86efac, #76b900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 520px;
}

.hero-metrics {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.hero-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
  padding: 10px 18px;
}

.hero-metric strong {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}

.hero-metric span {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.2s;
}

.hero-shortcut img {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.hero-shortcut:hover {
  color: var(--text);
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.1);
}

.hero-shortcut-compert {
  border-color: rgba(167, 139, 250, 0.25);
}

.hero-shortcut-compert:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.12);
}

.hero-tool .compare-widget {
  margin: 0;
}

.compare-widget-head {
  margin-bottom: 18px;
}

.compare-widget-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.compare-widget-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero-quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}

.quick-link-icon {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.quick-link-icon-gpu {
  width: 26px;
  height: auto;
  max-height: 12px;
}

.quick-link-icon-cpu {
  width: 18px;
  max-height: 18px;
}

.quick-link-icon-game {
  width: 22px;
  max-height: 15px;
}

.quick-link-icon-pc {
  width: auto;
  height: 20px;
  max-width: 16px;
}

.quick-link-orbit {
  flex-shrink: 0;
}

.ia-orbit-scene--quick {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.98) 72%);
  border: 1px solid rgba(167, 139, 250, 0.28);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.25);
  overflow: hidden;
}

.ia-orbit-scene--quick .ia-orbit-star {
  width: 10px;
  height: 10px;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.55));
}

.ia-orbit-scene--quick .ia-orbit-arm--1 .ia-orbit-planet {
  top: 1px;
  width: 3px;
  height: 3px;
  box-shadow: 0 0 4px rgba(34, 211, 238, 0.75);
}

.ia-orbit-scene--quick .ia-orbit-arm--2 .ia-orbit-planet {
  top: 4px;
  width: 2.5px;
  height: 2.5px;
  box-shadow: 0 0 3px rgba(134, 239, 172, 0.7);
}

.ia-orbit-scene--quick .ia-orbit-arm--3 .ia-orbit-planet {
  top: 2px;
  width: 2px;
  height: 2px;
  box-shadow: 0 0 3px rgba(249, 168, 212, 0.65);
}

.quick-link:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
}

.page-hero {
  padding: 32px 0 40px;
}

.page-hero-banner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(99, 102, 241, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 80% at 100% 100%, rgba(34, 211, 238, 0.06), transparent 50%),
    var(--glass);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.page-hero-gpu .page-hero-banner {
  background:
    radial-gradient(ellipse 65% 110% at 0% 0%, rgba(118, 185, 0, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 70% at 100% 100%, rgba(118, 185, 0, 0.05), transparent 50%),
    var(--glass);
  border-color: rgba(118, 185, 0, 0.18);
}

.page-hero-cpu .page-hero-banner {
  background:
    radial-gradient(ellipse 65% 110% at 0% 0%, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 70% at 100% 100%, rgba(34, 211, 238, 0.05), transparent 50%),
    var(--glass);
  border-color: rgba(34, 211, 238, 0.18);
}

.page-hero-main {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-hero-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.page-hero-gpu .page-hero-eyebrow {
  color: #a8c878;
  border-color: rgba(118, 185, 0, 0.22);
  background: rgba(118, 185, 0, 0.08);
}

.page-hero-cpu .page-hero-eyebrow {
  color: #7dd3fc;
  border-color: rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.08);
}

.page-hero-game .page-hero-banner {
  background:
    radial-gradient(ellipse 65% 110% at 0% 0%, rgba(244, 114, 182, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 70% at 100% 100%, rgba(244, 114, 182, 0.05), transparent 50%),
    var(--glass);
  border-color: rgba(244, 114, 182, 0.18);
}

.page-hero-game .page-hero-eyebrow {
  color: #f9a8d4;
  border-color: rgba(244, 114, 182, 0.22);
  background: rgba(244, 114, 182, 0.08);
}

.page-hero-mipc .page-hero-banner {
  background:
    radial-gradient(ellipse 65% 110% at 0% 0%, rgba(99, 102, 241, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 70% at 100% 100%, rgba(34, 211, 238, 0.07), transparent 50%),
    var(--glass);
  border-color: rgba(99, 102, 241, 0.22);
}

.page-hero-mipc .page-hero-eyebrow {
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.28);
  background: rgba(99, 102, 241, 0.1);
}

.page-hero-icon.mipc {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.15);
  background: rgba(99, 102, 241, 0.1);
  width: 64px;
  height: 64px;
}

.page-hero-icon.mipc img,
.page-hero-mipc-mark {
  display: block;
  height: 52px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

.page-hero-mipc h1 em {
  background: linear-gradient(90deg, #c7d2fe, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-cta-mipc {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.1);
}

.page-cta-mipc:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.06));
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.18);
}

.page-cta-mipc .page-cta-icon {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.page-cta-mipc .page-cta-icon img {
  display: block;
  width: 20px;
  height: 20px;
}

.page-hero-mipc .page-cta-arrow {
  color: #a5b4fc;
}

.page-hero-icon.game {
  border-color: rgba(244, 114, 182, 0.35);
  box-shadow: 0 0 24px rgba(244, 114, 182, 0.12);
  width: 64px;
  height: 56px;
}

.page-hero-icon.game img,
.page-hero-game-mark {
  width: auto;
  height: 36px;
  max-width: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.page-hero-game h1 em {
  background: linear-gradient(90deg, #fbcfe8, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-banner-solo {
  justify-content: flex-start;
}

.page-hero-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-hero-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.page-hero-icon img {
  display: block;
  width: 34px;
  height: 34px;
}

.page-hero-icon.gpu {
  width: 72px;
  height: 52px;
  border-radius: 16px;
  border-color: rgba(118, 185, 0, 0.35);
  background: linear-gradient(180deg, rgba(118, 185, 0, 0.1), rgba(118, 185, 0, 0.02));
  box-shadow: 0 0 28px rgba(118, 185, 0, 0.14);
}

.page-hero-icon.gpu img,
.page-hero-gpu-mark {
  width: auto;
  height: 28px;
  max-width: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.page-hero-icon.cpu {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

.page-hero-icon.cpu img,
.page-hero-cpu-mark {
  width: auto;
  height: 36px;
  max-width: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(34, 211, 238, 0.25));
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--text) 0%, var(--text-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-gpu h1 em {
  background: linear-gradient(90deg, #c8e890, #76b900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-cpu h1 em {
  background: linear-gradient(90deg, #a5f3fc, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-desc {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 420px;
  line-height: 1.5;
}

.page-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: center;
  min-width: 240px;
  max-width: 320px;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.page-cta-gpu {
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.14), rgba(118, 185, 0, 0.04));
  border: 1px solid rgba(118, 185, 0, 0.32);
  box-shadow: 0 4px 24px rgba(118, 185, 0, 0.1);
}

.page-cta-gpu:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 185, 0, 0.48);
  box-shadow: 0 8px 32px rgba(118, 185, 0, 0.18);
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.2), rgba(118, 185, 0, 0.06));
}

.page-cta-cpu {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.04));
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.08);
}

.page-cta-cpu:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.14);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0.06));
}

.page-cta-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
}

.page-cta-gpu .page-cta-icon {
  color: #b8f070;
  border: 1px solid rgba(118, 185, 0, 0.3);
}

.page-cta-cpu .page-cta-icon {
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.page-cta-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.page-cta-copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.page-cta-copy small {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.3;
}

.page-cta-arrow {
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 700;
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.page-cta:hover .page-cta-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.page-hero-gpu .page-cta-arrow { color: #b8f070; }
.page-hero-cpu .page-cta-arrow { color: #67e8f9; }

.page-cta-game {
  border-color: rgba(244, 114, 182, 0.28);
  background: rgba(244, 114, 182, 0.06);
}

.page-cta-game:hover {
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(244, 114, 182, 0.12);
  box-shadow: 0 8px 32px rgba(244, 114, 182, 0.15);
}

.page-cta-game .page-cta-icon {
  background: rgba(244, 114, 182, 0.15);
  color: #f9a8d4;
}

.page-hero-game .page-cta-arrow { color: #f9a8d4; }

@media (max-width: 720px) {
  .page-hero-banner {
    padding: 22px 20px;
    flex-direction: column;
  }

  .page-cta {
    align-self: stretch;
    max-width: none;
  }
}

.section-icon.stats,
.section-icon.mipc { border-color: rgba(99, 102, 241, 0.3); }

.stat-pill {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-soft);
}

.stat-pill strong {
  color: var(--text);
  font-size: 1.1rem;
  margin-right: 4px;
}

.compare-widget {
  background: var(--glass);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.compare-tabs {
  position: relative;
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--surface);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.compare-tabs-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  width: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  box-shadow: 0 4px 16px var(--primary-glow);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.compare-tabs--ready .compare-tabs-indicator {
  opacity: 1;
}

.tab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: color 0.12s ease;
}

.tab-icon {
  display: block;
  width: 20px;
  height: auto;
  max-height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.tab-icon-gpu {
  width: 28px;
  max-height: 14px;
}

.tab-icon-cpu {
  width: 18px;
  max-height: 18px;
}

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

.tab.active {
  color: white;
  background: transparent;
  box-shadow: none;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .compare-tabs-indicator,
  .nav-rail-indicator {
    transition: none;
  }
}

.compare-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}

.compare-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.compare-pick-hint {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--text-soft);
  font-size: 0.95rem;
}

.compare-pick-hint p {
  margin: 0;
}

.compare-form-error {
  flex-basis: 100%;
  width: 100%;
  margin: 0;
  order: 5;
}

.compare-page-form .compare-form-error {
  order: 5;
}

.compare-form-error.hidden {
  display: none;
}

.search-select-wrap--error .search-select-input {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.15);
}

.compare-pick-hint strong {
  color: var(--text);
}

.vs-badge {
  align-self: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  padding: 4px 12px;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* ── Sections ── */
.section { padding: 64px 0; }
.section.alt { background: rgba(255, 255, 255, 0.02); }

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.section-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.section-icon.gpu { border-color: rgba(118, 185, 0, 0.3); }
.section-icon.cpu { border-color: rgba(34, 211, 238, 0.3); }
.section-icon.game { border-color: rgba(244, 114, 182, 0.3); }

.section-head h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.subsection-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

/* ── Hardware cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.hw-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
}

.hw-card .brand-chip,
.hw-card .hw-name,
.hw-card .hw-meta,
.hw-card .hw-score,
.hw-card .arch-label {
  position: relative;
  z-index: 2;
}

.hw-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
}

.hw-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.hw-card:not([class*="arch-"]):hover {
  transform: translateY(-4px);
}

.hw-card:not([class*="arch-"]):hover::before { opacity: 1; }

.brand-chip {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
}

.brand-nvidia .brand-chip { color: var(--nvidia); background: rgba(118,185,0,0.12); }
.brand-amd .brand-chip { color: var(--amd); background: rgba(237,28,36,0.12); }
.brand-intel .brand-chip { color: var(--intel); background: rgba(0,113,197,0.12); }
.brand-apple .brand-chip { color: var(--apple); }

.hw-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
}

.hw-meta, .hw-score {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hw-score strong { color: var(--accent); font-family: var(--mono); }

/* ── Compare links ── */
.compare-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.compare-link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  transition: all 0.2s;
}

.compare-link-card:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
}

.compare-link-card span:first-child,
.compare-link-card span:last-child {
  flex: 1;
  font-weight: 500;
}

.vs-mini {
  flex: 0 !important;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  padding: 4px 8px;
  background: rgba(34,211,238,0.1);
  border-radius: 4px;
}

/* ── Game cards ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

@media (min-width: 881px) {
  .game-grid-catalog .game-card,
  .card-grid-catalog .gpu-card,
  .card-grid-catalog .cpu-card,
  .card-grid-catalog .hw-card {
    content-visibility: auto;
    contain-intrinsic-size: 220px 124px;
  }
}

.game-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.game-card.has-banner {
  padding: 0;
  min-height: 150px;
  background: #0c0e14;
}

.game-card-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.45s ease;
}

.game-card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 18, 0.05) 0%,
    rgba(8, 10, 18, 0.35) 50%,
    rgba(8, 10, 18, 0.88) 100%
  );
}

.game-card.has-banner .game-rating,
.game-card.has-banner .game-name,
.game-card.has-banner .game-meta,
.game-card.has-banner .game-card-foot {
  position: relative;
  z-index: 2;
  margin-left: 18px;
  margin-right: 18px;
}

.game-card.has-banner .new-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 4;
  margin: 0;
}

.game-card-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.game-card.has-banner .game-card-foot {
  margin-top: auto;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.game-card.has-banner:has(.game-card-foot) {
  justify-content: stretch;
}

.game-card.has-banner:has(.game-card-foot) .game-rating {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(251, 191, 36, 0.3);
  text-shadow: none;
}

.game-card.has-banner:has(.game-card-foot) .game-card-foot {
  padding: 26px 16px 12px;
  box-sizing: border-box;
}

.game-card.has-banner:has(.game-card-foot) .game-name,
.game-card.has-banner:has(.game-card-foot) .game-meta {
  margin-left: 0;
  margin-right: 0;
}

.game-card.has-banner .game-rating {
  margin-top: auto;
  padding-top: 48px;
  margin-bottom: 6px;
}

.game-card.has-banner .game-card-foot .game-name {
  margin-bottom: 4px;
}

.game-card.has-banner .game-card-foot .game-meta {
  margin-bottom: 0;
}

.game-card.has-banner .game-meta {
  margin-bottom: 18px;
}

.game-card.has-banner .game-rating {
  color: #fde68a;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.game-card.has-banner .game-name {
  color: #fafafa;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.game-card.has-banner .game-meta {
  color: rgba(228, 228, 231, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 114, 182, 0.45);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.game-card.has-banner:hover .game-card-img {
  transform: scale(1.04);
}

.game-card.is-new {
  border-color: rgba(99, 102, 241, 0.4);
}

.new-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--primary);
  color: white;
}

.game-rating {
  font-size: 0.8rem;
  color: #fbbf24;
  margin-bottom: 6px;
}

.game-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.game-meta { font-size: 0.78rem; color: var(--text-soft); }

.game-detail-head,
.game-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  min-height: 180px;
}

.game-detail-head.has-banner,
.game-hero.has-banner {
  min-height: 260px;
  border-color: rgba(244, 114, 182, 0.25);
}

.game-detail-img,
.game-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.game-detail-shade,
.game-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 18, 0.15) 0%,
    rgba(8, 10, 18, 0.72) 45%,
    rgba(8, 10, 18, 0.94) 100%
  );
}

.game-detail-copy,
.game-hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
}

.game-detail-head.has-banner .game-detail-copy h1,
.game-detail-head.has-banner .game-detail-copy .game-intro,
.game-hero.has-banner .game-hero-title,
.game-hero.has-banner .game-meta-pill {
  color: #fafafa;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.game-hero-title {
  margin: 0 0 4px;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.game-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.game-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.game-hero.has-banner .game-meta-pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.game-meta-rating {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.35);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 0;
  align-items: stretch;
}

.game-layout-main,
.game-layout-aside {
  min-width: 0;
}

.game-layout-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 32px;
}

.game-layout-aside {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-strong);
  padding-left: 32px;
}

.game-layout-zone-label {
  margin: 0 0 4px;
  padding-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}

.game-layout-zone-label-aside {
  color: #f9a8d4;
  border-bottom-color: rgba(244, 114, 182, 0.25);
}

.game-compat-sticky {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.game-panel {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.game-panel-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.game-panel-sub {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.game-panel .game-panel-title + .game-panel-sub {
  margin-top: -2px;
}

.game-about-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

.fuentes-layout {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fuente-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fuente-card-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fuente-card-head .game-panel-title {
  margin: 0;
  font-size: 1.35rem;
}

.fuente-card-head .game-panel-sub {
  margin: 0;
}

.fuente-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.fuente-badge-steam {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
}

.fuente-badge-local {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.fuente-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fuente-stat {
  min-width: 120px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.fuente-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.2;
}

.fuente-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.fuente-block {
  padding-top: 4px;
}

.fuente-block-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.fuente-field-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 0.92rem;
}

.fuente-field-list li + li {
  margin-top: 2px;
}

.game-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.game-score-chip {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.game-score-chip span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.game-score-chip strong {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--accent);
}

.game-check-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-check-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-check-label > span {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.game-check-label .search-select-wrap {
  width: 100%;
}

.game-check-form select.search-select.search-select-lazy {
  width: 100%;
  padding: 16px 18px 16px 44px;
  border-radius: 14px;
  background-color: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m14 14-3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
}

.game-check-form .search-select-input {
  padding: 16px 18px 16px 44px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.game-check-form .search-select-input:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-block {
  width: 100%;
  margin-top: 4px;
}

.verdict-compact {
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 55%),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.verdict-compact::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%, rgba(255, 255, 255, 0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.verdict-compact .verdict-title {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.verdict-compact.verdict-high .verdict-title {
  color: #bbf7d0;
}

.verdict-compact.verdict-ok .verdict-title {
  color: #fde68a;
}

.verdict-compact.verdict-low .verdict-title {
  color: #fecaca;
}

.verdict-compact .verdict-grid {
  gap: 10px;
}

.verdict-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 11px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, background 0.2s;
}

.verdict-item:hover {
  background: rgba(0, 0, 0, 0.34);
  border-color: rgba(255, 255, 255, 0.1);
}

.verdict-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.verdict-item strong {
  font-size: 0.88rem;
  line-height: 1.35;
}

.verdict-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.verdict-badge.ok {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.verdict-badge.min {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.verdict-badge.bad {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.game-layout-aside .game-fps-section {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.game-layout-aside .fps-chart {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 180px;
}

.game-layout-aside .fps-bar-track {
  height: 120px;
}

@media (max-width: 960px) {
  .game-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .game-layout-aside {
    order: -1;
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 24px;
    margin-bottom: 8px;
  }

  .game-layout-main {
    padding-right: 0;
  }

  .game-hero.has-banner {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .req-columns {
    grid-template-columns: 1fr;
  }

  .game-score-grid {
    grid-template-columns: 1fr;
  }
}

.section-note {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin: -6px 0 16px;
}

.game-search-bar {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.game-search-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.game-search-field {
  position: relative;
}

.game-search-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-search-input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.game-search-input:focus {
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.12);
}

.game-search-clear {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  cursor: pointer;
}

.game-search-submit {
  flex-shrink: 0;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ec4899, #6366f1);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.game-search-submit:hover { opacity: 0.9; }

.game-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 14, 22, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.game-autocomplete.hidden { display: none; }

.game-autocomplete-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text);
  transition: background 0.15s;
}

.game-autocomplete-item:hover,
.game-autocomplete-item.active {
  background: rgba(244, 114, 182, 0.15);
  color: #f9a8d4;
}

.game-autocomplete-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#gameFilterEmpty.hidden { display: none; }

.game-search-clear.hidden { display: none; }

.game-search-meta {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.game-search-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: var(--text-soft);
}

.game-load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
}

.btn-secondary {
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 114, 182, 0.35);
}

.game-load-more.hidden { display: none; }

.game-load-more.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.game-grid-featured {
  margin-bottom: 32px;
}

.game-grid-catalog {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

/* ── Games page layout ── */
.games-page {
  padding-top: 8px;
}

.games-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.games-stat {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.games-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--mono);
}

.games-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.games-toolbar {
  margin-bottom: 28px;
}

.games-toolbar .game-search-bar {
  margin-bottom: 0;
}

.game-search-top {
  margin-bottom: 12px;
}

.game-search-hint {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.games-catalog-head {
  margin-bottom: 20px;
}

.games-catalog-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.games-catalog-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.games-catalog-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--mono);
  color: #f9a8d4;
  background: rgba(244, 114, 182, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.games-catalog-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.games-catalog-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ec4899, #6366f1);
  transition: width 0.35s ease;
}

.games-empty-state,
.games-filter-empty {
  grid-column: 1 / -1;
}

.games-empty-state code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85em;
}

@media (max-width: 640px) {
  .games-stats-bar {
    grid-template-columns: 1fr;
  }

  .game-search-row {
    flex-wrap: wrap;
  }

  .game-search-input {
    width: 100%;
    min-width: 0;
  }

  .game-search-submit {
    width: 100%;
  }

  .game-grid-catalog {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}

.game-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.game-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

.game-tag-free { border-color: rgba(34, 197, 94, 0.4); color: #86efac; }
.game-tag-soon { border-color: rgba(99, 102, 241, 0.45); color: #c4b5fd; }

.game-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.game-dlc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-dlc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.game-dlc-summary::-webkit-details-marker {
  display: none;
}

.game-dlc-summary-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.game-dlc-summary .game-panel-title {
  margin: 0;
}

.game-dlc-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 700;
}

.game-dlc-chevron {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.game-dlc-panel[open] .game-dlc-chevron {
  transform: rotate(180deg);
}

.game-dlc-body {
  margin-top: 10px;
}

.game-dlc-body .game-panel-sub {
  margin-top: 0;
}

.game-panel-fold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.game-panel-fold-summary::-webkit-details-marker {
  display: none;
}

.game-panel-fold-summary-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.game-panel-fold-summary .game-panel-title {
  margin: 0;
}

.game-panel-fold-chevron {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.game-panel-fold[open] .game-panel-fold-chevron {
  transform: rotate(180deg);
}

.game-panel-fold-body {
  margin-top: 10px;
}

.game-panel-fold-body .game-panel-sub {
  margin-top: 0;
}

@media (min-width: 881px) {
  .game-panel-fold > .game-panel-fold-summary {
    display: block;
    pointer-events: none;
    cursor: default;
  }

  .game-panel-fold-summary-main {
    display: block;
  }

  .game-panel-fold-summary .game-panel-title {
    margin: 0 0 6px;
  }

  .game-panel-fold .game-panel-fold-chevron {
    display: none;
  }

  .game-panel-fold-body {
    margin-top: 0;
  }

  .game-panel-fold-body .game-panel-sub {
    margin-top: -2px;
    margin-bottom: 18px;
  }

  .game-panel-fold:not([open]) > .game-panel-fold-body {
    display: block !important;
  }

  .mipc-manual-field-ram {
    display: none;
  }
}

.game-dlc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.game-dlc-name {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-dlc-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.game-dlc-actions .btn-dlc {
  padding: 6px 10px;
  font-size: 0.72rem;
  gap: 5px;
}

.game-dlc-actions .btn-steam-mark,
.game-dlc-actions .btn-instant-gaming-mark {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .game-dlc-row {
    flex-direction: column;
    align-items: stretch;
  }
  .game-dlc-actions {
    justify-content: flex-end;
  }
}

.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1b2838, #2a475e);
  border: 1px solid rgba(102, 192, 244, 0.35);
  color: #c7eaff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s, border-color 0.2s;
}

.btn-steam-mark {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}

.btn-steam:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 192, 244, 0.65);
}

.btn-instant-gaming {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: #141414;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-instant-gaming-mark {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-instant-gaming:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 93, 4, 0.5);
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.15);
}

.btn-epic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  border: 1px solid rgba(0, 120, 242, 0.45);
  color: #e8f3ff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s, border-color 0.2s;
}

.btn-epic-mark {
  display: block;
  height: 24px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-epic:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 120, 242, 0.75);
}

.game-tag-epic {
  border-color: rgba(0, 120, 242, 0.45);
  color: #8ec5ff;
}

.game-about {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.game-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.game-check-row .search-select-wrap {
  flex: 1;
  min-width: 200px;
}

.game-check-row select { flex: 1; min-width: 200px; }

.game-requirements {
  margin: 0;
}

.game-requirements .req-box {
  background: rgba(0, 0, 0, 0.18);
}

.req-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.req-box {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.req-box h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #f472b6;
}

.req-html {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.req-html ul { padding-left: 18px; margin: 0; }

.game-scores-ref { margin: 0; }

.game-screenshots { margin: 0; }

.game-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.game-screenshot-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.game-screenshot-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.5), rgba(99, 102, 241, 0.5)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.game-screenshot-btn:hover::after,
.game-screenshot-btn:focus-visible::after {
  opacity: 1;
}

.game-screenshot-btn:focus-visible {
  outline: 2px solid rgba(244, 114, 182, 0.65);
  outline-offset: 2px;
}

.game-screenshot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, border-color 0.2s, filter 0.2s;
}

.game-screenshot-btn:hover .game-screenshot {
  transform: scale(1.03);
  border-color: rgba(244, 114, 182, 0.35);
  filter: brightness(1.08);
}

body.lightbox-open {
  overflow: hidden;
}

.game-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 48px;
}

.game-lightbox.hidden {
  display: none;
}

.game-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(99, 102, 241, 0.12), transparent 55%),
    rgba(2, 4, 10, 0.94);
  backdrop-filter: blur(14px);
  opacity: 0;
}

.game-lightbox.is-open .game-lightbox-backdrop {
  animation: game-lb-backdrop-in 0.4s ease forwards;
}

.game-lightbox.is-closing .game-lightbox-backdrop {
  animation: game-lb-backdrop-out 0.28s ease forwards;
}

.game-lightbox-stage {
  position: relative;
  z-index: 1;
  width: min(1200px, 94vw);
  max-height: 90vh;
  opacity: 0;
  transform: scale(0.9) translateY(28px);
}

.game-lightbox.is-open .game-lightbox-stage {
  animation: game-lb-stage-in 0.55s cubic-bezier(0.22, 1, 0.24, 1) forwards;
}

.game-lightbox.is-closing .game-lightbox-stage {
  animation: game-lb-stage-out 0.28s ease forwards;
}

@keyframes game-lb-backdrop-in {
  to { opacity: 1; }
}

@keyframes game-lb-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes game-lb-stage-in {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes game-lb-stage-out {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
}

.game-lightbox-chrome {
  pointer-events: none;
  position: absolute;
  inset: -8px;
  z-index: 0;
}

.game-lightbox-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(167, 139, 250, 0.75);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.35);
}

.game-lightbox-corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.game-lightbox-corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.game-lightbox-corner--bl { bottom: 48px; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.game-lightbox-corner--br { bottom: 48px; right: 0; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

.game-lightbox-scanlines {
  position: absolute;
  inset: 0;
  bottom: 40px;
  border-radius: 12px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.35;
  mix-blend-mode: overlay;
}

.game-lightbox-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.game-lightbox-viewport {
  position: relative;
  max-width: 100%;
  border-radius: 12px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.65), rgba(99, 102, 241, 0.65), rgba(34, 211, 238, 0.45));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 90px rgba(0, 0, 0, 0.65),
    0 0 48px rgba(99, 102, 241, 0.15);
}

.game-lightbox-img {
  display: block;
  max-width: min(1180px, 92vw);
  max-height: calc(82vh - 56px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #05070c;
}

.game-lightbox-shine {
  position: absolute;
  inset: 3px;
  border-radius: 10px;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 38%,
    transparent 100%
  );
  pointer-events: none;
}

.game-lightbox-frame.is-switching .game-lightbox-img {
  animation: game-lb-img-switch 0.32s ease;
}

@keyframes game-lb-img-switch {
  0% { opacity: 0.55; transform: scale(0.985); filter: blur(2px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.game-lightbox-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e2e8f0;
  background: rgba(8, 12, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.game-lightbox-counter::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ec4899;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.8);
  animation: game-lb-pulse 2s ease-in-out infinite;
}

@keyframes game-lb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.game-lightbox-close,
.game-lightbox-nav {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 24, 0.78);
  color: #f1f5f9;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.game-lightbox-close:hover,
.game-lightbox-nav:hover:not(:disabled) {
  border-color: rgba(236, 72, 153, 0.45);
  background: rgba(20, 24, 38, 0.92);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
  transform: scale(1.06);
}

.game-lightbox-close {
  top: -4px;
  right: -4px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.game-lightbox-nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.06);
}

.game-lightbox-nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.game-lightbox-prev { left: -58px; }
.game-lightbox-next { right: -58px; }

@media (prefers-reduced-motion: reduce) {
  .game-lightbox-backdrop,
  .game-lightbox-stage,
  .game-lightbox-frame.is-switching .game-lightbox-img {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .game-lightbox-counter::before {
    animation: none;
  }
}

@media (max-width: 900px) {
  .game-lightbox {
    padding: 56px 16px 24px;
  }

  .game-lightbox-prev { left: 8px; }
  .game-lightbox-next { right: 8px; }

  .game-lightbox-close {
    top: 8px;
    right: 8px;
  }

  .game-lightbox-corner {
    width: 20px;
    height: 20px;
  }

  .game-lightbox-corner--bl,
  .game-lightbox-corner--br {
    bottom: 52px;
  }
}

@media (max-width: 768px) {
  .req-columns { grid-template-columns: 1fr; }
  .game-check-row { flex-direction: column; align-items: stretch; }
}

/* ── Compare result page ── */
.section > .container > h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.compare-page-form {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.compare-page-form select { flex: 1; min-width: 200px; }

/* ── Searchable select ── */
.search-select-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-select-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.search-select-input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m14 14-3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}

.search-select-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-select-input::placeholder { color: var(--text-soft); }

.search-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 300;
}

.search-select-dropdown[style*="position: fixed"] {
  right: auto;
}

.search-select-dropdown.hidden { display: none; }

.search-select-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.search-select-option:last-child { border-bottom: none; }

.search-select-option:hover,
.search-select-option.focused,
.search-select-option.selected {
  background: rgba(99, 102, 241, 0.15);
  color: var(--text);
}

.search-select-empty {
  padding: 14px 16px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.search-select-more {
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  text-align: center;
}

.compare-form .search-select-wrap { width: 100%; }

.compare-page-form .search-select-wrap {
  flex: 1;
  min-width: 200px;
}

@media (max-width: 600px) {
  .compare-page-form { flex-direction: column; }
  .compare-page-form .search-select-wrap { width: 100%; }
}

.compare-result {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  margin-top: 40px;
}

.result-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(8px);
}

.result-card.winner {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 20px 50px var(--primary-glow);
}

.result-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.brand-tag {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin: 0 0 20px;
}

.score-bar {
  height: 10px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.score-bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.6s ease;
}

.big-score {
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 20px;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-soft);
}

.result-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.result-vs span { color: var(--text-soft); font-size: 0.85rem; }

.result-vs strong {
  font-family: var(--mono);
  font-size: 1.8rem;
  color: var(--accent);
}

/* ── Game page ── */
.game-intro {
  color: var(--text-soft);
  margin: -12px 0 24px;
}

.game-check-form {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.game-fps-section {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.game-fps-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 14px 13px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%),
    rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-fps-head-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.game-fps-head-body {
  min-width: 0;
  flex: 1;
}

.game-fps-head .game-panel-title,
.game-fps-head .subsection-title {
  margin: 0 0 5px;
  padding-left: 0;
  border-left: none;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
  font-weight: 700;
}

.fps-chart-sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.fps-chart-hw {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fps-chart-hw-sep {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.fps-chart-panel {
  min-height: 220px;
  transition: opacity 0.2s;
  padding: 4px 2px 0;
}

.fps-chart-panel.is-loading {
  opacity: 0.55;
}

.fps-chart-placeholder {
  margin: 32px 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.fps-chart-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding: 10px 12px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fps-chart-note-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, serif;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.fps-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: end;
  min-height: 200px;
  padding: 8px 4px 0;
}

.fps-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fps-bar-track {
  width: 100%;
  max-width: 72px;
  height: 168px;
  display: flex;
  align-items: flex-end;
  border-radius: 10px 10px 4px 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

.fps-bar-fill {
  position: relative;
  width: 100%;
  min-height: 28px;
  height: var(--fps-pct, 0%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  border-radius: inherit;
  overflow: hidden;
  transform-origin: bottom center;
}

@media (prefers-reduced-motion: no-preference) {
  .fps-chart.fps-chart--rose .fps-bar-fill {
    height: var(--fps-pct, 0%);
    transform: scaleY(1);
  }

  .fps-chart.fps-chart--playing-rise .fps-bar-fill {
    height: 0;
    transform: scaleY(0.6);
    animation: fps-bar-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .fps-chart.fps-chart--playing-rise .fps-bar-col:nth-child(1) .fps-bar-fill { animation-delay: 0.05s; }
  .fps-chart.fps-chart--playing-rise .fps-bar-col:nth-child(2) .fps-bar-fill { animation-delay: 0.12s; }
  .fps-chart.fps-chart--playing-rise .fps-bar-col:nth-child(3) .fps-bar-fill { animation-delay: 0.19s; }
  .fps-chart.fps-chart--playing-rise .fps-bar-col:nth-child(4) .fps-bar-fill { animation-delay: 0.26s; }

  .fps-chart.fps-chart--rose .fps-bar-value {
    opacity: 1;
    transform: translateY(0);
  }

  .fps-chart.fps-chart--playing-rise .fps-bar-value {
    opacity: 0;
    transform: translateY(6px);
    animation: fps-value-in 0.45s ease forwards;
  }

  .fps-chart.fps-chart--playing-rise .fps-bar-col:nth-child(1) .fps-bar-value { animation-delay: 0.45s; }
  .fps-chart.fps-chart--playing-rise .fps-bar-col:nth-child(2) .fps-bar-value { animation-delay: 0.52s; }
  .fps-chart.fps-chart--playing-rise .fps-bar-col:nth-child(3) .fps-bar-value { animation-delay: 0.59s; }
  .fps-chart.fps-chart--playing-rise .fps-bar-col:nth-child(4) .fps-bar-value { animation-delay: 0.66s; }
}

@keyframes fps-bar-rise {
  from {
    height: 0;
    transform: scaleY(0.6);
  }
  to {
    height: var(--fps-pct, 0%);
    transform: scaleY(1);
  }
}

@keyframes fps-value-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fps-bar-liquid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.fps-bar-wave {
  position: absolute;
  width: 260%;
  height: 240%;
  top: -88%;
  left: -80%;
  border-radius: 42% 48% 40% 44%;
  background: rgba(255, 255, 255, 0.38);
  animation: none;
  transform: translate3d(0, 0, 0);
}

.fps-bar-wave--2 {
  left: -55%;
  top: -92%;
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 46% 40% 44% 42%;
}

.fps-bar-wave--3 {
  left: -95%;
  top: -78%;
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 38% 44% 46% 40%;
}

@media (prefers-reduced-motion: no-preference) {
  .fps-chart.fps-chart--in-view .fps-bar-wave {
    animation: fps-liquid-drift 2.6s ease-in-out infinite;
  }

  .fps-chart.fps-chart--in-view .fps-bar-wave--2 {
    animation-duration: 3.4s;
    animation-delay: -1.1s;
  }

  .fps-chart.fps-chart--in-view .fps-bar-wave--3 {
    animation-duration: 4.1s;
    animation-delay: -2s;
  }
}

@keyframes fps-liquid-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate3d(-7%, 3px, 0) rotate(-4deg) scale(1.02);
  }
  66% {
    transform: translate3d(6%, -2px, 0) rotate(3deg) scale(0.98);
  }
}

.fps-bar-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 28%,
    transparent 70%,
    rgba(0, 0, 0, 0.08) 100%
  );
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .fps-chart.fps-chart--in-view .fps-bar-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    animation: fps-bar-shine 4.5s ease-in-out infinite;
  }
}

@keyframes fps-bar-shine {
  0%, 100% { left: -100%; opacity: 0; }
  45%, 55% { opacity: 1; }
  100% { left: 140%; opacity: 0; }
}

.fps-bar-fill.fps-tier-super {
  background: linear-gradient(180deg, #e9d5ff 0%, #a855f7 45%, #6d28d9 100%);
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.45);
}

.fps-bar-fill.fps-tier-great {
  background: linear-gradient(180deg, #67e8f9 0%, #0891b2 55%, #0e7490 100%);
  box-shadow: 0 0 22px rgba(103, 232, 249, 0.38);
}

.fps-bar-fill.fps-tier-high {
  background: linear-gradient(180deg, #86efac 0%, #22c55e 55%, #15803d 100%);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.28);
}

.fps-bar-fill.fps-tier-ok {
  background: linear-gradient(180deg, #fde047 0%, #eab308 55%, #ca8a04 100%);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.22);
}

.fps-bar-fill.fps-tier-low {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 55%, #b91c1c 100%);
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.2);
}

/* Alias legacy (por si queda caché antigua) */
.fps-bar-fill.fps-tier-good {
  background: linear-gradient(180deg, #86efac 0%, #22c55e 55%, #15803d 100%);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.28);
}

.fps-bar-value {
  position: relative;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.fps-bar-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .fps-bar-wave,
  .fps-bar-shimmer::after {
    animation: none !important;
  }

  .fps-chart .fps-bar-fill,
  .fps-chart .fps-bar-value {
    animation: none !important;
    height: var(--fps-pct, 0%);
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .fps-chart {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .fps-bar-track {
    max-width: none;
    height: 140px;
  }
}


.game-page .container {
  max-width: 1120px;
}

.verdict {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
}

.verdict h2 { margin: 0 0 16px; font-size: 1.5rem; }

.verdict-high {
  border-left: 4px solid #22c55e;
  box-shadow:
    0 8px 32px rgba(34, 197, 94, 0.14),
    inset 0 1px 0 rgba(34, 197, 94, 0.08);
}

.verdict-compact.verdict-high {
  background:
    linear-gradient(145deg, rgba(34, 197, 94, 0.1) 0%, rgba(255, 255, 255, 0) 50%),
    rgba(0, 0, 0, 0.22);
}

.verdict-ok {
  border-left: 4px solid #f59e0b;
  box-shadow:
    0 8px 32px rgba(245, 158, 11, 0.14),
    inset 0 1px 0 rgba(245, 158, 11, 0.06);
}

.verdict-compact.verdict-ok {
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0) 50%),
    rgba(0, 0, 0, 0.22);
}

.verdict-low {
  border-left: 4px solid #ef4444;
  box-shadow:
    0 8px 32px rgba(239, 68, 68, 0.14),
    inset 0 1px 0 rgba(239, 68, 68, 0.06);
}

.verdict-compact.verdict-low {
  background:
    linear-gradient(145deg, rgba(239, 68, 68, 0.08) 0%, rgba(255, 255, 255, 0) 50%),
    rgba(0, 0, 0, 0.22);
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.req-note { color: var(--text-soft); font-size: 0.85rem; margin-top: 16px; }

/* ── Stats ── */
.stats-card {
  padding: 40px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  text-align: center;
}

.stats-card h2 { margin: 0 0 12px; }
.stats-card p { color: var(--text-soft); margin: 0; }

.hidden { display: none !important; }

.btn-ghost {
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

/* ── Mi PC ── */
.mipc-picker {
  position: relative;
}

.mipc-picker-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  outline: none;
}

.mipc-picker-input:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.mipc-picker-dropdown {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  margin-top: 6px;
  max-height: 260px;
  overflow-y: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #12151f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.mipc-picker-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.mipc-picker-option:last-child { border-bottom: none; }

.mipc-picker-option:hover {
  background: rgba(99, 102, 241, 0.12);
}

.mipc-picker-option-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.mipc-picker-option-brand {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.mipc-picker-empty {
  padding: 14px;
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
}

.mipc-browser-warning {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
  color: #fde68a;
  font-size: 0.9rem;
  line-height: 1.55;
}

.mipc-warning-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 2px;
}

.mipc-browser-warning strong {
  color: #fef3c7;
}

.mipc-page {
  padding-top: 0;
  padding-bottom: 48px;
}

.detector-page {
  padding: 40px 0 64px;
}

.detector-container {
  max-width: 960px;
  margin: 0 auto;
}

.mipc-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mipc-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(99, 102, 241, 0.22);
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(34, 211, 238, 0.06) 55%, rgba(15, 23, 42, 0.4) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.mipc-privacy-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 3px 0 0 3px;
}

.mipc-privacy-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.mipc-privacy-icon img {
  display: block;
  width: 28px;
  height: 28px;
}

.mipc-privacy-body {
  min-width: 0;
}

.mipc-privacy-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.mipc-privacy-text {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 62ch;
}

.mipc-privacy-more {
  margin: 0 0 12px;
}

.mipc-privacy-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mipc-privacy-link:hover {
  color: #e0e7ff;
}

.mipc-privacy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mipc-privacy-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c7d2fe;
  letter-spacing: 0.01em;
}

.mipc-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.mipc-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: stretch;
}

.mipc-detect-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 22px 24px 20px;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(99, 102, 241, 0.14) 0%, transparent 65%),
    var(--surface);
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: var(--shadow);
}

.mipc-detect-head {
  margin-bottom: 16px;
}

.mipc-detect-head .game-panel-title {
  margin-bottom: 6px;
}

.mipc-detect-head .game-panel-sub {
  margin: 0;
  max-width: none;
}

.mipc-method-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
}

.mipc-method-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 40px;
  padding: 8px 10px;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mipc-method-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.mipc-method-tab.active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.22);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.mipc-browser-panel-note {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.mipc-browser-panel-alert-text {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.mipc-browser-panel-recommend {
  margin: 0 0 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.mipc-browser-panel-recommend strong {
  color: #f8fafc;
  font-weight: 600;
}

.mipc-browser-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mipc-browser-panel-actions .btn-primary,
.mipc-browser-panel-actions .btn-secondary {
  flex: 1 1 140px;
  justify-content: center;
}

.mipc-browser-card-sub {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.btn-detect--optional {
  opacity: 0.92;
}

.mipc-method-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.28);
}

.mipc-method-panel {
  display: none;
}

.mipc-method-panel.active {
  display: block;
}

.mipc-detector-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.24);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.mipc-detector-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.28);
  object-fit: contain;
}

.mipc-detector-card-body {
  flex: 1;
  min-width: 0;
}

.mipc-detector-card-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.mipc-detector-card-sub {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.mipc-detector-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.mipc-detector-card-actions .btn-primary {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.mipc-detector-more {
  font-size: 0.84rem;
  font-weight: 600;
  color: #c7d2fe;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mipc-detector-more:hover {
  color: #e0e7ff;
  text-decoration: underline;
}

.mipc-browser-card-sub {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.mipc-detect-visual {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 4px auto 20px;
  display: grid;
  place-items: center;
}

.mipc-detect-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.38);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, transparent 70%);
  animation: mipc-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.mipc-detect-glyph {
  position: relative;
  z-index: 1;
  display: block;
  height: 102px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

@keyframes mipc-pulse {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.05); opacity: 1; }
}

.mipc-detect-hero {
  text-align: left;
}

.mipc-detect-card .game-panel-sub {
  margin-bottom: 0;
  max-width: none;
}

.btn-detect {
  font-size: 1rem;
  padding: 14px 22px;
  width: 100%;
  max-width: none;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.mipc-detect-status {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: #c7d2fe;
  line-height: 1.45;
  min-height: 1.3em;
}

.mipc-detect-raw {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--text-soft);
  word-break: break-word;
}

.mipc-detector-promo {
  width: 100%;
  margin-bottom: 4px;
  text-align: left;
}

.mipc-detector-promo-text {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #c7d2fe;
}

.mipc-detector-link {
  text-decoration: none;
  text-align: center;
}

.detector-download-panel {
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(118, 185, 0, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    var(--surface);
  border-color: rgba(99, 102, 241, 0.22);
}

.detector-dl-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
}

.detector-dl-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.35);
}

.detector-dl-header-text {
  flex: 1;
  min-width: 0;
}

.detector-dl-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.detector-dl-sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 48ch;
}

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

.detector-dl-actions {
  padding: 22px 28px 24px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(118, 185, 0, 0.08) 0%, rgba(15, 23, 42, 0.2) 100%);
}

.detector-dl-actions .detector-download-options {
  margin-bottom: 12px;
}

.detector-dl-actions .detector-note {
  max-width: 62ch;
}

.detector-download-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}

.detector-download-guide {
  padding: 24px 28px 28px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--border);
}

.detector-download-trust {
  padding: 24px 24px 28px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(15, 23, 42, 0.4);
}

.detector-block-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c7d2fe;
}

.detector-block-title-steps {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.detector-download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.detector-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
}

.detector-badge-accent {
  color: #bbf7d0;
  background: rgba(118, 185, 0, 0.18);
  border-color: rgba(118, 185, 0, 0.35);
}

.detector-badge-version {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.35);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.detector-download-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(118, 185, 0, 0.12);
  border: 1px solid rgba(118, 185, 0, 0.28);
  object-fit: contain;
}

.detector-download-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 640px;
}

.detector-download-btn-primary,
.detector-download-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  font-size: 0.88rem;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-sm);
}

.detector-btn-icon {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}

.detector-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.detector-info-grid {
  display: grid;
  gap: 10px;
}

.detector-info-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.detector-info-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.detector-info-card-head::-webkit-details-marker {
  display: none;
}

.detector-info-card-head-static {
  cursor: default;
  padding: 14px 16px 0;
}

.detector-info-card-title {
  flex: 1;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.detector-security-lead {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.detector-smartscreen-text {
  margin: 0;
  padding: 8px 16px 16px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.detector-smartscreen-body {
  padding: 8px 16px 16px;
}

.detector-smartscreen-intro {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.detector-smartscreen-steps {
  margin: 0 0 10px;
  padding-left: 1.15rem;
  display: grid;
  gap: 6px;
}

.detector-smartscreen-steps li {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text);
}

.detector-smartscreen-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.detector-info-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}

.detector-info-icon-secure {
  color: #86efac;
  background: rgba(118, 185, 0, 0.2);
  border: 1px solid rgba(118, 185, 0, 0.35);
}

.detector-info-icon-warn {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.detector-security {
  border-color: rgba(118, 185, 0, 0.28);
  background: rgba(118, 185, 0, 0.05);
}

.detector-security > .detector-info-card-head {
  padding: 14px 16px;
}

.detector-security > .detector-info-card-head::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.detector-security[open] > .detector-info-card-head {
  border-bottom: 1px solid rgba(118, 185, 0, 0.15);
  background: rgba(118, 185, 0, 0.06);
}

.detector-security[open] > .detector-info-card-head::after {
  transform: rotate(45deg);
  margin-top: 4px;
}

.detector-security .detector-info-card-body {
  padding: 10px 16px 16px;
}

.detector-info-card-body {
  padding: 0 14px 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.detector-security .detector-info-card-body {
  padding-top: 12px;
}

.detector-info-card-body p {
  margin: 0 0 10px;
}

.detector-smartscreen {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
}

.detector-smartscreen .detector-info-card-body {
  padding-top: 8px;
}

.detector-hash-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.detector-hash-row {
  display: grid;
  gap: 3px;
}

.detector-hash-row dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.detector-hash-row dd {
  margin: 0;
}

.detector-hash {
  display: block;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(10, 14, 23, 0.75);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.4;
  word-break: break-all;
  color: #a7f3d0;
}

.detector-security-tip {
  margin: 10px 0 0 !important;
  font-size: 0.8rem !important;
  line-height: 1.5;
  color: var(--text-soft) !important;
}

.detector-security-verify-label {
  margin: 12px 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.detector-security-cmd {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(10, 14, 23, 0.75);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  word-break: break-all;
  color: #cbd5e1;
}

.detector-guide-video-wrap {
  display: contents;
}

.detector-video-sub {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.detector-guide-video-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: #000;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}

.detector-guide-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.detector-steps-title-secondary {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detector-steps-list-compact {
  gap: 0;
}

.detector-steps-list-compact .detector-step {
  padding: 10px 0;
}

.detector-steps-list-compact .detector-step-text {
  font-size: 0.82rem;
}

.detector-steps-title {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.detector-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.detector-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detector-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detector-step:first-child {
  padding-top: 0;
}

.detector-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(99, 102, 241, 0.38);
}

.detector-step-text {
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-soft);
  padding-top: 2px;
}

.detector-back-link {
  display: inline-block;
  margin-top: auto;
  font-size: 0.88rem;
}

/* legacy selectors kept for partials */
.detector-download-hero {
  display: none;
}

.detector-download-main .game-panel-title,
.detector-download-main .game-panel-sub {
  display: none;
}

.detector-security strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.95rem;
}

.detector-smartscreen strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: #fde68a;
}

.detector-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 24px;
  padding: 14px 24px;
  text-decoration: none;
}

.detector-steps {
  margin: 0 0 20px;
  padding-left: 1.2rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.detector-steps li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .detector-page {
    padding: 24px 0 48px;
  }

  .detector-dl-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 22px 20px 20px;
  }

  .detector-dl-header-text {
    width: 100%;
  }

  .detector-dl-sub {
    max-width: none;
  }

  .detector-download-badges {
    justify-content: flex-start;
  }

  .detector-download-body {
    grid-template-columns: 1fr;
  }

  .detector-download-guide {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px;
  }

  .detector-download-trust {
    padding: 20px;
  }

  .detector-dl-actions {
    padding: 18px 20px 20px;
  }

  .detector-download-options {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .detector-download-panel {
    padding: 0;
  }

  .mipc-method-tab {
    font-size: 0.76rem;
    padding: 8px 6px;
  }

  .mipc-method-badge {
    display: none;
  }

  .mipc-detector-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mipc-detector-card-actions {
    justify-content: center;
  }
}

.mipc-manual-block {
  width: 100%;
  margin: 0 0 4px;
  text-align: left;
}

.mipc-manual-title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.mipc-manual-sub {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.mipc-manual-fields {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.mipc-manual-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.mipc-hw-search {
  position: relative;
}

.mipc-hw-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.65);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mipc-hw-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.mipc-hw-ac {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-elevated, #1e293b);
  box-shadow: var(--shadow);
}

.mipc-hw-ac.hidden {
  display: none;
}

.mipc-hw-ac-item {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}

.mipc-hw-ac-item:hover,
.mipc-hw-ac-item.active {
  background: rgba(99, 102, 241, 0.14);
}

.mipc-hw-ac-empty {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.mipc-detect-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 16px 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mipc-detect-divider::before,
.mipc-detect-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.mipc-detect-divider span {
  flex-shrink: 0;
}

.mipc-manual {
  margin-bottom: 12px;
}

.mipc-manual summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.mipc-manual[open] summary {
  margin-bottom: 16px;
  color: var(--text);
}

.mipc-system-panel {
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
    var(--surface);
}

.mipc-panel-head {
  margin-bottom: 4px;
}

.mipc-panel-head .game-panel-sub {
  margin-bottom: 8px;
}

.mipc-device-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(118, 185, 0, 0.25);
  background: rgba(118, 185, 0, 0.08);
  color: var(--text-muted, #94a3b8);
  font-size: 0.82rem;
  line-height: 1.45;
}

.mipc-system-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.mipc-system-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mipc-system-row:hover {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.06);
}

.mipc-system-row[data-kind="gpu"] { border-left: 3px solid rgba(118, 185, 0, 0.55); }
.mipc-system-row[data-kind="cpu"] { border-left: 3px solid rgba(34, 211, 238, 0.55); }
.mipc-system-row[data-kind="ram"] { border-left: 3px solid rgba(168, 85, 247, 0.55); }
.mipc-system-row[data-kind="os"] { border-left: 3px solid rgba(99, 102, 241, 0.55); }

.mipc-spec-icon {
  display: block;
  width: 32px;
  height: 24px;
  margin-right: 10px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.mipc-spec-icon-gpu {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.mipc-spec-icon-cpu {
  filter: drop-shadow(0 1px 3px rgba(34, 211, 238, 0.25));
}

.mipc-spec-icon-ram {
  filter: drop-shadow(0 1px 4px rgba(168, 85, 247, 0.35));
}

.mipc-spec-icon-os {
  filter: drop-shadow(0 1px 4px rgba(99, 102, 241, 0.3));
}

.mipc-system-row dt {
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.mipc-system-row dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
  text-align: right;
}

.mipc-system-note {
  margin: -2px 0 0;
  padding: 0 4px 4px;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.mipc-system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.mipc-spec-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.22);
  transition: background 0.2s ease, color 0.2s ease;
}

.mipc-spec-link:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.28);
}

.mipc-main {
  margin-top: 8px;
}

.mipc-empty {
  text-align: center;
  padding: 36px 24px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
    var(--surface);
}

.mipc-games-section {
  box-shadow: var(--shadow);
}

.mipc-games-compact .mipc-games-head {
  margin-bottom: 10px;
}

.mipc-use-games {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
  cursor: pointer;
  user-select: none;
}

.mipc-use-games.hidden {
  display: none;
}

.mipc-use-games input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mipc-use-games-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 5px;
  border: 2px solid rgba(199, 210, 254, 0.55);
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
}

.mipc-use-games-mark::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid transparent;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.mipc-use-games input:checked + .mipc-use-games-mark {
  background: rgba(99, 102, 241, 0.55);
  border-color: #a5b4fc;
}

.mipc-use-games input:checked + .mipc-use-games-mark::after {
  border-color: #fff;
}

.mipc-use-games-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mipc-use-games-copy strong {
  font-size: 0.88rem;
  color: var(--text);
}

.mipc-use-games-copy small {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.mipc-games-compact .mipc-filters {
  margin-bottom: 12px;
}

.mipc-games-compact .mipc-games-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.mipc-games-compact.mipc-games-expanded .mipc-games-grid {
  max-height: none;
  overflow: visible;
}

.mipc-games-compact .mipc-game-card {
  min-height: 96px;
  padding: 10px 12px;
  gap: 4px;
}

.mipc-games-compact .mipc-game-name {
  font-size: 0.84rem;
}

.mipc-games-compact .mipc-game-verdict {
  font-size: 0.62rem;
  padding: 2px 6px;
}

.mipc-game-fps {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--mono);
  color: #c7d2fe;
}

.mipc-games-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.mipc-games-more:hover {
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--text);
}

.mipc-games-more.hidden {
  display: none;
}

.mipc-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.mipc-config-panel { position: sticky; top: 84px; }

.mipc-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.mipc-spec-kind {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.mipc-spec-name {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.mipc-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0 0 16px;
}

.mipc-spec-list div { min-width: 0; }

.mipc-spec-list dt {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.mipc-spec-list dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--text);
}

.mipc-games-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.mipc-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mipc-count {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.mipc-count-high { background: rgba(34, 197, 94, 0.12); color: #86efac; }
.mipc-count-ok { background: rgba(245, 158, 11, 0.12); color: #fcd34d; }
.mipc-count-low { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }

.mipc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.mipc-filter {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.mipc-filter.active,
.mipc-filter:hover {
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--text);
}

.mipc-filter.active {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
}

.mipc-games-loading,
.mipc-games-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.mipc-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.mipc-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}

.mipc-game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 114, 182, 0.35);
}

.mipc-game-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.mipc-game-verdict,
.mipc-game-name,
.mipc-game-meta {
  position: relative;
  z-index: 1;
}

.mipc-game-verdict {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mipc-game-high .mipc-game-verdict { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.mipc-game-ok .mipc-game-verdict { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.mipc-game-low .mipc-game-verdict { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.mipc-game-name {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.35;
}

.mipc-game-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ── Compert (chat IA) ── */
.section-icon.ia {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.35);
}

.ia-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.ia-page-body main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ia-page-body .site-footer {
  display: none;
}

.ia-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: calc(100dvh - 68px);
}

/* Header del chat */
.ia-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.ia-app-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ia-app-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.98) 72%),
    linear-gradient(145deg, rgba(99, 102, 241, 0.25), rgba(124, 58, 237, 0.12));
  border: 1px solid rgba(167, 139, 250, 0.32);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ia-orbit-scene {
  position: relative;
  display: grid;
  place-items: center;
}

.ia-orbit-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ia-orbit-star {
  position: relative;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.65));
}

.ia-orbit-arm {
  position: absolute;
  inset: 0;
  animation: ia-orbit-spin 11s linear infinite;
  pointer-events: none;
}

.ia-orbit-arm--2 {
  animation-duration: 15s;
  animation-direction: reverse;
}

.ia-orbit-arm--3 {
  animation-duration: 19s;
  animation-delay: -6s;
}

.ia-orbit-planet {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
}

.ia-orbit-arm--1 .ia-orbit-planet {
  top: 3px;
  width: 5px;
  height: 5px;
  background: #22d3ee;
  box-shadow: 0 0 7px rgba(34, 211, 238, 0.85);
}

.ia-orbit-arm--2 .ia-orbit-planet {
  top: 9px;
  width: 4px;
  height: 4px;
  background: #86efac;
  box-shadow: 0 0 6px rgba(134, 239, 172, 0.8);
}

.ia-orbit-arm--3 .ia-orbit-planet {
  top: 6px;
  width: 3px;
  height: 3px;
  background: #f9a8d4;
  box-shadow: 0 0 5px rgba(249, 168, 212, 0.75);
}

@keyframes ia-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ia-orbit-scene--welcome {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 24px rgba(167, 139, 250, 0.45));
}

.ia-orbit-scene--welcome .ia-orbit-arm--1 .ia-orbit-planet {
  top: 2px;
  width: 7px;
  height: 7px;
}

.ia-orbit-scene--welcome .ia-orbit-arm--2 .ia-orbit-planet {
  top: 12px;
  width: 5px;
  height: 5px;
}

.ia-orbit-scene--welcome .ia-orbit-arm--3 .ia-orbit-planet {
  top: 7px;
  width: 4px;
  height: 4px;
}

.ia-orbit-scene--msg {
  width: 100%;
  height: 100%;
}

.ia-orbit-scene--msg .ia-orbit-star {
  width: 12px;
  height: 12px;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.55));
}

.ia-orbit-scene--msg .ia-orbit-arm--1 .ia-orbit-planet {
  top: 1px;
  width: 3px;
  height: 3px;
  box-shadow: 0 0 4px rgba(34, 211, 238, 0.75);
}

.ia-orbit-scene--msg .ia-orbit-arm--2 .ia-orbit-planet {
  top: 5px;
  width: 2.5px;
  height: 2.5px;
  box-shadow: 0 0 3px rgba(134, 239, 172, 0.7);
}

.ia-orbit-scene--msg .ia-orbit-arm--3 .ia-orbit-planet {
  top: 3px;
  width: 2px;
  height: 2px;
  box-shadow: 0 0 3px rgba(249, 168, 212, 0.65);
}

.ia-welcome-icon {
  position: relative;
}

.ia-app-title-wrap {
  min-width: 0;
}

.ia-app-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ia-app-sub {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.ia-app-sub code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: #ddd6fe;
}

.ia-app-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.ia-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-soft);
}

.ia-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
}

.ia-status-on {
  border-color: rgba(66, 133, 244, 0.35);
  background: rgba(66, 133, 244, 0.1);
  color: #bfdbfe;
}

.ia-status-on .ia-status-dot {
  background: #4285f4;
  box-shadow: 0 0 8px rgba(66, 133, 244, 0.7);
}

.ia-status-off {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
}

.ia-status-off .ia-status-dot {
  background: #f59e0b;
}

.ia-pc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(118, 185, 0, 0.35);
  background: rgba(118, 185, 0, 0.08);
  color: #bbf7d0;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-pc-badge-icon {
  font-size: 0.85rem;
  line-height: 1;
}

/* Área central: bienvenida + mensajes */
.ia-app-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 0 12px;
}

.ia-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 12px 48px;
  position: relative;
}

.ia-welcome.is-hidden {
  display: none;
}

.ia-welcome-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 70%);
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
}

.ia-welcome-title {
  position: relative;
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f1f5f9 30%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ia-welcome-desc {
  position: relative;
  margin: 10px 0 0;
  max-width: 420px;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.ia-welcome-chips {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin-top: 28px;
}

.ia-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.ia-chip:hover:not(:disabled) {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(124, 58, 237, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ia-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ia-chip-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ede9fe;
}

.ia-chip-hint {
  font-size: 0.74rem;
  color: var(--text-soft);
}

/* Mensajes */
.ia-chat-messages {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 20px 4px 12px;
  width: 100%;
}

.ia-chat-messages.has-messages {
  display: flex;
}

.ia-msg {
  display: flex;
  gap: 12px;
  max-width: 100%;
  animation: ia-msg-in 0.25s ease-out;
}

@keyframes ia-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ia-msg-user {
  flex-direction: row-reverse;
}

.ia-msg-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow: hidden;
}

.ia-msg-bot .ia-msg-avatar {
  color: #e9d5ff;
  padding: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.98) 72%);
  border: 1px solid rgba(167, 139, 250, 0.28);
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
}

.ia-msg-bot--no-avatar .ia-msg-content {
  margin-left: 44px;
}

.ia-msg-user .ia-msg-avatar {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.ia-msg-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: min(78%, 640px);
}

.ia-msg-user .ia-msg-content {
  align-items: flex-end;
}

.ia-msg-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  padding: 0 4px;
}

.ia-msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.6;
  word-break: break-word;
}

.ia-msg-user .ia-msg-bubble {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.ia-msg-bot .ia-msg-bubble {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 6px;
}

.ia-msg-bot .ia-msg-bubble strong {
  color: inherit;
  font-weight: 650;
}

.ia-msg-bot .ia-msg-bubble .ia-kw-hw {
  color: #67e8f9;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.ia-msg-bot .ia-msg-bubble .ia-kw-hw strong,
.ia-msg-bot .ia-msg-bubble strong .ia-kw-hw {
  color: #67e8f9;
  font-weight: inherit;
}

.ia-msg-typing .ia-msg-bubble {
  display: block;
  padding: 14px 16px 12px;
  min-width: min(100%, 280px);
  max-width: 320px;
  animation: ia-typing-bubble 2.8s ease-in-out infinite;
}

.ia-typing-wave {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.ia-typing-wave-text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e9d5ff;
  background: linear-gradient(
    90deg,
    #c4b5fd 0%,
    #f5f3ff 35%,
    #a78bfa 50%,
    #f5f3ff 65%,
    #c4b5fd 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ia-typing-text-wave 2.2s ease-in-out infinite;
}

.ia-typing-wave-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(167, 139, 250, 0.12);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.16);
}

.ia-typing-wave-track-glow {
  position: absolute;
  inset: -2px 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(167, 139, 250, 0.35) 45%,
    rgba(196, 181, 253, 0.55) 50%,
    rgba(167, 139, 250, 0.35) 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: ia-typing-bar-shimmer 1.6s linear infinite;
  filter: blur(4px);
  opacity: 0.85;
}

.ia-typing-wave-track-fill {
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.15),
    #7c3aed 35%,
    #a78bfa 50%,
    #6366f1 65%,
    rgba(99, 102, 241, 0.15)
  );
  background-size: 200% 100%;
  animation: ia-typing-bar-slide 1.8s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.45);
}

.ia-typing-wave-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 22px;
  padding-top: 2px;
}

.ia-typing-wave-eq-bar {
  display: block;
  width: 4px;
  height: 35%;
  border-radius: 999px;
  background: linear-gradient(180deg, #ddd6fe 0%, #7c3aed 100%);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.35);
  transform-origin: center bottom;
  animation: ia-typing-eq-wave 1.05s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.09s);
  will-change: transform, height, opacity;
}

.ia-typing-wave-eq-bar:nth-child(odd) {
  background: linear-gradient(180deg, #e9d5ff 0%, #6366f1 100%);
}

@keyframes ia-typing-text-wave {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

@keyframes ia-typing-bar-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes ia-typing-bar-slide {
  0%, 100% {
    transform: translateX(-8%);
    background-position: 0% 50%;
    width: 38%;
  }
  50% {
    transform: translateX(145%);
    background-position: 100% 50%;
    width: 48%;
  }
}

@keyframes ia-typing-eq-wave {
  0%, 100% {
    height: 28%;
    opacity: 0.45;
    transform: scaleY(0.75);
  }
  35% {
    height: 100%;
    opacity: 1;
    transform: scaleY(1);
  }
  55% {
    height: 52%;
    opacity: 0.82;
    transform: scaleY(0.9);
  }
}

@keyframes ia-typing-bubble {
  0%, 100% {
    border-color: rgba(167, 139, 250, 0.14);
    background: rgba(15, 23, 42, 0.72);
  }
  50% {
    border-color: rgba(167, 139, 250, 0.32);
    background: rgba(22, 30, 52, 0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ia-typing-wave-text,
  .ia-typing-wave-track-glow,
  .ia-typing-wave-track-fill,
  .ia-typing-wave-eq-bar,
  .ia-msg-typing .ia-msg-bubble {
    animation: none !important;
  }

  .ia-typing-wave-text {
    color: #ddd6fe;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .ia-typing-wave-track-fill {
    width: 55%;
    transform: none;
  }

  .ia-typing-wave-eq-bar {
    height: 55%;
    opacity: 0.75;
  }
}

.ia-msg-bot .ia-msg-content {
  align-items: flex-start;
}

.ia-msg-bot:has(.ia-msg-cards) .ia-msg-content {
  max-width: min(100%, 520px);
}

.ia-msg-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 10px;
}

.ia-game-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.ia-game-card.verdict-high { border-color: rgba(34, 197, 94, 0.35); }
.ia-game-card.verdict-ok { border-color: rgba(245, 158, 11, 0.35); }
.ia-game-card.verdict-low { border-color: rgba(239, 68, 68, 0.35); }

.ia-game-card-banner {
  position: relative;
  display: block;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #0f172a;
}

.ia-game-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ia-game-banner-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--text-soft);
}

.ia-game-verdict {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ia-game-card-body {
  padding: 14px 16px 16px;
}

.ia-game-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.ia-game-card-title a {
  color: var(--text);
}

.ia-game-card-title a:hover {
  color: #c4b5fd;
}

.ia-game-ram-badge {
  background: rgba(6, 182, 212, 0.92) !important;
  color: #0f172a !important;
  font-size: 0.72rem;
  max-width: 90%;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.ia-game-ram-detail {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #22d3ee;
}

.ia-game-card-hw {
  margin: 6px 0 12px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.ia-game-fps {
  margin: 0 0 12px;
  padding: 10px 8px 4px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.ia-game-fps-pending {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.ia-game-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ia-game-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  background: #0f172a;
}

.ia-game-card-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a78bfa;
}

.ia-game-card-link:hover {
  color: #c4b5fd;
}

.ia-compare-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 18, 28, 0.95);
}

.ia-compare-side {
  text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.ia-compare-side--winner {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.12);
}

.ia-compare-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.ia-compare-score {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.ia-compare-vs {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-soft);
  letter-spacing: 0.08em;
}

.ia-compare-diff {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}

.ia-compare-link {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a78bfa;
}

.ia-action-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.ia-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.ia-action-btn--primary {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.18);
  color: #e0e7ff;
}

.ia-action-btn:hover {
  border-color: rgba(99, 102, 241, 0.55);
}

/* Tarjetas de recomendación GPU/CPU/RAM en Compert */
.ia-hw-card {
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 18, 28, 0.95);
  overflow: hidden;
}

.ia-hw-card-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.ia-hw-card-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}

.ia-hw-card-current {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.ia-hw-card-grid {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 16px;
  padding: 16px;
}

@media (max-width: 640px) {
  .ia-hw-card-grid {
    grid-template-columns: 1fr;
  }
}

.ia-hw-pie-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ia-hw-pie-ring {
  position: relative;
  width: 148px;
  height: 148px;
  flex-shrink: 0;
}

.ia-hw-pie {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.ia-hw-pie-hole {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(12, 14, 22, 0.98);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1;
}

.ia-hw-pie-hole--rendimiento {
  width: 86px;
  height: 86px;
  padding: 8px 6px;
}

.ia-hw-pie-hole-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.ia-hw-pie-hole-label-long {
  font-size: 0.58rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  max-width: 100%;
  word-break: break-word;
  hyphens: auto;
}

.ia-hw-pie-hole-sub {
  font-size: 0.65rem;
  color: #64748b;
}

.ia-hw-pie-sub {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  line-height: 1.35;
}

.ia-hw-pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.ia-hw-pie-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.ia-hw-pie-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.ia-hw-pie-legend-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ia-hw-pie-legend-text strong {
  font-size: 0.78rem;
  color: #e2e8f0;
  font-weight: 600;
}

.ia-hw-pie-legend-text span {
  color: #94a3b8;
  font-size: 0.72rem;
}

.ia-hw-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ia-hw-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.ia-hw-rank {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.35);
  color: #e9d5ff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ia-hw-item-name {
  font-weight: 600;
  color: #c4b5fd;
  text-decoration: none;
  font-size: 0.9rem;
}

.ia-hw-item-name:hover {
  color: #ddd6fe;
}

.ia-hw-item-price {
  margin: 2px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #22d3ee;
}

.ia-hw-item-reason {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}

.ia-composer-wrap {
  position: relative;
}

.ia-game-autocomplete {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 14, 22, 0.98);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.4);
}

.ia-game-autocomplete.hidden {
  display: none;
}

.ia-game-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.ia-game-ac-item:hover,
.ia-game-ac-item.active {
  background: rgba(124, 58, 237, 0.18);
}

.ia-game-ac-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 29px;
  border-radius: 6px;
  object-fit: cover;
  background: #0f172a;
  border: 1px solid var(--border);
}

.ia-game-ac-thumb-fallback {
  flex-shrink: 0;
  width: 52px;
  height: 29px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-soft);
}

.ia-game-ac-text {
  min-width: 0;
  flex: 1;
}

.ia-game-ac-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ia-game-ac-year {
  display: block;
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 1px;
}

/* Compositor (input fijo abajo) */
.ia-composer {
  flex-shrink: 0;
  padding: 12px 0 20px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(10, 14, 23, 0.85) 30%);
}

.ia-composer-form {
  margin: 0;
}

.ia-composer-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: rgba(17, 24, 39, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 12px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ia-composer-box:focus-within {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.15),
    0 0 24px rgba(124, 58, 237, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.ia-composer-input {
  flex: 1;
  resize: none;
  min-height: 24px;
  max-height: 140px;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ia-composer-input:focus {
  outline: none;
}

.ia-composer-input::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.ia-composer-send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #4285f4, #7c3aed);
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.35);
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}

.ia-composer-send:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.ia-composer-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.ia-composer-send.is-loading {
  animation: ia-send-pulse 1s ease-in-out infinite;
}

@keyframes ia-send-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.ia-composer-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.55);
}

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

@media (max-width: 640px) {
  .ia-app {
    padding: 0 12px;
    min-height: calc(100dvh - 68px);
  }

  .ia-app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 14px;
  }

  .ia-app-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .ia-welcome-chips {
    grid-template-columns: 1fr;
  }

  .ia-msg-content {
    max-width: 88%;
  }

  .ia-composer {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* Legacy — recomendaciones API */
.ia-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.ia-rec-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.ia-rec-card:hover {
  border-color: rgba(167, 139, 250, 0.45);
  transform: translateY(-2px);
}

.ia-rec-kind {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c4b5fd;
}

.ia-rec-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.35;
}

.ia-rec-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-family: var(--mono);
}

.ia-rec-reason {
  font-size: 0.82rem;
  color: #ddd6fe;
  line-height: 1.45;
}

.ia-muted {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .mipc-top-grid { grid-template-columns: 1fr; }
  .mipc-privacy-note { flex-direction: column; align-items: stretch; }
  .mipc-privacy-icon { width: 44px; height: 44px; }
  .mipc-system-row dd { text-align: left; }
  .mipc-layout { grid-template-columns: 1fr; }
  .mipc-config-panel { position: static; }
  .mipc-spec-grid { grid-template-columns: 1fr; }
  .mipc-system-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
  .mipc-spec-list { grid-template-columns: 1fr; }
}

/* ── Footer ── */
.site-footer {
  position: relative;
  margin-top: 80px;
  padding: 56px 0 28px;
  border-top: 1px solid rgba(99, 102, 241, 0.18);
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, rgba(0, 0, 0, 0.45) 38%, rgba(10, 14, 23, 0.95) 100%);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 80% at 12% 0%, rgba(99, 102, 241, 0.14), transparent 60%),
    radial-gradient(ellipse 40% 60% at 88% 20%, rgba(34, 211, 238, 0.08), transparent 55%);
}

.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(120px, 1fr));
  gap: 36px 28px;
  padding-bottom: 36px;
}

.footer-brand-col {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-logo-mark {
  display: block;
  width: 48px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.footer-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f1f5f9 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tagline {
  margin: 0 0 16px;
  max-width: 34ch;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 10px;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.footer-social-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.footer-social-link--x .footer-social-icon {
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.footer-social-link:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-1px);
}

.footer-social-link--youtube:hover {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
}

.footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.footer-affiliates-note {
  margin-top: 16px;
}

.footer-affiliates-note a {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a5b4fc;
  text-decoration: none;
}

.footer-affiliates-note a:hover {
  color: var(--accent);
}

.footer-affiliates {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  max-width: 36ch;
}

.footer-affiliates-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.footer-affiliates-lead {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(148, 163, 184, 0.88);
}

.footer-affiliates-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-affiliates-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.footer-affiliates-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(232, 93, 4, 0.85);
}

.footer-col-title {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--text-soft);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover {
  color: #e0e7ff;
  transform: translateX(3px);
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.footer-copy a {
  color: #a5b4fc;
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--accent);
}

.footer-affiliate {
  margin: 0;
  flex: 1 1 220px;
  max-width: 420px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.72);
  text-align: right;
}

.footer-affiliate a {
  color: #a5b4fc;
  text-decoration: none;
  white-space: nowrap;
}

.footer-affiliate a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .footer-affiliate {
    text-align: left;
    max-width: none;
  }
}

.footer-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-credit-badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #86efac;
  background: rgba(118, 185, 0, 0.1);
  border: 1px solid rgba(118, 185, 0, 0.22);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Responsive ── */
@media (max-width: 1320px) {
  .nav-label-long { display: none; }
  .nav-label-short { display: inline; }
}

@media (max-width: 1080px) {
  .logo-gpu-mark {
    width: 76px;
    max-height: 30px;
    margin-left: -6px;
  }

  .logo-wordmark {
    font-size: 0.92rem;
  }

  .nav-link { padding: 7px 9px; font-size: 0.78rem; }
}

@media (max-width: 960px) {
  .nav-label,
  .nav-label-short,
  .nav-label-long { display: none !important; }
  .nav-link { padding: 7px 8px; }
}

@media (max-width: 880px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .logo-gpu-mark {
    display: none;
  }

  .logo { grid-column: 1; grid-row: 1; min-width: 0; flex-shrink: 1; }

  .header-end {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions {
    margin-right: 0;
  }

  .header-actions-divider { display: none; }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: stretch;
    overflow: visible;
  }

  .header-nav-rail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 6px;
    border-radius: 14px;
  }

  .nav-rail-indicator {
    display: none;
  }

  .nav-link.active {
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.12);
  }

  .nav-link-compert.active {
    background: rgba(167, 139, 250, 0.16);
    border-color: rgba(167, 139, 250, 0.32);
    box-shadow: 0 2px 10px rgba(167, 139, 250, 0.12);
  }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 16px 14px;
    background: rgba(10, 14, 23, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    z-index: 10;
  }

  .site-header { position: sticky; }
  .header-inner { position: relative; }

  .nav-link {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    justify-content: flex-start;
  }

  .site-header.nav-open .nav-label { display: inline !important; }
  .site-header.nav-open .nav-label-short { display: none !important; }

  .hero-shell { padding: 28px 22px 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .compare-result { grid-template-columns: 1fr; }
  .result-vs { flex-direction: row; padding: 16px 0; }
}

@media (max-width: 600px) {
  .hero-metrics { width: 100%; justify-content: space-between; }
  .hero-metric { min-width: 0; flex: 1; padding: 10px 8px; }
  .hero-shortcuts { gap: 6px; }
  .hero-shortcut { padding: 8px 12px; font-size: 0.78rem; }
  .verdict-grid { grid-template-columns: 1fr; }
  .compare-page-form { flex-direction: column; }
}

/* ── Compare enhanced ── */
.compare-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  margin: 40px 0 32px;
}

.summary-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
}

.summary-card.winner {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 16px 40px var(--primary-glow);
}

.summary-card h2 { font-size: 1rem; margin: 12px 0 8px; }

.win-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
}

.charts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.chart-card h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.chart-title-component {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.chart-wrap canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
}

.chart-leaders,
.chart-slice-bubbles,
.chart-callouts {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.chart-wrap.chart-decorations-ready .chart-leaders,
.chart-wrap.chart-decorations-ready .chart-slice-bubbles,
.chart-wrap.chart-decorations-ready .chart-callouts {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

/* Reposicionar etiquetas sin repetir animación de entrada (clic / resize) */
.chart-wrap.chart-decorations-static.chart-decorations-ready .chart-callout,
.chart-wrap.chart-decorations-static.chart-decorations-ready .slice-bubble-cluster {
  animation: none !important;
  opacity: 1;
  transform: translate(-50%, -50%);
  filter: none;
}

.chart-wrap.chart-decorations-static.chart-decorations-ready .chart-leader-line {
  transition: none !important;
  stroke-dashoffset: 0;
}

.chart-wrap.chart-decorations-static.chart-decorations-ready .chart-leader-head {
  transition: none !important;
  opacity: 1;
  transform: none;
}

.chart-wrap.chart-decorations-static.chart-decorations-ready .slice-bubble {
  animation: slice-bubble-float 2.6s ease-in-out infinite;
  opacity: 0;
}

.chart-leader-line {
  stroke-dasharray: var(--line-len, 80);
  stroke-dashoffset: var(--line-len, 80);
  transition: stroke-dashoffset 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-wrap.chart-decorations-ready .chart-leader-line {
  stroke-dashoffset: 0;
  transition-delay: calc(var(--line-i, 0) * 0.09s + 0.12s);
}

.chart-leader-head {
  opacity: 0;
  transform-origin: center;
  transform: scale(0.4);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-wrap.chart-decorations-ready .chart-leader-head {
  opacity: 1;
  transform: scale(1);
  transition-delay: calc(var(--line-i, 0) * 0.09s + 0.38s);
}

.chart-wrap.chart-decorations-ready .chart-callout {
  animation: chart-callout-enter 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--callout-i, 0) * 0.1s + 0.18s);
}

.chart-wrap.chart-decorations-ready .slice-bubble-cluster {
  animation: chart-bubble-cluster-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--bubble-i, 0) * 0.11s + 0.22s);
}

.chart-wrap.chart-decorations-resize.chart-decorations-ready .chart-leader-line {
  transition-duration: 0.38s;
}

.chart-wrap.chart-decorations-resize.chart-decorations-ready .chart-callout {
  animation-duration: 0.42s;
  animation-delay: calc(var(--callout-i, 0) * 0.05s + 0.06s);
}

@keyframes chart-callout-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

@keyframes chart-bubble-cluster-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chart-leader-line,
  .chart-leader-head,
  .chart-wrap.chart-decorations-ready .chart-callout,
  .chart-wrap.chart-decorations-ready .slice-bubble-cluster {
    animation: none !important;
    transition: none !important;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .chart-wrap.chart-decorations-ready .chart-leader-head {
    transform: none;
  }
}

.chart-leaders {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.chart-callouts {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.chart-callout {
  position: absolute;
  max-width: 100px;
  line-height: 1.3;
  z-index: 6;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(10, 14, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.callout-name {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
  margin-bottom: 3px;
}

.callout-pct {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--callout-color, #94a3b8);
  line-height: 1;
}

.spec-table-section {
  margin-top: 8px;
}

.spec-table-heading {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.spec-source-note {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.spec-source-note a {
  color: var(--accent);
}

.spec-table-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table thead {
  background: rgba(0, 0, 0, 0.35);
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.spec-table tbody tr:last-child td {
  border-bottom: none;
}

.spec-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.spec-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.06);
}

.spec-table .col-spec {
  width: 28%;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-table th.col-spec {
  color: var(--text-soft);
  font-size: 0.75rem;
  position: relative;
}

.spec-table thead .col-spec::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 0;
  height: 2px;
  background: var(--border-strong);
}

.spec-table .col-component {
  width: 36%;
  text-align: center;
}

.spec-table .col-left {
  border-left: 2px solid rgba(255, 255, 255, 0.14);
}

.spec-table .col-right {
  border-left: 2px solid rgba(255, 255, 255, 0.14);
}

.spec-table thead .col-left,
.spec-table thead .col-right {
  position: relative;
}

.spec-table thead .col-left::after,
.spec-table thead .col-right::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--border-strong);
}

.spec-table thead .col-left::after {
  left: 10%;
  right: 0;
}

.spec-table thead .col-right::after {
  left: 0;
  right: 10%;
}

.spec-table thead .col-right::before {
  content: "VS";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 4px rgba(10, 14, 23, 0.95);
  z-index: 2;
}

.spec-table .col-component.col-winner {
  background: rgba(99, 102, 241, 0.1);
  box-shadow: inset 0 3px 0 var(--primary);
}

.spec-col-brand {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 4px;
}

.spec-col-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.spec-table .col-value {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

.spec-table .cell-win {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #86efac;
  font-weight: 700;
}

.win-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
  font-size: 0.65rem;
  font-family: var(--font);
  vertical-align: middle;
}

@media (max-width: 768px) {
  .spec-table th,
  .spec-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .spec-col-name {
    font-size: 0.75rem;
  }

  .spec-table .col-spec {
    font-size: 0.72rem;
  }
}

@media (max-width: 900px) {
  .compare-summary { grid-template-columns: 1fr; }
  .charts-row { grid-template-columns: 1fr; }
}

/* ── Nav page transitions ── */
body.page-nav-enter main > section {
  opacity: 0;
  transition: opacity 0.26s ease;
}

body.page-nav-enter main > section.page-hero {
  transform: translateY(12px);
  transition:
    opacity 0.26s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-nav-enter.page-nav-enter--fwd main > section.page-hero {
  transform: translateX(16px);
}

body.page-nav-enter.page-nav-enter--back main > section.page-hero {
  transform: translateX(-16px);
}

body.page-nav-enter.page-nav-enter--active main > section {
  opacity: 1;
}

body.page-nav-enter.page-nav-enter--active main > section.page-hero {
  transform: none;
}

body.page-nav-enter main > section.page-hero { transition-delay: 0.02s; }
body.page-nav-enter main > section.catalog-section,
body.page-nav-enter main > section.mipc-page,
body.page-nav-enter main > section.detector-page,
body.page-nav-enter main > section.games-page { transition-delay: 0.06s; }

body.page-nav-leave main > section {
  transition: opacity 0.18s ease;
}

body.page-nav-leave main > section.page-hero {
  transition:
    opacity 0.18s ease,
    transform 0.22s ease;
}

body.page-nav-leave.page-nav-leave--active main > section {
  opacity: 0;
}

body.page-nav-leave.page-nav-leave--active main > section.page-hero {
  transform: translateY(-8px);
}

body.page-nav-leave.page-nav-leave--fwd.page-nav-leave--active main > section.page-hero {
  transform: translateX(-14px);
}

body.page-nav-leave.page-nav-leave--back.page-nav-leave--active main > section.page-hero {
  transform: translateX(14px);
}

@media (prefers-reduced-motion: reduce) {
  body.page-nav-enter main > section,
  body.page-nav-leave main > section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
