body[data-mode][data-appearance] .window.flyin-angel-window[data-angel-screen=lobby]:not(.expanded){width:min(900px,calc(100% - 24px));min-width:0;height:calc(100% - 24px);max-height:calc(100% - 24px)}
body[data-mode][data-appearance] .window.flyin-angel-window .content{display:flex;flex:1;min-height:0;max-height:none;padding:0;overflow:hidden}
body[data-mode][data-appearance] .flyin-angel-window .angel-game{display:flex;flex:1;flex-direction:column;min-height:0;color:#f8f4e8;background:#080b11}
.angel-game [hidden]{display:none!important}
.angel-game .envol-hud{flex:none;min-height:44px;align-items:center;background:#0e121b;border-bottom:1px solid #ffffff17}
.angel-game .envol-hud>span:nth-child(2){margin-left:auto;font-variant-numeric:tabular-nums}
.angel-game .envol-hud small{color:#c2c8d2}
body[data-mode][data-appearance] .flyin-angel-window .angel-lobby{position:static;inset:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.65fr);flex:1;min-height:0;align-items:start;align-content:start;justify-content:normal;gap:12px;max-width:none;width:100%;margin:0;padding:12px;background:radial-gradient(ellipse at 24% 18%,#45352c60,transparent 52%),#080b11;backdrop-filter:none;overflow:auto;text-align:left}
.angel-lobby-main{min-width:0;display:grid;gap:10px}
.angel-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:8px;align-items:center;min-height:165px;overflow:hidden}
.angel-hero-copy{position:relative;z-index:1;min-width:0}
.angel-kicker{font-size:9px;letter-spacing:.13em;color:#d8bb73}
body[data-mode][data-appearance] .flyin-angel-window .angel-hero h2{font-size:clamp(26px,4.2vw,43px)!important;line-height:1.03!important;letter-spacing:-.05em;margin:7px 0!important;color:#fff7de!important;max-width:330px}
body[data-mode][data-appearance] .flyin-angel-window .angel-hero p{font-size:12px!important;line-height:1.45!important;margin:0 0 11px!important;max-width:280px;color:#d4d8df!important}
.angel-hero small{display:block;margin-top:8px!important;font-size:10px!important;line-height:1.4!important;color:#bfc7d4!important}
.angel-hero-art{position:relative;display:grid;place-items:center;align-self:stretch;min-width:0;isolation:isolate}
.angel-hero-art::before{content:"";position:absolute;inset:4% -12%;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#f5d07a26,transparent 70%)}
.angel-hero-art img{display:block;max-width:100%;width:108px;height:174px;object-fit:contain;filter:drop-shadow(0 7px 17px #000a);animation:angel-float 4s ease-in-out infinite}
.angel-hero-halo{position:absolute;top:3%;width:72px;height:24px;border:2px solid #f5cd6799;border-radius:50%;transform:rotate(-15deg);box-shadow:0 0 25px #ffca3655}
body[data-mode][data-appearance] .flyin-angel-window .angel-game .envol-play{display:inline-flex;align-items:center;justify-content:center;width:max-content;min-height:36px;margin:0;padding:8px 20px;border:1px solid #f8df9d;border-radius:9px;background:#f3cf75;color:#1c190f;font-size:13px;font-weight:750;box-shadow:0 3px 0 #8c6c2a}
.angel-game .envol-play:disabled{opacity:.65;cursor:progress}
.angel-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.angel-items article{display:flex;align-items:flex-start;gap:6px;padding:8px 7px;border:1px solid #ffffff1c;border-radius:9px;background:#ffffff05;min-width:0}
.angel-items article>img,.angel-item-art{flex:0 0 30px;width:30px;height:32px;object-fit:contain;display:grid;place-items:center}
.angel-item-art svg{width:30px;height:30px;fill:none;stroke:#f8d064;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.angel-item-bolt svg{width:23px;fill:#f8d064;stroke:#f8d064;stroke-width:1.2}
body[data-mode][data-appearance] .flyin-angel-window .angel-items h3{font-size:11px!important;line-height:1.3!important;margin:0 0 3px!important;color:#fff6da!important}
body[data-mode][data-appearance] .flyin-angel-window .angel-items p{font-size:10px!important;line-height:1.4!important;margin:0!important;color:#c5cad4!important}
.angel-identity{padding-top:9px;border-top:1px solid #ffffff1c}
.angel-identity form{display:block;padding:0;border:0;margin:0}
.angel-identity label{display:block;font-size:11px;font-weight:650;margin-bottom:5px}
.angel-identity form>div{display:flex;gap:6px;align-items:center}
body[data-mode][data-appearance] .flyin-angel-window .angel-identity input{flex:1;min-width:0;width:0;height:33px;padding:6px 9px;border:1px solid #ffffff38;border-radius:7px;background:#151c27;color:#fff;font-size:13px;box-sizing:border-box}
.angel-identity :is(button,.angel-score-retry),.angel-score-retry{padding:7px 10px;border:1px solid #b69c60;border-radius:7px;background:#26281f;color:#fff0c6;font-size:11px}
.angel-identity small{display:block;font-size:10px!important;line-height:1.5!important;margin-top:4px!important;color:#b4bdca!important}
.angel-guest{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center}
.angel-guest>strong{font-size:12px}
.angel-guest>button{grid-column:2;grid-row:1/3}
body[data-mode][data-appearance] .flyin-angel-window .angel-guest p{font-size:10px!important;line-height:1.4!important;margin:0!important;color:#c3cbd7!important}
body[data-mode][data-appearance] .flyin-angel-window :is(.angel-inline-status,.angel-score-note){font-size:11px!important;line-height:1.45!important;color:#f3d99f!important;margin:5px 0 0!important;max-width:none}
.angel-inline-status:empty{display:none}
.angel-board{min-width:0;border:1px solid #d9c18b3b;border-radius:12px;padding:11px;background:#101720d9}
.angel-board-heading{display:flex;align-items:center;gap:9px;margin-bottom:8px}
.angel-board-heading>svg{width:26px;height:26px;flex:none;stroke:#f3cf75;fill:none;stroke-width:1.5}
.angel-board-heading span{font-size:9px;letter-spacing:.09em;color:#d9c18b}
body[data-mode][data-appearance] .flyin-angel-window .angel-board-heading h3{font-size:17px!important;line-height:1.25!important;margin:3px 0 0!important;color:#fff4d6!important}
.angel-board-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#abb8c9;font-size:10px;padding-bottom:5px}
.angel-board-summary button,.angel-board-pages button{padding:3px 0;background:none;color:#e4ce9a;font-size:10px;text-decoration:underline;text-underline-offset:2px}
.angel-board-list{padding:0;margin:0;list-style:none;max-height:239px;overflow:auto;scrollbar-width:thin}
.angel-board-list li{display:grid;grid-template-columns:23px minmax(0,1fr) auto;gap:6px;align-items:center;padding:8px 0;border-top:1px solid #ffffff15;font-size:11px}
.angel-place{color:#b0bdce;font-variant-numeric:tabular-nums}
.angel-board-list li:nth-child(-n+3) .angel-place{color:#f3cf75}
.angel-board-list li.is-me{color:#f3cf75}
.angel-player{overflow-wrap:anywhere}
.angel-player small{display:inline;margin-left:4px;color:#f3cf75;font-size:9px}
.angel-board-list strong{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.angel-my-rank{display:grid;gap:4px;margin-top:9px;padding:9px;border:1px solid #e8c7753b;border-radius:8px;background:#e8c77508}
.angel-my-rank span{font-size:10px;color:#c0c9d6}
.angel-my-rank strong{font-size:12px;color:#fff0c6}
.angel-board-empty{display:grid;justify-items:center;gap:8px;padding:20px 8px;text-align:center;color:#b8c5d7;font-size:11px}
.angel-board-empty svg{width:36px;height:36px;fill:none;stroke:#e3c98266;stroke-width:1.1}
.angel-board-empty strong{color:#e8deca;font-size:12px}
body[data-mode][data-appearance] .flyin-angel-window .angel-board-empty p{font-size:11px!important;line-height:1.4!important;color:#aebdd0!important;margin:0!important}
body[data-mode][data-appearance] .flyin-angel-window .angel-lobby>.envol-reward-feedback{grid-column:1/-1;max-width:none;width:100%;padding:6px 9px;margin:0;background:#17191fcc;border-color:#ffcc5338}
.angel-game .envol-status{flex:none;margin:0;padding:0 12px;font-size:10px;line-height:1.4;color:#d3c29e}
.angel-game .envol-status:empty{display:none}
body[data-mode][data-appearance] .flyin-angel-window .envol-playfield{flex:1;width:100%;min-height:0;display:grid;place-items:center;container-type:size;padding-right:55px;background:#030407}
body[data-mode][data-appearance] .flyin-angel-window .envol-stage{width:min(calc(100cqw - 55px),calc(100cqh * 420 / 520));height:100%;max-width:none;margin:0}
body[data-mode][data-appearance] .flyin-angel-window canvas{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:420/520;object-fit:fill;touch-action:none}
.angel-game .envol-altitude{top:10px;right:5px;bottom:10px;width:44px;border-left:1px solid #f4ddb85c;background:#070c14}
.angel-game .envol-altitude span{font-size:8px;color:#eddfbf;white-space:nowrap}
.angel-game .envol-controls{flex:none}
@media(max-width:720px){body[data-mode][data-appearance] .flyin-angel-window .angel-lobby{grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}.angel-items article{flex-direction:column;gap:4px}.angel-hero{grid-template-columns:minmax(0,1fr) 105px}.angel-hero-art img{width:102px;height:165px}.angel-board-empty{padding:12px 8px}}
body[data-mode=phone][data-appearance] .window.flyin-angel-window[data-angel-screen=lobby]:not(.expanded){width:100%;height:calc(100% - 64px);max-height:calc(100% - 64px)}
body[data-mode=phone][data-appearance] .flyin-angel-window .angel-identity input{font-size:16px}
@keyframes angel-float{0%,100%{transform:translateY(2px) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}
@media(prefers-reduced-motion:reduce){.angel-hero-art img{animation:none}}


/* Keep the welcome screen fixed; the leaderboard is its only scroll region. */
body[data-mode][data-appearance] .flyin-angel-window .angel-lobby{grid-template-rows:minmax(0,1fr);overflow:hidden;align-items:stretch}
.angel-lobby-main{align-self:start;gap:9px}
.angel-items article{border:0;border-radius:0;background:none;padding:0 3px}
.angel-board{display:flex;flex-direction:column;min-height:0;max-height:100%;overflow:hidden}
.angel-board-heading{flex:none}
.angel-leaderboard{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.angel-board-list{max-height:none;overflow:visible}
body[data-mode][data-appearance] .flyin-angel-window .angel-game .envol-reward-feedback{display:none!important}
body[data-mode][data-appearance] .flyin-angel-window[data-angel-screen=lobby] .envol-hud,body[data-mode][data-appearance] .flyin-angel-window[data-angel-screen=lobby] .envol-status{display:none}
body[data-mode=phone][data-appearance] .window.flyin-angel-window,body[data-mode=phone][data-appearance] .window.flyin-angel-window[data-angel-screen=lobby]:not(.expanded){position:fixed!important;inset:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;min-width:0!important;border-radius:0;margin:0!important}
body[data-mode=phone][data-appearance] .flyin-angel-window .angel-lobby{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:10px;padding:10px 12px}
body[data-mode=phone] .angel-hero{min-height:150px}
body[data-mode=phone] .angel-hero-art img{height:150px}
body[data-mode=phone] .angel-board{padding:10px}
@media(max-height:700px){body[data-mode=phone] .angel-hero{min-height:125px;grid-template-columns:minmax(0,1fr) 88px}body[data-mode=phone] .angel-hero-art img{height:125px;width:82px}body[data-mode=phone][data-appearance] .flyin-angel-window .angel-hero h2{font-size:29px!important;margin:4px 0!important}body[data-mode=phone][data-appearance] .flyin-angel-window .angel-hero p{font-size:11px!important;margin:0 0 6px!important}body[data-mode=phone] .angel-kicker{display:none}body[data-mode=phone] .angel-hero small{margin-top:6px!important;font-size:9px!important}body[data-mode=phone] .angel-lobby-main{gap:7px}body[data-mode=phone] .angel-items article{gap:2px}body[data-mode=phone][data-appearance] .flyin-angel-window .angel-items p{font-size:9px!important}body[data-mode=phone] .angel-identity{padding-top:6px}}
/* The lower half of the same ellipse passes in front of the head. */
.angel-hero-art{animation:angel-float 4s ease-in-out infinite}
.angel-hero-art img{position:relative;z-index:1;animation:none}
.angel-hero-halo{left:58%;top:7%;width:68px;height:22px;transform:translateX(-50%) rotate(-15deg);pointer-events:none;border-color:#f5cd67cc}
.angel-hero-halo-back{z-index:0;clip-path:inset(0 0 45% 0)}
.angel-hero-halo-front{z-index:2;clip-path:inset(45% 0 0 0)}
@media(prefers-reduced-motion:reduce){.angel-hero-art{animation:none}}
/* A dedicated result screen replaces the welcome content after a flight. */
body[data-mode][data-appearance] .flyin-angel-window[data-angel-state=over] .angel-lobby{display:flex;flex-direction:column;padding:14px;background:radial-gradient(ellipse at 50% 35%,#58401a42,transparent 65%),#080b11}
.angel-result{display:grid;place-items:center;flex:1;min-height:0;width:100%;position:relative;isolation:isolate}
.angel-result-main{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:0;text-align:center;gap:8px;padding:6px}
.angel-result-emblem{display:grid;place-items:center;width:45px;height:45px;border:1px solid #f1ce7633;border-radius:50%;background:#f1ce7608;color:#edce84}
.angel-result-emblem svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.2}
body[data-mode][data-appearance] .flyin-angel-window .angel-result h2{margin:0!important;color:#fff1ce!important;font-size:24px!important;line-height:1.15!important;letter-spacing:-.02em}
.angel-result-score{display:flex;align-items:baseline;justify-content:center;gap:9px;color:#f4d583;text-shadow:0 0 45px #e9bc4b30;font-variant-numeric:tabular-nums}
.angel-result-score strong{font-size:clamp(62px,12vw,106px);font-weight:800;line-height:1.03;letter-spacing:-.065em}
.angel-result-score>span{font-size:23px;color:#b8a67c}
body[data-mode][data-appearance] .flyin-angel-window :is(.angel-result-best,.angel-result-rank){margin:0!important;font-size:12px!important;line-height:1.5!important;color:#b8c3d2!important;max-width:none}
.angel-result-best strong,.angel-result-rank strong{color:#fff1ce;margin-left:5px}
.angel-result-actions{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.angel-result-actions>button:not(.envol-play){min-height:36px;padding:7px 11px;border:1px solid #ffffff2c;border-radius:8px;background:#ffffff05;color:#e2dccd;font-size:11px}
body[data-mode][data-appearance] .flyin-angel-window .angel-result .envol-play{min-height:40px;min-width:136px;padding:9px 24px;font-size:14px}
body[data-mode][data-appearance] .flyin-angel-window .angel-result-save{max-width:390px!important;font-size:10px!important;line-height:1.5!important;color:#aeafaa!important;margin:0!important}
.angel-result-save:empty{display:none}
.angel-result[data-board=open]{grid-template-columns:minmax(0,1fr) minmax(230px,.8fr);gap:14px;align-items:stretch}
.angel-result-board{width:100%;height:100%}
@media(max-width:720px){.angel-result[data-board=open]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:14px}.angel-result[data-board=open] .angel-result-score strong{font-size:62px}.angel-result[data-board=open] .angel-result-emblem{display:none}}
@media(max-height:650px){.angel-result-main{gap:6px}.angel-result-emblem{width:32px;height:32px}.angel-result-emblem svg{width:21px;height:21px}.angel-result-score strong{font-size:68px}.angel-result-actions{margin-top:5px}}

/* Fullscreen phones use the viewport edge instead of stretching the window frame. */
body[data-mode=phone][data-appearance] .window.flyin-angel-window{border:0!important;border-image:none!important;border-radius:0!important;background:#080b11!important;box-shadow:none!important;resize:none}
body[data-mode=phone][data-appearance] .window.flyin-angel-window>.titlebar{background:var(--artist-header,#111)!important;box-shadow:inset 0 -3px #ffffffc9}

/* Night sky and illustrated storm clouds, continuous to every viewport edge. */
body[data-mode][data-appearance] .flyin-angel-window[data-angel-state=over] .angel-lobby{padding:0;background:#030407;color:#eef2fa;position:relative;isolation:isolate}
.angel-result{overflow:hidden;padding:22px 18px;background:radial-gradient(ellipse at 50% 38%,#253d704d,transparent 58%),radial-gradient(ellipse at 15% 60%,#6c466933,transparent 60%),#030407;isolation:isolate}
.angel-result::before{content:"";position:absolute;inset:-8%;z-index:-1;background:url('fumee-illustration.png') left center/70% auto no-repeat,url('fumee-illustration.png') right bottom/80% auto no-repeat;opacity:.38;pointer-events:none}
.angel-result::after{content:"";position:absolute;inset:0;z-index:-1;background:url('nuage-orage.png') -12% 8%/48% auto no-repeat,url('nuage-orage.png') 118% 90%/50% auto no-repeat;opacity:.65;pointer-events:none}
.angel-result-main{position:relative;z-index:1;align-self:center;gap:10px;padding:10px 4px}
.angel-result-art{position:absolute;inset:0;pointer-events:none;z-index:-1;overflow:hidden;background:radial-gradient(circle at 12% 25%,#ffffff99 0 1px,transparent 2px),radial-gradient(circle at 85% 34%,#ffffff99 0 1px,transparent 2px),radial-gradient(circle at 75% 66%,#ffffff99 0 1px,transparent 2px)}
.angel-result-art img{position:absolute;left:5%;top:7%;width:210px;height:85%;object-fit:contain;transform:rotate(-5deg);filter:drop-shadow(0 0 24px #9bacc544);opacity:.42}
.angel-result-brand{display:block;color:#a5b4cb;font-size:11px;font-weight:750;letter-spacing:.3em;margin-bottom:4px}
.angel-result .angel-kicker{color:#aabbd7;font-size:9px;font-weight:650;letter-spacing:.18em}
body[data-mode][data-appearance] .flyin-angel-window .angel-result h2{font-family:inherit;font-size:clamp(26px,4.5vw,37px)!important;font-weight:800;font-style:normal;line-height:1.1!important;letter-spacing:-.035em;color:#f4f6fc!important;text-shadow:0 0 25px #9cb6e55c;margin:0 0 6px!important}
.angel-result-score{position:relative;isolation:isolate;display:flex;align-items:baseline;gap:10px;min-width:min(290px,82vw);min-height:145px;padding:25px 14px 8px;margin:2px 0 8px;text-shadow:none}
.angel-score-burst{display:none}
.angel-result-score::before{content:"";position:absolute;inset:8% -15%;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#a7c2ed2b,transparent 65%);pointer-events:none}
.angel-result-score::after{content:"";position:absolute;bottom:0;left:10%;right:10%;height:1px;background:linear-gradient(90deg,transparent,#9db9df99,transparent);box-shadow:0 0 16px #aac8ff55}
.angel-result-score strong{font-family:inherit;font-weight:850;font-size:var(--score-size,128px);line-height:1;letter-spacing:-.075em;color:#f4f8ff;text-shadow:0 0 36px #87a9df66,0 3px 2px #030407;font-variant-numeric:tabular-nums}
.angel-result-score>.angel-result-unit{font-size:25px;font-weight:600;color:#b9c8df;letter-spacing:0}
.angel-result-score>.angel-score-caption{position:absolute;left:0;right:0;top:0;color:#a6b8d0;font-size:10px;font-weight:650;letter-spacing:.2em}
body[data-mode][data-appearance] .flyin-angel-window :is(.angel-result-best,.angel-result-rank){position:relative;z-index:2;max-width:330px!important;color:#bac6d7!important;padding:0;font-size:12px!important;line-height:1.5!important;text-shadow:0 2px 8px #030407}
.angel-result-best strong,.angel-result-rank strong{color:#f4f7ff;margin-left:5px}
.angel-result-actions{position:relative;z-index:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(320px,100%);margin-top:15px}
body[data-mode][data-appearance] .flyin-angel-window .angel-result .envol-play{grid-column:1/-1;justify-self:center;min-width:210px;min-height:46px;padding:10px 28px;border:1px solid #dce7fb;border-radius:8px;background:linear-gradient(140deg,#f4f7ff,#c5d6ec);color:#101722;box-shadow:0 0 25px #a6c6ff2b;font-family:inherit;font-size:17px;font-weight:800;letter-spacing:.02em}
.angel-result .envol-play::after{content:"↻";font-size:23px;margin-left:12px}
.angel-result-actions>button:not(.envol-play){border:1px solid #b9cbe438;border-radius:7px;background:#101722db;color:#d7e1f0;padding:8px 9px;font-size:11px;font-weight:600;box-shadow:none;clip-path:none}
.angel-result-actions>button:focus-visible{outline:2px solid #b7d1f7;outline-offset:3px}
body[data-mode][data-appearance] .flyin-angel-window .angel-result-save{position:relative;z-index:3;color:#b9c6db!important;font-size:10px!important;line-height:1.4!important;margin-top:3px!important;max-width:310px!important;text-shadow:0 2px 6px #030407}
.angel-result-save:empty{display:none}
.angel-result .angel-score-retry{border:1px solid #a7bad855;border-radius:7px;background:#101722;color:#f4f7ff}
.angel-result[data-board=open]{grid-template-columns:minmax(0,1fr) minmax(240px,.8fr);gap:16px;padding:14px}
.angel-result-board{position:relative;z-index:3;background:#0c1019ed;border:1px solid #a7bad838;border-radius:12px;color:#fff}
.angel-result-board .angel-board-heading span,.angel-result-board .angel-board-summary button{color:#b3c9e9}
.angel-result-board .angel-board-heading svg{stroke:#b3c9e9}
.angel-result-board .angel-my-rank{border-color:#a7bad838;background:#a7bad808}
body[data-mode][data-appearance] .flyin-angel-window .angel-identity input:disabled{opacity:1;color:#bfcbdc;-webkit-text-fill-color:#bfcbdc;background:#0f151d;border-color:#ffffff1c;cursor:default}
.angel-identity form[data-nickname-saved=true] label::after{content:" ✓";color:#a9d7be}
body[data-mode][data-appearance] .flyin-angel-window .angel-identity [role=status]{color:#b5dfc5!important}
/* Keep phone content clear of the physical display corners and home indicator. */
html:has(body[data-mode=phone] .flyin-angel-window:not(.hidden)),body[data-mode=phone]:has(.flyin-angel-window:not(.hidden)){background:#030407!important}
body[data-mode=phone][data-appearance] .desktop>.window.flyin-angel-window:not(.hidden){position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-image:none!important;border-radius:0!important;outline:0!important;box-shadow:none!important;transform:none!important;overflow:hidden!important;background:#030407!important}
body[data-mode=phone][data-appearance] .flyin-angel-window>.content{border:0!important;border-radius:0!important;margin:0!important;background:#030407!important;padding-bottom:env(safe-area-inset-bottom,0px)!important}
body[data-mode=phone]:has(.flyin-angel-window:not(.hidden)) .dock-wrap{visibility:hidden}
@media(max-width:720px){.angel-result{padding:18px 14px}.angel-result-art img{left:-21%;top:8%;height:78%;width:240px;opacity:.38}.angel-result-main{gap:10px}.angel-result[data-board=open]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:12px;padding:12px}.angel-result[data-board=open] .angel-result-brand{display:none}.angel-result[data-board=open] .angel-result-score{min-height:85px;padding:18px 16px 8px;margin:0 0 4px}.angel-result[data-board=open] .angel-result-score strong{font-size:min(var(--score-size),65px)}.angel-result[data-board=open] .angel-result-main{gap:6px}.angel-result[data-board=open] .angel-result h2{font-size:25px!important}.angel-result[data-board=open] .angel-result-actions{margin-top:8px}}
@media(max-height:700px){.angel-result{padding:12px 14px}.angel-result-main{gap:7px;padding:4px}.angel-result-brand{font-size:10px}.angel-result-score{min-height:110px;padding-top:20px;margin-bottom:4px}.angel-result-score strong{font-size:min(var(--score-size),92px)}.angel-result-actions{margin-top:9px;gap:8px}body[data-mode][data-appearance] .flyin-angel-window .angel-result .envol-play{min-height:40px;font-size:16px}.angel-result-art img{opacity:.35}}
@media(min-width:721px) and (max-height:700px){.angel-result-main{gap:6px;padding:0}.angel-result .angel-kicker{display:none}body[data-mode][data-appearance] .flyin-angel-window .angel-result h2{font-size:28px!important}.angel-result-actions{display:flex;flex-wrap:nowrap;width:max-content;max-width:100%;gap:9px;margin-top:9px}body[data-mode][data-appearance] .flyin-angel-window .angel-result .envol-play{min-width:144px;min-height:40px;padding:6px 14px}.angel-result-actions>button:not(.envol-play){min-height:35px;padding:6px 9px;font-size:10px}}
@media(prefers-reduced-motion:no-preference){.angel-result-main{animation:angel-return .5s ease-out both}.angel-result::before{animation:angel-cloud-drift 18s ease-in-out infinite alternate}@keyframes angel-return{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes angel-cloud-drift{from{transform:translateX(-2%)}to{transform:translateX(2%)}}}

/* Illustrated launch screen, using the same night and storm artwork as flight. */
body[data-mode][data-appearance] .flyin-angel-window:not([data-angel-state=over]) .angel-lobby{background:radial-gradient(ellipse at 35% 15%,#253d7036,transparent 60%),#05070c}
.angel-lobby-main{position:relative;isolation:isolate}
.angel-lobby-main::before{content:"";position:absolute;inset:0 -12px -20px;z-index:-1;pointer-events:none;background:url('fumee-illustration.png') 100% 75%/80% auto no-repeat;opacity:.17}
.angel-hero{min-height:196px;overflow:visible;isolation:isolate}
.angel-hero::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 75% 40%,#7893b72b,transparent 57%),url('nuage-orage.png') 85% 90%/50% auto no-repeat;opacity:.66}
.angel-hero::after{content:"";position:absolute;right:4%;top:14%;width:28px;height:95px;z-index:0;pointer-events:none;background:linear-gradient(#d9e7ff99,#a9c8fa00);clip-path:polygon(58% 0,20% 44%,48% 43%,30% 100%,92% 32%,59% 34%);opacity:.6}
.angel-hero-copy,.angel-hero-art{z-index:1}
.angel-hero .angel-kicker{color:#b6c8e3;font-size:9px;letter-spacing:.18em}
body[data-mode][data-appearance] .flyin-angel-window .angel-hero h2{color:#f0f5ff!important;font-weight:850;letter-spacing:-.035em;text-shadow:0 0 22px #a8c8ff38}
body[data-mode][data-appearance] .flyin-angel-window .angel-hero p{color:#bac8dd!important}
.angel-hero-art::before{background:radial-gradient(ellipse,#9db8df22,transparent 70%)}
/* Keep the original sprite size and halo dimensions; only lower the sprite. */
.angel-hero-art img{top:22px;height:174px;align-self:start;filter:drop-shadow(0 8px 15px #030407bb)}
.angel-hero-halo{top:12px;width:68px;height:22px;border-color:#e3edff;box-shadow:0 0 15px #bad4ff44}
body[data-mode][data-appearance] .flyin-angel-window .angel-hero .envol-play{background:linear-gradient(140deg,#f1f6ff,#c6d6eb);border:1px solid #dce8fa;color:#101722;box-shadow:0 2px 0 #697a94,0 0 24px #b7d1f722;border-radius:8px;font-weight:800}
.angel-item-art svg{stroke:#dce8fa}
.angel-item-bolt svg{fill:#dce8fa}
body[data-mode][data-appearance] .flyin-angel-window .angel-items h3{color:#e6edf8!important}
body[data-mode][data-appearance] .flyin-angel-window .angel-items p{color:#aebbd0!important}
.angel-lobby-main .angel-identity :is(button,.angel-score-retry){border-color:#9fb8db66;background:#18212e;color:#e0eaff}
.angel-lobby-main+.angel-board{background:linear-gradient(150deg,#142030c9,#0b1019ee);border-color:#adc6e533}
.angel-lobby-main+.angel-board .angel-board-heading>svg{stroke:#c8dcf8}
.angel-lobby-main+.angel-board .angel-board-heading span,.angel-lobby-main+.angel-board .angel-board-summary button{color:#aec5e4}
body[data-mode][data-appearance] .flyin-angel-window .angel-lobby-main+.angel-board .angel-board-heading h3{color:#eef4ff!important}
.angel-lobby-main+.angel-board .angel-board-list li:nth-child(-n+3) .angel-place,.angel-lobby-main+.angel-board .angel-board-list li.is-me,.angel-lobby-main+.angel-board .angel-player small{color:#c6daf7}
.angel-lobby-main+.angel-board .angel-my-rank{border-color:#a7c1e833;background:#adc6e508}
.angel-lobby-main+.angel-board .angel-my-rank strong{color:#edf4ff}
.angel-lobby-main+.angel-board .angel-board-empty svg{stroke:#b7cce566}
@media(max-width:720px){.angel-hero-art img{height:165px}.angel-hero{min-height:187px}}
body[data-mode=phone] .angel-hero{min-height:172px}
body[data-mode=phone] .angel-hero-art img{height:150px}
body[data-mode=phone] .angel-hero-halo{top:10px}
@media(max-height:700px){body[data-mode=phone] .angel-hero{min-height:147px}body[data-mode=phone] .angel-hero-art img{height:125px}body[data-mode=phone] .angel-hero-halo{top:9px}}

/* Item legends retain the same colours as their flight counterparts. */
.angel-item-halo svg{stroke:#ffd12f;filter:drop-shadow(0 0 3px #ffca3355)}
.angel-item-bolt svg{fill:#ffe332;stroke:#fff1b0;filter:drop-shadow(0 0 3px #ffd35a55)}

/* Continuous lower curves, calibrated to the iPhone 17 Pro's 402pt display. */
.angel-phone-frame{display:none}
body[data-mode=phone][data-appearance] .window.flyin-angel-window>.angel-phone-frame{display:block;position:absolute;inset:0;z-index:20;width:100%;height:100%;pointer-events:none;fill:none;stroke:var(--artist-header,#c8d7eb);stroke-width:1.5;stroke-linecap:round;overflow:visible}
body[data-mode=phone][data-appearance=artist-black] .window.flyin-angel-window>.angel-phone-frame{stroke:#dce8fa}
body[data-mode=phone][data-appearance] .flyin-angel-window>.content{padding-bottom:max(24px,env(safe-area-inset-bottom,0px))!important}
