:root{--dur-press:.14s;--dur-quick:.28s;--dur-enter:.62s;--dur-sign:1.2s;--ease-out:cubic-bezier(.16, .84, .3, 1);--ease-soft:cubic-bezier(.45, 0, .2, 1);--stagger:55ms}@keyframes m-rise{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}@keyframes m-fade{0%{opacity:0}to{opacity:1}}.m-enter,.m-settle>*{animation:m-rise var(--dur-enter) var(--ease-out) both}.m-settle>:nth-child(2){animation-delay:calc(var(--stagger) * 1)}.m-settle>:nth-child(3){animation-delay:calc(var(--stagger) * 2)}.m-settle>:nth-child(4){animation-delay:calc(var(--stagger) * 3)}.m-settle>:nth-child(5){animation-delay:calc(var(--stagger) * 4)}.m-settle>:nth-child(6){animation-delay:calc(var(--stagger) * 5)}.m-settle>:nth-child(7){animation-delay:calc(var(--stagger) * 6)}.m-settle>:nth-child(n+8){animation-delay:calc(var(--stagger) * 7)}.write-on{display:inline}.write-on .word{white-space:nowrap;display:inline-block}.write-on .w{white-space:pre;opacity:0;transform-origin:50% 80%;animation:m-ink var(--dur-sign) var(--ease-out) both;animation-delay:calc(var(--i) * var(--step,48ms) + var(--delay,0s));display:inline-block;transform:translateY(.16em)scale(.985)}@keyframes m-ink{0%{opacity:0;transform:translateY(.16em)scale(.985)}55%{opacity:1}to{opacity:1;transform:none}}.write-on .flourish{background:linear-gradient(90deg, var(--gold,#d2ae6a), transparent);transform-origin:0;height:1px;animation:m-stroke 1.4s var(--ease-out) both;animation-delay:var(--flourish-delay,.9s);opacity:.8;margin-top:.22em;display:block;transform:scaleX(0)}[dir=rtl] .write-on .flourish{transform-origin:100%;background:linear-gradient(270deg, var(--gold,#d2ae6a), transparent)}@keyframes m-stroke{to{transform:scaleX(1)}}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.m-num{font-variant-numeric:tabular-nums}.stage-panel{z-index:60;inset-inline-end:20px;width:min(380px,100vw - 32px);animation:m-rise var(--dur-enter) var(--ease-out) both;background:#14283b;border:1px solid #23405a;border-radius:20px;padding:18px 18px 16px;position:fixed;bottom:20px;box-shadow:0 30px 70px #00000073}@media (max-width:960px){.stage-panel{bottom:calc(80px + env(safe-area-inset-bottom));width:auto;inset-inline:16px}}.stage-panel h3{margin:0 0 12px;font-size:19px}.stage-panel ol{gap:10px;margin:0;padding:0;list-style:none;display:grid}.stage-panel li{color:#9cb0c1;transition:color var(--dur-quick) var(--ease-soft);align-items:center;gap:12px;font-size:14px;display:flex}.stage-panel li.now,.stage-panel li.done{color:#eee9e0}.stage-panel .tick{border:1px solid #23405a;border-radius:50%;flex:none;width:22px;height:22px;position:relative}.stage-panel .tick:after{content:"";opacity:0;transition:transform var(--dur-quick) var(--ease-out), opacity var(--dur-quick) var(--ease-out);background:#7fb5b0;border-radius:50%;position:absolute;inset:4px;transform:scale(0)}.stage-panel li.done .tick:after{opacity:1;transform:scale(1)}.stage-panel li.now .tick{border-color:#d2ae6a}.stage-panel .result{animation:m-rise var(--dur-enter) var(--ease-out) both;border-top:1px solid #23405a;margin-top:14px;padding-top:12px;font-size:14px}.stage-panel .close{top:10px;color:#9cb0c1;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:6px;position:absolute;inset-inline-end:10px}.thinking{gap:5px;padding:10px 2px;display:inline-flex}.thinking i{opacity:.25;width:6px;height:6px;animation:m-breathe 1.4s var(--ease-soft) infinite;background:#7fb5b0;border-radius:50%}.thinking i:nth-child(2){animation-delay:.18s}.thinking i:nth-child(3){animation-delay:.36s}@keyframes m-breathe{50%{opacity:.9;transform:translateY(-2px)}}.welcome-moment{z-index:80;text-align:center;animation:m-fade var(--dur-quick) var(--ease-soft) both;cursor:pointer;background:radial-gradient(60% 60% at 50% 45%,#2e56748c,#0000 70%),#07131f;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.welcome-moment.leaving{animation:m-out .52s var(--ease-soft) both;pointer-events:none}@keyframes m-out{to{opacity:0}}.welcome-moment .pearl-scene{width:min(260px,50vw);margin:0 auto -16px}.welcome-moment .name{font-family:var(--serif);letter-spacing:-.02em;color:#eee9e0;font-size:clamp(40px,6.4vw,84px);font-weight:300;line-height:1.1}:lang(ar) .welcome-moment .name{letter-spacing:0;font-weight:500;line-height:1.35}.welcome-moment .hint{color:#9cb0c1;margin-top:26px;font-size:13px;animation:.6s 1.6s both m-fade}@media (prefers-reduced-motion:reduce){.m-enter,.m-settle>*,.stage-panel,.stage-panel .result{animation:.2s linear both m-fade!important}.write-on .w{transform:none;animation:.4s linear both m-fade!important}.write-on .flourish{animation:none;transform:none}.thinking i{opacity:.6;animation:none}.stage-panel .tick:after{transition:opacity .2s linear;transform:scale(1)}}
