/* ============================================================================
   EVENLIO EVENT MODE — Cinematic Engine (Tactile Futurism)
   Standalone stylesheet for the public /x/{slug} experience. Loaded ONLY on
   Event Mode pages; never referenced by the rest of the EVENLIO platform, so
   a disabled experience ships zero CSS/JS.
   ========================================================================== */

:root {
  /* Obsidian-first palette (from the design tokens) */
  --background: #131313;
  --surface: #131313;
  --surface-dim: #131313;
  --surface-bright: #474645;
  --surface-container-lowest: #0e0e0e;
  --surface-container-low: #1c1b1b;
  --surface-container: #201f1f;
  --surface-container-high: #2b2a2a;
  --surface-container-highest: #353534;
  --surface-variant: #494544;
  --on-surface: #e5e2e1;
  --on-surface-variant: #c4c0be;
  --outline: #af8781;
  --outline-variant: #5f3f3a;
  --outline-ghost: rgba(229, 226, 225, 0.15);

  --primary: #ffb4a8;
  --on-primary: #690100;
  --primary-container: #e10100;   /* Action Engine crimson */
  --on-primary-container: #fff1ef;
  --inverse-primary: #c00100;
  --primary-glow: #ffb4a8;

  --secondary: #ffb4a8;
  --secondary-container: #6f3a32;
  --on-secondary-container: #efa69b;
  --tertiary: #b3c5ff;
  --tertiary-container: #0064f9;
  --on-tertiary-container: #f3f3ff;

  --error: #ffb4ab;
  --error-container: #93000a;

  /* Radius scale (non-standard, per design) */
  --r-sm: 0.125rem;
  --r: 0.25rem;
  --r-md: 0.375rem;
  --r-lg: 0.5rem;
  --r-xl: 0.75rem;
  --r-full: 9999px;

  /* Spacing */
  --gutter: 1.5rem;
  --gutter-mobile: 1rem;
  --margin: 3rem;
  --margin-mobile: 1.25rem;
  --s-xs: 0.25rem;
  --s-sm: 0.5rem;
  --s-md: 1rem;
  --s-lg: 1.5rem;
  --s-xl: 2rem;
  --s-2xl: 4rem;
  --s-3xl: 5.5rem;

  --header-h: 9rem;
  --font-head: 'Inter', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  /* One mono stack for every code, counter and timestamp the shell draws. It is a
     token rather than a face: no Event Mode page loads a mono webfont, and the
     system-ui fallback chain is the only one that exists on all three platforms. */
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--background);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.57;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar { width: 0; height: 0; display: none; }
::selection { background: var(--primary-container); color: var(--on-primary-container); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* Material Symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 24px;
  vertical-align: middle;
}

/* ---- Typography scale ---- */
.font-display-lg { font-family: var(--font-head); font-size: 56px; line-height: 64px; font-weight: 800; letter-spacing: -0.02em; }
.font-headline-lg { font-family: var(--font-head); font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; }
.font-headline-md { font-family: var(--font-head); font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.01em; }
.font-headline-sm { font-family: var(--font-head); font-size: 22px; line-height: 28px; font-weight: 600; }
.font-title-lg   { font-family: var(--font-head); font-size: 18px; line-height: 24px; font-weight: 600; }
.font-title-md   { font-family: var(--font-head); font-size: 16px; line-height: 22px; font-weight: 600; }
.font-body-lg    { font-size: 16px; line-height: 26px; }
.font-body-sm    { font-size: 12px; line-height: 18px; }
.font-label-md   { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; }
.font-label-sm   { font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: 0.08em; }

.text-primary { color: var(--primary); }
.text-crimson { color: var(--primary-container); }
.text-glow { color: var(--primary-glow); }
.text-variant { color: var(--on-surface-variant); }
.text-tertiary { color: var(--tertiary); }
.uppercase { text-transform: uppercase; }
.tabular { font-variant-numeric: tabular-nums; }
/* The client asks for this on every code, counter and percentage it draws -- the
   pass code, the recap's completion figure, the gallery count, the live headline.
   Nothing in the cascade defined it, so those digits fell through to the body face
   at 10px, where an 8 and a 0 close up enough to read as letters. */
.font-mono { font-family: var(--font-mono); }
.tracking-widest { letter-spacing: 0.12em; }
.tracking-wide { letter-spacing: 0.05em; }

/* The client marks up its own fragments with these utility names, but the sheet
   defined none of them, so every one was a no-op: an avatar initial with no flex
   sat in the corner of its circle, a lock icon dropped below the label it should
   sit beside. They live above the component rules on purpose -- a component that
   sets the same property still wins, and an inline style still beats both, so this
   block can only supply what nothing else did. */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.aspect-square { aspect-ratio: 1; }
.max-w-2xl { max-width: 42rem; }
.my-3 { margin: 0.75rem 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.z-10 { z-index: 10; }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-full { border-radius: var(--r-full); }
.bg-surface-container-highest { background: var(--surface-container-highest); }
.font-bold { font-weight: 700; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-xs { font-size: 12px; line-height: 16px; }
.text-on-surface { color: var(--on-surface); }
.text-secondary { color: var(--secondary); }
.text-primary-container { color: var(--primary-container); }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.font-body-md { font-size: 14px; line-height: 24px; }

/* ---- Header / realm nav ---- */
.em-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,14,14,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 64px -12px rgba(225,1,0,0.08), 0 12px 32px -8px rgba(0,0,0,0.6);
}
.em-header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); padding: var(--s-md) var(--margin); min-height: 5rem; }
.em-brand { display: flex; align-items: center; gap: var(--s-sm); }
.em-brand__mark { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.01em; font-size: 18px; }
.em-brand__mode { color: var(--primary); font-size: 10px; letter-spacing: 0.1em; font-weight: 700; text-transform: uppercase; }
.em-live-dot { position: relative; display: inline-flex; width: 8px; height: 8px; }
.em-live-dot i, .em-live-dot::before { position: absolute; inset: 0; border-radius: 50%; background: var(--primary-container); }
.em-live-dot::before { animation: em-ping 1.4s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes em-ping { 75%,100% { transform: scale(2.4); opacity: 0; } }

.em-metric { display: inline-flex; align-items: center; gap: var(--s-xs); background: var(--surface-container); padding: var(--s-xs) var(--s-md); border-radius: var(--r-lg); }
.em-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.3); overflow: hidden; }
.em-avatar img { width: 100%; height: 100%; object-fit: cover; }

.em-nav { display: flex; gap: var(--s-xs); overflow-x: auto; padding: var(--s-xs) var(--margin); background: rgba(14,14,14,0.9); backdrop-filter: blur(20px); }
.em-nav__item { white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: var(--s-sm) var(--s-md); border-radius: var(--r-lg); color: var(--on-surface-variant); transition: all .15s; }
.em-nav__item:hover { background: var(--surface-container-high); color: var(--on-surface); }
.em-nav__item.is-active { background: var(--surface-container-highest); color: var(--on-surface); box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.25); }
.em-nav__item.is-locked { opacity: .4; }

/* ---- §6 contextual rail: the overflow is an overlay, not a page ---- */
.em-nav__more { display: inline-flex; align-items: center; gap: var(--s-xs); white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: var(--s-sm) var(--s-md); border-radius: var(--r-lg); color: var(--primary); border: 1px solid var(--outline-variant); transition: all .15s; }
.em-nav__more:hover { background: var(--surface-container-high); color: var(--on-surface); }
.em-nav__more[aria-expanded="true"] { background: var(--surface-container-highest); color: var(--on-surface); }
.em-scrim { position: fixed; inset: 0; background: rgba(10,0,0,0.6); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 55; }
.em-scrim.is-open { opacity: 1; pointer-events: auto; }
.em-scene-drawer { position: fixed; inset-block: 0; inset-inline-end: 0; width: 20rem; max-width: 90vw; background: rgba(20,20,20,0.96); backdrop-filter: blur(20px); border-inline-start: 1px solid rgba(255,180,168,0.15); box-shadow: -16px 0 40px rgba(0,0,0,0.8); padding: var(--s-lg); display: flex; flex-direction: column; gap: var(--s-md); transform: translateX(105%); transition: transform .35s cubic-bezier(0.2, 0.9, 0.3, 1); z-index: 60; }
.em-scene-drawer.is-open { transform: translateX(0); }
[dir="rtl"] .em-scene-drawer { transform: translateX(-105%); box-shadow: 16px 0 40px rgba(0,0,0,0.8); }
[dir="rtl"] .em-scene-drawer.is-open { transform: translateX(0); }
.em-scene-list { display: flex; flex-direction: column; gap: var(--s-xs); overflow-y: auto; }
.em-scene { display: flex; align-items: center; gap: var(--s-sm); text-align: start; padding: var(--s-sm) var(--s-md); border-radius: var(--r-lg); color: var(--on-surface-variant); font-size: 13px; font-weight: 600; letter-spacing: .04em; transition: all .15s; }
.em-scene:hover { background: var(--surface-container-high); color: var(--on-surface); }
.em-scene.is-active { background: var(--surface-container-highest); color: var(--on-surface); box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.25); }
.em-scene .material-symbols-outlined { color: var(--primary); }
@media (prefers-reduced-motion: reduce) {
  .em-scene-drawer, .em-scrim { transition: none; }
}

/* ---- Language switch (header): ISO codes, so the pills never become copy ---- */
.em-lang { gap: 2px; background: var(--surface-container); padding: 2px; border-radius: var(--r-lg); }
.em-lang__opt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 0.3rem 0.55rem; border-radius: var(--r); color: var(--on-surface-variant); text-decoration: none; transition: background .15s, color .15s; }
.em-lang__opt:hover { background: var(--surface-container-high); color: var(--on-surface); }
.em-lang__opt.is-active { background: var(--surface-container-highest); color: var(--primary); }
.em-lang__opt:focus-visible { outline: 2px solid var(--primary-container); outline-offset: 2px; }

/* ---- Layout shell ---- */
.em-main { flex: 1; width: 100%; position: relative; }
.em-screen { display: none; padding: var(--s-2xl) var(--margin) var(--s-3xl); }
.em-screen.is-active { display: block; animation: em-fade .4s ease both; }
@keyframes em-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.em-stack { display: flex; flex-direction: column; gap: var(--s-lg); }
.em-grid { display: grid; gap: var(--s-md); }
.em-row { display: flex; align-items: center; gap: var(--s-md); flex-wrap: wrap; }
.em-section-label { display: flex; align-items: center; gap: var(--s-xs); color: var(--primary-glow); }
.em-section-label::before { content: ""; display: inline-block; height: 1px; width: 2rem; background: var(--primary-container); }

/* ---- Shader / background layers ---- */
.em-shader-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.em-shader-layer canvas { display: block; width: 100%; height: 100%; }

/* ---- Cards ("Event Slate") — No-Line rule ---- */
.em-card { background: var(--surface-container-high); border-radius: var(--r-xl); padding: var(--s-lg); position: relative; }
.em-card--low { background: var(--surface-container-low); }
.em-card--lowest { background: var(--surface-container-lowest); }
.em-card--glass { background: rgba(73,69,68,0.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 24px 64px -12px rgba(225,1,0,0.12), 0 12px 32px -8px rgba(0,0,0,0.8); }
.em-card--hover:hover { background: var(--surface-bright); }
.em-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-glow); }

/* ---- Buttons ---- */
.em-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm); border-radius: var(--r-lg); padding: var(--s-md) var(--s-lg); font-weight: 700; letter-spacing: 0.04em; transition: transform .18s, background .15s; }
.em-btn--primary { background: var(--primary-container); color: var(--on-primary-container); box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.3), 0 12px 32px -8px rgba(225,1,0,0.4); }
.em-btn--primary:hover { transform: translateY(-2px) scale(1.01); background: var(--inverse-primary); }
.em-btn--ghost { background: var(--surface-container-high); color: var(--on-surface); }
.em-btn--ghost:hover { background: var(--surface-container-highest); }
.em-btn--block { width: 100%; }
.em-btn[disabled] { opacity: .5; pointer-events: none; }

/* ---- Chips / badges ---- */
.em-chip { display: inline-flex; align-items: center; gap: var(--s-xs); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: var(--r-full); background: var(--surface-variant); color: var(--on-surface-variant); }
.em-chip--live { background: var(--primary-container); color: var(--on-primary-container); }
.em-chip--live .em-live-dot { width: 6px; height: 6px; }
.em-chip--live .em-live-dot::before, .em-chip--live .em-live-dot i { background: #fff; }
.em-chip--done { background: rgba(255,180,168,0.16); color: var(--primary); }

/* ---- Inputs ---- */
.em-field { background: var(--surface-container-lowest); border: none; border-bottom: 2px solid transparent; border-radius: var(--r) var(--r) 0 0; padding: var(--s-md); color: var(--on-surface); width: 100%; font-family: var(--font-body); font-size: 15px; transition: border-color .15s; }
.em-field:focus { outline: none; border-bottom-color: var(--primary-container); }
.em-field::selection { background: var(--primary-container); }

/* ---- Gateway (entry) ---- */
.em-gateway { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: var(--gutter); position: relative; overflow: hidden; }
.em-gateway__inner { width: 100%; max-width: 44rem; position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--s-lg); background: rgba(14,14,14,0.55); backdrop-filter: blur(10px); border-radius: var(--r-xl); padding: var(--s-xl); }
.em-gateway__scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14,14,14,0.6), transparent 40%, var(--surface-container-lowest)); z-index: 1; pointer-events: none; }
.em-herobg { position: absolute; inset: 0; z-index: 0; }
.em-herobg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }

/* ---- Journey World (2.5D) ---- */
/* ---- Journey World (2.5D Tactile Futurism) ---- */
.em-journey { position: relative; min-height: 640px; height: min(78vh, 760px); border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(ellipse at center, rgba(225,1,0,0.06), var(--surface-container-lowest) 75%); box-shadow: 0 24px 64px -12px rgba(225,1,0,0.08), 0 12px 32px -8px rgba(0,0,0,0.7); display: flex; flex-direction: column; }
.em-journey__topbar { position: relative; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-sm); padding: var(--s-sm) var(--s-md); background: rgba(14,14,14,0.75); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(229,226,225,0.06); }
.em-journey__filters { display: flex; align-items: center; gap: 4px; background: var(--surface-container-low); padding: 3px; border-radius: var(--r-lg); }
.em-filter-btn { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.75rem; border-radius: var(--r-md); color: var(--on-surface-variant); transition: all .2s; }
.em-filter-btn:hover { color: var(--on-surface); background: var(--surface-container); }
.em-filter-btn.is-active { color: var(--on-surface); background: var(--surface-container-highest); box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.25); }
.em-journey__controls { display: flex; align-items: center; gap: 6px; }
.em-ctrl-btn { display: flex; align-items: center; gap: 4px; padding: 0.35rem 0.65rem; border-radius: var(--r-md); background: var(--surface-container-high); color: var(--on-surface); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; transition: all .15s; box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.18); }
.em-ctrl-btn:hover { background: var(--surface-bright); }
.em-journey__viewport { position: relative; flex: 1; width: 100%; overflow: hidden; cursor: grab; }
.em-journey__viewport:active { cursor: grabbing; }
.em-journey__grid { position: absolute; inset: 0; opacity: .14; pointer-events: none; background-image: linear-gradient(rgba(255,180,168,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,180,168,0.1) 1px, transparent 1px); background-size: 64px 64px; }
.em-journey__stage { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .35s cubic-bezier(0.2, 0.9, 0.3, 1); transform-origin: center; transform: perspective(1200px) rotateX(24deg) rotateZ(-3deg) scale(0.96); }
.em-journey__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.em-journey__nodes { position: absolute; inset: 0; }
.em-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: var(--s-xs); cursor: pointer; transition: transform .2s ease; z-index: 10; }
.em-node__pedestal { position: absolute; bottom: -0.75rem; left: 50%; transform: translateX(-50%) scaleY(0.45); width: 6.5rem; height: 2.25rem; background: rgba(255,180,168,0.12); border-radius: 50%; filter: blur(5px); pointer-events: none; }
.em-node__beacon { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--surface-container-high); display: flex; align-items: center; justify-content: center; color: var(--primary); box-shadow: 0 0 28px rgba(0,0,0,0.8), inset 0 1px 0 0 rgba(255,180,168,0.3); transition: transform .2s cubic-bezier(.2,.9,.3,1.2), box-shadow .2s; position: relative; }
.em-node:hover .em-node__beacon { transform: scale(1.12); box-shadow: 0 0 36px rgba(225,1,0,0.5), inset 0 1px 0 0 rgba(255,180,168,0.5); }
.em-node[data-state="current"] .em-node__beacon { background: var(--primary-container); color: var(--on-primary-container); box-shadow: 0 0 44px rgba(225,1,0,0.75), inset 0 2px 0 0 rgba(255,180,168,0.6); }
.em-node[data-state="locked"] { opacity: .45; }
.em-node[data-state="locked"] .em-node__beacon { background: var(--surface-container-lowest); color: var(--outline); box-shadow: 0 0 12px rgba(0,0,0,0.5); }

/* §9 journey memory: a node this attendee has proven stays visibly changed —
   walked, not reset. "current" only says where they are standing right now. */
.em-node[data-state="done"] .em-node__beacon { background: var(--surface-container-high); color: var(--primary); box-shadow: 0 0 26px rgba(225,1,0,0.35), inset 0 1px 0 0 rgba(255,180,168,0.45); }
.em-node[data-state="done"] .em-node__slate { border-color: rgba(255,180,168,0.4); }
.em-node[data-state="open"] .em-node__beacon { border: 1px dashed rgba(255,180,168,0.35); }
.em-node__mark { position: absolute; inset-block-end: -0.2rem; inset-inline-end: -0.2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--primary-container); color: var(--on-primary-container); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(0,0,0,0.6); }
.em-node__slate { background: rgba(43,42,42,0.92); backdrop-filter: blur(10px); padding: var(--s-xs) var(--s-md); border-radius: var(--r-md); text-align: center; white-space: nowrap; box-shadow: 0 12px 28px rgba(0,0,0,0.6); border: 1px solid rgba(255,180,168,0.1); }
.em-node__slate .t { font-family: var(--font-head); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; }
.em-node-drawer { position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 22rem; max-width: 90%; background: rgba(20,20,20,0.94); backdrop-filter: blur(20px); border-inline-start: 1px solid rgba(255,180,168,0.15); box-shadow: -16px 0 40px rgba(0,0,0,0.8); z-index: 40; padding: var(--s-lg); display: flex; flex-direction: column; gap: var(--s-md); transform: translateX(105%); transition: transform .35s cubic-bezier(0.2, 0.9, 0.3, 1); }
.em-node-drawer.is-open { transform: translateX(0); }
[dir="rtl"] .em-node-drawer { transform: translateX(-105%); border-inline-start: none; border-inline-end: 1px solid rgba(255,180,168,0.15); box-shadow: 16px 0 40px rgba(0,0,0,0.8); }
[dir="rtl"] .em-node-drawer.is-open { transform: translateX(0); }
.em-journey__hud { position: absolute; inset-inline-end: var(--s-md); top: var(--s-md); bottom: var(--s-md); width: 20rem; max-width: 44%; display: flex; flex-direction: column; gap: var(--s-md); z-index: 5; pointer-events: none; }
.em-journey__hud > * { pointer-events: auto; }
@media (max-width: 900px) { .em-journey__hud { position: static; width: auto; max-width: none; margin-top: var(--s-md); flex-direction: row; overflow-x: auto; } .em-journey__hud > * { min-width: 15rem; } .em-journey__hud .em-hud-feed { display: none; } }

/* ---- Meter / progress ---- */
.em-meter { height: 6px; border-radius: var(--r-full); background: var(--surface-container-lowest); overflow: hidden; }
.em-meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-container)); border-radius: inherit; transition: width .5s ease; }

/* ---- Passport ledger (12-Stamp Cryptographic Grid & Physical Slate) ---- */
.em-pass-slate {
  background: var(--surface-container-lowest);
  border-radius: var(--r-xl);
  padding: var(--s-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 80px -16px rgba(0,0,0,0.95);
  border: 1px solid rgba(255,180,168,0.12);
}
.pass-grain {
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 16px 16px;
}
.hologram-sheen {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(225,1,0,0.08) 35%, rgba(179,197,255,0.05) 70%, transparent 100%);
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
}
.micro-chip {
  width: 3.2rem; height: 2.3rem; border-radius: var(--r-md);
  background: linear-gradient(145deg, #2b2a2a 0%, #171616 100%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), 0 4px 12px rgba(0,0,0,0.6);
  position: relative; padding: 0.35rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.micro-chip__line { width: 100%; height: 1px; background: rgba(71,70,69,0.85); }
.micro-chip__contacts { display: flex; justify-content: space-between; align-items: center; }
.micro-chip__contact { width: 0.6rem; height: 0.6rem; border-radius: 2px; background: rgba(71,70,69,0.5); }
.em-qr-matrix {
  /* A scannable code needs true contrast, so this plate is light: the dark frame
     it had when the matrix was decoration made the real QR unreadable to a camera. */
  width: 6.5rem; height: 6.5rem; border-radius: var(--r-lg); background: #f6f4f3; padding: 0.4rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 1px 3px rgba(0,0,0,0.18);
}
.em-qr-matrix svg { width: 100%; height: 100%; }
.em-qr-matrix img { width: 100%; height: 100%; display: block; }

.em-passport-card { background: linear-gradient(135deg, var(--surface-container-low), var(--surface-container-lowest)); border-radius: var(--r-xl); padding: var(--s-xl); box-shadow: 0 24px 64px -12px rgba(225,1,0,0.1), inset 0 1px 0 0 rgba(255,180,168,0.2); position: relative; overflow: hidden; }
.em-passport-card::before { content: ""; position: absolute; top: -50%; right: -30%; width: 22rem; height: 22rem; background: radial-gradient(circle, rgba(225,1,0,0.12), transparent 70%); pointer-events: none; }
.em-ledger { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--s-md); }
.em-stamp { border-radius: var(--r-lg); padding: var(--s-md); background: var(--surface-container-low); display: flex; flex-direction: column; gap: var(--s-xs); align-items: flex-start; opacity: .45; transition: opacity .3s, transform .3s, box-shadow .3s; border: 1px solid rgba(229,226,225,0.04); }
.em-stamp.is-earned { opacity: 1; background: var(--surface-container-highest); box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.25), 0 8px 20px rgba(0,0,0,0.5); border-color: rgba(225,1,0,0.2); }
.em-stamp:hover { transform: translateY(-2px); }
.em-stamp__ico { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-container-lowest); color: var(--outline); }
.em-stamp.is-earned .em-stamp__ico { background: var(--primary-container); color: var(--on-primary-container); box-shadow: 0 0 24px rgba(225,1,0,0.5); }
.em-just-earned { animation: em-pop .6s ease; }
@keyframes em-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---- Quests & Secret QR ---- */
.em-quest { display: flex; align-items: center; gap: var(--s-md); background: var(--surface-container-low); border-radius: var(--r-lg); padding: var(--s-md) var(--s-lg); transition: all .2s; }
.em-quest.is-done { background: var(--surface-container-highest); box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.15); }
.em-quest__state { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--surface-container-lowest); color: var(--outline); }
.em-quest.is-done .em-quest__state { background: var(--primary-container); color: var(--on-primary-container); }
.em-scanner-viewport { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 240px; background: #050505; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(225,1,0,0.3); }
.em-scanner-laser { position: absolute; left: 5%; right: 5%; height: 2px; background: linear-gradient(90deg, transparent, #e10100, #ffb4a8, #e10100, transparent); box-shadow: 0 0 12px #e10100; animation: em-laser 2.2s ease-in-out infinite; pointer-events: none; }
@keyframes em-laser { 0%, 100% { top: 12%; } 50% { top: 88%; } }

/* ---- Word wall (Tactile-Futurism Dynamic Cloud) ---- */
.em-wordwall-container { position: relative; width: 100%; min-height: 380px; background: var(--surface-container-low); border-radius: var(--r-xl); padding: var(--s-xl); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; content-content: center; gap: var(--s-md); overflow: hidden; select-none; box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.15); }
.em-wordwall-glow { position: absolute; width: 18rem; height: 18rem; border-radius: 50%; background: rgba(225,1,0,0.12); filter: blur(52px); pointer-events: none; z-index: 0; }
.em-word { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--on-surface); padding: 0.2rem 0.75rem; border-radius: var(--r-full); background: rgba(225,1,0,0.08); opacity: 0; transform: scale(.7); transition: opacity .4s, transform .4s; position: relative; z-index: 1; cursor: pointer; }
.em-word.show { opacity: 1; transform: scale(1); }
.em-word:hover { transform: scale(1.08); background: rgba(225,1,0,0.22); color: #fff; }
.em-word--huge { font-size: clamp(1.8rem, 3.8vw, 3.4rem); font-weight: 800; color: #fff; text-shadow: 0 4px 20px rgba(225,1,0,0.6); letter-spacing: -0.02em; }
.em-word--large { font-size: clamp(1.3rem, 2.4vw, 2.2rem); font-weight: 700; color: var(--primary); text-shadow: 0 2px 12px rgba(225,1,0,0.4); }
.em-word--med { font-size: clamp(1rem, 1.6vw, 1.4rem); font-weight: 600; color: var(--on-surface); }
.em-word--pill { font-size: 10px; background: var(--primary-container); color: var(--on-primary-container); padding: 1px 5px; border-radius: 4px; margin-inline-start: 4px; vertical-align: middle; }

/* ---- Poll options ---- */
.em-opt { display: block; width: 100%; text-align: start; background: var(--surface-container-low); border-radius: var(--r-lg); padding: var(--s-md); margin-bottom: var(--s-sm); transition: background .15s; position: relative; overflow: hidden; }
.em-opt:hover { background: var(--surface-container-high); }
.em-opt.is-selected { box-shadow: inset 0 0 0 2px var(--primary-container); }
.em-opt__bar { position: absolute; inset-block: 0; inset-inline-start: 0; background: rgba(225,1,0,0.16); width: 0; transition: width .6s ease; z-index: 0; }
.em-opt__row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: var(--s-sm); }

/* ---- Live Now feed ---- */
.em-feed { display: flex; flex-direction: column; gap: var(--s-sm); }
.em-feed__item { display: flex; align-items: center; gap: var(--s-sm); background: var(--surface-container-low); border-radius: var(--r-lg); padding: var(--s-sm) var(--s-md); }
.em-pulse { display: flex; flex-direction: column; gap: var(--s-md); }
.em-post { background: var(--surface-container-low); border-radius: var(--r-lg); overflow: hidden; }
.em-post__media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.em-post__media img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ---- Mosaic ---- */
.em-mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: 3px; }
.em-mosaic__tile { aspect-ratio: 1; background: var(--surface-container-low); border-radius: var(--r-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--outline); }
.em-mosaic__tile img { width: 100%; height: 100%; object-fit: cover; }
.em-mosaic__tile--mine { box-shadow: inset 0 0 0 2px var(--primary-container); }

/* A stored photograph whose file has gone keeps its square -- dropping the tile would
   make the count beside "Your Moments" lie about what the attendee did -- but the
   browser's own broken-image glyph, with its English alt text beside it, is not what
   a passport should show. Neutral surface, no signal colour, nothing that pretends to
   be a picture of something. */
.em-photo-gone { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 2.5rem; background: var(--surface-container-low); color: var(--outline); border-radius: var(--r-sm); }
.em-post__media .em-photo-gone { aspect-ratio: 1; height: auto; }
.em-photo-gone--qr { width: 88px; height: 88px; min-height: 0; background: var(--surface-container-lowest); border: 1px dashed var(--outline-variant); border-radius: var(--r); }

/* ---- Spatial Connections (Radar Console + Peer Cards) ---- */
.em-radar-console { background: var(--surface-container-lowest); border-radius: var(--r-xl); padding: var(--s-lg); box-shadow: 0 24px 64px -12px rgba(225,1,0,0.08), 0 12px 32px -8px rgba(0,0,0,0.7); position: relative; overflow: hidden; min-height: 480px; display: flex; flex-direction: column; justify-content: space-between; }
.em-radar-sweep { position: absolute; inset: 0; transform-origin: center; animation: em-radar-spin 8s linear infinite; pointer-events: none; opacity: .35; background: conic-gradient(from 0deg, transparent 0deg, transparent 300deg, rgba(225,1,0,0.6) 360deg); }
@keyframes em-radar-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.em-conn-peer-card { background: var(--surface-container); border-radius: var(--r-xl); padding: var(--s-md); box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.08); display: flex; flex-direction: column; gap: var(--s-sm); transition: all .2s; }
.em-conn-peer-card:hover { background: var(--surface-container-high); transform: translateY(-2px); }
.em-tap-btn { width: 100%; padding: 0.5rem 1rem; border-radius: var(--r-md); background: var(--surface-container-highest); color: var(--on-surface); font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.2); transition: all .2s; }
.em-tap-btn:hover { background: var(--primary-container); color: var(--on-primary-container); box-shadow: 0 0 20px rgba(225,1,0,0.5); }
.em-tap-btn.is-tapped { background: #1b8a36; color: #fff; }

/* ---- Time Capsule (seal-state rail & waveform visualizer) ---- */
.em-step-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: var(--s-xs); padding: 6px; background: var(--surface-container-lowest); border-radius: var(--r-xl); margin-bottom: var(--s-lg); }
.em-step-item { display: flex; align-items: center; gap: var(--s-sm); padding: var(--s-sm) var(--s-md); border-radius: var(--r-md); transition: all .2s; }
.em-step-item.is-active { background: var(--surface-container-high); box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.2); }
.em-step-item.is-done { background: var(--surface-container-high); box-shadow: inset 0 1px 0 0 rgba(255,180,168,0.16); }
.em-step-badge { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--surface-variant); color: var(--on-surface-variant); }
.em-step-item.is-active .em-step-badge { background: var(--primary-container); color: var(--on-primary-container); }
.em-step-item.is-done .em-step-badge { background: rgba(255,180,168,0.16); color: var(--primary); }
.em-waveform-box { height: 5rem; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 3px; padding: 0.5rem; overflow: hidden; background: var(--surface-container-lowest); border-radius: var(--r-lg); }
.em-waveform-bar { width: 3px; background: var(--primary-container); border-radius: 2px; height: 12px; transition: height .08s ease; }
.em-waveform-bar:nth-child(even) { background: var(--primary); }
.em-thematic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.5rem; }
.em-tag-chip { font-family: var(--font-head); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: var(--r-md); background: var(--surface-container-high); color: var(--on-surface-variant); transition: all .15s; cursor: pointer; }
.em-tag-chip.is-active, .em-tag-chip:hover { background: var(--primary-container); color: var(--on-primary-container); }

/* ---- Finale & Optical Viewfinder HUD ---- */
.em-finale { position: relative; min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-lg); text-align: center; overflow: hidden; border-radius: var(--r-xl); }
.em-constellation { position: absolute; inset: 0; z-index: 0; }
.em-constellation canvas { width: 100%; height: 100%; display: block; }
.em-viewfinder-hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: var(--s-lg); z-index: 1; }
.em-hud-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(43,42,42,0.85); backdrop-filter: blur(12px); padding: 0.3rem 0.75rem; border-radius: var(--r-md); font-family: var(--font-head); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-surface); }
.em-cognitive-card { pointer-events: auto; background: rgba(43,42,42,0.92); backdrop-filter: blur(20px); border-radius: var(--r-xl); padding: var(--s-md); box-shadow: 0 24px 48px rgba(0,0,0,0.8); border: 1px solid rgba(255,180,168,0.15); max-width: 22rem; text-align: left; }
.em-finale__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--s-md); }
.em-countdown { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---- Footer ---- */
.em-footer { background: rgba(14,14,14,0.95); backdrop-filter: blur(20px); padding: var(--s-md) var(--margin); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-md); box-shadow: 0 -12px 32px rgba(0,0,0,0.7); }

/* ---- Toast ---- */
.em-toast { position: fixed; bottom: 1.5rem; inset-inline-start: 50%; transform: translateX(-50%) translateY(150%); background: var(--surface-container-highest); color: var(--on-surface); padding: var(--s-md) var(--s-lg); border-radius: var(--r-lg); z-index: 100; box-shadow: 0 24px 64px -12px rgba(225,1,0,0.3); transition: transform .35s cubic-bezier(.2,.9,.3,1.2); max-width: 90vw; display: flex; align-items: center; gap: var(--s-sm); }
.em-toast.show { transform: translateX(-50%) translateY(0); }
[dir="rtl"] .em-toast { transform: translateX(50%) translateY(150%); }
[dir="rtl"] .em-toast.show { transform: translateX(50%) translateY(0); }

/* ---- Mobile bottom navigation (compact IA) ---- */
.em-mobilenav { display: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  :root { --header-h: 8rem; }
  .em-screen { padding: var(--s-xl) var(--margin-mobile) var(--s-3xl); }
  .em-header__row, .em-nav, .em-footer { padding-inline: var(--margin-mobile); }
  .em-hide-md { display: none !important; }
  .font-display-lg { font-size: 36px; line-height: 44px; }
}
@media (max-width: 640px) {
  .em-mobilenav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: rgba(14,14,14,0.95); backdrop-filter: blur(20px); box-shadow: 0 -12px 32px rgba(0,0,0,0.7); padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px)); }
  .em-mobilenav__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0.6rem 0.2rem 0.3rem; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-surface-variant); transition: transform 0.12s ease, color 0.15s ease; -webkit-tap-highlight-color: transparent; }
  .em-mobilenav__item:active { transform: scale(0.92); opacity: 0.85; }
  .em-mobilenav__item.is-active { color: var(--primary-container); }
  .em-mobilenav__item .material-symbols-outlined { font-size: 22px; }
  body { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
  .em-header__row { min-height: 3.75rem; }
  .em-screen { padding-bottom: var(--s-2xl); }
}

/* ---- Phase-driven visual modes (server owns the mode; CSS owns the look) ----
   --em-signal is written by the client from the live audience signal (0..1). */
body { --em-signal: .2; }
.em-shader-layer { opacity: calc(.28 + var(--em-signal) * .42); transition: opacity 1.2s linear; }
[data-visual-mode="anticipation"] .em-gateway__scrim { background: radial-gradient(120% 90% at 50% 110%, rgba(225,1,0,.18), transparent 60%); }
[data-visual-mode="arrival"] .em-live-dot i,
[data-visual-mode="finale"] .em-live-dot i { box-shadow: 0 0 0 0 rgba(255,180,168,.7); animation: emPulse 1.6s infinite; }
[data-visual-mode="focus"] .em-main, [data-visual-mode="debate"] .em-main { filter: saturate(1.12); }
[data-visual-mode="signal"] .em-word { letter-spacing: .01em; }
[data-visual-mode="connection"] .em-conn, [data-visual-mode="network"] .em-conn { border-color: rgba(225,1,0,.35); }
[data-visual-mode="discovery"] .em-node__beacon { box-shadow: 0 0 22px rgba(255,180,168,calc(.15 + var(--em-signal) * .5)); }
[data-visual-mode="archive"] .em-wordwall { opacity: .82; }
[data-effect="burst"] .em-word.show { animation: emBurst .7s ease-out; }
[data-effect="wave"] .em-word.show,
[data-effect="drift"] .em-word.show { animation: emDrift 1.1s ease-out; }
[data-effect="spotlight"] .live-title { text-shadow: 0 0 34px rgba(255,180,168,.5); }
@keyframes emPulse { 0% { box-shadow: 0 0 0 0 rgba(255,180,168,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,180,168,0); } 100% { box-shadow: 0 0 0 0 rgba(255,180,168,0); } }
@keyframes emBurst { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes emDrift { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.em-closed-note { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--on-surface-variant); }

/* ---- Room Energy Pulse States (Experience Intelligence) ---- */
body[data-energy-state="quiet"] { --em-room-hue: 0; }
body[data-energy-state="active"] { --em-room-hue: 15; --em-signal: .5; }
body[data-energy-state="active"] .em-shader-layer { opacity: .45; }
body[data-energy-state="connected"] { --em-room-hue: 35; --em-signal: .75; }
body[data-energy-state="connected"] .em-node__beacon { box-shadow: 0 0 24px rgba(255,180,168,.5); }
body[data-energy-state="climax"] { --em-room-hue: 45; --em-signal: 1.0; }
body[data-energy-state="climax"] .em-shader-layer { opacity: .68; }
body[data-energy-state="climax"] .live-title { text-shadow: 0 0 40px rgba(225,1,0,.8), 0 0 80px rgba(255,180,168,.6); animation: emPulse 1.2s infinite; }

/* ---- Your Journey Timeline (Passport §Narrative) ---- */
.em-timeline { position: relative; padding: 1rem 0; margin: 1.5rem 0; }
.em-timeline::before { content: ""; position: absolute; top: 1.5rem; bottom: 1.5rem; left: 1.4rem; width: 2px; background: linear-gradient(180deg, var(--primary) 0%, rgba(225,1,0,0.2) 100%); }
[dir="rtl"] .em-timeline::before { left: auto; right: 1.4rem; }
.em-timeline__item { position: relative; display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.5rem; }
.em-timeline__node { position: relative; z-index: 2; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--surface-container-high); border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 14px rgba(225,1,0,0.35); flex-shrink: 0; }
.em-timeline__body { flex: 1; background: rgba(29,27,27,0.65); border: 1px solid rgba(229,226,225,0.06); border-radius: var(--r-lg); padding: 1rem 1.25rem; backdrop-filter: blur(12px); }
.em-timeline__time { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--primary-container); text-transform: uppercase; font-weight: 700; }

/* ---- Categorized Contributions Grid ---- */
.em-contributions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--s-md); margin: 1.5rem 0; }
.em-contrib-card { background: rgba(29,27,27,0.55); border: 1px solid rgba(229,226,225,0.08); border-radius: var(--r-lg); padding: 1rem; position: relative; overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease; }
.em-contrib-card:hover { transform: translateY(-2px); border-color: rgba(225,1,0,0.3); }
.em-contrib-card__val { font-size: 1.75rem; font-weight: 800; font-family: var(--font-mono); color: var(--on-surface); line-height: 1.1; margin: 0.35rem 0; }

/* ---- Environmental Memory Visuals (2.5D Journey World) ---- */
.em-tributary-path { stroke: rgba(255,180,168,0.7); stroke-dasharray: 4 6; stroke-width: 2; fill: none; animation: emDash 20s linear infinite; }
.em-discovery-glyph { transform-origin: center; animation: emSpinSlow 24s linear infinite; }
.em-capsule-orbit { transform-origin: center; animation: emSpinSlow 16s linear infinite; }
@keyframes emDash { to { stroke-dashoffset: -200; } }
@keyframes emSpinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---- RTL ---- */
[dir="rtl"] .em-quest, [dir="rtl"] .em-feed__item { direction: rtl; }
[dir="rtl"] .em-opt { text-align: end; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
}

