/* ============================================================
   Muelas del Ring — landing premium
   Capa de presentación: navegación, hero, secciones, cierre y
   footer. El editor conserva sus estilos en styles.css.
   ============================================================ */

:root {
  --ring-ink: #08131c;
  --ring-ink-soft: #0e202d;
  --ring-panel: rgba(9, 26, 38, .82);
  --ring-line: rgba(120, 205, 230, .18);
  --ring-text: #f3f9fc;
  --ring-muted: #a9c2d1;

  /* Paleta tomada del logo: "LETRAS" en cian y rojo, y los dos luchadores. */
  --ring-cyan: #3dd9dd;   /* LETRAS */
  --ring-red: #ef142c;    /* LETRAS */
  --ring-ch1: #f83b2f;    /* MueLucho */
  --ring-ch2: #1e7c41;
  --ring-ch3: #faa71e;
  --ring-chb1: #f85c8e;   /* MueLucha */
  --ring-chb2: #48ffca;
  --ring-chb3: #faa71e;

  --ring-gold: var(--ring-ch3);
  --ring-gold-deep: #d4a017;
  --ring-teal: var(--ring-cyan);
  --ring-display: 'Sancreek', 'Montserrat', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body.mr-page {
  overflow-x: clip;
  background: var(--ring-ink-soft);
  color: var(--ring-text);
}

@supports not (overflow: clip) {
  body.mr-page { overflow-x: hidden; }
}

body.mr-page img { max-width: 100%; }
body.mr-page a { color: inherit; }
body.mr-page :focus-visible { outline: 3px solid var(--ring-cyan); outline-offset: 4px; }

/* VeloLegible sobre el parallax para que el texto de la landing no pierda contraste. */
.mr-veil {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(32, 194, 215, .13), transparent 38%),
    radial-gradient(ellipse at 88% 26%, rgba(247, 201, 72, .1), transparent 34%),
    linear-gradient(180deg, rgba(8, 19, 28, .58) 0%, rgba(8, 19, 28, .8) 48%, rgba(6, 14, 21, .95) 100%);
}

/* La landing vuelve a permitir seleccionar el texto: la lectura tiene prioridad
   sobre el bloqueo global que necesita el lienzo del editor. El arte original
   (diseños, miniaturas y tarjetas de personaje) sigue protegido. */
body.mr-page { -webkit-user-select: text; user-select: text; }
.mr-page #stage,
.mr-page .mr-roster-figure,
.mr-page .char-card,
.mr-page .gallery-thumb,
.mr-page .mr-collect-card {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.mr-container { width: min(100% - 44px, 1320px); margin-inline: auto; }

/* ---------------------------------------------------------
   Navegación compartida (incluye/app-navbar.php)
   --------------------------------------------------------- */
.dg-app-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(120, 205, 230, .14);
  background: rgba(6, 16, 24, .84);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dg-app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 44px, 1320px);
  max-width: none;
  min-height: 72px;
  margin: 0 auto;
  padding: 8px 0;
}

.dg-app-brand { display: inline-flex; flex: 0 1 auto; align-items: center; min-width: 0; }
.dg-app-brand img {
  display: block;
  width: min(190px, 28vw);
  max-height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 3px 14px rgba(32, 194, 215, .16));
}
.dg-app-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.dg-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, .88);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.dg-app-link:hover { transform: translateY(-1px); border-color: rgba(247, 201, 72, .62); color: #fff; }
.dg-app-games { border-color: transparent; }
.dg-app-profile { border-color: rgba(247, 201, 72, .42); color: #ffe08a; }
.dg-app-register {
  border-color: rgba(247, 201, 72, .5);
  background: linear-gradient(118deg, #f7c948, #e08a17);
  color: #24160a;
}
.dg-app-register:hover { background: linear-gradient(118deg, #ffdb72, #ef9c26); color: #24160a; }
.dg-app-user {
  max-width: 180px;
  overflow: hidden;
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Botones
   --------------------------------------------------------- */
.mr-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.mr-button:hover { transform: translateY(-2px); }

.mr-button-primary {
  border-color: rgba(247, 201, 72, .5);
  background: linear-gradient(118deg, #f7c948, #e08a17 58%, #e04b2a);
  box-shadow: 0 14px 34px rgba(247, 201, 72, .24), inset 0 1px 0 rgba(255, 255, 255, .28);
  color: #1d1206;
}
.mr-button-primary:hover { box-shadow: 0 18px 40px rgba(247, 201, 72, .38); color: #1d1206; }

.mr-button-quiet {
  border-color: rgba(120, 205, 230, .3);
  background: rgba(10, 30, 44, .58);
  color: #dff1f8;
}
.mr-button-quiet:hover { border-color: rgba(120, 205, 230, .7); background: rgba(16, 46, 66, .62); color: #fff; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.mr-hero {
  position: relative;
  display: flex;
  min-height: min(760px, calc(100svh - 72px));
  align-items: center;
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) 0 clamp(84px, 10vw, 132px);
}

/* Escenario del hero: reflectores, piso del ring, destellos y estrellas.
   Los cuatro assets son 16:9 (1800x1013) y se estiran a sangre con object-fit,
   así el ambiente queda igual que en el fondo del editor. */
.mr-hero-stage {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.mr-hero-stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* Focos cruzados entrando desde arriba: es lo que hace que se lea como ring. */
.mr-hero-spotlight {
  opacity: .62;
  mix-blend-mode: screen;
  animation: mr-focus 11s ease-in-out infinite alternate;
}

/* Destellos y polvo de estrellas del propio juego. */
.mr-hero-sparkle {
  opacity: .58;
  mix-blend-mode: screen;
  animation: mr-twinkle 8s ease-in-out infinite alternate;
}
.mr-hero-stars {
  opacity: .3;
  animation: mr-drift 46s linear infinite;
}

@keyframes mr-focus {
  from { opacity: .44; transform: scale(1) translateY(-1%); }
  to   { opacity: .72; transform: scale(1.04) translateY(1%); }
}
@keyframes mr-floor {
  from { opacity: .42; transform: scale(1); }
  to   { opacity: .6; transform: scale(1.03); }
}
@keyframes mr-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-2%, 1.5%, 0); }
}

.mr-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
}

.mr-hero-copy { position: relative; z-index: 2; max-width: 640px; }

.mr-hero-logo {
  display: block;
  width: min(320px, 64vw);
  max-height: 132px;
  margin: 0 0 16px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 30px rgba(32, 194, 215, .2));
}

.mr-hero-copy h1,
.mr-section-heading h2,
.mr-closing-content h2,
.mr-gate h2,
.mr-editor-bar h2 {
  margin: 0;
  font-family: var(--ring-display);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.02;
  text-shadow: 0 6px 28px rgba(0, 0, 0, .45);
}

.mr-hero-copy h1 { max-width: 720px; font-size: clamp(2.9rem, 6.4vw, 5.6rem); }
.mr-hero-copy h1 span {
  color: var(--ring-cyan);
  text-shadow: 0 6px 30px rgba(61, 217, 221, .38), 0 0 60px rgba(61, 217, 221, .18);
}

.mr-hero-copy > p {
  max-width: 520px;
  margin: 20px 0 24px;
  color: #cfe0ea;
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  line-height: 1.8;
}

.mr-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }

.mr-hero-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--ring-muted);
  font-size: .75rem;
}
.mr-hero-proof span { color: var(--ring-ch3); }

.mr-scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: grid;
  width: 30px;
  height: 46px;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, .27);
  border-radius: 99px;
  padding-top: 8px;
  transform: translateX(-50%);
}
.mr-scroll-cue span {
  width: 4px;
  height: 9px;
  border-radius: 5px;
  background: var(--ring-cyan);
  animation: mr-scroll 1.6s ease-in-out infinite;
}
@keyframes mr-scroll {
  0%, 100% { opacity: .45; translate: 0 0; }
  50% { opacity: 1; translate: 0 8px; }
}

/* El hero lo ocupa únicamente el stack de diseños de la comunidad. */
.mr-hero-art {
  position: relative;
  display: grid;
  min-height: clamp(380px, 42vw, 540px);
  place-items: center;
  isolation: isolate;
}

/* Stack coleccionable: grid de diseños reales creados por la comunidad. */
.mr-collect {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: clamp(10px, 1.4vw, 18px);
  width: 100%;
}
.mr-collect-card {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  padding: 6px;
  background: conic-gradient(from 200deg at 50% 50%, var(--ring-cyan), var(--ring-ch1), var(--ring-ch3), var(--ring-chb1), var(--ring-chb2), var(--ring-cyan));
  box-shadow: 0 20px 46px rgba(0, 0, 0, .5), 0 0 24px rgba(61, 217, 221, .14);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
/* Apilado sutil: cada tarjeta se inclina un poco hacia el centro. */
.mr-collect-card:nth-child(odd)  { transform: rotate(-1.6deg); }
.mr-collect-card:nth-child(even) { transform: rotate(1.6deg); }
.mr-collect-card:nth-child(3n + 1) { transform: rotate(-2.4deg) translateY(6px); }
.mr-collect-card:nth-child(3n)     { transform: rotate(2.4deg) translateY(-6px); }
.mr-collect-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
  object-position: center;
  background: #06121b;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
/* Barrido de luz sobre el borde, como un holograma. */
.mr-collect-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, transparent 32%, rgba(255, 255, 255, .5) 50%, transparent 68%);
  content: '';
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.mr-collect-card:hover,
.mr-collect-card:focus-visible {
  z-index: 2;
  box-shadow: 0 26px 56px rgba(0, 0, 0, .6), 0 0 40px rgba(61, 217, 221, .34);
}
.mr-collect-card:hover::after,
.mr-collect-card:focus-visible::after { opacity: 1; }

/* Al enfocar o pasar el cursor la tarjeta se endereza y crece. */
.mr-collect-card:hover,
.mr-collect-card:focus-visible { transform: rotate(0deg) translateY(0) scale(1.05); }

/* Respiración lenta para que el conjunto se sienta vivo. */
.mr-collect-card img { animation: mr-card-breathe 7s ease-in-out infinite; }
.mr-collect-card:nth-child(2) img { animation-delay: -2.3s; }
.mr-collect-card:nth-child(3) img { animation-delay: -4.6s; }
@keyframes mr-card-breathe {
  0%, 100% { transform: scale(1); }


}

.mr-hero-orb { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.mr-hero-orb-one { top: 14%; right: -90px; width: 240px; height: 240px; background: rgba(32, 194, 215, .14); filter: blur(50px); }
.mr-hero-orb-two { bottom: -100px; left: 24%; width: 250px; height: 170px; background: rgba(247, 201, 72, .1); filter: blur(58px); }

/* ---------------------------------------------------------
   Personajes
   --------------------------------------------------------- */
.mr-roster {
  position: relative;
  padding: clamp(70px, 8vw, 112px) 0;
  border-block: 1px solid rgba(120, 205, 230, .1);
  background: linear-gradient(105deg, rgba(9, 24, 35, .93), rgba(14, 40, 56, .82));
}

.mr-section-heading { margin-bottom: 30px; }
.mr-section-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .6fr);
  align-items: end;
  gap: 30px;
}
.mr-section-heading h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); }
.mr-section-heading h2 span { color: var(--ring-cyan); text-shadow: 0 4px 26px rgba(61, 217, 221, .3); }
.mr-section-heading-split > p {
  max-width: 430px;
  margin: 0 0 6px auto;
  color: var(--ring-muted);
  font-size: .88rem;
  line-height: 1.75;
}

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

.mr-roster-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 148px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--card-c1, #3dd9dd) 30%, transparent);
  border-radius: 18px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--card-c1, #3dd9dd) 12%, transparent), transparent 55%),
    linear-gradient(150deg, rgba(15, 42, 58, .8), rgba(7, 20, 30, .9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
/* Franja con los tres colores del luchador, tomada del logo. */
.mr-roster-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-c1, #f83b2f), var(--card-c2, #1e7c41) 55%, var(--card-c3, #faa71e));
  content: '';
  pointer-events: none;
}
.mr-roster-card::after {
  position: absolute;
  inset: auto -20% -70% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-c1, #f83b2f) 18%, transparent), transparent 68%);
  content: '';
  pointer-events: none;
}
.mr-roster-card:hover {
  border-color: var(--card-c1, #3dd9dd);
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .35), inset 0 0 0 1px color-mix(in srgb, var(--card-c1, #3dd9dd) 22%, transparent);
}

.mr-roster-figure {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: #06121b;
}
.mr-roster-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.mr-roster-card:hover .mr-roster-figure img { transform: scale(1.06); }
.mr-roster-figure span {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: rgba(4, 12, 19, .68);
  color: var(--card-c3, #faa71e);
  font-size: .55rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.mr-roster-body { min-width: 0; }
.mr-roster-body h3 {
  margin: 0;
  font-family: var(--ring-display);
  font-size: 1.6rem;
  line-height: 1.1;
  text-shadow: 0 3px 20px color-mix(in srgb, var(--card-c1, #f83b2f) 42%, transparent);
}
.mr-roster-body p { margin: 9px 0 0; color: var(--ring-muted); font-size: .8rem; line-height: 1.7; }
.mr-roster-link {
  color: var(--card-c1, var(--ring-cyan));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.mr-roster-link:hover { color: #fff; }

.mr-hint { color: var(--ring-muted); font-size: .72rem; }

/* ---------------------------------------------------------
   Editor
   --------------------------------------------------------- */
.mr-editor-section {
  position: relative;
  padding: clamp(58px, 7vw, 92px) 0 clamp(66px, 8vw, 104px);
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(8, 22, 32, .95), rgba(5, 13, 20, .98));
}

.mr-editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 44px, 1320px);
  margin: 0 auto 20px;
}
.mr-editor-bar h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
.mr-editor-bar h2 span { color: var(--ring-cyan); text-shadow: 0 4px 26px rgba(61, 217, 221, .3); }

.mr-session-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(122, 240, 178, .24);
  border-radius: 99px;
  padding: 9px 13px;
  background: rgba(46, 160, 96, .1);
  color: #9cf0c4;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}
.mr-session-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #74eaa8;
  box-shadow: 0 0 10px rgba(116, 234, 168, .7);
}

.mr-editor-layout {
  display: grid;
  /* Proporción de la versión anterior (col-lg-5 / col-lg-7): el visor necesita
     más ancho que los controles para que el lienzo 3/4 respire. */
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: 20px;
  width: min(100% - 44px, 1320px);
  margin-inline: auto;
}

.mr-panel {
  border: 1px solid rgba(120, 205, 230, .16);
  border-radius: 19px;
  padding: 20px 22px;
  background: linear-gradient(150deg, rgba(16, 44, 61, .78), rgba(8, 23, 34, .92));
  box-shadow: 0 20px 48px rgba(0, 0, 0, .3);
}

.mr-panel > .panel-heading { margin-bottom: 16px; }
.mr-panel .panel-heading h2,
.mr-panel .panel-heading h3 {
  margin: 0 0 6px;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.mr-panel .panel-heading p { margin: 0; color: var(--ring-muted); font-size: .72rem; line-height: 1.65; }
.mr-panel hr { border-color: rgba(255, 255, 255, .1); }

.mr-panel .panel-subtitle {
  margin: 0 0 9px;
  color: #dbeaf2;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mr-panel .color-title { color: #bcd3df; letter-spacing: .06em; text-transform: uppercase; }
.mr-panel .color-card { background: rgba(255, 255, 255, .04); }
.mr-panel .form-control,
.mr-panel .input-group-text {
  border-color: rgba(120, 205, 230, .2);
  background: rgba(5, 17, 25, .7);
  color: var(--ring-text);
  font-size: .84rem;
}
.mr-panel .form-control:focus {
  border-color: var(--ring-teal);
  box-shadow: 0 0 0 3px rgba(32, 194, 215, .16);
}
.mr-panel .input-group-text { color: var(--ring-muted); font-size: .78rem; }

/* El panel de controles no tiene scroll propio: se desplaza con la página, que
   ya es lo que hace el usuario. Antes llevaba max-height + overflow-y, y eso
   generaba un segundo scroll anidado dentro del editor.
   Ninguna de las dos columnas se ancla: el visor depende del alto de la ventana
   para caber, y atarlo al scroll descuadraba el arco y la banda. */
.mr-editor-controls { min-width: 0; }
.mr-editor-output { display: grid; gap: 12px; min-width: 0; }

.mr-stage-frame {
  display: grid;
  width: 100%;
  place-items: center;
  border: 1px solid rgba(120, 205, 230, .18);
  border-radius: 22px;
  padding: clamp(12px, 1.8vw, 22px);
  background: radial-gradient(ellipse at 50% 38%, rgba(22, 94, 130, .3), transparent 62%), rgba(5, 13, 20, .82);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .35);
}

/* El lienzo conserva su relación 3/4 de styles.css y la sombra interior original.
   Se mantiene el mismo tope que la versión anterior (600px), que es el tamaño con
   que el canvas midió el texto del arco y la banda. El tamaño no se ata a la
   altura del viewport para mantener estable la geometría del render. */
.mr-stage-frame .stage {
  width: min(100%, 600px);
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35) inset, 0 24px 58px rgba(0, 0, 0, .45);
}

.mr-editor-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.mr-editor-actions .btn-save {
  flex: 1 1 220px;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(118deg, #f7c948, #e08a17 58%, #e04b2a);
  box-shadow: 0 14px 32px rgba(247, 201, 72, .26);
  color: #1d1206;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mr-editor-actions .btn-save:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(247, 201, 72, .38); }
.mr-editor-actions .btn-gallery {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(120, 205, 230, .3);
  border-radius: 999px;
  padding: 12px 20px;
  background: rgba(10, 30, 44, .55);
  color: #dff1f8;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}
.mr-editor-actions .btn-gallery:hover { border-color: rgba(120, 205, 230, .68); color: #fff; }
.mr-editor-hint { margin: 11px 0 0; color: var(--ring-muted); font-size: .68rem; text-align: center; }

/* Selector de personaje dentro del editor (el JS añade bg-body-tertiary, que usa !important) */
.mr-editor-layout .char-card {
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .035) !important;
  box-shadow: none;
}
.mr-editor-layout .char-card img { background: #06121b; }

/* ---------------------------------------------------------
   Gate de sesión
   --------------------------------------------------------- */
.mr-gate {
  max-width: 800px;
  margin-inline: auto;
  border: 1px solid rgba(120, 205, 230, .2);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 60px);
  background: radial-gradient(ellipse at 50% 0, rgba(32, 194, 215, .18), transparent 55%), linear-gradient(145deg, rgba(12, 33, 46, .96), rgba(6, 17, 25, .97));
  box-shadow: 0 30px 76px rgba(0, 0, 0, .42);
  text-align: center;
}
.mr-gate-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 16px;
  border: 1px solid rgba(61, 217, 221, .38);
  border-radius: 18px;
  background: rgba(61, 217, 221, .1);
  color: var(--ring-cyan);
  font-size: 1.4rem;
}
.mr-gate h2 { margin: 4px 0 12px; font-size: clamp(2.2rem, 4.8vw, 3.7rem); }
.mr-gate h2 span { color: var(--ring-cyan); text-shadow: 0 4px 26px rgba(61, 217, 221, .3); }
.mr-gate > p { max-width: 540px; margin: 0 auto 22px; color: var(--ring-muted); font-size: .85rem; line-height: 1.75; }
.mr-gate-actions { justify-content: center; }
.mr-gate-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.mr-gate-perks li {
  border: 1px solid rgba(120, 205, 230, .18);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, .03);
  color: #c6dbe6;
  font-size: .68rem;
}

/* ---------------------------------------------------------
   Cierre
   --------------------------------------------------------- */
.mr-closing {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 9vw, 118px) 0;
  background: radial-gradient(ellipse at 50% 0, rgba(247, 201, 72, .14), transparent 48%), linear-gradient(180deg, rgba(9, 25, 35, .96), rgba(5, 13, 20, .99));
  text-align: center;
}
.mr-closing-ring {
  position: absolute;
  top: -200px;
  left: 50%;
  width: min(72vw, 740px);
  aspect-ratio: 1;
  border: 1px solid rgba(247, 201, 72, .14);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(32, 194, 215, .12);
  transform: translateX(-50%);
  pointer-events: none;
}
.mr-closing-content { position: relative; display: grid; justify-items: center; }
.mr-closing-content h2 { margin: 5px 0 14px; font-size: clamp(2.4rem, 5.8vw, 4.6rem); }
.mr-closing-content h2 span {
  color: var(--ring-red);
  text-shadow: 0 4px 28px rgba(239, 20, 44, .4), 0 0 62px rgba(239, 20, 44, .2);
}
.mr-closing-content > p { max-width: 520px; margin: 0 0 24px; color: var(--ring-muted); font-size: .88rem; line-height: 1.75; }

/* ---------------------------------------------------------
   Publicidad
   --------------------------------------------------------- */
.mr-ads {
  position: relative;
  z-index: 2;
  padding: 0 0 clamp(40px, 6vw, 72px);
}
.mr-ads-label {
  display: inline-block;
  border-radius: 8px 8px 0 0;
  padding: 3px 30px;
  background: rgba(255, 255, 255, .08);
  color: var(--ring-muted);
  font-size: .72rem;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.mr-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-top: 1px solid rgba(120, 205, 230, .14);
  padding: 26px 22px 30px;
  background: linear-gradient(180deg, rgba(7, 20, 31, .5), rgba(4, 13, 22, .9));
  color: var(--ring-muted);
  font-size: .76rem;
  letter-spacing: .05em;
  text-align: center;
}

.mr-footer-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mr-footer-logo {
  display: block;
  width: min(215px, 58vw);
  height: auto;
  opacity: .95;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5));
}
.mr-footer-year { font-family: var(--ring-display); font-size: 1rem; color: var(--ring-cyan); }
.mr-footer-credit { font-size: .78rem; }
.mr-footer-credit a { font-weight: 700; color: var(--ring-cyan); text-decoration: none; }
.mr-footer-credit a:hover { text-decoration: underline; }

.mr-footer-signoff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 15px;
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
  letter-spacing: .04em;
}
.mr-footer-platform-brand { display: inline-flex; align-items: center; }
.mr-footer-platform-brand img {
  display: block;
  width: min(154px, 42vw);
  height: auto;
  opacity: .92;
  filter: drop-shadow(0 3px 10px rgba(32, 194, 215, .18));
}
.mr-footer-platform-link { color: #55d8e8; font-weight: 700; text-decoration: none; }
.mr-footer-platform-link:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   Galería de la comunidad
   ============================================================ */
.mr-gallery-section { position: relative; padding: clamp(26px, 4vw, 48px) 0 clamp(46px, 6vw, 80px); }

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.gallery-title-container { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gallery-logo {
  width: clamp(120px, 26vw, 190px);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45));
}
.gallery-title {
  margin: 0;
  color: var(--ring-cyan);
  font-family: var(--ring-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}
.gallery-subtitle {
  margin: 5px 0 0;
  color: var(--ring-muted);
  font-size: .78rem;
}
.gallery-count { margin: 6px 0 0; color: var(--ring-muted); font-size: .7rem; }

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

.gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(120, 205, 230, .16);
  border-radius: 15px;
  background: #06121b;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s ease, box-shadow .3s ease;
}
.gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.92) contrast(1.08);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .35s ease;
}
.gallery-thumb:hover {
  border-color: rgba(247, 201, 72, .55);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 26px rgba(247, 201, 72, .16);
}
.gallery-thumb:hover img { transform: scale(1.07); filter: brightness(1.06) contrast(1.12); }

.gallery-empty {
  border: 1px dashed rgba(120, 205, 230, .28);
  border-radius: 20px;
  padding: clamp(40px, 7vw, 76px) 24px;
  color: var(--ring-muted);
  text-align: center;
}
.gallery-empty span { display: block; margin-bottom: 10px; font-size: 2.4rem; opacity: .55; }
.gallery-empty strong { display: block; margin-bottom: 6px; color: var(--ring-text); font-size: 1rem; }

/* Visor de la galería */
#imageModal .modal-content {
  border: 1px solid rgba(247, 201, 72, .28);
  background: rgba(4, 10, 16, .95);
  backdrop-filter: blur(18px);
}
#imageModal .modal-header { position: absolute; top: 0; right: 0; z-index: 10; border: 0; padding: 14px; }
#imageModal .carousel-item img { max-height: 85vh; width: auto; margin-inline: auto; border-radius: 12px; }
#imageModal .carousel-indicators [data-bs-target] { background-color: var(--ring-cyan); }

@media (max-width: 767.98px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; }
  .gallery-title-container { width: 100%; }
}

/* ---------------------------------------------------------
   Botón "volver arriba" (lo crea assets/js/landing.js)
   --------------------------------------------------------- */
#btnScrollTop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1065;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(61, 217, 221, .4);
  border-radius: 50%;
  background: rgba(9, 26, 38, .9);
  color: var(--ring-cyan);
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, transform .2s ease;
  backdrop-filter: blur(8px);
}
#btnScrollTop.show { opacity: 1; visibility: visible; }
#btnScrollTop:hover { border-color: var(--ring-cyan); transform: translateY(-2px); }

/* ---------------------------------------------------------
   Revelado progresivo al hacer scroll
   --------------------------------------------------------- */
.mr-reveal { opacity: 0; transform: translateY(26px); }
.mr-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

/* ---------------------------------------------------------
   Adaptación por tamaño
   --------------------------------------------------------- */
@media (max-width: 1099.98px) {
  /* En una sola columna el visor vuelve arriba del panel. */
  .mr-editor-layout { grid-template-columns: minmax(0, 1fr); }
  .mr-editor-output { order: -1; }
  .mr-stage-frame .stage { max-width: min(100%, 560px); }
}

@media (max-width: 991.98px) {
  .mr-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); gap: 22px; }
  .mr-hero-art { min-height: 400px; }
  .mr-roster-card { grid-template-columns: minmax(0, 124px) minmax(0, 1fr); }
}

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

  .mr-container,
  .mr-editor-bar,
  .mr-editor-layout,
  .dg-app-nav { width: min(100% - 28px, 620px); }

  .dg-app-nav { flex-wrap: wrap; gap: 6px; padding-block: 8px; }
  .dg-app-brand { flex: 0 0 100%; }
  .dg-app-brand img { width: min(165px, 45vw); max-height: 36px; }
  .dg-app-actions { width: 100%; justify-content: flex-end; gap: 4px; }
  .dg-app-link { min-height: 34px; padding: 6px 9px; font-size: .66rem; }
  .dg-app-user { display: none; }

  .mr-hero { min-height: 0; padding: 52px 0 78px; }
  /* En móvil el hero es más corto: el piso del ring sube y los focos pesan más. */
  .mr-hero-ringfloor { height: 62%; opacity: .44; }
  .mr-hero-spotlight { opacity: .55; }
  .mr-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mr-hero-logo { width: min(230px, 60vw); max-height: 82px; margin: 0 0 12px; }
  .mr-hero-copy h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .mr-hero-copy > p { max-width: 420px; margin: 16px 0 18px; font-size: .9rem; }
  .mr-hero-actions { gap: 8px; }
  .mr-button { min-height: 45px; padding: 10px 15px; font-size: .71rem; }
  .mr-hero-proof { margin-top: 13px; font-size: .67rem; }
  .mr-hero-art { min-height: clamp(300px, 82vw, 400px); margin: 0 6px; }
  .mr-collect { gap: 10px; }
  .mr-collect-card { border-radius: 13px; padding: 4px; }
  .mr-collect-card img { border-radius: 9px; }

  /* En pantallas estrechas el stack pasa a dos columnas para que las
     tarjetas sigan siendo legibles y no se recorten. */
  @media (max-width: 520px) {
    .mr-collect { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mr-collect-card:nth-child(n) { transform: rotate(0deg) translateY(0); }
    .mr-collect-card:nth-child(3n + 1) { transform: translateY(6px); }
  }
  .mr-scroll-cue { bottom: 14px; }

  .mr-roster { padding-block: 54px; }
  .mr-section-heading { margin-bottom: 22px; }
  .mr-section-heading-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mr-section-heading h2 { font-size: 2.35rem; }
  .mr-section-heading-split > p { max-width: 520px; margin: 0; font-size: .8rem; }
  .mr-roster-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .mr-roster-card { grid-template-columns: minmax(0, 108px) minmax(0, 1fr); gap: 13px; padding: 12px; border-radius: 15px; }
  .mr-roster-body h3 { font-size: 1.35rem; }
  .mr-roster-body p { font-size: .74rem; }

  .mr-editor-section { padding-block: 44px 58px; }
  .mr-editor-bar { flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
  .mr-editor-bar h2 { font-size: 2rem; }
  .mr-panel { border-radius: 15px; padding: 16px; }
  .mr-stage-frame { padding: 9px; border-radius: 16px; }
  .mr-stage-frame .stage { max-width: 100%; }
  .mr-editor-actions { flex-direction: column; }
  .mr-editor-actions .btn-save, .mr-editor-actions .btn-gallery { width: 100%; }

  .mr-gate { border-radius: 22px; padding: 26px 18px; }
  .mr-gate h2 { font-size: 2.4rem; }
  .mr-gate > p { font-size: .78rem; }
  .mr-gate-actions { align-items: stretch; flex-direction: column; }
  .mr-gate-actions .mr-button { width: 100%; }

  .mr-closing { padding-block: 62px; }
  .mr-closing-content h2 { font-size: clamp(2.3rem, 10.5vw, 3.6rem); }
  .mr-footer { gap: 11px; padding: 20px 0 28px; }
  .mr-footer-logo { width: min(190px, 54vw); }
}

@media (max-width: 380px) {
  .mr-container, .mr-editor-bar, .mr-editor-layout, .dg-app-nav { width: calc(100% - 22px); }
  .dg-app-link { padding-inline: 7px; font-size: .61rem; }
  .mr-hero-actions .mr-button { padding-inline: 11px; font-size: .65rem; }
  .mr-roster-card { grid-template-columns: minmax(0, 92px) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mr-reveal { opacity: 1; transform: none; }
  .mr-scroll-cue span,
  .mr-hero-spotlight, .mr-hero-ringfloor, .mr-hero-sparkle, .mr-hero-stars,
  .mr-collect-card img { animation: none; }
}
