html,body.amb-frame-shell{height:100%;height:100dvh;margin:0;overflow:hidden}
body.amb-frame-shell{display:flex;flex-direction:column;background:#171629}
body.amb-frame-shell>.amb-shell-head{flex:none}

#amb-court-frame{display:block;flex:1;min-width:0;min-height:0;width:100%;border:0;background:#171629}
#amb-court-frame{opacity:1;filter:blur(0);transition:opacity .28s ease,filter .36s cubic-bezier(.22,1,.36,1)}
body.amb-frame-shell.amb-page-leaving #amb-court-frame{opacity:1;filter:none}
body.amb-frame-shell.amb-page-arriving #amb-court-frame{transition:none;opacity:1;filter:none}
@media(prefers-reduced-motion:reduce){#amb-court-frame{transition:none!important;filter:none!important}body.amb-frame-shell.amb-page-leaving #amb-court-frame,body.amb-frame-shell.amb-page-arriving #amb-court-frame{opacity:1}}
.amb-pull-cue{position:fixed;z-index:60;top:var(--amb-pull-top,140px);left:50%;display:flex;align-items:center;gap:.4rem;padding:.42rem .8rem;border:1px solid #a9ddd7;border-radius:999px;background:#203a49f2;box-shadow:0 5px 18px #120f25a8;color:#fff2df;font:700 .76rem Arial,sans-serif;letter-spacing:.04em;opacity:0;transform:translate(-50%,-125%);pointer-events:none;transition:opacity .15s ease,transform .15s ease}
.amb-pull-cue.is-visible{opacity:1;transform:translate(-50%,var(--amb-pull-y,0px))}
.amb-pull-cue.is-ready{background:#235d65;border-color:#d4e9ca}
.amb-pull-cue.is-reloading .amb-pull-cue-icon{animation:amb-pull-spin .7s linear infinite}
@keyframes amb-pull-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.amb-pull-cue{transition:none}.amb-pull-cue.is-reloading .amb-pull-cue-icon{animation:none}}

html[data-nysa-project-site="fairies"] body.amb-frame-shell.amb-has-bottom-drawer{height:100dvh}
.amb-bottom-drawer{flex:none;min-width:0;position:fixed;bottom:0;left:0;right:0;z-index:40;background:#251529;color:#fff0d9;border-top:1px solid #c8a978;padding-bottom:env(safe-area-inset-bottom,0px)}
.amb-bottom-drawer__toggle{display:flex;position:relative;align-items:center;justify-content:center;gap:.65rem;width:100%;min-height:38px;padding:12px 16px 7px;border:0;background:linear-gradient(105deg,#251529,#4a2441 55%,#173540);color:inherit;font:700 11px/1.4 Arial,sans-serif;letter-spacing:.1em;cursor:pointer}
.amb-bottom-drawer__grip{position:absolute;top:4px;left:calc(50% - 16px);width:32px;height:2px;border-radius:2px;background:#c8a978}
.amb-bottom-drawer__toggle:focus-visible{outline:2px solid #b8e8e5;outline-offset:-3px}
.amb-bottom-drawer__arrow{font-size:17px;line-height:1}
.amb-bottom-drawer__toggle[aria-expanded="false"] .amb-bottom-drawer__arrow{transform:rotate(180deg)}
.amb-bottom-drawer__content{max-height:65dvh;overflow:auto;overscroll-behavior:contain}
.amb-bottom-drawer__content[hidden]{display:none}
.amb-bottom-drawer nysa-project-strip{display:block;min-width:0}
.amb-bottom-drawer tpr-music-player{display:block;position:relative;height:58px;min-width:0;background:#241e38;flex:none}

body.amb-has-bottom-drawer #amb-court-frame{margin-bottom:calc(39px + env(safe-area-inset-bottom,0px))}


.amb-shell-loading{position:fixed;z-index:35;inset:var(--amb-loading-top,75px) 0 calc(39px + env(safe-area-inset-bottom,0px));display:grid;place-items:center;background:rgba(17,12,28,.48);backdrop-filter:blur(10px) brightness(.72);-webkit-backdrop-filter:blur(10px) brightness(.72);padding:1rem;overflow-y:auto}
.amb-shell-loading[hidden]{display:none}
.amb-shell-loading-card{width:min(420px,100%);text-align:center;padding:1rem 1rem 1.5rem;color:#fff0db;background:transparent}
.amb-fae-vortex{position:relative;isolation:isolate;width:min(280px,53dvh,72vw);aspect-ratio:1;margin:0 auto 1rem;border-radius:50%;background:transparent}
.amb-fae-vortex::before,.amb-fae-vortex-echo{content:'';position:absolute;inset:0;border-radius:50%;background:url('./assets/faewild-spiral.svg') center/contain no-repeat;animation:amb-fae-unfurl 22s linear infinite;opacity:.65;filter:drop-shadow(0 0 3px #9adfd76b)}
.amb-fae-vortex-echo{inset:9%;opacity:.42;animation:amb-fae-unfurl 31s linear infinite reverse;mix-blend-mode:screen}
.amb-fae-vortex-stars{position:absolute;inset:0;display:grid;place-items:start center;color:#ffe8b9;font-size:1.8rem;text-shadow:0 0 9px #e8c892;pointer-events:none}
.amb-loading-kicker{font-size:.68rem;letter-spacing:.24em;color:#a9dcd7}
.amb-shell-loading-card p{margin:.6rem 0 0;font-family:FairyFolio,Thornwake,Georgia,serif;font-size:clamp(1.3rem,4.6vw,1.8rem);line-height:1.35;text-shadow:0 0 12px #a2dfd733}
.amb-shell-loading-card button{margin-top:1rem;padding:.6rem 1rem;border:1px solid #a9cec0;background:#27434c99;color:inherit;font:inherit;cursor:pointer}
.amb-shell-loading-card button[hidden]{display:none}
.amb-shell-loading-card button:focus-visible{outline:2px solid #f1d39d;outline-offset:4px}
.amb-pull-cue-icon{display:block;width:32px;height:32px;background:url('./assets/faewild-spiral.svg') center/contain no-repeat}
.amb-pull-cue.is-reloading .amb-pull-cue-icon{animation:amb-fae-unfurl 9s linear infinite}
@keyframes amb-fae-unfurl{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.amb-fae-vortex::before,.amb-fae-vortex-echo,.amb-pull-cue.is-reloading .amb-pull-cue-icon{animation:none}}


.amb-loading-quote{max-width:34ch;margin:1.1rem auto 0;padding:0;color:#ebdfd0;font-family:FairyFolio,Thornwake,Georgia,serif;font-size:clamp(1.35rem,4.8vw,1.75rem);font-style:italic;line-height:1.5;overflow-wrap:anywhere;text-wrap:pretty;text-shadow:0 2px 8px #100b20}
.amb-loading-quote[hidden]{display:none}

/* Solid graphical loading surface: no live page blur/compositing. */
.amb-shell-loading{background:#190f25;background-image:linear-gradient(#190f258f,#11242dd9),url('./assets/painted-galaxy.jpg');background-position:center;background-size:cover;background-repeat:no-repeat;backdrop-filter:none;-webkit-backdrop-filter:none}
.amb-shell-loading-card{position:relative;z-index:1}
