/* Imperia Eva r8.3 — mobile resilience patch (additive; loads last; safe to remove)
   2026-11-24 — fixes horizontal overflow on small screens, clipped gold display type,
   and enables pre-line for sign-in protection notes. No brand/visual redesign. */

/* 1) Never let the page itself scroll horizontally; inner scrollers may still scroll */
@media (max-width: 640px) {
  html, body, #root { overflow-x: clip; }
  #root { width: 100%; }
  /* Flex/grid items: allow shrink below content width (fixes "text clipped at edge") */
  #root .flex > *,
  #root [class*="grid"] > * { min-width: 0; }
  /* Media should never overflow the viewport */
  #root :where(img, video, svg, canvas, iframe, table) { max-width: 100%; }
  /* Long uppercase micro-labels (status badges) wrap instead of clipping */
  #root [class*="uppercase"][class*="tracking-"] { overflow-wrap: anywhere; }
}

/* 2) Gold gradient display type: stop descender/cap clipping (e.g. /burn headline).
   Amounts (font-display leading-none) never fracture across lines. */
.gold-text { line-height: 1.2; padding-bottom: 0.05em; }
.gold-text.leading-none { white-space: nowrap; }
@media (max-width: 640px) {
  .gold-text.leading-none.text-6xl { font-size: 2.4rem; }
}

/* 3) Sign-in protection notes: honor explicit newlines in copy */
.mt-1.text-xs.leading-relaxed.text-white\/45 { white-space: pre-line; }

/* 4) Hide the Goddesses eyebrow labels below desktop (they duplicate the video sequences) */
@media (max-width: 1023px) {
  .imperia-hide-mobile { display: none !important; }
}
/* --- imperia-scroll-cue: scroll-to-content button (2026-11-24) --- */
.imperia-scroll-cue-wrap{display:flex;justify-content:center;padding:14px 16px 10px;position:relative;z-index:5}
.imperia-scroll-cue{display:inline-flex;align-items:center;gap:14px;max-width:min(92vw,560px);border:1px solid rgba(224,197,143,.55);color:#e0c58f;background:transparent;border-radius:9999px;padding:14px 30px;font:inherit;font-size:11px;letter-spacing:.22em;text-transform:uppercase;cursor:pointer;white-space:nowrap;overflow:hidden;transition:border-color .25s,color .25s,background .25s,opacity .35s}
.imperia-scroll-cue__text{overflow:hidden;text-overflow:ellipsis}
.imperia-scroll-cue svg{flex:0 0 auto;animation:imperiaCueBounce 2.4s ease-in-out infinite}
.imperia-scroll-cue:hover,.imperia-scroll-cue:focus-visible{border-color:#e0c58f;color:#f4e5c0;background:rgba(224,197,143,.07);outline:none}
.imperia-scroll-cue--gone{opacity:0;pointer-events:none}
@keyframes imperiaCueBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(3px)}}
@media (max-width:640px){.imperia-scroll-cue{padding:12px 20px;font-size:10px;letter-spacing:.16em;gap:10px}}
@media (prefers-reduced-motion:reduce){.imperia-scroll-cue svg{animation:none}}
