.ei-flow-v2-notice-host{position:relative}
.ei-flow-v2-notice-stack{z-index:999999;display:flex;flex-direction:column;gap:10px;width:min(380px,calc(100% - 32px));pointer-events:none}
.ei-flow-v2-notice-stack.is-viewport{position:fixed;right:24px;bottom:24px;align-items:flex-end}
.ei-flow-v2-notice-stack.is-lobby_scene_bottom_right{position:absolute;right:18px;bottom:18px;max-height:calc(100% - 36px);overflow:auto;align-items:flex-end}
.ei-flow-v2-notice-stack.is-lobby_scene_center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,calc(100% - 40px));max-height:calc(100% - 40px);overflow:auto;align-items:center}

/* v0.3.46 — optional guaranteed-visible notification layer.
   `topmost` uses the Popover Top Layer when available and falls back to the maximum
   EI z-index. Existing notification stacking stays unchanged unless explicitly selected. */
.ei-flow-v2-notice-stack.is-topmost{position:fixed!important;z-index:2147483646!important;inset:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important;pointer-events:none!important}
.ei-flow-v2-notice-stack.is-topmost:popover-open{display:flex!important}
.ei-flow-v2-notice-stack.is-topmost::backdrop{display:none!important;background:transparent!important}
.ei-flow-v2-notice-stack.is-topmost.is-viewport,.ei-flow-v2-notice-stack.is-topmost.is-lobby_scene_bottom_right{right:24px!important;bottom:24px!important;left:auto!important;top:auto!important;transform:none!important;align-items:flex-end!important}
.ei-flow-v2-notice-stack.is-topmost.is-lobby_scene_center{left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(440px,calc(100vw - 40px))!important;align-items:center!important}
.ei-flow-v2-notice.is-topmost{z-index:1!important}
@media(max-width:640px){.ei-flow-v2-notice-stack.is-topmost.is-viewport,.ei-flow-v2-notice-stack.is-topmost.is-lobby_scene_bottom_right{left:auto!important;right:12px!important;bottom:12px!important;width:fit-content!important;max-width:min(310px,calc(100vw - 24px))!important}.ei-flow-v2-notice-stack.is-topmost.is-lobby_scene_center{width:fit-content!important;max-width:min(310px,calc(100vw - 24px))!important}}

.ei-flow-v2-notice{
  --ei-flow-bg:#172033;--ei-flow-bg-2:#111827;--ei-flow-text:#fff;--ei-flow-muted:#dbe5f5;
  --ei-flow-border:#d9b85f;--ei-flow-button-bg:rgba(255,255,255,.12);--ei-flow-button-text:#fff;
  --ei-flow-shadow:0 14px 38px rgba(0,0,0,.24);--ei-flow-radius:12px;--ei-flow-accent:#65a7ff;
  position:relative!important;isolation:isolate;width:100%;box-sizing:border-box!important;padding:14px 50px 14px 18px!important;
  border:1px solid var(--ei-flow-border)!important;border-left-width:4px!important;border-radius:var(--ei-flow-radius)!important;
  background:linear-gradient(145deg,var(--ei-flow-bg),var(--ei-flow-bg-2))!important;color:var(--ei-flow-text)!important;
  box-shadow:var(--ei-flow-shadow)!important;opacity:0;transform:translateY(12px) scale(.98);
  transition:opacity .16s ease,transform .16s ease;font-size:14px;line-height:1.58;text-align:left;pointer-events:auto;
  overflow:visible!important;overflow-wrap:anywhere;backdrop-filter:none;-webkit-backdrop-filter:none
}
.ei-flow-v2-notice::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;opacity:.28}
.ei-flow-v2-notice.is-visible{opacity:1;transform:translateY(0) scale(1)}
.ei-flow-v2-notice.is-success{--ei-flow-accent:#34c77b}
.ei-flow-v2-notice.is-info{--ei-flow-accent:#65a7ff}
.ei-flow-v2-notice.is-warning{--ei-flow-accent:#f0ad38}
.ei-flow-v2-notice.is-error,.ei-flow-v2-notice.is-danger{--ei-flow-accent:#ef5b67}
.ei-flow-v2-notice{border-left-color:var(--ei-flow-accent)!important}
.ei-flow-v2-notice-text{position:relative;z-index:1;color:var(--ei-flow-text)!important;-webkit-text-fill-color:var(--ei-flow-text)!important;text-shadow:none!important}

button.ei-flow-v2-notice-close{
  all:initial!important;position:absolute!important;z-index:5!important;top:8px!important;right:8px!important;
  box-sizing:border-box!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;
  margin:0!important;padding:0!important;border:1px solid color-mix(in srgb,var(--ei-flow-button-text) 28%,transparent)!important;
  border-radius:999px!important;background:var(--ei-flow-button-bg)!important;color:var(--ei-flow-button-text)!important;
  -webkit-text-fill-color:var(--ei-flow-button-text)!important;display:flex!important;visibility:visible!important;
  align-items:center!important;justify-content:center!important;font-family:Arial,sans-serif!important;font-size:22px!important;
  font-weight:700!important;line-height:1!important;cursor:pointer!important;box-shadow:none!important;opacity:.9!important;
  pointer-events:auto!important;appearance:none!important;-webkit-appearance:none!important;transform:none!important
}
.ei-flow-v2-notice-close-glyph{display:block!important;width:100%!important;height:100%!important;text-align:center!important;line-height:27px!important;color:inherit!important;-webkit-text-fill-color:inherit!important;font:700 22px/27px Arial,sans-serif!important}
button.ei-flow-v2-notice-close:hover,button.ei-flow-v2-notice-close:focus-visible{opacity:1!important;filter:brightness(1.12);outline:2px solid var(--ei-flow-accent)!important;outline-offset:2px!important}
button.ei-flow-v2-notice-close:active{transform:scale(.94)!important}

/* 23 canonical EI themes + EI World / Basic Black. */
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-basic{--ei-flow-bg:#172033;--ei-flow-bg-2:#111827;--ei-flow-text:#fff;--ei-flow-border:#526177;--ei-flow-button-bg:rgba(255,255,255,.12);--ei-flow-button-text:#fff;--ei-flow-radius:12px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-minimal{--ei-flow-bg:#fff;--ei-flow-bg-2:#f8fafc;--ei-flow-text:#172033;--ei-flow-border:#d9e1ea;--ei-flow-button-bg:#eef2f6;--ei-flow-button-text:#172033;--ei-flow-shadow:0 12px 30px rgba(15,23,42,.14);--ei-flow-radius:14px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-glass{--ei-flow-bg:rgba(18,31,54,.84);--ei-flow-bg-2:rgba(10,20,38,.72);--ei-flow-text:#f3f8ff;--ei-flow-border:rgba(155,201,255,.58);--ei-flow-button-bg:rgba(255,255,255,.14);--ei-flow-button-text:#fff;--ei-flow-shadow:0 18px 48px rgba(2,10,24,.34);--ei-flow-radius:18px;backdrop-filter:blur(16px) saturate(135%);-webkit-backdrop-filter:blur(16px) saturate(135%)}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-glass::before{background:linear-gradient(125deg,rgba(255,255,255,.24),transparent 42%,rgba(101,167,255,.16))}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-rpg{--ei-flow-bg:#101a2d;--ei-flow-bg-2:#081120;--ei-flow-text:#fff7d6;--ei-flow-border:#d7b65a;--ei-flow-button-bg:#263554;--ei-flow-button-text:#ffe9a8;--ei-flow-shadow:0 0 0 2px #3a2c10,0 16px 38px rgba(0,0,0,.4);--ei-flow-radius:5px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-rpg::before{inset:4px;border:1px solid rgba(248,220,142,.34);border-radius:2px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-classic_wood{--ei-flow-bg:#4a2d1a;--ei-flow-bg-2:#24160e;--ei-flow-text:#fff1d1;--ei-flow-border:#b98245;--ei-flow-button-bg:#6a4428;--ei-flow-button-text:#fff1d1;--ei-flow-shadow:0 0 0 3px #26150b,0 14px 34px rgba(0,0,0,.38);--ei-flow-radius:6px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-classic_wood::before{background:repeating-linear-gradient(8deg,rgba(255,255,255,.04) 0 1px,transparent 1px 7px)}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-parchment{--ei-flow-bg:#f6e8bd;--ei-flow-bg-2:#dfc98d;--ei-flow-text:#3b2a18;--ei-flow-border:#9a713a;--ei-flow-button-bg:#d4b978;--ei-flow-button-text:#3b2a18;--ei-flow-shadow:0 14px 34px rgba(74,48,20,.24);--ei-flow-radius:4px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-parchment::before{background:radial-gradient(circle at 20% 15%,rgba(255,255,255,.55),transparent 32%),repeating-linear-gradient(0deg,rgba(84,56,24,.04) 0 1px,transparent 1px 4px)}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-dark{--ei-flow-bg:#171717;--ei-flow-bg-2:#090909;--ei-flow-text:#f5f5f5;--ei-flow-border:#666;--ei-flow-button-bg:#292929;--ei-flow-button-text:#fff;--ei-flow-shadow:0 14px 38px rgba(0,0,0,.42);--ei-flow-radius:16px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-chinese{--ei-flow-bg:#521719;--ei-flow-bg-2:#25090b;--ei-flow-text:#fff1d2;--ei-flow-border:#d5a73e;--ei-flow-button-bg:#721e20;--ei-flow-button-text:#ffe7a1;--ei-flow-shadow:0 0 0 2px #771d20,0 16px 38px rgba(55,0,0,.4);--ei-flow-radius:6px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-chinese::before{background:linear-gradient(90deg,transparent 46%,rgba(225,185,89,.18) 50%,transparent 54%)}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-japanese{--ei-flow-bg:#f5f0e6;--ei-flow-bg-2:#e9e0d2;--ei-flow-text:#282522;--ei-flow-border:#8c8377;--ei-flow-button-bg:#ded4c5;--ei-flow-button-text:#282522;--ei-flow-shadow:0 12px 30px rgba(54,47,40,.18);--ei-flow-radius:3px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-japanese::before{background:repeating-linear-gradient(90deg,rgba(35,35,35,.025) 0 1px,transparent 1px 5px)}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-ink{--ei-flow-bg:#f1f1ef;--ei-flow-bg-2:#d8d8d4;--ei-flow-text:#171717;--ei-flow-border:#454545;--ei-flow-button-bg:#dadad6;--ei-flow-button-text:#111;--ei-flow-shadow:0 12px 30px rgba(0,0,0,.16);--ei-flow-radius:2px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-ink::before{background:radial-gradient(ellipse at 8% 90%,rgba(0,0,0,.12),transparent 32%)}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-pixel{--ei-flow-bg:#15152a;--ei-flow-bg-2:#080813;--ei-flow-text:#fff;--ei-flow-border:#f4d35e;--ei-flow-button-bg:#29294a;--ei-flow-button-text:#fff;--ei-flow-shadow:4px 4px 0 #000;--ei-flow-radius:0;font-family:monospace!important;image-rendering:pixelated}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-pixel::before{inset:3px;border:2px solid rgba(255,255,255,.2);border-radius:0}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-windows95{--ei-flow-bg:#c0c0c0;--ei-flow-bg-2:#b6b6b6;--ei-flow-text:#000;--ei-flow-border:#000080;--ei-flow-button-bg:#c0c0c0;--ei-flow-button-text:#000;--ei-flow-shadow:2px 2px 0 #000;--ei-flow-radius:0;font-family:"MS Sans Serif",Tahoma,sans-serif!important}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-windows95{border-top-color:#fff!important;border-right-color:#404040!important;border-bottom-color:#404040!important}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-windows{--ei-flow-bg:rgba(248,251,255,.96);--ei-flow-bg-2:rgba(232,240,250,.95);--ei-flow-text:#18202c;--ei-flow-border:#9eb7d2;--ei-flow-button-bg:#e4edf7;--ei-flow-button-text:#18202c;--ei-flow-shadow:0 18px 46px rgba(41,74,110,.22);--ei-flow-radius:12px;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-mac{--ei-flow-bg:rgba(250,250,252,.82);--ei-flow-bg-2:rgba(229,229,235,.78);--ei-flow-text:#1d1d1f;--ei-flow-border:rgba(0,0,0,.2);--ei-flow-button-bg:rgba(0,0,0,.08);--ei-flow-button-text:#1d1d1f;--ei-flow-shadow:0 20px 55px rgba(0,0,0,.22);--ei-flow-radius:18px;backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%)}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-cyberpunk{--ei-flow-bg:#090d18;--ei-flow-bg-2:#05060b;--ei-flow-text:#eaffff;--ei-flow-border:#00f0ff;--ei-flow-button-bg:#132332;--ei-flow-button-text:#f5ff00;--ei-flow-shadow:0 0 18px rgba(0,240,255,.35),0 16px 38px rgba(0,0,0,.48);--ei-flow-radius:2px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-cyberpunk::before{background:repeating-linear-gradient(0deg,rgba(0,240,255,.06) 0 1px,transparent 1px 4px)}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-nasapunk{--ei-flow-bg:#0c1b2e;--ei-flow-bg-2:#07101d;--ei-flow-text:#eef6ff;--ei-flow-border:#ff7a1a;--ei-flow-button-bg:#17304d;--ei-flow-button-text:#fff;--ei-flow-shadow:0 16px 40px rgba(0,16,38,.45);--ei-flow-radius:7px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-nasapunk::before{background:linear-gradient(120deg,rgba(255,255,255,.08),transparent 35%,rgba(255,122,26,.12))}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-steampunk{--ei-flow-bg:#3b2a1f;--ei-flow-bg-2:#1c130d;--ei-flow-text:#f7e7c4;--ei-flow-border:#b57b3b;--ei-flow-button-bg:#5a3c25;--ei-flow-button-text:#f7e7c4;--ei-flow-shadow:0 0 0 2px #1b1009,0 16px 40px rgba(0,0,0,.42);--ei-flow-radius:8px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-steampunk::before{background:radial-gradient(circle at 92% 18%,rgba(216,154,75,.25) 0 12px,transparent 13px)}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-terminal{--ei-flow-bg:#020604;--ei-flow-bg-2:#000;--ei-flow-text:#77ff9b;--ei-flow-border:#27d85a;--ei-flow-button-bg:#07160b;--ei-flow-button-text:#77ff9b;--ei-flow-shadow:0 0 20px rgba(39,216,90,.22);--ei-flow-radius:2px;font-family:monospace!important}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-terminal::before{background:repeating-linear-gradient(0deg,rgba(72,255,120,.08) 0 1px,transparent 1px 3px)}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-arcane{--ei-flow-bg:#19102d;--ei-flow-bg-2:#090611;--ei-flow-text:#f4ecff;--ei-flow-border:#9f73ff;--ei-flow-button-bg:#302050;--ei-flow-button-text:#f4ecff;--ei-flow-shadow:0 0 24px rgba(159,115,255,.34),0 16px 38px rgba(0,0,0,.45);--ei-flow-radius:14px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-arcane::before{background:radial-gradient(circle at 20% 50%,rgba(172,116,255,.28),transparent 38%)}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-wabisabi{--ei-flow-bg:#e7e1d7;--ei-flow-bg-2:#d2cabd;--ei-flow-text:#36312b;--ei-flow-border:#8d8375;--ei-flow-button-bg:#d0c7ba;--ei-flow-button-text:#36312b;--ei-flow-shadow:0 10px 26px rgba(57,48,38,.16);--ei-flow-radius:10px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-cute{--ei-flow-bg:#fff1f6;--ei-flow-bg-2:#ffe0ec;--ei-flow-text:#7d2144;--ei-flow-border:#ef8eaf;--ei-flow-button-bg:#ffd1e1;--ei-flow-button-text:#8d244c;--ei-flow-shadow:0 14px 34px rgba(190,74,119,.18);--ei-flow-radius:18px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-western{--ei-flow-bg:#eee4d1;--ei-flow-bg-2:#d7c5a6;--ei-flow-text:#342619;--ei-flow-border:#7d5c36;--ei-flow-button-bg:#d1ba96;--ei-flow-button-text:#342619;--ei-flow-shadow:0 14px 34px rgba(60,39,20,.24);--ei-flow-radius:4px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-dq{--ei-flow-bg:#08266b;--ei-flow-bg-2:#03143f;--ei-flow-text:#fff;--ei-flow-border:#fff;--ei-flow-button-bg:#12357e;--ei-flow-button-text:#fff;--ei-flow-shadow:0 0 0 3px #0a0a0a,0 14px 34px rgba(0,0,0,.38);--ei-flow-radius:7px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-dq::before{inset:4px;border:2px solid #fff;border-radius:3px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-ei_world{--ei-flow-bg:#13233c;--ei-flow-bg-2:#071426;--ei-flow-text:#f7fbff;--ei-flow-border:#d9b85f;--ei-flow-button-bg:#233b60;--ei-flow-button-text:#fff0b3;--ei-flow-shadow:0 0 0 2px #2c4c77,0 18px 44px rgba(0,12,32,.45);--ei-flow-radius:10px}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-ei_world::before{background:linear-gradient(135deg,rgba(217,184,95,.16),transparent 38%,rgba(63,128,204,.16))}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-basic_black{--ei-flow-bg:rgba(0,0,0,.88);--ei-flow-bg-2:rgba(0,0,0,.78);--ei-flow-text:#fff;--ei-flow-border:rgba(255,255,255,.35);--ei-flow-button-bg:rgba(255,255,255,.12);--ei-flow-button-text:#fff;--ei-flow-shadow:0 14px 38px rgba(0,0,0,.4);--ei-flow-radius:8px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}

@supports not (color:color-mix(in srgb,white,black)){button.ei-flow-v2-notice-close{border-color:rgba(255,255,255,.32)!important}}
@media (prefers-reduced-motion:reduce){.ei-flow-v2-notice{transition:none!important;transform:none!important}}
@media (max-width:640px){
  .ei-flow-v2-notice-stack.is-viewport{right:12px;bottom:12px;left:auto;width:fit-content;max-width:min(310px,calc(100vw - 24px))}
  .ei-flow-v2-notice-stack.is-lobby_scene_bottom_right{right:10px;bottom:10px;left:auto;width:fit-content;max-width:min(310px,calc(100% - 20px));max-height:calc(100% - 20px)}
  .ei-flow-v2-notice-stack.is-lobby_scene_center{width:fit-content;max-width:min(310px,calc(100% - 18px));max-height:calc(100% - 18px)}
  .ei-flow-v2-notice{width:auto!important;min-width:0!important;max-width:100%!important;padding:11px 42px 11px 13px!important;font-size:13px;line-height:1.5}
  .ei-flow-v2-notice-text{max-width:250px}
  button.ei-flow-v2-notice-close{top:7px!important;right:7px!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important}
  .ei-flow-v2-notice-close-glyph{font-size:21px!important;line-height:25px!important}
}

/* v0.3.17 — 完全黑透：無背景模糊。 */
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-full_black{--ei-flow-bg:rgba(0,0,0,.90);--ei-flow-bg-2:rgba(0,0,0,.76);--ei-flow-text:#fff;--ei-flow-border:rgba(255,255,255,.82);--ei-flow-button-bg:rgba(255,255,255,.12);--ei-flow-button-text:#fff;--ei-flow-shadow:0 14px 38px rgba(0,0,0,.42);--ei-flow-radius:8px;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:is(.ei-flow-v2-notice,.ei-flow-v2-choice-modal).ei-theme-full_black::before{background:none!important;}

/* v0.3.28 — Flow full-screen cinematic title. Runtime also injects this visual shell into
   same-origin parent/top documents when Flow fires from an embedded Dialogue/Battle layer. */
.ei-flow-v2-screen-title{position:fixed;inset:0;z-index:2147483600;display:flex;align-items:center;justify-content:center;overflow:hidden;pointer-events:none}

/* v0.3.40 — mobile-safe Mana afterimages for iOS/Chrome-on-iOS WebKit. */

/* v0.3.42 — iPadOS desktop-UA safe path. iPads can be 820/834/1194 CSS px wide,
   so width-only mobile rules do not identify them. JS marks Apple touch WebKit directly. */
.ei-flow-v2-screen-title.is-webkit-touch-safe .ei-flow-v2-screen-title-text{max-width:92vw!important;font-size:clamp(34px,var(--ei-flow-title-size,9vw),132px)!important;-webkit-transform-origin:center center;transform-origin:center center;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.ei-flow-v2-screen-title.is-webkit-touch-safe.is-anim-mana .ei-flow-v2-screen-title-text:before,.ei-flow-v2-screen-title.is-webkit-touch-safe.is-anim-mana .ei-flow-v2-screen-title-text:after{display:none!important}
.ei-flow-v2-screen-title.is-webkit-touch-safe.is-anim-mana .ei-flow-v2-screen-title-echo{display:block;opacity:.28;-webkit-filter:blur(3px);filter:blur(3px);transition:transform var(--ei-flow-title-enter,650ms) cubic-bezier(.12,.82,.18,1),opacity var(--ei-flow-title-enter,650ms) ease,filter var(--ei-flow-title-enter,650ms) ease}
.ei-flow-v2-screen-title.is-webkit-touch-safe.is-anim-mana .ei-flow-v2-screen-title-echo.is-left{-webkit-transform:translate3d(-16%,0,0) scaleX(1.18);transform:translate3d(-16%,0,0) scaleX(1.18)}
.ei-flow-v2-screen-title.is-webkit-touch-safe.is-anim-mana .ei-flow-v2-screen-title-echo.is-right{-webkit-transform:translate3d(18%,0,0) scaleX(1.22);transform:translate3d(18%,0,0) scaleX(1.22)}
.ei-flow-v2-screen-title.is-webkit-touch-safe.is-anim-mana.is-settled .ei-flow-v2-screen-title-echo{-webkit-transform:translate3d(0,0,0) scaleX(1);transform:translate3d(0,0,0) scaleX(1);opacity:0;-webkit-filter:blur(.5px);filter:blur(.5px)}
.ei-flow-v2-screen-title.is-webkit-touch-safe.is-anim-mana.is-leaving .ei-flow-v2-screen-title-echo{opacity:.30;-webkit-filter:blur(4px);filter:blur(4px);transition-duration:var(--ei-flow-title-exit,550ms)}
.ei-flow-v2-screen-title.is-webkit-touch-safe.is-anim-mana.is-leaving .ei-flow-v2-screen-title-echo.is-left{-webkit-transform:translate3d(-20%,0,0) scaleX(1.26);transform:translate3d(-20%,0,0) scaleX(1.26)}
.ei-flow-v2-screen-title.is-webkit-touch-safe.is-anim-mana.is-leaving .ei-flow-v2-screen-title-echo.is-right{-webkit-transform:translate3d(22%,0,0) scaleX(1.30);transform:translate3d(22%,0,0) scaleX(1.30)}
@media(prefers-reduced-motion:reduce){
  .ei-flow-v2-screen-title.is-webkit-touch-safe.is-anim-mana .ei-flow-v2-screen-title-echo{display:block!important;-webkit-transform:none!important;transform:none!important;-webkit-filter:none!important;filter:none!important;opacity:.12!important;transition:opacity 140ms ease!important}
  .ei-flow-v2-screen-title.is-webkit-touch-safe.is-anim-mana.is-settled .ei-flow-v2-screen-title-echo,.ei-flow-v2-screen-title.is-webkit-touch-safe.is-anim-mana.is-leaving .ei-flow-v2-screen-title-echo{opacity:0!important}
}
.ei-flow-v2-screen-title-echo{display:none;position:absolute;inset:0;color:inherit;font:inherit;line-height:inherit;text-align:inherit;letter-spacing:inherit;pointer-events:none;will-change:transform,opacity,filter}
@media(max-width:760px){
  .ei-flow-v2-screen-title-text{max-width:92vw!important;font-size:clamp(34px,var(--ei-flow-title-size,9vw),104px)!important;-webkit-transform-origin:center center;transform-origin:center center;-webkit-backface-visibility:hidden;backface-visibility:hidden}
  .ei-flow-v2-screen-title.is-anim-mana .ei-flow-v2-screen-title-text:before,.ei-flow-v2-screen-title.is-anim-mana .ei-flow-v2-screen-title-text:after{display:none!important}
  .ei-flow-v2-screen-title.is-anim-mana .ei-flow-v2-screen-title-echo{display:block;opacity:.28;-webkit-filter:blur(3px);filter:blur(3px);transition:transform var(--ei-flow-title-enter,650ms) cubic-bezier(.12,.82,.18,1),opacity var(--ei-flow-title-enter,650ms) ease,filter var(--ei-flow-title-enter,650ms) ease}
  .ei-flow-v2-screen-title.is-anim-mana .ei-flow-v2-screen-title-echo.is-left{-webkit-transform:translate3d(-16%,0,0) scaleX(1.18);transform:translate3d(-16%,0,0) scaleX(1.18)}
  .ei-flow-v2-screen-title.is-anim-mana .ei-flow-v2-screen-title-echo.is-right{-webkit-transform:translate3d(18%,0,0) scaleX(1.22);transform:translate3d(18%,0,0) scaleX(1.22)}
  .ei-flow-v2-screen-title.is-anim-mana.is-settled .ei-flow-v2-screen-title-echo{-webkit-transform:translate3d(0,0,0) scaleX(1);transform:translate3d(0,0,0) scaleX(1);opacity:0;-webkit-filter:blur(.5px);filter:blur(.5px)}
  .ei-flow-v2-screen-title.is-anim-mana.is-leaving .ei-flow-v2-screen-title-echo{opacity:.30;-webkit-filter:blur(4px);filter:blur(4px);transition-duration:var(--ei-flow-title-exit,550ms)}
  .ei-flow-v2-screen-title.is-anim-mana.is-leaving .ei-flow-v2-screen-title-echo.is-left{-webkit-transform:translate3d(-20%,0,0) scaleX(1.26);transform:translate3d(-20%,0,0) scaleX(1.26)}
  .ei-flow-v2-screen-title.is-anim-mana.is-leaving .ei-flow-v2-screen-title-echo.is-right{-webkit-transform:translate3d(22%,0,0) scaleX(1.30);transform:translate3d(22%,0,0) scaleX(1.30)}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){
  .ei-flow-v2-screen-title.is-anim-mana .ei-flow-v2-screen-title-echo{display:block!important;-webkit-transform:none!important;transform:none!important;-webkit-filter:none!important;filter:none!important;opacity:.12!important;transition:opacity 140ms ease!important}
  .ei-flow-v2-screen-title.is-anim-mana.is-settled .ei-flow-v2-screen-title-echo,.ei-flow-v2-screen-title.is-anim-mana.is-leaving .ei-flow-v2-screen-title-echo{opacity:0!important}
}


/* v0.3.47 — independent YES/NO player-choice renderer.
   No EI Lobby DOM/CSS dependency: the Flow runtime owns its overlay, dialog, image frame,
   responsive behavior and continuation lifecycle. */
.ei-flow-v2-choice-layer{position:fixed;inset:0;z-index:999998;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(5,9,17,.46);opacity:0;transition:opacity .16s ease;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.ei-flow-v2-choice-layer.is-visible{opacity:1}
dialog.ei-flow-v2-choice-layer.is-dialog-top-layer{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:18px!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;overflow:auto!important;box-sizing:border-box!important}
dialog.ei-flow-v2-choice-layer:not([open]){display:none}
dialog.ei-flow-v2-choice-layer.is-dialog-top-layer::backdrop{background:rgba(5,9,17,.50)!important;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.ei-flow-v2-choice-layer.is-topmost:not(.is-dialog-top-layer){z-index:2147483646!important}
.ei-flow-v2-choice-modal{--ei-flow-bg:#101a2d;--ei-flow-bg-2:#081120;--ei-flow-text:#fff7d6;--ei-flow-border:#d7b65a;--ei-flow-button-bg:#263554;--ei-flow-button-text:#ffe9a8;--ei-flow-shadow:0 0 0 2px #3a2c10,0 16px 38px rgba(0,0,0,.4);--ei-flow-radius:5px;position:relative;isolation:isolate;box-sizing:border-box;width:min(720px,calc(100vw - 36px));max-height:calc(100dvh - 36px);overflow:auto;padding:24px;border:2px solid var(--ei-flow-border);border-radius:var(--ei-flow-radius);background:linear-gradient(145deg,var(--ei-flow-bg),var(--ei-flow-bg-2));color:var(--ei-flow-text);box-shadow:var(--ei-flow-shadow);pointer-events:auto;text-align:left}
.ei-flow-v2-choice-modal::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;opacity:.28}
.ei-flow-v2-choice-main{display:grid;grid-template-columns:minmax(86px,var(--ei-flow-choice-image-size,112px)) minmax(0,1fr);gap:18px;align-items:start;min-width:0}
.ei-flow-v2-choice-modal.is-image-right .ei-flow-v2-choice-main{grid-template-columns:minmax(0,1fr) minmax(86px,var(--ei-flow-choice-image-size,112px))}
.ei-flow-v2-choice-modal.is-image-right .ei-flow-v2-choice-image{order:2}.ei-flow-v2-choice-modal.is-image-right .ei-flow-v2-choice-copy{order:1}
.ei-flow-v2-choice-modal.is-image-top .ei-flow-v2-choice-main,.ei-flow-v2-choice-modal.is-image-center .ei-flow-v2-choice-main{display:block}
.ei-flow-v2-choice-modal.is-image-top .ei-flow-v2-choice-image{margin:0 auto 18px}.ei-flow-v2-choice-modal.is-image-center .ei-flow-v2-choice-image{margin:16px auto}
.ei-flow-v2-choice-copy{min-width:0;padding-top:4px}.ei-flow-v2-choice-title{margin:0 38px 10px 0;color:var(--ei-flow-text);font-size:clamp(18px,2.3vw,24px);line-height:1.3;font-weight:800;overflow-wrap:anywhere}.ei-flow-v2-choice-message{color:var(--ei-flow-text);font-size:15px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.ei-flow-v2-choice-image{box-sizing:border-box;width:var(--ei-flow-choice-image-size,112px);height:var(--ei-flow-choice-image-size,112px);max-width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto}
.ei-flow-v2-choice-image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;user-select:none;-webkit-user-drag:none}
.ei-flow-v2-choice-image.is-direct{background:transparent;border:0;border-radius:0;box-shadow:none}
.ei-flow-v2-choice-image.is-frame{padding:5px;background:var(--ei-choice-frame-bg,#081120);border:3px solid var(--ei-choice-frame-border,#d7b65a);border-radius:var(--ei-choice-frame-radius,8px);box-shadow:var(--ei-choice-frame-shadow,0 8px 20px rgba(0,0,0,.35))}
.ei-flow-v2-choice-image.is-frame img{border-radius:max(0px,calc(var(--ei-choice-frame-radius,8px) - 4px));background:rgba(255,255,255,.04)}
.ei-flow-v2-choice-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}
button.ei-flow-v2-choice-btn{appearance:none;-webkit-appearance:none;min-width:94px;min-height:40px;padding:9px 18px;border:1px solid var(--ei-flow-border);border-radius:max(7px,var(--ei-flow-radius));background:var(--ei-flow-button-bg);color:var(--ei-flow-button-text);font:700 14px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;box-shadow:none;transition:transform .12s ease,filter .12s ease,opacity .12s ease}
button.ei-flow-v2-choice-btn.is-yes{background:#19b963;color:#fff;border-color:#47dc8a}.ei-flow-v2-choice-modal.ei-theme-minimal button.ei-flow-v2-choice-btn.is-yes,.ei-flow-v2-choice-modal.ei-theme-parchment button.ei-flow-v2-choice-btn.is-yes,.ei-flow-v2-choice-modal.ei-theme-japanese button.ei-flow-v2-choice-btn.is-yes,.ei-flow-v2-choice-modal.ei-theme-wabisabi button.ei-flow-v2-choice-btn.is-yes{color:#fff}
button.ei-flow-v2-choice-btn:hover,button.ei-flow-v2-choice-btn:focus-visible{filter:brightness(1.10);outline:2px solid var(--ei-flow-border);outline-offset:2px}button.ei-flow-v2-choice-btn:active{transform:scale(.97)}button.ei-flow-v2-choice-btn:disabled{opacity:.55;cursor:wait}
button.ei-flow-v2-choice-close{all:initial;position:absolute;z-index:5;top:10px;right:10px;box-sizing:border-box;width:36px;height:36px;border:1px solid var(--ei-flow-border);border-radius:8px;background:var(--ei-flow-button-bg);color:var(--ei-flow-button-text);-webkit-text-fill-color:var(--ei-flow-button-text);display:flex;align-items:center;justify-content:center;font:700 25px/1 Arial,sans-serif;cursor:pointer;text-align:center}button.ei-flow-v2-choice-close:hover,button.ei-flow-v2-choice-close:focus-visible{filter:brightness(1.12);outline:2px solid var(--ei-flow-border);outline-offset:2px}
.ei-flow-v2-choice-error{margin-top:14px;padding:9px 11px;border:1px solid #ef5b67;border-radius:7px;background:rgba(239,91,103,.12);color:#ffb8bf;font-size:13px;line-height:1.5}
.ei-flow-v2-choice-modal.ei-theme-minimal .ei-flow-v2-choice-error,.ei-flow-v2-choice-modal.ei-theme-parchment .ei-flow-v2-choice-error,.ei-flow-v2-choice-modal.ei-theme-japanese .ei-flow-v2-choice-error,.ei-flow-v2-choice-modal.ei-theme-wabisabi .ei-flow-v2-choice-error{color:#9f1239}
@media(max-width:640px){.ei-flow-v2-choice-layer,dialog.ei-flow-v2-choice-layer.is-dialog-top-layer{padding:10px!important}.ei-flow-v2-choice-modal{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:18px}.ei-flow-v2-choice-main,.ei-flow-v2-choice-modal.is-image-right .ei-flow-v2-choice-main{grid-template-columns:minmax(72px,min(var(--ei-flow-choice-image-size,96px),30vw)) minmax(0,1fr);gap:14px}.ei-flow-v2-choice-modal.is-image-right .ei-flow-v2-choice-main{grid-template-columns:minmax(0,1fr) minmax(72px,min(var(--ei-flow-choice-image-size,96px),30vw))}.ei-flow-v2-choice-title{font-size:18px;margin-right:34px}.ei-flow-v2-choice-message{font-size:14px;line-height:1.65}.ei-flow-v2-choice-actions{margin-top:16px}.ei-flow-v2-choice-btn{flex:1 1 120px}.ei-flow-v2-choice-image{max-width:min(var(--ei-flow-choice-image-size,96px),34vw);max-height:min(var(--ei-flow-choice-image-size,96px),34vw)}}
@media(prefers-reduced-motion:reduce){.ei-flow-v2-choice-layer,.ei-flow-v2-choice-btn{transition:none!important}}

/* Portrait-frame presets are owned by Flow and intentionally do not reference Lobby selectors.
   The RPG preset mirrors the canonical EI Lobby portrait-frame geometry while remaining standalone. */
.ei-flow-v2-choice-image.is-frame.ei-frame-theme-rpg{--ei-choice-frame-bg:linear-gradient(145deg,#30220f,#151006)!important;--ei-choice-frame-border:#d6ad55!important;--ei-choice-frame-radius:12px!important;--ei-choice-frame-shadow:inset 0 0 0 2px rgba(255,238,178,.16),0 12px 26px rgba(0,0,0,.34)!important;padding:5px;border-width:3px}
.ei-flow-v2-choice-image.is-frame.ei-frame-theme-pixel{border-radius:0!important;box-shadow:5px 5px 0 rgba(0,0,0,.62)!important}
.ei-flow-v2-choice-image.is-frame.ei-frame-theme-dq{--ei-choice-frame-bg:linear-gradient(180deg,#234da6,#102965)!important;--ei-choice-frame-border:#f5d54e!important;--ei-choice-frame-radius:9px!important;--ei-choice-frame-shadow:0 6px 0 #0b1b49,0 13px 26px rgba(12,34,87,.32)!important;border-width:3px}
.ei-flow-v2-choice-image.is-frame.ei-frame-theme-windows95{--ei-choice-frame-bg:#c0c0c0!important;--ei-choice-frame-border:#000080!important;--ei-choice-frame-radius:0!important;--ei-choice-frame-shadow:inset 2px 2px 0 #fff,inset -2px -2px 0 #404040!important}
.ei-flow-v2-choice-image.is-frame.ei-frame-theme-cyberpunk{--ei-choice-frame-bg:#120022!important;--ei-choice-frame-border:#00e5ff!important;--ei-choice-frame-radius:5px!important;--ei-choice-frame-shadow:0 0 0 1px #ff00c8,0 0 22px rgba(0,229,255,.38)!important}
.ei-flow-v2-choice-image.is-frame.ei-frame-theme-arcane{--ei-choice-frame-bg:radial-gradient(circle at 50% 20%,#38256d,#120d2b 72%)!important;--ei-choice-frame-border:#9f7aea!important;--ei-choice-frame-radius:18px!important;--ei-choice-frame-shadow:0 0 28px rgba(159,122,234,.40),inset 0 0 18px rgba(216,180,254,.10)!important}
