/* ============================================================
   HERO (home)
   ============================================================ */
.rm-hero {
  background: #fff;
  padding: 60px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rm-border);
}
.rm-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(244,126,30,0.10), transparent 70%);
  pointer-events: none;
}
.rm-hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(60,101,199,0.10), transparent 70%);
  pointer-events: none;
}

.rm-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.rm-hero__finder {
  min-width: 0;
  display: flex;
  align-items: stretch;
}
.rm-hero__eyebrow {
  margin-bottom: 16px;
}
.rm-hero__high-score {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(60,101,199,0.08);
  border: 1px solid rgba(60,101,199,0.14);
  color: var(--rm-blue-dark);
  font-size: 0.56rem;
}
.rm-hero-tool-card {
  width: 100%;
  background:
    radial-gradient(circle at top right, rgba(244,126,30,0.18), transparent 34%),
    linear-gradient(180deg, #101426 0%, #192546 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 32px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(13,15,26,0.22);
  position: relative;
  overflow: hidden;
}
.rm-hero-tool-card::after {
  content: '';
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(60,101,199,0.25), transparent 70%);
  pointer-events: none;
}
.rm-hero-tool-card__title {
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin: 18px 0 14px;
}
.rm-hero-tool-card__desc {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 54ch;
}
.rm-hero-tool-card__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.rm-hero-tool-card__bullets span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.90);
  font-size: 0.86rem;
  font-weight: 700;
}
.rm-hero-tool-card__bullets span::before {
  content: '•';
  color: var(--rm-orange);
  font-size: 1rem;
  line-height: 1;
}

.rm-hero__title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  color: var(--rm-text);
}

.rm-hero__subtitle {
  font-size: 1.05rem;
  color: var(--rm-text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 560px;
}
.rm-hero__questline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  max-width: 720px;
}
.rm-hero__quest {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,248,250,0.96) 100%);
  border: 1px solid rgba(26,29,46,0.08);
  box-shadow: 0 10px 24px rgba(13,15,26,0.06);
}
.rm-hero__quest-num {
  color: var(--rm-orange);
  font-size: 0.55rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.rm-hero__quest-copy {
  color: var(--rm-text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.rm-hero__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.rm-hero__stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(26,29,46,0.10);
  padding-top: 24px;
}
.rm-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rm-hero__stat-num {
  font-size: 1.05rem;
  color: var(--rm-blue);
  text-shadow: 2px 2px 0 var(--rm-orange);
}
.rm-hero__stat-label {
  font-size: 0.7rem;
  color: var(--rm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}


/* ============================================================
   PLATFORM GRID — logo-first big cards (romsjuegos-style)
   ============================================================ */
.rm-section {
  padding: 64px 0;
  background: #fff;
}
.rm-section--alt { background: var(--rm-bg-alt); }

.rm-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.rm-platforms-grid__empty {
  grid-column: 1 / -1;
  color: var(--rm-text-muted);
}
.rm-platform-tile {
  display: block;
  background: #fff;
  border: 2px solid var(--rm-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}
.rm-platform-tile:hover {
  border-color: var(--rm-orange);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(244,126,30,0.18);
}
.rm-platform-tile__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  background: #fff;
  padding: 22px;
  border-bottom: 1px solid var(--rm-border);
}
.rm-platform-tile__logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.rm-platform-tile:hover .rm-platform-tile__logo {
  transform: scale(1.05);
}
.rm-platform-tile__name-fallback {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--rm-text);
  text-align: center;
  line-height: 1.15;
  word-break: break-word;
}
.rm-platform-tile__bar {
  background: var(--rm-bg-alt);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rm-platform-tile__name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--rm-text);
}
.rm-platform-tile__count {
  font-size: 0.68rem;
  color: var(--rm-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  white-space: nowrap;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.rm-section-title {
  font-size: 1.85rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--rm-text);
}
.rm-section-title span { color: var(--rm-blue); }
.rm-section-subtitle {
  color: var(--rm-text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
}
.rm-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.rm-section-header .rm-section-title { margin-bottom: 2px; }
.rm-section-header .rm-section-subtitle { margin-bottom: 0; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.rm-how-it-works { background: var(--rm-bg-alt); }
.rm-hiw-card {
  background: #fff;
  border: 1px solid var(--rm-border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rm-hiw-card:hover {
  transform: translateY(-4px);
  border-color: var(--rm-orange);
  box-shadow: 0 8px 20px rgba(244,126,30,0.12);
}
.rm-hiw-card__icon {
  display: inline-block;
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.rm-hiw-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--rm-text);
}
.rm-hiw-card__desc {
  color: var(--rm-text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ============================================================
   HOME TRIVIA BAND
   ============================================================ */
.rm-home-trivia-band {
  padding-top: 30px;
  padding-bottom: 36px;
  background:
    linear-gradient(180deg, rgba(247,248,250,0) 0%, rgba(247,248,250,0.55) 100%);
}
.rm-home-trivia-band .rm-container {
  max-width: 1400px;
}
.rm-home-trivia-band .rm-trivia--featured {
  border-radius: 34px;
}

@media (max-width: 1024px) {
  .rm-hero { padding: 48px 0 60px; }
  .rm-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .rm-hero__finder { max-width: 680px; margin: 0 auto; width: 100%; }
  .rm-hero__questline { grid-template-columns: 1fr; }
  .rm-section-title { font-size: 1.4rem; }
}
@media (max-width: 640px) {
  .rm-hero { padding: 32px 0 48px; }
  .rm-hero__stats { gap: 24px; }
  .rm-hero__stat-num { font-size: 1rem; }
  .rm-section { padding: 44px 0; }
  .rm-platforms-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rm-platform-tile__logo-wrap { padding: 16px; }
  .rm-hero-tool-card { padding: 24px 20px; border-radius: 18px; }
  .rm-hero-tool-card__bullets { flex-direction: column; }
  .rm-hero__high-score { font-size: 0.5rem; line-height: 1.7; }
  .rm-hero__quest { border-radius: 16px; }
  .rm-home-trivia-band {
    padding-top: 18px;
    padding-bottom: 22px;
  }
}
.rm-trust-bar__item span {
  display: block;
  color: var(--rm-text-muted, #556070);
  font-size: 0.82rem;
  margin-top: 2px;
}
@media (max-width: 900px) {
  .rm-trust-bar__list { grid-template-columns: 1fr; gap: 14px; }
}
