/* OXIDIANMU · Evolución del Reino · V3 LEGIBLE
   Estilos aislados: solamente #oxi-realm-stages en la portada.
   Distribución en columnas uniformes; no se encoge el texto para que "quepa". */
body.oxi-home-fullwidth #oxi-realm-stages,
body.oxi-home-fullwidth #oxi-realm-stages * { box-sizing: border-box; }

body.oxi-home-fullwidth #oxi-realm-stages {
  position: relative;
  isolation: isolate;
  z-index: 6;
  width: min(1450px, calc(100% - 18px));
  height: clamp(277px, 21.65vw, 304px);
  margin: 8px auto 4px;
  padding: 0;
  background: transparent;
  color: #f9ead5;
  text-align: left;
  font-family: 'Cinzel', Georgia, serif;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-ornament {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 6px 11px rgba(0,0,0,.5));
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: clamp(62px, 5.05vw, 73px) clamp(82px, 7.6vw, 116px) clamp(47px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Cabecera: selector a la izquierda, título centrado y sello a la derecha. */
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-head {
  flex: 0 0 45px;
  min-width: 0;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 10px;
  margin: 0;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-switch {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-self: start;
  gap: 5px;
  white-space: nowrap;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-tab {
  flex: 0 0 auto;
  padding: 8px 11px;
  margin: 0;
  border: 1px solid rgba(205,160,103,.74);
  border-radius: 4px;
  background: linear-gradient(180deg,rgba(57,29,54,.95),rgba(18,13,30,.93));
  color: #f6ddb4;
  font: 700 13px/1.2 'Cinzel',Georgia,serif;
  letter-spacing: .2px;
  text-shadow: 0 1px 2px #000;
  cursor: pointer;
  transition: background .16s, color .16s, box-shadow .16s;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-tab:hover,
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-tab:focus-visible,
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-tab.is-current {
  color: #fff0c9;
  border-color: #efc777;
  background: linear-gradient(180deg,rgba(107,49,110,.98),rgba(53,22,63,.96));
  box-shadow: inset 0 0 9px rgba(212,126,255,.17),0 0 9px rgba(183,77,233,.24);
  outline: none;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-title {
  margin: 0;
  color: #ffe3b1;
  font: 700 clamp(19px,1.7vw,24px)/1.18 'Cinzel',Georgia,serif;
  letter-spacing: .6px;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 2px 4px #08020d,0 0 12px rgba(205,147,82,.30);
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-title-star {
  color: #e4a7ff;
  font-size: .72em;
  vertical-align: 1px;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-kicker {
  justify-self: end;
  margin: 0;
  color: #e3be8c;
  font: 700 11px/1.25 'Cinzel',Georgia,serif;
  letter-spacing: .45px;
  text-align: right;
  white-space: nowrap;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-kicker span { color:#cb94f4; }

/* Fechas y dos renglones grandes para aprovechar todo el ancho del marco. */
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-panel {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: 28px repeat(2, minmax(0,1fr));
  border-top: 1px solid rgba(232,183,113,.30);
  border-bottom: 1px solid rgba(232,183,113,.19);
  background: linear-gradient(90deg,transparent,rgba(10,7,25,.26) 12%,rgba(10,7,25,.22) 88%,transparent);
}
body.oxi-home-fullwidth #oxi-realm-stages [hidden] { display: none!important; }
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-plan-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 1px 9px 0;
  font: 700 14.5px/1.25 'Poppins',Arial,sans-serif;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-plan-date { color:#ffe7c5; }
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-plan-date i { color:#f2ce8a;margin-right:7px; }
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-status {
  color: #eec4ff;
  font: 700 12.5px/1.25 'Cinzel',Georgia,serif;
  letter-spacing: .5px;
  white-space: nowrap;
  text-shadow: 0 1px 3px #000;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-status.is-current { color:#d3ffba; }
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-status.is-complete { color:#d4c5bf; }
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line {
  display: grid;
  grid-template-columns: 157px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 0;
  padding: 0 7px;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line+.oxi-stages-line {
  border-top: 1px solid rgba(222,170,103,.19);
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffe1a4;
  font: 700 14px/1.25 'Cinzel',Georgia,serif;
  letter-spacing: .15px;
  white-space: nowrap;
  text-shadow: 0 1px 3px #06030e;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line-label i {
  flex: 0 0 16px;
  width: 16px;
  text-align: center;
  color: #dfa8ff;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line-scroll {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--oxi-stage-cols, 2), minmax(0,1fr));
  align-items: stretch;
  overflow: visible;
  padding: 2px 0;
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-entry {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  gap: 7px;
  padding: 2px 12px;
  border-left: 1px solid rgba(226,175,111,.32);
  color: #fdf4ec;
  font: 600 14.5px/1.3 'Poppins',Arial,sans-serif;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.95);
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-entry-gem {
  flex: 0 0 auto;
  color: #e2acff;
  font: 700 19px/1 Georgia,serif;
  text-shadow: 0 0 7px rgba(191,105,255,.38);
}
body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-scroll-hint { display: none; }

@media (max-width: 1260px) {
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-kicker { display: none; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-head { grid-template-columns: 1fr auto 1fr; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-tab { padding: 7px 9px; font-size: 12px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line { grid-template-columns: 151px minmax(0,1fr);gap:5px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-entry { padding:2px 7px;font-size:13.5px; }
}
/* En pantallas estrechas mantenemos letras legibles: se desplaza la lista,
   no se aplasta el contenido, y el marco crece para no tapar información. */
@media (max-width: 1090px) {
  body.oxi-home-fullwidth #oxi-realm-stages { height: 315px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-layout { padding: 68px clamp(73px,7.4vw,88px) 57px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-head { flex-basis: 55px; grid-template-columns:1fr;align-content:center;gap:4px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-title { grid-column:1;grid-row:1;font-size:20px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-switch { grid-column:1;grid-row:2;justify-self:center; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-panel { grid-template-rows:27px repeat(2,minmax(0,1fr)); }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line { grid-template-columns:138px minmax(0,1fr); position:relative; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line-label { font-size:12.5px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line-scroll {
    grid-template-columns:repeat(var(--oxi-stage-cols,2),minmax(185px,1fr));
    overflow-x:auto;overflow-y:hidden;
    scrollbar-width:thin;scrollbar-color:rgba(202,149,228,.8) transparent;
    scroll-behavior:smooth;
    padding-right:27px;
  }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line-scroll::-webkit-scrollbar { height:5px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line-scroll::-webkit-scrollbar-thumb { background:rgba(202,149,228,.7);border-radius:6px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line-scroll:focus-visible { outline:1px solid #e2b5ff;outline-offset:0; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-entry { font-size:13.5px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-scroll-hint.is-visible {
    position:absolute;right:4px;top:50%;transform:translateY(-50%);
    display:flex;align-items:center;justify-content:center;
    width:24px;height:32px;min-width:24px;
    padding:0;margin:0;border:1px solid rgba(224,166,255,.76);
    border-radius:5px;
    background:rgba(57,22,74,.94);
    box-shadow:0 0 8px rgba(204,100,242,.28);
    color:#ffdfaf;font:700 24px/1 Georgia,serif;
    cursor:pointer;z-index:2;
  }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-scroll-hint:focus-visible {outline:2px solid #ffd99b;}
}
@media (max-width: 650px) {
  body.oxi-home-fullwidth #oxi-realm-stages { width:calc(100% - 4px);height:365px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-layout { padding:86px 48px 70px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-head { flex-basis:64px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-title { font-size:clamp(13px,3.2vw,19px);letter-spacing:0; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-switch { gap:3px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-tab { font-size:11.5px;padding:6px 6px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-panel { grid-template-rows:28px repeat(2,minmax(0,1fr)); }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-plan-meta { padding:1px 3px;font-size:11.5px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-status { font-size:10.5px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line { grid-template-columns:1fr;grid-template-rows:auto 1fr;gap:1px;padding:2px 3px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line-label { font-size:12.5px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line-scroll { width:100%;min-height:27px; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-entry { font-size:12.5px; }
}
@media (prefers-reduced-motion:reduce) {
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-tab { transition:none; }
  body.oxi-home-fullwidth #oxi-realm-stages .oxi-stages-line-scroll { scroll-behavior:auto; }
}
