:root{color-scheme:dark;--bg:#0c0815;--panel:#161020;--text:#f6f0ff;--muted:#ad9cbf;--purple:#b58aff;--lime:#d1f19f;--line:#ba8df12a;--water:#8ddcff;--fire:#ffb17b;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;color:var(--text);background:var(--bg)}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--lime);outline-offset:4px}[hidden]{display:none!important}.skip{position:absolute;top:8px;left:8px;transform:translateY(-150%);padding:12px;background:var(--purple);color:#130b20;z-index:100}.skip:focus{transform:none}.button{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:48px;border:1px solid transparent;border-radius:11px;padding:13px 20px;font-size:13px;font-weight:700;transition:background .2s,transform .2s,box-shadow .2s}.button.primary{background:linear-gradient(120deg,#b68bff,#9564e7);color:#140b21;box-shadow:0 8px 34px #a45df324}.button.primary:hover{box-shadow:0 8px 40px #a45df350;transform:translateY(-2px)}.button.secondary{background:#a878ed10;border-color:#b18cd640;color:#dcc8f1}.button.secondary:hover{background:#a878ed24}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:21px;letter-spacing:2px}.brand-dot{color:var(--purple)}.eyebrow{display:block;font-size:10px;letter-spacing:2.1px;font-weight:700;color:#b796d4}.text-link{font-size:12px;color:#c5addc}.text-link>span{margin-left:14px}.landing{background:radial-gradient(ellipse at 80% 20%,#45225c27,transparent 50%),var(--bg);min-width:300px}.landing-shell{max-width:1320px;width:calc(100% - 96px);margin:auto}.landing-header{height:104px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.back{font-size:12px;color:var(--muted)}.back:hover{color:var(--text)}.landing-hero{display:grid;grid-template-columns:1.06fr 1fr;gap:36px;align-items:center;padding:74px 0 64px}.hero-copy h1{font-size:clamp(42px,4.6vw,68px);font-weight:780;letter-spacing:-2.8px;line-height:1.08;margin:23px 0}.hero-copy h1 span{color:#c9a3ff}.game-name{font-size:15px;line-height:1.6;color:#ba9cd1;margin:22px 0}.game-name strong{font-size:21px;color:#eee4f6;font-weight:550;letter-spacing:-.3px}.intro{font-size:13px;line-height:1.9;color:var(--muted);max-width:470px}.hero-actions{display:flex;gap:26px;align-items:center;margin-top:28px}.launch-note{font-size:11px;color:#94819f;line-height:1.7;margin-top:15px}.hero-art{position:relative;border:1px solid #b58ded35;border-radius:28px;overflow:hidden;box-shadow:0 24px 100px #0004;background:#1b1129;transform:rotate(2deg)}.hero-art>img{width:100%;height:auto;display:block;aspect-ratio:1/1;object-fit:cover}.orbit-label{position:absolute;left:27px;top:26px;font-size:9px;font-weight:650;letter-spacing:3px;color:#c7aedf}.art-pill{position:absolute;bottom:24px;left:24px;font-size:10px;color:#d6bce8;background:#140c23b0;border:1px solid #bd87e245;border-radius:30px;padding:10px 14px;backdrop-filter:blur(8px)}.feature-strip{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.feature-strip>div{padding:30px 30px 29px;border-right:1px solid var(--line)}.feature-strip>div:first-child{padding-left:0}.feature-strip>div:last-child{border:0}.feature-strip b{color:#9476ad;font-size:10px;letter-spacing:2px}.feature-strip h2{font-size:16px;font-weight:600;margin:13px 0 10px}.feature-strip p{font-size:12px;line-height:1.8;color:var(--muted);margin:0;max-width:315px}.controls-section{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:24px;padding:72px 0;align-items:stretch}.controls-section h2{font-size:35px;letter-spacing:-1.3px;line-height:1.2;margin:15px 0}.controls-section>div>p{font-size:12px;line-height:1.85;color:var(--muted);max-width:370px}.control-card{border:1px solid var(--line);border-radius:20px;background:linear-gradient(140deg,#2618307a,#120c1d);padding:29px 25px;align-self:center;min-height:234px}.control-card h3{font-size:23px;letter-spacing:-.8px;margin:12px 0}.element-dot{display:block;width:8px;height:8px;border-radius:50%;background:var(--fire);box-shadow:0 0 23px #ff9f7355}.water .element-dot{background:var(--water);box-shadow:0 0 23px #75c6ff55}.keys{display:flex;gap:8px;margin-top:23px}kbd{display:grid;place-items:center;min-width:37px;height:37px;border:1px solid #bf93d84d;border-bottom-width:3px;border-radius:7px;color:#e8d7f6;background:#281936;font-family:inherit;font-size:14px}.fire kbd{color:var(--fire)}.water kbd{color:var(--water)}.menu-callout{display:flex;align-items:center;gap:23px;padding:30px;border:1px solid var(--line);background:linear-gradient(110deg,#34204755,#150d22);border-radius:18px;margin-bottom:68px}.menu-callout>div{flex:1}.menu-callout h2{font-size:18px;margin:0 0 9px}.menu-callout p{font-size:12px;line-height:1.8;margin:0;color:var(--muted);max-width:650px}.landing-footer{display:flex;align-items:center;gap:25px;padding:30px 0;border-top:1px solid var(--line);font-size:10px;color:#a18caf}.landing-footer .brand{font-size:14px;color:#d5c1e6;gap:0}.landing-footer p{font-size:10px;line-height:1.8}.landing-footer>a:last-child{margin-left:auto}
/* Isolated game stage. No storefront is loaded in this tab. */
.game-page{overflow:hidden;min-width:280px;overscroll-behavior:none}.game-page button,.game-page #game-shell{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.game-page #game-shell{position:relative;width:100vw;height:100vh;height:100dvh;background:#090611;overflow:hidden;display:flex;align-items:center;justify-content:center}.game-page.touch-visible #game-shell{padding-bottom:128px}#game-container{width:100%;height:100%;display:flex;align-items:center;justify-content:center;outline:none}#game-container>ruffle-player{display:block;width:100%;height:100%;max-width:none}#game-container canvas{touch-action:none}.launch-panel{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:28px;background:radial-gradient(ellipse at 50% 40%,#40215155,transparent 60%),#0c0815;z-index:2}.launch-panel>.eyebrow{margin-top:28px}.launch-panel h1{font-size:clamp(28px,5vw,50px);letter-spacing:-1.8px;margin:16px 0 9px}.launch-panel>p:not(.launch-note){font-size:14px;color:var(--muted);margin:0 0 28px}.launch-panel .text-link{margin-top:22px}.game-hud{position:absolute;left:max(15px,env(safe-area-inset-left));right:max(15px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));pointer-events:none;display:flex;align-items:center;justify-content:space-between;font-size:9px;font-weight:650;letter-spacing:1.2px;color:#dfc8ec;z-index:3}.game-hud>span{padding:7px 10px;background:#11091d99;border-radius:20px;max-width:70%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.game-hud>button{pointer-events:auto;display:grid;place-items:center;background:#170d27d9;border:1px solid #c495e84a;border-radius:12px;width:42px;height:42px;color:#d6b9f4}.game-hud svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.menu-orb{position:absolute;left:18px;top:64px;z-index:8;width:58px;height:58px;display:grid;place-items:center;padding:0;border-radius:50%;border:1px solid #ce9dff8f;background:radial-gradient(circle at 25% 20%,#513174,#1a0b2c 70%);box-shadow:0 4px 20px #05010ac9,0 0 20px #aa64e440;touch-action:none;cursor:grab;transition:box-shadow .2s}.menu-orb:hover{box-shadow:0 5px 24px #05010add,0 0 28px #b16cfb60}.menu-orb.dragging{cursor:grabbing}.menu-orb>img{border-radius:50%;pointer-events:none}.paused-indicator{position:absolute;inset:0;background:#07031055;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;z-index:5;pointer-events:none}.paused-indicator>span{font-size:16px;letter-spacing:6px;color:#e2ccf3}.paused-indicator button{pointer-events:auto;border:1px solid #bf98eb8a;border-radius:8px;padding:11px 20px;background:#28173eea;color:#ead9f9}.touch-controls{position:absolute;bottom:0;left:0;width:100%;height:128px;z-index:4;display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding:10px max(14px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:linear-gradient(#11091deb,#0a0613);border-top:1px solid #a574d42a;touch-action:none}.touch-character{display:flex;flex-direction:column;gap:10px}.touch-character>span{font-size:8px;letter-spacing:2px;text-align:center;font-weight:750;color:var(--water)}.fire-pad>span{color:var(--fire)}.touch-keys{display:flex;gap:8px;flex-wrap:nowrap}.touch-keys>button{width:58px;height:58px;border-radius:14px;border:1px solid #8edcfd60;box-shadow:inset 0 -3px 0 #03131b90;background:linear-gradient(#1a3447dd,#122433dd);color:#b8ecff;font-size:25px;font-family:system-ui;touch-action:none}.fire-pad .touch-keys>button{border-color:#ffae775d;background:linear-gradient(#44302add,#2d1d1bdd);color:#ffd0b1;box-shadow:inset 0 -3px 0 #1b0c0390}.touch-keys>button.active{background:#366881;transform:translateY(2px);box-shadow:0 0 18px #69c8ff44}.fire-pad .touch-keys>button.active{background:#7b5036;box-shadow:0 0 18px #ffad6944}.toast{position:absolute;bottom:25px;left:50%;transform:translate(-50%,15px);max-width:min(480px,calc(100% - 36px));z-index:20;background:#25153ded;border:1px solid #bf92f159;border-radius:12px;box-shadow:0 10px 40px #0006;padding:12px 18px;color:#e9d8f8;font-size:12px;line-height:1.6;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.touch-visible .toast{bottom:140px}.settings-dialog{width:min(600px,calc(100% - 30px));max-height:calc(100dvh - 36px);padding:0;border:1px solid #b985ee68;border-radius:24px;background:linear-gradient(145deg,#261737,#100a1b 80%);color:var(--text);box-shadow:0 30px 120px #000c;overflow:hidden}.settings-dialog[open]{display:flex;flex-direction:column;animation:menu-enter .32s cubic-bezier(.16,1,.3,1)}.settings-dialog::backdrop{background:#06020b96;backdrop-filter:blur(6px)}@keyframes menu-enter{from{opacity:0;transform:translateY(22px) scale(.96)}to{opacity:1;transform:none}}.menu-header{display:flex;align-items:center;gap:15px;justify-content:space-between;padding:24px 25px 20px;border-bottom:1px solid var(--line);flex-shrink:0}.menu-brand{display:flex;gap:12px;align-items:center}.menu-brand>div>span{font-size:8px;letter-spacing:1.8px;color:#b798cf}.menu-header h2{font-size:23px;letter-spacing:-.8px;margin:7px 0 0;line-height:1.1;font-weight:680}.icon-button{width:38px;height:38px;border-radius:50%;border:1px solid #bc8ee82b;color:#d9bce9;background:#a96edf0b;font-size:25px;font-weight:300;flex:0 0 auto}.icon-button:hover{background:#a96edf23}.menu-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#64427d #1b1028;padding:0 25px}.menu-status{display:flex;align-items:center;gap:8px;font-size:10px;line-height:1.7;color:#ba9dcd;padding:19px 0 0}.status-dot{width:5px;height:5px;background:#b88cdb;border-radius:50%;flex:0 0 auto}.menu-status.ready .status-dot{background:var(--lime);box-shadow:0 0 10px #c6ed9955}.settings-section{padding:25px 0;border-bottom:1px solid var(--line)}.section-label>span{font-size:8px;color:#9a7ab3;letter-spacing:2px;font-weight:600}.section-label h3{font-size:19px;font-weight:650;letter-spacing:-.4px;margin:8px 0 17px}.toggle-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.toggle-card{display:flex;align-items:center;gap:13px;position:relative;background:#a77ace09;border:1px solid #bc8ce329;border-radius:12px;padding:15px;cursor:pointer;min-height:69px}.toggle-card>span{flex:1;min-width:0}.toggle-card b{font-size:12px;font-weight:600;display:block;line-height:1.4}.toggle-card small{display:block;font-size:10px;line-height:1.65;color:#a88fb8;margin-top:4px}.toggle-card input{position:absolute;opacity:0;width:1px;height:1px}.switch{position:relative;display:block;width:33px;height:20px;border:1px solid #af81cf4d;border-radius:20px;background:#3e2b4b;flex:0 0 auto;transition:.18s}.switch:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;background:#ad96be;border-radius:50%;transition:.18s}.toggle-card input:checked+.switch{background:#ac77ed;border-color:#c9a5f9}.toggle-card input:checked+.switch:after{background:#251435;transform:translateX(13px)}.toggle-card input:focus-visible+.switch{outline:3px solid var(--lime);outline-offset:4px}.toggle-card:has(input:disabled){opacity:.4;cursor:not-allowed}.toggle-card.fire b{color:#f5c6a8}.toggle-card.water b{color:#b6def4}.range-card{display:block;margin-top:20px}.range-card>span{display:flex;justify-content:space-between;gap:12px;align-items:center}.range-card b{font-size:12px;font-weight:550}.range-card output{font-size:11px;font-weight:700;background:#9d65da20;color:#d6b6ff;border:1px solid #a16bd736;border-radius:6px;padding:5px 8px;min-width:63px;text-align:center;font-variant-numeric:tabular-nums}.range-card input{appearance:none;-webkit-appearance:none;display:block;background:linear-gradient(90deg,#bb8bff,#7546a2);height:5px;border-radius:5px;width:100%;margin:21px 0 15px;cursor:pointer;accent-color:#ba8afd;touch-action:pan-y}.range-card input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#f1dfff,#be88f3 50%,#7540af);border:2px solid #e6c7ff;box-shadow:0 0 15px #bc83f665}.range-card input::-moz-range-thumb{width:17px;height:17px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#f1dfff,#be88f3 50%,#7540af);border:2px solid #e6c7ff;box-shadow:0 0 15px #bc83f665}.range-card>small{display:flex;justify-content:space-between;font-size:9px;color:#937da5}.setting-hint{font-size:10px;color:#a58db7;line-height:1.85;margin:14px 0 0}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}.action-card{display:flex;flex-direction:column;text-align:left;border:1px solid #bc8ce329;border-radius:12px;background:linear-gradient(135deg,#a16cdd12,#a16cdd04);padding:16px;color:#eadcf6;min-height:125px;transition:background .2s,border-color .2s}.action-card:not(:disabled):hover{border-color:#c59ef36e;background:#a16cdd24}.action-symbol{font-size:22px;color:#c198ec;line-height:1;margin-bottom:13px}.action-card b{font-size:12px;font-weight:600;line-height:1.5}.action-card small{font-size:10px;line-height:1.7;color:#a58bb8;margin-top:6px}.utility-row{display:flex;gap:10px;margin-top:17px}.utility-row>.button{flex:1;font-size:11px;padding:11px}.key-table{margin-top:16px;border:1px solid #bc8ce329;border-radius:13px;overflow:hidden}.key-table>div{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:12px;align-items:center;padding:10px 15px;border-bottom:1px solid #b183d119;font-size:11px;color:#c6aed8}.key-table>div:last-child{border-bottom:0}.key-table>div.key-table-head{background:#a273d20a;font-size:10px;padding-top:13px;padding-bottom:13px}.key-table-head b{font-weight:600}.water-text{color:var(--water)}.fire-text{color:var(--fire)}.key-table button{border:1px solid #b88de142;border-bottom-width:3px;border-radius:7px;background:#2a1939;color:#e3c9fa;padding:8px 5px;min-height:38px;font-size:12px}.key-table button.binding{border-color:var(--lime);color:var(--lime);box-shadow:0 0 12px #d0f49c22}.binding-status{font-size:10px;color:#a78bbc;line-height:1.6;min-height:16px;margin:11px 0 17px}.compact{padding:13px;min-height:60px}.menu-notes{border-bottom:0;padding-bottom:22px}.menu-notes p{font-size:10px;line-height:1.85;color:#9e86ad;margin:0 0 13px}.text-button{border:0;padding:6px 0;background:none;color:#c5a2df;font-size:11px;text-decoration:underline;text-underline-offset:4px}.menu-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 25px;border-top:1px solid var(--line);font-size:9px;color:#ad8fc0;background:#160e21}.menu-footer span{font-size:8px;letter-spacing:.6px;color:#8d729f}
@media(max-width:1000px){.landing-shell{width:calc(100% - 64px)}.landing-hero{gap:24px;padding:58px 0}.hero-copy h1{font-size:50px;letter-spacing:-2px}.hero-art{transform:none}.controls-section{grid-template-columns:1fr 1fr}.controls-section>div:first-child{grid-column:span 2}.control-card{min-height:220px}.menu-callout{padding:24px;gap:16px}.menu-callout .button{font-size:11px;padding:12px}.feature-strip>div{padding-left:20px;padding-right:20px}.feature-strip h2{font-size:14px}}
@media(max-width:680px){.landing-shell{width:calc(100% - 36px)}.landing-header{height:80px}.brand{font-size:18px}.back{font-size:10px}.landing-hero{grid-template-columns:1fr;padding:42px 0 36px;gap:28px}.hero-copy h1{font-size:49px;letter-spacing:-2.2px}.hero-copy .eyebrow{font-size:8px;letter-spacing:1.4px}.hero-art>img{aspect-ratio:1.5}.hero-art{border-radius:20px}.hero-actions{margin-top:22px}.intro{font-size:12px}.feature-strip{grid-template-columns:1fr}.feature-strip>div,.feature-strip>div:first-child{padding:23px 0;border-right:0;border-bottom:1px solid var(--line)}.feature-strip>div:last-child{border-bottom:0}.feature-strip h2{display:inline-block;margin:0 0 9px 14px;font-size:15px}.feature-strip p{max-width:none;margin-left:34px;font-size:11px}.controls-section{gap:13px;padding:46px 0}.controls-section h2{font-size:31px}.controls-section .eyebrow{font-size:8px;letter-spacing:1.4px}.control-card{padding:21px 16px;min-height:225px}.control-card h3{font-size:21px}.control-card>p{font-size:10px!important}.keys{gap:5px}kbd{min-width:30px;height:33px;font-size:12px}.menu-callout{flex-wrap:wrap;padding:21px;margin-bottom:42px;gap:16px}.menu-callout>img{width:40px;height:40px}.menu-callout>div{min-width:180px}.menu-callout h2{font-size:16px}.menu-callout p{font-size:11px}.menu-callout .button{margin-left:56px}.landing-footer{flex-wrap:wrap;gap:15px;padding:25px 0}.landing-footer p{order:3;width:100%;font-size:9px;margin:0}.landing-footer>a:last-child{font-size:10px}.game-page.touch-visible #game-shell{padding-bottom:116px}.touch-controls{height:116px;padding:9px max(9px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));gap:10px}.touch-keys{gap:5px}.touch-keys>button{width:clamp(44px,calc((100vw - 52px)/6),58px);height:50px;font-size:22px;border-radius:11px}.touch-character>span{font-size:7px;letter-spacing:1.4px}.touch-visible .toast{bottom:128px}.menu-orb{width:52px;height:52px;left:12px;top:59px}.menu-orb>img{width:42px;height:42px}.settings-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:20px}.menu-header{padding:20px 18px 17px;gap:8px}.menu-header h2{font-size:21px}.menu-brand>div>span{font-size:7px;letter-spacing:1.4px}.menu-brand{gap:9px}.menu-brand>img{width:28px;height:28px}.menu-scroll{padding:0 18px}.menu-footer{padding:14px 18px;font-size:8px}.menu-footer span{font-size:7px}.toggle-grid{grid-template-columns:1fr}.toggle-card{padding:13px}.action-card{padding:13px}.action-card b{font-size:11px}.key-table>div{padding:10px;gap:7px;font-size:10px}.launch-panel h1{font-size:32px;letter-spacing:-1px}}
@media(max-width:360px){.hero-copy h1{font-size:41px}.hero-actions{gap:20px}.controls-section{gap:10px}.control-card{padding:20px 12px}.keys{gap:4px}kbd{min-width:27px}.menu-callout .button{margin-left:0}.touch-keys>button{height:50px}.touch-keys{gap:4px}.touch-character>span{font-size:6px}.menu-header h2{font-size:18px}.action-card b{font-size:10px}.menu-brand>div>span{font-size:6px;letter-spacing:1px}.menu-footer span{display:none}}
@media(max-height:520px) and (orientation:landscape){.game-page.touch-visible #game-shell{padding-bottom:0}.touch-controls{height:auto;background:transparent;border:0;pointer-events:none;padding:8px max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.touch-character{pointer-events:auto;gap:5px}.touch-character>span{text-shadow:0 1px 4px #000}.touch-keys>button{width:45px;height:45px;font-size:20px;background:#142536bb;backdrop-filter:blur(3px)}.fire-pad .touch-keys>button{background:#36231bbb}.game-hud{top:8px}.game-hud>button{width:36px;height:36px}.menu-orb{top:49px;width:48px;height:48px}.menu-orb>img{width:39px;height:39px}.settings-dialog{max-height:calc(100dvh - 12px)}.menu-header{padding:13px 20px}.menu-header h2{font-size:20px}.menu-footer{padding:11px 20px}.touch-visible .toast{bottom:75px}.launch-panel>.eyebrow{margin-top:15px}.launch-panel>img{width:37px;height:37px}.launch-panel h1{font-size:28px;margin:10px 0 7px}.launch-panel>p:not(.launch-note){font-size:12px;margin-bottom:16px}.launch-panel .text-link{margin-top:8px}.launch-panel .launch-note{margin:10px 0 0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.button.primary:hover{transform:none}}

/* In narrow portrait view, the flight down key gets its own row instead of shrinking all eight targets. */
@media(max-width:680px) and (orientation:portrait){.game-page.touch-visible:has(.fly-down:not([hidden])) #game-shell{padding-bottom:156px}.game-page.touch-visible:has(.fly-down:not([hidden])) .touch-controls{height:156px}.touch-keys:has(.fly-down:not([hidden])){display:grid;grid-template-columns:repeat(3,auto)}.touch-keys .fly-down{grid-column:2}.touch-visible:has(.fly-down:not([hidden])) .toast{bottom:168px}}

/* Separate save profiles; the game engine owns both progress slots. */
.hud-labels{display:flex;align-items:center;gap:7px;min-width:0;max-width:calc(100% - 52px)}
.hud-labels>span{padding:7px 10px;background:#11091dcc;border:1px solid #bb8ee128;border-radius:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hud-labels .progress-badge{color:var(--lime);font-size:8px;letter-spacing:.8px;flex-shrink:0;border-color:#c5ed9d38}
.hud-labels .progress-badge.assisted{color:#dec2ff;border-color:#bc82fa68;background:#301b46e6}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.profile-card{position:relative;display:flex;flex-direction:column;gap:8px;text-align:left;min-width:0;padding:15px;border:1px solid #bc8ce344;border-radius:13px;color:#eadcf6;background:linear-gradient(140deg,#ab7be110,#9a6fc305);transition:border-color .2s,background .2s}
.profile-card[aria-pressed=true]{border-color:#c9eba277;background:linear-gradient(135deg,#b4e68e16,#b28ce709)}
.profile-card[aria-pressed=true]:disabled{opacity:1;cursor:default}
.profile-card[data-progress-profile=assisted][aria-pressed=true]{border-color:#bf87ffb3;background:linear-gradient(135deg,#ab68ef24,#a679d10a)}
.profile-card:not(:disabled):hover{border-color:#d2a4ffb3;background:#b984ef20}
.profile-card b{font-size:12px;line-height:1.45;font-weight:650}
.profile-card small{font-size:10px;line-height:1.6;color:#b7a1c8;font-variant-numeric:tabular-nums}
.profile-active{font-size:8px;letter-spacing:1.2px;color:#bca4d1;font-weight:700}
.profile-card[aria-pressed=true] .profile-active{color:var(--lime)}
.profile-card[data-progress-profile=assisted][aria-pressed=true] .profile-active{color:#d4adff}
.profile-card progress{display:block;appearance:none;-webkit-appearance:none;border:0;border-radius:6px;overflow:hidden;width:100%;height:4px;background:#c399ef20;margin:3px 0 1px;accent-color:#c4eaa2}
.profile-card progress::-webkit-progress-bar{background:#c399ef20}
.profile-card progress::-webkit-progress-value{background:#c4eaa2;border-radius:6px}
.profile-card progress::-moz-progress-bar{background:#c4eaa2;border-radius:6px}
.profile-card[data-progress-profile=assisted] progress{accent-color:#b98aef}
.profile-card[data-progress-profile=assisted] progress::-webkit-progress-value{background:#b98aef}
.profile-card[data-progress-profile=assisted] progress::-moz-progress-bar{background:#b98aef}
.progress-notice{padding:12px;border:1px solid #b687e64a;border-radius:10px;background:#a971e312;color:#d9c0ed;font-size:10px;line-height:1.8;margin:14px 0 0}
.legacy-progress-note{margin:13px 0 0;color:#c7d2b4;font-size:10px;line-height:1.8}
@media(max-width:680px){.hud-labels{align-items:flex-start;flex-direction:column;gap:5px}.hud-labels>span{max-width:100%;padding:6px 9px}.hud-labels .progress-badge{font-size:7px;letter-spacing:.6px}.game-page .menu-orb{top:79px}.profile-card{padding:12px;gap:7px}.profile-card b{font-size:11px}.profile-card small{font-size:8px}.profile-active{font-size:7px;letter-spacing:.9px}}
@media(max-height:520px) and (orientation:landscape){.hud-labels{align-items:center;flex-direction:row}.game-page .menu-orb{top:49px}}
