/* ==========================================================================
   Estilos de edicion de la replica PoE 2.
   No tocan la maquetacion original: solo afectan a los elementos que anade
   el runtime (marco de seleccion, rotulo y estados de oculto/eliminado).
   ========================================================================== */

/* Dorado de referencia para los títulos de los paneles. */
:root:not(.replica-original) :is(.poe2-announcement-panel, .poe2-announcement-mtx-panel) .poe2-announcement-title {
  color: var(--replica-title-color, var(--replica-panel-title-default));
}

:root {
  --replica-panel-title-default: #ceb580;
  --replica-accent: #e6c27e;
  --replica-secondary: #ff9b29;
}

#replica-selection {
  position: fixed;
  z-index: 2147483000;
  pointer-events: none;
  border: 2px solid var(--replica-accent);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 0 22px rgba(230, 194, 126, .35);
  transition: top .08s linear, left .08s linear, width .08s linear, height .08s linear;
}

#replica-selection::after {
  content: attr(data-label);
  position: absolute;
  top: -22px;
  left: -2px;
  padding: 2px 7px;
  background: var(--replica-accent);
  color: #14100a;
  font: 700 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

#replica-selection[hidden],
#replica-badge[hidden] {
  display: none !important;
}

#replica-badge {
  position: fixed;
  z-index: 2147483000;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(230, 194, 126, .45);
  border-radius: 999px;
  background: rgba(8, 7, 6, .82);
  color: #e6c27e;
  font: 700 10px/1.3 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

#replica-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--replica-accent);
  box-shadow: 0 0 12px var(--replica-accent);
}

.replica-hidden {
  display: none !important;
}

.replica-removed {
  opacity: .35 !important;
  text-decoration: line-through;
}

[contenteditable="plaintext-only"] {
  outline: 2px dashed var(--replica-accent);
  outline-offset: 4px;
  background: rgba(230, 194, 126, .1);
  border-radius: 2px;
}

.replica-editing [data-image-id]:hover,
.replica-editing [data-video-id]:hover {
  outline: 1px dashed rgba(230, 194, 126, .55);
  outline-offset: 2px;
}


.replica-video-background {
  isolation: isolate;
}

.replica-video-background-position {
  position: relative;
}

.replica-background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.replica-image-video {
  max-width: 100%;
}

/* The excerpt is sized by the surrounding Very Online page. */
.poe2-home-excerpt,
.poe2-home-excerpt body {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.poe2-home-excerpt #app { min-height: 0; }
.poe2-home-standalone, .poe2-home-standalone body { overflow: visible; }
.poe2-home-excerpt .side-nav-container,
.poe2-home-excerpt .popup-manager { display: none; }
.poe2-home-excerpt .conquerors-of-wraeclast-promo__hero { margin-top: 0; padding-top: clamp(30px, 5vw, 76px); }
.poe2-home-excerpt .poe2-announcement-subsection__bg > div { position: relative; height: 100%; }

.poe2-home-navigation .rota-sub-nav { margin: 0; padding-top: 8px; }
.poe2-home-navigation .conquerors-of-wraeclast-promo__divider { order: 1; }

@media (max-width: 1400px) {
  .poe2-home-navigation .rota-sub-nav__panel { padding-inline: 12px; }
}

@media (max-width: 680px) {
  .poe2-home-navigation .rota-sub-nav__button {
    flex-basis: 50%;
    margin-inline: 0;
    padding-inline: 12px;
    min-height: 54px;
    font-size: clamp(.875rem, 3.7vw, 1.4rem);
  }
}
