/* El Espejo Encantado — base: tokens de la paleta mágica (palette.js → --ee-*), marco de teléfono (≤ 430 px) con la
   noche alrededor en escritorio, botones dorados y de cristal violeta, avisos. Todo vive bajo .ee (clase de <html> de
   esta invitación): nada global que afecte a otras páginas.
   Fuentes: Cinzel Decorative (sólo el título del espejo y el nombre), Cormorant Garamond 600/700 (títulos), Mulish
   400/600/800 (textos). Textos de datos ≥ 16 px, claros sobre fondo oscuro. */
.ee {
  --ee-primary: #B9A2FF; --ee-primary-rgb: 185, 162, 255; --ee-deep: #3B2A6B; --ee-deep-rgb: 59, 42, 107; --ee-pearl: #F4EEF9;
  --ee-gold: #D9B35C; --ee-gold-rgb: 217, 179, 92; --ee-magic: #7FE0E8; --ee-magic-rgb: 127, 224, 232; --ee-night: #150F26;
  --ink: #F4EEF9; --muted: #CFC4E8; --glass: rgba(24, 17, 46, .9);
  --gold-grad: linear-gradient(180deg, #FBE9B4 0%, #E2BE6A 48%, #C99A48 100%);
  --font-mirror: "Cinzel Decorative", "Cormorant Garamond", Georgia, serif;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-text: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-soft: cubic-bezier(.3, .7, .2, 1);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
.ee *, .ee *::before, .ee *::after { box-sizing: border-box; }
.ee, .ee body { margin: 0; height: 100%; overflow: hidden; background: var(--ee-night); color: var(--ink); font-family: var(--font-text); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
:where(.ee) button { font: inherit; color: inherit; }
.ee, .ee * { scrollbar-width: none; }
.ee ::-webkit-scrollbar { display: none; }
.ee .sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ee .noscript { position: fixed; inset: auto 16px 16px; padding: 16px; border-radius: 16px; background: #221840; font-size: 16px; }
.ee :focus-visible { outline: 3px solid var(--ee-magic); outline-offset: 3px; }

/* ---------- escritorio: la noche violeta alrededor del teléfono ---------- */
.ee .room { position: fixed; inset: 0; z-index: 0; overflow: hidden; background:
  radial-gradient(30% 24% at 14% 20%, rgba(var(--ee-primary-rgb), .18), transparent 70%), radial-gradient(26% 22% at 86% 80%, rgba(var(--ee-magic-rgb), .12), transparent 70%),
  radial-gradient(90% 80% at 50% 45%, #2A1F4E 0%, #1A1333 70%, #110C22 100%); }
.ee .app { position: fixed; inset: 0; z-index: 1; overflow: hidden; background: var(--ee-night); isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none; }
@media (min-width: 560px) and (min-height: 560px) {
  .ee .app { inset: auto; left: 50%; top: 50%; width: min(430px, 100vw - 32px); height: min(932px, 100dvh - 40px); transform: translate(-50%, -50%);
    border-radius: 36px; box-shadow: 0 0 0 10px #2A1F48, 0 0 0 12px rgba(var(--ee-gold-rgb), .45), 0 30px 80px rgba(0, 0, 0, .55); }
}
.ee.is-showcase .app { inset: 0 !important; width: auto !important; height: auto !important; transform: none !important; border-radius: 0 !important; box-shadow: none !important; }
.ee.is-showcase .trail { display: none !important; }
/* (la interfaz se oculta sin quitarla del flujo: el hueco del espejo se sigue midiendo para encuadrar la escena) */
.ee.is-showcase .ui { visibility: hidden !important; pointer-events: none !important; }
.ee.is-showcase .mirror-slot { top: 5% !important; bottom: 5% !important; }
.ee .stage { position: absolute; inset: 0; overflow: hidden; }
.ee .stage canvas { display: block; width: 100%; height: 100%; }
.ee .trail { position: absolute; inset: 0; z-index: 10; width: 100%; height: 100%; pointer-events: none; }
.ee .ui { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.ee .ui > * { pointer-events: auto; }

/* ---------- botones ---------- */
.ee .gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid rgba(255, 240, 200, .75); border-radius: 999px;
  background: var(--gold-grad); color: #2A1A12; font: 700 18px/1 var(--font-head); letter-spacing: .01em; text-decoration: none; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6); transition: transform .15s, filter .15s; }
.ee .gbtn:active { transform: scale(.97); }
.ee .gbtn span:first-child { display: grid; }
.ee .gbtn.is-big { min-height: 54px; font-size: 20px; }
.ee .gbtn.is-small { min-height: 44px; padding: 0 14px; font: 700 15px/1 var(--font-text); }
.ee .gbtn.is-soft { background: rgba(var(--ee-deep-rgb), .55); color: var(--ink); border-color: rgba(var(--ee-gold-rgb), .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); font-family: var(--font-text); font-weight: 700; font-size: 16px; }
.ee .gbtn.is-magic { background: linear-gradient(180deg, rgba(var(--ee-magic-rgb), .28), rgba(var(--ee-primary-rgb), .32)); color: #FFFFFF; border-color: rgba(var(--ee-magic-rgb), .75); box-shadow: 0 0 18px rgba(var(--ee-magic-rgb), .35), inset 0 1px 0 rgba(255, 255, 255, .25); font: 700 19px/1 var(--font-head); }
.ee .gbtn.is-magic span:last-child { display: grid; color: var(--ee-magic); }
.ee .round-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(var(--ee-gold-rgb), .6); border-radius: 50%; background: rgba(24, 17, 46, .82); color: var(--ink); cursor: pointer; }
.ee .link-btn { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--muted); font: 700 16px/1 var(--font-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ee .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ee .btns > * { flex: 1 1 140px; }
.ee .btns.col { flex-direction: column; }
.ee .btns.col > * { flex: none; width: 100%; }

/* ---------- avisos ---------- */
.ee .toast { position: absolute; left: 50%; top: calc(64px + var(--safe-t)); z-index: 80; transform: translate(-50%, -8px); max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: rgba(24, 17, 46, .94); color: var(--ink); font: 700 16px/1.3 var(--font-text); box-shadow: 0 0 0 1px rgba(var(--ee-gold-rgb), .6), 0 8px 20px rgba(0, 0, 0, .4); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.ee .toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ee .notice { position: absolute; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px; background: rgba(10, 6, 22, .6); opacity: 0; transition: opacity .3s; }
.ee .notice.is-on { opacity: 1; }
.ee .notice-card { width: min(360px, 100%); padding: 22px 20px 18px; border-radius: 22px; background: linear-gradient(180deg, #2A1F50, #1B1436); box-shadow: 0 0 0 1px rgba(var(--ee-gold-rgb), .6), 0 20px 50px rgba(0, 0, 0, .5); text-align: center; }
.ee .notice-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff; }
.ee .notice-card h2 { margin: 10px 0 6px; font: 700 26px/1.1 var(--font-head); }
.ee .notice-card p { margin: 0 0 10px; font: 600 16px/1.45 var(--font-text); color: var(--muted); }
.ee .notice-msg { max-height: 30vh; overflow: auto; margin: 0 0 14px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); white-space: pre-wrap; text-align: left; font: 600 15px/1.4 var(--font-text); color: var(--ink); }
.ee .notice-card .gbtn { width: 100%; }
