:root{color-scheme:dark;--bg:#17151f;--text:#f6ebe1;--muted:#b4a5b6;--gold:#ffbd83;--line:#ffffff15;--safe-bottom:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none;background:var(--bg);font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--text);font-size:16px}button,a,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit;border:0}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #ffd094;outline-offset:4px}button:hover:not(:disabled){filter:brightness(1.1)}[hidden]{display:none!important}#app{height:100%;height:100dvh;position:relative;isolation:isolate;overflow:hidden}#world{position:absolute;inset:0;width:100%;height:100%;touch-action:none;background:#191821;z-index:-2}.vignette{position:absolute;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 65% 43%,transparent 12%,#15111c50 70%,#15111cce 100%)}header{height:105px;padding:calc(env(safe-area-inset-top,0px) + 26px) 5vw 20px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text);font-size:19px;font-weight:800;letter-spacing:3px}.brand>span{color:var(--gold);font-size:38px}.brand small{display:block;letter-spacing:2px;font-size:10px;color:#ad96a0;margin-top:4px;font-weight:400}.header-right{display:flex;gap:20px;align-items:center}.wallet{display:flex;align-items:center;gap:9px;border:1px solid #e4aa691f;background:#211c27aa;border-radius:24px;padding:10px 19px;font-size:16px}.wallet small{color:#9b879c;font-size:12px}.wallet>span{color:#ffd89e;font-size:24px}.icon-button{width:44px;height:44px;display:grid;place-items:center;border:1px solid #ffffff16;background:#31273488;border-radius:12px}.icon-button svg{width:21px;height:21px}.home{height:calc(100% - 105px);position:relative;max-width:1500px;margin:auto;padding:0 5vw;display:grid;grid-template-columns:1fr 440px;grid-template-rows:1fr 105px 45px;gap:0 6vw}.home-copy{align-self:center;margin-top:-40px;pointer-events:none}.eyebrow{font-size:10px;letter-spacing:2px;color:#c4a183;font-weight:600}h1{font-size:clamp(32px,4.7vw,64px);letter-spacing:-3px;line-height:1.27;margin:24px 0;color:#ffefdf;font-weight:800}.home-copy p{font-size:14px;line-height:1.9;color:#b9a7b5}.hero-name{display:flex;align-items:center;gap:12px;margin-top:28px}.hero-name>span{font-size:23px;color:#f3b882}.hero-name>div{font-weight:700;font-size:16px}.hero-name small{display:block;font-size:10px;color:#a28d9f;font-weight:400;margin-top:4px}.hero-name>b{font-size:10px;font-weight:400;border:1px solid #dca17033;border-radius:5px;color:#e4b58d;padding:5px 9px;margin-left:8px}.home-stage{align-self:center;margin-bottom:20px;padding:24px;border:1px solid #bc9a8026;border-radius:20px;background:linear-gradient(140deg,#342b35e8,#211e2aec);box-shadow:0 20px 60px #08061140;backdrop-filter:blur(18px)}.chapter-heading{display:flex;justify-content:space-between;align-items:center}.chapter-heading>span:last-child{font-size:9px;color:#99899c;letter-spacing:1px}.chapters{display:flex;gap:9px;margin:22px 0 18px}.chapter{position:relative;flex:1;height:119px;border:1px solid #ffffff12;background:linear-gradient(160deg,#5c665160,#252e29);border-radius:11px;overflow:hidden;padding:14px 10px;text-align:left}.chapter:before{content:'';position:absolute;width:120px;height:120px;bottom:-75px;left:8px;transform:rotate(45deg);background:#6c7d6170;box-shadow:35px -22px 0 #53614e55}.chapter:nth-child(2){background:linear-gradient(160deg,#69517270,#242132)}.chapter:nth-child(2):before{background:#7c649860;box-shadow:35px -22px 0 #55446555}.chapter:nth-child(3){background:linear-gradient(160deg,#98664b50,#35222b)}.chapter:nth-child(3):before{background:#be795555;box-shadow:35px -22px 0 #6d444d55}.chapter.selected{border-color:#e9b486;box-shadow:0 0 0 2px #f5b17a15}.chapter b{position:relative;font-size:10px;letter-spacing:1px;color:#e2d6d3}.chapter .chapter-glyph{position:relative;display:block;font-size:34px;margin-top:12px;opacity:.8;text-align:center;color:#c6d5aa}.chapter:nth-child(2) .chapter-glyph{color:#c6a5eb}.chapter:nth-child(3) .chapter-glyph{color:#ffc189}.chapter .lock{position:absolute;right:8px;top:11px;color:#bb9eb6;font-size:11px}.chapter.locked{opacity:.5}.chapter-details h2{font-size:24px;margin:0 0 8px;letter-spacing:-1px}.chapter-details p{color:#aa99ad;font-size:12px;margin:0 0 20px}.chapter-meta{display:flex;gap:12px;color:#c7b3b8;font-size:10px;margin-bottom:22px}.chapter-meta span{padding:5px 8px;border:1px solid #ffffff0c;border-radius:4px}.primary{background:linear-gradient(110deg,#ffcd91,#f1a66f);color:#3e2226;min-height:52px;border:1px solid #ffe0ab;border-radius:10px;font-weight:800;box-shadow:0 4px 0 #92543c,0 6px 30px #ffae4920;padding:14px 22px;display:inline-flex;align-items:center;justify-content:center;gap:12px}.play{width:100%;position:relative;justify-content:flex-start;padding:16px 22px;min-height:74px}.play>span{font-size:20px}.play>small{font-size:11px;opacity:.65;font-weight:400}.play>b{margin-left:auto;font-size:25px}.resume{width:100%;background:#413342;border:1px solid #a2786d55;color:#f5d6b7;border-radius:8px;margin-top:13px;padding:11px;font-size:13px}.home-hint{font-size:10px;color:#a58e9e;text-align:center;margin-top:18px}.bottom-nav{grid-column:1/3;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;align-self:center}.bottom-nav button{display:grid;grid-template-columns:44px 1fr;grid-template-rows:1fr 1fr;text-align:left;align-items:center;gap:0 12px;padding:18px 20px;background:#2b2530c0;border:1px solid #c3a7c01c;border-radius:13px;backdrop-filter:blur(8px)}.bottom-nav button>span{grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#72554c25;color:#e3b68f}.bottom-nav svg{width:25px;height:25px}.bottom-nav b{font-size:14px;font-weight:600}.bottom-nav small{color:#a38ea6;font-size:10px;margin-top:5px}.home-footer{grid-column:1/3;display:flex;gap:16px;align-items:center;color:#796c83;font-size:9px;letter-spacing:1px}.home-footer>span{margin-right:auto}.home-footer button{background:none;font-size:10px;color:#9c899e;padding:8px 0}#hud{position:absolute;inset:0;pointer-events:none;padding:calc(20px + env(safe-area-inset-top,0px)) 28px 0}.run-top{display:flex;justify-content:space-between;align-items:center}.run-title{display:flex;gap:14px;align-items:center}.run-title button{pointer-events:auto}.run-title small{display:block;font-size:10px;color:#b4a0b6;letter-spacing:2px;margin-bottom:5px}.run-title b{font-size:19px;letter-spacing:1px}.run-stats{display:flex;align-items:center;gap:9px}.run-stats>span{font-variant-numeric:tabular-nums;font-size:14px;color:#b9a6b9;margin-right:20px}.run-stats>b{color:#f8c898;font-size:22px}.run-stats>small{font-size:11px;color:#ad97ad}.meters{display:flex;gap:20px;margin-top:19px;max-width:470px}.meters>div{flex:1}.meters>div>div:first-child{display:flex;justify-content:space-between;font-size:10px;color:#bba6bc;margin-bottom:8px}.meters b{font-size:10px;font-weight:500;color:#eee0da;font-variant-numeric:tabular-nums}.meter{height:7px;background:#352a3b;border:1px solid #ffffff0b;border-radius:8px;overflow:hidden}.meter i{display:block;height:100%;background:linear-gradient(90deg,#d3646c,#ffb094);width:100%;transition:width .13s}.heat-meter i{background:linear-gradient(90deg,#e98c48,#ffdc8f);width:0}.heat-meter.hot i{background:#ef4f69}.heat-meter.hot span{color:#ff8a96!important}#boss-bar{position:absolute;top:155px;left:30%;right:30%;text-align:center}#boss-bar>span{display:block;font-size:12px;margin-bottom:10px;color:#d6b6d7;letter-spacing:3px}#boss-bar .meter{height:8px}#boss-bar i{background:linear-gradient(90deg,#9462aa,#d2a0df)}#combo{position:absolute;top:170px;right:30px;color:#ffd49f;text-align:right;font-style:italic;font-size:24px;font-weight:800}#combo small{display:block;font-size:9px;letter-spacing:3px;font-weight:400;margin-top:4px}.run-build{position:absolute;top:165px;left:28px;display:flex;gap:5px;max-width:240px;flex-wrap:wrap}.build-icon{width:27px;height:27px;padding:6px;border:1px solid #e7b77d33;border-radius:6px;background:#392b3e;color:#f7c68e}.build-icon svg{width:100%;height:100%}.desktop-help{position:absolute;bottom:25px;left:28px;font-size:11px;color:#b39bb3;letter-spacing:1px}.abilities{position:absolute;bottom:30px;right:32px;display:flex;align-items:end;gap:17px;pointer-events:auto}.abilities button{width:85px;height:85px;border:1px solid #d7ae7b88;border-radius:50%;background:#302537df;backdrop-filter:blur(8px);position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 5px 25px #0005}.abilities svg{width:26px;height:26px;color:#ffcc90}.abilities b{font-size:10px;margin-top:4px;font-weight:500}.abilities small{font-size:9px;color:#aa94ae;margin-top:4px}.abilities #burst{width:103px;height:103px;border-color:#745865}.abilities #burst.ready{border-color:#ffce8b;background:#79513b;box-shadow:0 0 30px #ffaa4a55}.abilities button i{position:absolute;bottom:0;left:0;height:3px;background:#ffc581;width:0}.abilities #dash.cooldown{opacity:.65}#joystick{position:absolute;left:40px;bottom:50px;width:110px;height:110px;border-radius:50%;border:1px solid #e1b4bd35;background:#8c75931a;display:none;pointer-events:none}#joystick>div{width:48px;height:48px;position:absolute;left:30px;top:30px;border-radius:50%;background:#c2a2b755;border:1px solid #ead0be66;box-shadow:0 4px 15px #0004}#joystick>span{position:absolute;bottom:-24px;width:100%;text-align:center;font-size:10px;color:#ac90aa}#manual-fire{display:none;pointer-events:auto;position:absolute;right:42px;bottom:145px;width:58px;height:58px;background:#653a3dbb;border:1px solid #fba66e66;border-radius:50%;color:#ffc289}#manual-fire svg{width:25px;height:25px}#touch-tip{display:none;position:absolute;bottom:20px;left:24px;font-size:11px;color:#b8a0b9}#toast{position:absolute;left:50%;bottom:calc(125px + var(--safe-bottom));transform:translate(-50%,15px);opacity:0;transition:opacity .2s,transform .2s;background:#322936f5;border:1px solid #b3937555;border-radius:10px;padding:13px 20px;font-size:13px;text-align:center;pointer-events:none;max-width:90%;white-space:pre-line;z-index:30}#toast.show{opacity:1;transform:translate(-50%,0)}#banner{position:absolute;left:0;right:0;top:39%;text-align:center;opacity:0;pointer-events:none;transform:translateY(10px);transition:.4s;z-index:3}#banner.show{opacity:1;transform:translateY(0)}#banner small{display:block;color:#e1b292;font-size:11px;letter-spacing:4px;margin-bottom:13px}#banner b{font-size:34px;color:#ffe8cd;text-shadow:0 4px 30px #000;letter-spacing:3px}.modal{position:absolute;inset:0;background:#0c0913bf;backdrop-filter:blur(14px);z-index:20;display:flex;align-items:center;justify-content:center;padding:24px}.modal>section{width:620px;max-width:100%;max-height:100%;overflow:auto;border:1px solid #d4af822c;border-radius:22px;background:linear-gradient(140deg,#352a38,#211e2b);box-shadow:0 25px 100px #0006;padding:30px;scrollbar-width:thin}.modal-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:24px}.modal-head .eyebrow{font-size:9px}.modal h2{font-size:28px;letter-spacing:-1px;margin:10px 0 0}.modal p{font-size:14px;line-height:1.9;color:#b9a6bd}.close{width:34px;height:34px;border:1px solid #ffffff15;background:#ffffff05;border-radius:50%;font-size:23px;color:#bba2b5}.modal .primary{width:100%;margin-top:15px}.secondary{display:block;width:100%;border:1px solid #bca2ad25;background:#43324455;border-radius:10px;padding:14px;margin-top:12px;font-size:14px;color:#d5bdcf}.cards{display:flex;gap:12px}.upgrade-card{flex:1;min-width:0;border:1px solid #d4af8233;border-radius:12px;background:linear-gradient(160deg,#55404f66,#292330);padding:23px 14px;text-align:left;min-height:200px}.upgrade-card>span{display:grid;place-items:center;background:#60483e66;border:1px solid #d5a26b33;border-radius:12px;width:48px;height:48px;margin-bottom:24px;color:#ffd39b}.upgrade-card svg{width:27px;height:27px}.upgrade-card>b{display:block;color:#ffe1bc;font-size:15px;line-height:1.5}.upgrade-card>small{display:block;line-height:1.8;font-size:12px;color:#baa4bd;margin-top:10px}.reward-note{font-size:12px!important;margin-top:18px!important}.list-row{display:flex;align-items:center;gap:14px;border:1px solid #ffffff0c;background:#ffffff03;border-radius:12px;padding:17px;margin-bottom:12px}.list-row>span{width:40px;height:40px;padding:9px;background:#6a4b3e33;color:#edc18f;border-radius:10px;flex-shrink:0}.list-row svg{width:100%;height:100%}.list-row>div{flex:1}.list-row b{font-size:14px;display:block}.list-row small{display:block;color:#ac95ae;font-size:11px;line-height:1.8;margin-top:4px}.list-row button{padding:10px 15px;border:1px solid #d2ac7744;background:#69503966;border-radius:7px;color:#ffd29d;font-size:12px;white-space:nowrap}.ranks{display:flex;gap:4px;margin-top:9px}.ranks i{width:20px;height:3px;background:#544152}.ranks i.on{background:#f2b87e}.skin-preview{width:58px!important;height:68px!important;overflow:hidden;position:relative;background:transparent!important;padding:0!important}.skin-preview img{position:absolute;height:70px;width:auto;left:-3px;top:-1px;mix-blend-mode:screen;image-rendering:pixelated}.settings-row{display:flex;justify-content:space-between;align-items:center;margin:20px 0;gap:20px}.settings-row label{font-size:14px}.toggle{width:46px;height:26px;padding:3px;border:1px solid #ffffff16;border-radius:30px;background:#49374d}.toggle:before{content:'';display:block;width:18px;height:18px;background:#a58da7;border-radius:50%;transition:.2s}.toggle.on{background:#9f704c}.toggle.on:before{background:#ffdeb1;transform:translateX(19px)}input[type=range]{accent-color:#edac75;width:145px}.section-rule{border:0;border-top:1px solid #ffffff0d;margin:25px 0}.settings-actions{display:flex;gap:10px}.settings-actions button{flex:1;background:#4b364a55;border:1px solid #bda0b322;border-radius:8px;padding:12px;font-size:12px}.muted{color:#9e86a2!important;font-size:11px!important}.result-emblem{color:#ffcb87;font-size:55px;text-align:center;margin:10px}.result-title{text-align:center}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:25px 0}.result-stats>div{padding:15px;background:#ffffff05;border:1px solid #ffffff0a;border-radius:10px;text-align:center}.result-stats b{display:block;color:#f6c591;font-size:23px}.result-stats small{display:block;color:#ac95ae;font-size:10px;margin-top:7px}.reward-total{display:flex;justify-content:space-between;align-items:center;padding:16px;border-radius:10px;background:#b2854a13;border:1px solid #ffbd6e22;font-size:14px}.reward-total b{color:#ffca89;font-size:24px}.guide-list{display:grid;gap:18px}.guide-list>div{display:flex;align-items:center;gap:15px}.guide-list>div>span{width:43px;height:43px;flex-shrink:0;background:#6a473844;border-radius:12px;padding:10px;color:#f8c48f}.guide-list svg{width:100%;height:100%}.guide-list b{font-size:14px}.guide-list p{font-size:12px;margin:4px 0}.badge{font-size:10px;border:1px solid #cfb07833;padding:5px 8px;color:#e7bd8f;border-radius:5px}.danger{color:#eaaaac!important}#save-warning{position:absolute;top:0;left:0;right:0;z-index:40;background:#9f4749;color:#fff;padding:7px;text-align:center;font-size:11px}body.playing #header,body.playing #home{display:none}body.playing .vignette{background:radial-gradient(ellipse,transparent 40%,#15111c66 100%)}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-height:760px) and (min-width:901px){header{height:83px;padding-top:18px}.home{height:calc(100% - 83px);grid-template-rows:1fr 90px 35px}.home-stage{padding:19px;margin-bottom:10px}.chapters{margin:15px 0}.chapter{height:90px}.chapter-glyph{font-size:26px!important;margin-top:4px!important}.chapter-details h2{font-size:21px}.chapter-meta{margin-bottom:15px}.play{min-height:60px}.home-copy{margin-top:-15px}.home-copy h1{font-size:44px}.home-hint{margin-top:14px}.bottom-nav button{padding:13px 17px}.hero-name{margin-top:18px}}
@media(max-width:900px) and (min-width:601px){header{height:87px;padding:16px 24px}.home{height:calc(100% - 87px);padding:0 24px;grid-template-columns:1fr 340px;gap:0 24px}.home-copy h1{font-size:34px}.home-copy p{font-size:12px}.home-copy .eyebrow{font-size:8px;letter-spacing:1px}.home-stage{padding:18px}.chapter{height:90px;padding:10px 7px}.bottom-nav{gap:9px}.bottom-nav button{padding:12px 10px;gap:0 8px;grid-template-columns:30px 1fr}.bottom-nav button>span{width:30px;height:35px}.bottom-nav b{font-size:12px}.bottom-nav small{font-size:8px}.hero-name>b{display:none}}
@media(max-width:600px){header{height:calc(72px + env(safe-area-inset-top,0px));padding:calc(12px + env(safe-area-inset-top,0px)) 20px 12px}.brand{font-size:14px;gap:8px;letter-spacing:2px}.brand small{font-size:8px;letter-spacing:1.5px}.brand>span{font-size:30px}.icon-button{width:38px;height:38px;border-radius:11px}.wallet{font-size:13px;padding:5px 11px;gap:6px}.wallet small{display:none}.wallet>span{font-size:20px}.header-right{gap:10px}.home{height:calc(100% - 72px - env(safe-area-inset-top,0px));padding:0 20px;display:flex;flex-direction:column;gap:0;overflow:auto;scrollbar-width:none;padding-bottom:calc(8px + var(--safe-bottom))}.home-copy{margin:18px 0 0;align-self:stretch;min-height:180px;flex:1;position:relative}.home-copy .eyebrow{font-size:7px;letter-spacing:1.4px}.home-copy h1{font-size:34px;letter-spacing:-1.8px;margin:14px 0 10px}.home-copy p{font-size:10px;line-height:1.9;max-width:62%}.hero-name{position:absolute;right:12px;bottom:15px;margin:0;gap:7px}.hero-name>span{font-size:16px}.hero-name>div{font-size:12px}.hero-name small{font-size:7px}.hero-name>b{display:none}.home-stage{width:100%;padding:16px;margin:0;border-radius:15px;background:linear-gradient(140deg,#352c39e8,#211e2bed)}.chapter-heading .eyebrow{font-size:8px;letter-spacing:1px}.chapter-heading>span:last-child{font-size:8px}.chapters{margin:13px 0 14px;gap:8px}.chapter{height:69px;border-radius:8px;padding:8px}.chapter b{font-size:8px}.chapter .chapter-glyph{font-size:23px;position:absolute;right:15px;bottom:10px;margin:0}.chapter .lock{top:8px;font-size:9px}.chapter-details h2{font-size:19px;margin-bottom:5px}.chapter-details p{font-size:10px;margin:0 0 12px}.chapter-meta{display:none}.play{min-height:58px;padding:12px 17px;border-radius:8px}.play>span{font-size:18px}.play>small{font-size:9px}.play>b{font-size:22px}.home-hint{font-size:8px;margin-top:13px}.resume{padding:8px;font-size:11px;margin-top:12px}.bottom-nav{width:100%;display:grid;grid-template-columns:repeat(4,1fr);margin-top:14px;gap:7px;flex-shrink:0}.bottom-nav button{display:flex;flex-direction:column;padding:11px 2px;border-radius:10px;gap:7px}.bottom-nav button>span{background:none;width:24px;height:24px}.bottom-nav svg{width:23px;height:23px}.bottom-nav b{font-size:10px;font-weight:500}.bottom-nav small{display:none}.home-footer{margin-top:9px;min-height:26px;font-size:7px;gap:11px}.home-footer button{font-size:8px}#hud{padding:calc(15px + env(safe-area-inset-top,0px)) 17px 0}.run-title{gap:10px}.run-title small{font-size:8px;letter-spacing:1px}.run-title b{font-size:16px}.run-stats>span{font-size:12px;margin-right:6px}.run-stats>b{font-size:18px}.run-stats small{font-size:9px}.meters{gap:15px;max-width:100%;margin-top:16px}.meters>div>div:first-child{font-size:9px}.meters b{font-size:9px}#boss-bar{top:145px;left:20%;right:20%}#boss-bar>span{font-size:10px}#combo{top:190px;right:20px;font-size:21px}.run-build{left:17px;top:145px;max-width:80px;gap:4px}.build-icon{width:23px;height:23px;padding:5px}.abilities{bottom:calc(32px + var(--safe-bottom));right:20px;gap:12px}.abilities button{width:74px;height:74px}.abilities #burst{width:87px;height:87px}.abilities b{font-size:9px}.abilities small{font-size:8px}.abilities svg{width:24px;height:24px}.desktop-help{display:none}.modal{padding:15px}.modal>section{padding:23px 20px;border-radius:18px;max-height:calc(100% - var(--safe-bottom))}.modal h2{font-size:25px}.modal-head{margin-bottom:20px}.cards{gap:9px}.upgrade-card{padding:17px 11px;min-height:185px}.upgrade-card>span{width:39px;height:39px;margin-bottom:18px}.upgrade-card svg{width:23px;height:23px}.upgrade-card>b{font-size:13px}.upgrade-card>small{font-size:10px;line-height:1.8}.list-row{padding:12px;gap:11px}.list-row>span{width:34px;height:34px;padding:7px}.list-row b{font-size:12px}.list-row small{font-size:10px}.list-row button{font-size:11px;padding:8px 10px}.modal p{font-size:12px}.modal .primary{font-size:14px}.result-stats{gap:8px}.result-stats b{font-size:21px}.result-stats small{font-size:9px}#banner b{font-size:27px}#banner small{font-size:9px}#toast{font-size:12px;padding:12px 16px;bottom:calc(145px + var(--safe-bottom));min-width:180px}}
@media(pointer:coarse){#joystick,#manual-fire,#touch-tip{display:block}.desktop-help{display:none}}@media(max-height:720px) and (max-width:600px){.home-copy{min-height:145px;margin-top:8px}.home-copy h1{font-size:28px;margin:10px 0 8px}.home-copy p{font-size:9px}.hero-name{bottom:8px}.home-stage{padding:12px 14px}.chapters{margin:10px 0}.chapter{height:55px}.chapter-details p{margin-bottom:10px}.home-hint{margin-top:10px}.bottom-nav{margin-top:11px}.bottom-nav button{padding:9px 2px;gap:5px}.home-footer{margin-top:4px}}@media(max-height:500px) and (orientation:landscape){.home{grid-template-columns:1fr 350px;grid-template-rows:1fr 70px;overflow:auto;display:grid;padding-bottom:15px}.home-copy{min-height:200px}.home-copy h1{font-size:28px}.home-stage{margin-bottom:0;padding:16px}.home-copy p{font-size:10px}.chapters,.home-footer,.chapter-meta,.home-hint{display:none}.bottom-nav{margin-top:15px}.modal>section{max-height:90vh}#boss-bar{top:30px}.abilities{bottom:18px}.meters{max-width:380px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

@media(max-width:600px){#joystick,#manual-fire,#touch-tip{display:block}.chapter-details p{font-size:12px}.bottom-nav b{font-size:11px}.home-hint{font-size:10px}.home-copy p{font-size:12px;max-width:68%}.chapter b{font-size:10px}.hero-name{bottom:11px}.upgrade-card>small{font-size:12px}.upgrade-card>b{font-size:14px}.list-row small{font-size:12px}.list-row b{font-size:14px}.list-row button{min-height:44px}.abilities b{font-size:11px}.abilities small{font-size:10px}.modal p{font-size:14px}.guide-list p{font-size:12px}.home-footer button{min-height:35px}}

textarea{display:block;width:100%;min-height:120px;border:1px solid #ac839344;border-radius:10px;background:#191520;color:#d7c2d5;resize:vertical;padding:12px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}textarea:focus-visible{outline:2px solid #ffd094;outline-offset:3px}

.modal>section:focus{outline:none}

@media(pointer:coarse){.modal{backdrop-filter:none;background:#0c0913e8}.home-stage,.bottom-nav button,.abilities button{backdrop-filter:none}}

.native .modal{backdrop-filter:none!important;background:#15111d}.native .home-stage,.native .bottom-nav button,.native .abilities button{backdrop-filter:none!important}

.codex-row>canvas{width:78px;height:70px;flex-shrink:0;image-rendering:pixelated}.codex-row em{font-size:10px;font-style:normal;color:#eac296;margin-left:6px}.codex-row small{line-height:1.7}.codex-row{padding:12px;gap:10px}.home-footer{gap:12px}@media(max-width:600px){.home-footer{gap:9px}.home-footer>span{font-size:6px}.codex-row>canvas{width:66px;height:65px}.codex-row em{display:block;margin:5px 0 0}.codex-row small{font-size:11px}}
.relic-loadout{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;background:#a78bc00c;color:#c8b4d2;border:1px solid #b88eaf1c;border-radius:7px;margin-top:14px;padding:9px;font-size:11px}.relic-loadout svg{width:15px;height:15px;color:#e8bc83}.home-hint{margin-top:12px}.summon-nav{border-color:#e7b77d44!important}.summon-wallet{display:flex;justify-content:space-between;background:#19151f66;border:1px solid #ffffff0d;border-radius:10px;padding:13px 15px;color:#b7a3ba;font-size:13px}.summon-wallet b{color:#ffe0a4;font-size:16px;margin-left:8px}.summon-scene{height:218px;position:relative;display:flex;justify-content:center;align-items:center;isolation:isolate;overflow:hidden;margin:9px -10px 0;background:radial-gradient(ellipse at 50% 70%,#ffac5b20,transparent 60%)}.summon-orbit{position:absolute;width:250px;height:75px;border:1px solid #e9b27830;border-radius:50%;bottom:29px;transform:rotate(-9deg);box-shadow:0 0 35px #f6aa5a0e,inset 0 0 25px #f6aa5a0e}.summon-orbit:after{content:'✧　 ·　 ✦　 ·　 ✧';position:absolute;inset:15px 0;text-align:center;color:#f8c98c88;font-size:17px;letter-spacing:13px;transform:rotate(9deg)}.summon-altar{position:absolute;width:165px;height:50px;bottom:31px;border-radius:50%;background:linear-gradient(#5e4b59 0 25%,#352c3e 28% 73%,#241e2d 75%);border:1px solid #ab8c7933;box-shadow:0 16px 30px #0005;z-index:-1}.summon-altar:before{content:'';position:absolute;inset:5px 10px 20px;border:1px solid #e9b27855;border-radius:50%}.summon-egg{position:relative;width:98px;height:126px;border-radius:50% 50% 45% 45%/62% 62% 38% 38%;background:radial-gradient(ellipse at 35% 25%,#ffe1a7,#d59c83 42%,#9d657d 70%,#684561);border:3px solid #442c42;box-shadow:inset 6px 7px 0 #fff1b12b,inset -8px -10px 0 #41273d44,0 0 45px #f4a75f25;transform:translateY(-16px);display:grid;place-items:center;color:#ffe7ad;font-size:33px;animation:egg-float 3s ease-in-out infinite;padding:0}.summon-egg i{position:absolute;left:20%;top:35%;width:60%;height:36%;border:2px solid #ffdfad88;transform:rotate(45deg);border-radius:14px;box-shadow:0 0 14px #ffcc9c33}.summon-egg>span{z-index:1;font-size:33px;color:#ffe6ac;text-shadow:0 0 20px #ffd99c}.summon-egg.awake{cursor:pointer;animation:egg-wake 1.4s ease-in-out infinite;border-color:#ecc28c;box-shadow:0 0 50px #ffd48555,inset 0 0 20px #fff0bf33}.summon-egg.awake i{border-style:dashed}.summon-motes{position:absolute;bottom:178px;color:#ffd9a7aa;font-size:11px;letter-spacing:12px;animation:egg-float 4s ease-in-out infinite;pointer-events:none}.summon-intro{text-align:center;font-size:13px!important;margin:0 0 14px!important;line-height:1.9!important}.summon-pity{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#a995af;margin-top:20px}.summon-pity b{color:#f3c897;font-weight:500}.summon-links{display:flex;justify-content:center;gap:10px;margin-top:19px}.summon-links button{padding:10px 16px;min-height:40px;border:1px solid #e8bd8d22;border-radius:7px;background:#b98aa50c;font-size:12px;color:#d0b5cd}.summon-note{text-align:center;line-height:1.85!important}.relic-mark{--relic-color:#ffcd90;width:43px;height:43px;display:inline-flex;align-items:center;justify-content:center;color:var(--relic-color);border:1px solid color-mix(in srgb,var(--relic-color) 40%,transparent);background:radial-gradient(circle,color-mix(in srgb,var(--relic-color) 15%,transparent),#19151f80);border-radius:11px;flex-shrink:0}.relic-mark svg{width:25px;height:25px;filter:drop-shadow(0 0 8px color-mix(in srgb,var(--relic-color) 25%,transparent))}.relic-mark.large{width:117px;height:117px;border-radius:28px;transform:rotate(-7deg);box-shadow:0 0 50px color-mix(in srgb,var(--relic-color) 15%,transparent),inset 0 0 40px color-mix(in srgb,var(--relic-color) 8%,transparent)}.relic-mark.large svg{width:69px;height:69px;transform:rotate(7deg);stroke-width:1.2}.relic-reveal{--relic-color:#ffce96;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 0 15px;overflow:hidden;isolation:isolate;min-height:220px;animation:reveal-in .5s ease-out}.reveal-rays{position:absolute;width:270px;height:270px;border-radius:50%;background:repeating-conic-gradient(from 0deg,color-mix(in srgb,var(--relic-color) 11%,transparent) 0deg 8deg,transparent 8deg 24deg);mask-image:radial-gradient(circle,#000 30%,transparent 70%);z-index:-1;animation:rays-turn 45s linear infinite}.relic-tier{color:var(--relic-color);font-size:12px;letter-spacing:3px;margin-top:30px}.relic-story{text-align:center;font-size:13px!important;margin:8px 0 20px!important;font-style:italic}.relic-effect{text-align:center;color:#ffe3b5;border:1px solid #d5aa6d33;border-radius:10px;background:#bc8b5112;padding:17px;font-size:16px;font-weight:600;line-height:1.7}.duplicate-note{text-align:center;font-size:12px!important}.duplicate-note b{color:#ffe0a4}.relic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.relic-card{padding:15px 12px;background:#17131f55;border:1px solid #ffffff10;border-radius:11px;display:flex;flex-direction:column;min-width:0}.relic-card.equipped{border-color:var(--relic-color);box-shadow:inset 0 0 25px color-mix(in srgb,var(--relic-color) 6%,transparent)}.relic-card.locked .relic-mark{opacity:.45}.relic-card-top{display:flex;justify-content:space-between;align-items:start;gap:6px;margin-bottom:14px}.relic-card-top>span:last-child{font-size:10px;color:var(--relic-color);margin-top:4px}.relic-card>b{font-size:13px;line-height:1.6}.relic-card p{font-size:11px!important;line-height:1.7!important;flex:1;margin:9px 0 13px}.relic-card button{min-height:38px;background:#b18a5b12;border:1px solid #d9b58833;border-radius:6px;color:#e9c695;font-size:11px;padding:8px 5px}.rate-table{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:20px 0}.rate-table>div{border:1px solid #ffffff12;border-radius:9px;padding:12px 8px;text-align:center}.rate-table span{display:block;font-size:12px}.rate-table b{display:block;font-size:22px;margin:9px 0}.rate-table small{font-size:10px;color:#a892ae;line-height:1.7;display:block}.summon-history{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #ffffff0a;padding:12px 0;font-size:13px}.summon-history small{font-size:10px;color:#a995b1}.seed-reward{display:flex;align-items:center;gap:10px;border:1px solid #c6ac8540;background:#9b734710;border-radius:9px;margin-top:11px;padding:13px;font-size:13px;color:#d6c0ba}.seed-reward b{color:#ffe3a3;font-size:22px}.seed-reward small{margin-left:auto;color:#a791a5;font-size:9px}.relic-equipped{border-color:currentColor!important;box-shadow:0 0 12px #d4aa5930}@keyframes egg-float{50%{transform:translateY(-24px)}}@keyframes egg-wake{0%,100%{transform:translateY(-16px) rotate(-4deg)}50%{transform:translateY(-22px) rotate(4deg)}}@keyframes rays-turn{to{transform:rotate(360deg)}}@keyframes reveal-in{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}.reduced .summon-egg,.reduced .summon-motes,.reduced .reveal-rays,.reduced .relic-reveal{animation:none!important}@media(max-width:600px){.relic-loadout{font-size:10px;margin-top:12px;padding:7px}.summon-scene{height:185px;margin-top:5px}.summon-egg{width:82px;height:108px}.summon-altar{width:145px;height:44px}.summon-orbit{width:220px;height:65px}.summon-motes{bottom:157px}.summon-pity{font-size:10px;gap:8px}.summon-wallet{font-size:12px;padding:11px}.summon-wallet b{font-size:15px}.summon-intro{font-size:12px!important}.relic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.relic-card{padding:13px}.relic-card>b{font-size:13px}.relic-card p{font-size:12px!important}.relic-card button{min-height:43px;font-size:12px}.rate-table{gap:5px}.rate-table b{font-size:19px}.rate-table small{font-size:9px}.rate-table>div{padding:12px 5px}.summon-links{gap:8px}.summon-links button{font-size:11px;padding:9px 12px}.seed-reward small{font-size:8px;max-width:130px;line-height:1.7}.relic-effect{font-size:15px}.relic-reveal{min-height:195px;padding-top:16px}}@media(prefers-reduced-motion:reduce){.summon-egg,.summon-motes,.reveal-rays,.relic-reveal{animation:none!important}}
.abilities #battle-draw{width:118px;height:148px;border-radius:15px;background:linear-gradient(155deg,#6c4b49,#2f263b);border:1px solid #f0c18b88;overflow:visible;box-shadow:0 6px 25px #0005}.abilities #battle-draw.ready{border-color:#ffda9f;box-shadow:0 0 25px #ffba5425,0 5px 20px #0005}.abilities #battle-draw:disabled{opacity:.65;cursor:default}.abilities #battle-draw>b{font-size:13px;margin-top:5px;color:#ffe5bf}.abilities #battle-draw>small{font-size:11px;color:#d0b9c6}.abilities #battle-draw>em{position:absolute;top:7px;right:8px;font-style:normal;font-size:10px;color:#d8bb9a}.draw-deck{width:60px;height:62px;position:relative;display:block;margin-top:4px}.draw-deck i{position:absolute;left:11px;top:4px;width:39px;height:52px;border-radius:7px;border:1px solid #dab285;background:#40303e;transform:rotate(-13deg);display:grid;place-items:center}.draw-deck i:nth-child(2){transform:rotate(11deg);background:#694c4b}.draw-deck i:nth-child(3){transform:rotate(-2deg);background:linear-gradient(#9c7160,#5c3e50);box-shadow:0 2px 8px #0005}.draw-deck svg{width:27px!important;height:27px!important;color:#ffe5ab!important}.draw-meter{height:4px;width:75%;overflow:hidden;border-radius:4px;background:#231c2b;margin-top:12px;position:relative}.abilities #battle-draw .draw-meter i{width:100%;height:100%;display:block;position:relative;background:#ffd28e;bottom:auto}.abilities #battle-draw.drawing .draw-deck{animation:card-shuffle .35s ease-in-out infinite}.battle-result{--card-color:#ffca8f;position:absolute;top:185px;right:27px;width:290px;display:flex;gap:14px;align-items:center;border:1px solid #d2a77a44;background:#241b2eea;border-radius:13px;padding:16px;opacity:0;transform:translateY(8px);transition:opacity .18s,transform .18s;pointer-events:none;box-shadow:0 8px 35px #0004}.battle-result.drawing,.battle-result.revealed{opacity:1;transform:translateY(0)}.draw-card-face{width:57px;height:79px;border:1px solid var(--card-color);border-radius:8px;display:grid;place-items:center;flex-shrink:0;background:linear-gradient(#ffffff0a,#ffffff00);color:var(--card-color)}.draw-card-face svg{width:33px;height:33px}.battle-result small{font-size:10px;letter-spacing:1px;color:var(--card-color)}.battle-result b{display:block;font-size:20px;margin-top:7px;color:#ffebd5}.battle-result p{font-size:11px;line-height:1.7;color:#bca8be;margin:9px 0 0}.battle-result.drawing .draw-card-face{animation:card-shuffle .35s infinite}.battle-history{position:absolute;right:28px;top:145px;display:flex;gap:5px;align-items:center;height:28px}.battle-history>span{border:1px solid currentColor;border-radius:4px;width:22px;height:29px;background:#2b2037;padding:4px;opacity:.8}.battle-history svg{width:100%;height:100%}.battle-history b{color:#ffce8e;font-size:12px;margin-left:6px}#battle-shield{position:absolute;left:28px;top:210px;font-size:12px;color:#d5b8ee}.battle-help{position:absolute;bottom:56px;left:28px;background:#302434bb;color:#d7bda8;border:1px solid #bd957533;border-radius:6px;pointer-events:auto;padding:8px 12px;font-size:11px}#manual-fire{right:280px;bottom:40px;width:50px;height:50px}.reduced .draw-deck,.reduced .draw-card-face{animation:none!important}@keyframes card-shuffle{50%{transform:translateY(-4px) rotate(7deg)}}@media(max-width:600px){.abilities #battle-draw{position:absolute;right:0;bottom:110px;width:116px;height:134px;border-radius:13px}.abilities #battle-draw>b{font-size:12px}.abilities #battle-draw>small{font-size:10px}.draw-deck{height:53px;width:60px}.draw-deck i{height:45px;width:35px;left:13px}.draw-deck svg{width:23px!important;height:23px!important}.draw-meter{margin-top:8px}.battle-result{top:190px;right:17px;width:224px;gap:11px;padding:12px}.draw-card-face{width:44px;height:63px}.draw-card-face svg{width:27px;height:27px}.battle-result b{font-size:17px}.battle-result small{font-size:9px}.battle-result p{font-size:10px;margin-top:6px}.battle-history{right:17px;top:142px}.battle-history>span{width:19px;height:25px}.battle-history b{font-size:10px}#battle-shield{left:17px;top:230px;font-size:10px}#manual-fire{right:153px;bottom:calc(166px + var(--safe-bottom));width:43px;height:43px}.battle-help{bottom:calc(10px + var(--safe-bottom));left:auto;right:24px;font-size:10px;padding:5px 8px}#combo{top:165px;right:19px;font-size:17px}.battle-result.drawing~.battle-help{opacity:.6}}@media(prefers-reduced-motion:reduce){.draw-deck,.draw-card-face{animation:none!important}}
.abilities #battle-draw .draw-deck i{position:absolute;left:11px;top:4px;bottom:auto;width:39px;height:52px;border-radius:7px;background:#40303e}.abilities #battle-draw .draw-deck i:nth-child(2){background:#694c4b}.abilities #battle-draw .draw-deck i:nth-child(3){background:linear-gradient(#9c7160,#5c3e50)}@media(max-width:600px){.abilities #battle-draw .draw-deck i{height:45px;width:35px;left:13px}}
#room-objective{position:absolute;left:28px;top:135px;width:min(470px,55%);background:#211b2bd9;border:1px solid #bca28125;border-radius:10px;padding:11px 13px;pointer-events:none}#room-objective>div:first-child{display:flex;align-items:center;gap:9px}#room-name{font-size:13px;color:#f2cea8}#deck-count{font-size:10px;color:#ad99b1;margin-left:auto}#run-paths{display:flex;gap:5px}#run-paths>span{display:inline-flex}#run-paths svg{width:15px;height:15px}#room-detail{display:block;color:#b5a1b8;font-size:11px;line-height:1.6;margin-top:6px}.room-meter{height:3px;background:#35293f;margin-top:7px;border-radius:3px;overflow:hidden}.room-meter i{height:100%;display:block;background:#f1c285;width:0;transition:width .1s}.run-build{top:235px}#boss-bar{top:235px}.battle-result{top:245px}.path-card>span{color:var(--path-color);border-color:var(--path-color)}.path-card>b{color:var(--path-color)}.path-spells{border-top:1px solid #ffffff10;margin-top:15px;padding-top:12px;display:grid;gap:11px}.path-spells>div{display:flex;gap:7px;align-items:center;font-size:11px;line-height:1.4;color:#c3afc5}.path-spells svg{color:var(--path-color);width:17px;height:17px;flex-shrink:0}.path-card{min-height:280px}.spell-locked{opacity:.55}.pack-label{font-size:10px;font-style:normal;color:#c39fdc;display:inline-block;margin-left:5px}@media(max-width:600px){#room-objective{top:115px;left:17px;right:17px;width:auto;padding:9px 11px}#room-name{font-size:12px}#room-detail{font-size:10px;margin-top:4px}#deck-count{font-size:9px}.room-meter{margin-top:5px}.battle-history{top:195px}.run-build{top:195px;max-width:110px}#boss-bar{top:242px;left:20%;right:20%}.battle-result{top:260px}#combo{top:225px}.path-cards{gap:8px}.path-card{padding:15px 10px;min-height:290px}.path-card>span{margin-bottom:16px}.path-card>b{font-size:14px}.path-card>small{font-size:11px}.path-spells{gap:12px}.path-spells>div{font-size:10px;gap:5px}.path-spells svg{width:14px;height:14px}#battle-shield{top:245px}}@media(max-width:360px){.path-cards{flex-direction:column}.path-card{min-height:0;display:grid;grid-template-columns:35px 1fr;gap:5px 12px}.path-card>span{grid-row:1/3;margin:0;width:35px;height:35px}.path-spells{grid-column:1/3;display:flex;flex-wrap:wrap;padding-top:8px;margin-top:6px}}

#manual-fire{display:flex!important;width:86px;height:86px;right:155px;bottom:calc(145px + var(--safe-bottom));touch-action:none;border:2px solid #ffc986;background:#8b403b99;box-shadow:0 0 24px #ffab6133}#manual-fire:after{content:"AIM / CHARGE";position:absolute;bottom:-23px;font-size:12px;color:#ffdaad;white-space:nowrap} @media(min-width:601px){#manual-fire{display:none!important}}
/* Three-way choice ceremony. All decoration is pointer-transparent. */
#modal-panel[data-kind="upgrade"],#modal-panel[data-kind="attunement"]{position:relative;isolation:isolate;width:860px;padding:32px 36px 26px;overflow-x:hidden;border-color:#eac38d55;background:radial-gradient(ellipse at 50% 0,#76503e55,transparent 65%),linear-gradient(145deg,#292332,#171722);box-shadow:0 0 0 5px #e6b87e08,0 24px 100px #000a,0 0 100px #db926321}
#modal-panel[data-kind="upgrade"] .modal-head,#modal-panel[data-kind="attunement"] .modal-head{text-align:center;display:block;margin-bottom:8px;position:relative;z-index:1}
#modal-panel[data-kind="upgrade"] h2,#modal-panel[data-kind="attunement"] h2{color:#fff0d6;font-size:30px;text-shadow:0 0 30px #ffbc7855}
#modal-panel[data-kind="upgrade"] .eyebrow,#modal-panel[data-kind="attunement"] .eyebrow{color:#eac995;font-size:11px;letter-spacing:2.5px}
.choice-intro{text-align:center;margin:8px 0 25px!important;font-size:14px!important;position:relative;z-index:1}.choice-aura{position:absolute;inset:0;overflow:hidden;z-index:-1;pointer-events:none;border-radius:inherit}.choice-aura>i{position:absolute;width:480px;height:480px;left:50%;top:44%;margin:-240px;border:1px solid #edbe7d18;border-radius:50%;animation:choice-orbit 32s linear infinite}.choice-aura>i:nth-child(2){width:380px;height:380px;margin:-190px;border-style:dashed;animation-direction:reverse}.choice-aura>i:nth-child(3){width:600px;height:600px;margin:-300px;border:1px dashed #dbac7410}.choice-aura>span{position:absolute;left:var(--spark-x);bottom:-10px;width:3px;height:3px;background:#ffdb9d;box-shadow:0 0 12px #ffc47c;border-radius:50%;animation:choice-ember var(--spark-time) var(--spark-delay) linear infinite}
.choice-cards{position:relative;z-index:1;perspective:1000px;gap:16px;padding:8px 3px 16px;align-items:stretch}.choice-card{--choice-color:#ffd09a;position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;min-height:296px;padding:32px 16px 19px;border:1px solid color-mix(in srgb,var(--choice-color) 40%,transparent);background:radial-gradient(ellipse at 50% 20%,color-mix(in srgb,var(--choice-color) 15%,transparent),transparent 70%),linear-gradient(165deg,#382e40,#1e1b2a);border-radius:15px;overflow:visible;box-shadow:inset 0 0 0 5px #ffffff03,0 10px 22px #0004;animation:choice-arrive .65s calc(var(--choice-i)*.11s) both cubic-bezier(.18,.8,.25,1);transition:border-color .2s,box-shadow .2s,background .2s;touch-action:manipulation}
.choice-card:hover:not(:disabled),.choice-card:focus-visible{border-color:var(--choice-color);box-shadow:0 0 30px color-mix(in srgb,var(--choice-color) 23%,transparent),inset 0 0 28px color-mix(in srgb,var(--choice-color) 9%,transparent),0 15px 30px #0006;filter:none;background-color:#44344a}.choice-card:active:not(:disabled){scale:.98}.choice-number{position:absolute;top:12px;left:15px;font-size:11px;letter-spacing:2px;color:var(--choice-color);opacity:.7;font-style:normal}.choice-orbit{position:absolute;inset:9px;border:1px solid color-mix(in srgb,var(--choice-color) 12%,transparent);border-radius:10px;pointer-events:none}.choice-orbit:before,.choice-orbit:after{content:'✦';position:absolute;color:var(--choice-color);font-size:13px;top:-9px;left:calc(50% - 6px);background:#302636;padding:0 3px}.choice-orbit:after{top:auto;bottom:-9px;font-size:10px}.choice-shine{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none}.choice-shine:after{content:'';position:absolute;top:-50%;left:-100%;width:55%;height:200%;transform:rotate(24deg);background:linear-gradient(90deg,transparent,#fff2,transparent);animation:choice-sheen 5.8s calc(var(--choice-i)*.35s) ease-in-out infinite}
.choice-card>.choice-sigil{width:74px;height:74px;flex-shrink:0;color:var(--choice-color);background:radial-gradient(circle,color-mix(in srgb,var(--choice-color) 18%,transparent),#191624);border:1px solid color-mix(in srgb,var(--choice-color) 50%,transparent);border-radius:22px;box-shadow:0 0 25px color-mix(in srgb,var(--choice-color) 15%,transparent),inset 0 0 16px #ffffff06;margin-bottom:24px;position:relative;transition:scale .25s}.choice-sigil svg{width:38px;height:38px;filter:drop-shadow(0 0 8px color-mix(in srgb,var(--choice-color) 35%,transparent))}.choice-card:hover .choice-sigil,.choice-card:focus-visible .choice-sigil{scale:1.08}.choice-card>b{font-size:19px;color:#fff0d9;position:relative}.choice-card>small{font-size:14px;color:#c8b8cd;line-height:1.65;margin-top:11px}.choice-card>small.badge,.choice-card>small.choice-new{font-size:11px;color:var(--choice-color);margin:12px 0 0;opacity:.8}.choice-cta{font-style:normal;display:block;font-size:12px;margin-top:auto;padding-top:22px;color:var(--choice-color);opacity:.8;letter-spacing:.3px}.choice-card.path-card{min-height:365px}.choice-card .path-spells{width:100%;margin:17px 0 4px;text-align:left}.choice-card .path-spells>div{padding:5px 0;font-size:12px;display:flex;align-items:center;gap:7px}.choice-card .path-spells svg{width:17px;height:17px;flex-shrink:0;color:var(--choice-color)}.choice-status{text-align:center;min-height:24px;margin-top:6px!important;position:relative;z-index:1;color:#d4bea0!important}
.choice-card>.choice-burst{display:block;position:absolute;width:0;height:0;left:50%;top:42%;margin:0;padding:0;border:0;background:none;pointer-events:none;z-index:4}.choice-burst>i{position:absolute;width:5px;height:5px;border-radius:2px;background:var(--choice-color);opacity:0;box-shadow:0 0 12px var(--choice-color);transform:rotate(var(--angle)) translateX(0)}
.choice-confirming .choice-card{animation:none!important;transition:opacity .25s,transform .4s,filter .3s;pointer-events:none;opacity:.18;transform:scale(.92);filter:saturate(.2)}.choice-confirming .choice-card.is-chosen{opacity:1;filter:none;z-index:3;animation:choice-crowned .65s both cubic-bezier(.2,.7,.2,1)!important;border-color:var(--choice-color);box-shadow:0 0 60px color-mix(in srgb,var(--choice-color) 45%,transparent),inset 0 0 40px color-mix(in srgb,var(--choice-color) 18%,transparent)}.choice-confirming .is-chosen .choice-burst>i{animation:choice-spark .62s .04s both ease-out}.choice-confirming .choice-status{color:var(--selected-color)!important}.choice-confirming .is-chosen .choice-sigil{box-shadow:0 0 45px var(--choice-color);scale:1.1}
@keyframes choice-arrive{from{opacity:0;transform:translateY(38px) rotateY(-18deg) scale(.87)}to{opacity:1;transform:translateY(0) rotateY(0) scale(1)}}@keyframes choice-orbit{to{transform:rotate(360deg)}}@keyframes choice-ember{0%{opacity:0;transform:translateY(0)}15%{opacity:.7}85%{opacity:.4}100%{opacity:0;transform:translate(24px,-530px)}}@keyframes choice-sheen{0%,58%{left:-110%}80%,100%{left:160%}}@keyframes choice-crowned{0%{transform:scale(1)}35%{transform:translateY(-12px) scale(1.08)}100%{transform:translateY(-7px) scale(1.04)}}@keyframes choice-spark{0%{opacity:1;transform:rotate(var(--angle)) translateX(12px) scale(1.5)}100%{opacity:0;transform:rotate(var(--angle)) translateX(var(--distance)) scale(.2)}}
@media(max-width:600px){#modal-panel[data-kind="upgrade"],#modal-panel[data-kind="attunement"]{padding:27px 14px 20px}#modal-panel[data-kind="upgrade"] h2,#modal-panel[data-kind="attunement"] h2{font-size:24px}.choice-intro{font-size:13px!important;margin:10px 4px 20px!important}.choice-cards{gap:8px;padding:7px 0 14px}.choice-card{padding:28px 8px 16px;min-height:265px;border-radius:11px}.choice-card>.choice-sigil{width:54px;height:54px;border-radius:16px;margin-bottom:22px}.choice-sigil svg{width:29px;height:29px}.choice-card>b{font-size:15px;word-break:keep-all}.choice-card>small{font-size:13px;word-break:keep-all}.choice-cta{font-size:10px;padding-top:18px}.choice-number{left:12px;font-size:9px}.choice-card.path-card{min-height:340px}.choice-card .path-spells>div{font-size:10px;gap:4px}.choice-card .path-spells svg{width:13px;height:13px}.choice-status{font-size:12px!important}.choice-aura>i{opacity:.6}}
@media(max-width:360px){.choice-cards{flex-direction:column}.choice-card,.choice-card.path-card{min-height:0;padding:20px 15px 18px 85px;align-items:flex-start;text-align:left}.choice-card>.choice-sigil{position:absolute;left:16px;top:24px;width:48px;height:48px}.choice-number{display:none}.choice-card .choice-cta{padding-top:13px}.choice-card .path-spells{margin-top:10px}.choice-card .path-spells>div{font-size:12px}}
.reduced .choice-card,.reduced .choice-aura>i,.reduced .choice-aura>span,.reduced .choice-shine:after,.reduced .choice-burst>i{animation:none!important;transition:none!important}.reduced .choice-aura>span,.reduced .choice-shine,.reduced .choice-burst{display:none!important}.reduced .choice-confirming .choice-card.is-chosen{animation:none!important;transform:none}.reduced .choice-card:active{scale:1}.reduced .choice-card:hover .choice-sigil{scale:1}
@media(prefers-reduced-motion:reduce){.choice-card,.choice-aura>i,.choice-aura>span,.choice-shine:after,.choice-burst>i{animation:none!important;transition:none!important}.choice-aura>span,.choice-shine,.choice-burst{display:none!important}.choice-confirming .choice-card.is-chosen{animation:none!important;transform:none}}

#evolution-info{display:block;text-align:left;color:#f4d198;background:transparent;border:0;padding:6px 0 0;font-size:11px;pointer-events:auto;width:100%;cursor:pointer}.evolution-row.evolved{border-color:#f3c78155;background:#9b704c13}.evolution-row.evolved b{color:#ffe1a8}@media(max-width:600px){.run-build,.battle-history{top:222px}#boss-bar{top:266px}.battle-result{top:290px}#combo{top:250px}}

.first-steps{text-align:center;padding:24px 12px 30px}.first-steps>span{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;margin:0 auto 20px;background:#ffd19b18;color:#ffd399}.first-steps svg{width:48px;height:48px}.first-steps small{font-size:14px;color:#bfadbd}#lesson-hud{position:absolute;z-index:4;left:50%;top:32%;transform:translateX(-50%);width:min(430px,90vw);padding:18px 22px;border:1px solid #e5be8577;border-radius:14px;background:#211a2aeb;text-align:center;pointer-events:none;box-shadow:0 10px 35px #0005}#lesson-hud small{color:#e6c28f;font-size:12px}#lesson-hud b{display:block;font-size:22px;margin:10px 0;color:#ffecd1}#lesson-hud p{font-size:14px;line-height:1.7;color:#cbbbcf;margin:8px 0}#lesson-hud button{pointer-events:auto;color:#cdbba7;background:transparent;border-bottom:1px solid #cdbba755;padding:7px;font-size:12px}@media(max-width:600px){#lesson-hud{top:28%;padding:13px 16px}#lesson-hud b{font-size:19px}}

#ad-cover{position:fixed;inset:0;z-index:9999;background:#17151f;display:grid;place-items:center;color:#e4c599;font-size:16px;pointer-events:auto}

.practicing #room-objective,.practicing .desktop-help,.practicing .battle-help,.practicing #dash,.practicing #burst,.practicing #touch-tip,.practicing .run-build{display:none!important}

#lesson-hud{top:18%}@media(max-width:600px){#lesson-hud{top:22%}}

/* English labels wrap without crowding touch targets. */
.chapter-meta{flex-wrap:wrap}.bottom-nav b,.bottom-nav small{overflow-wrap:break-word}.bottom-nav button{min-width:0}.home-hint{line-height:1.5}.choice-card small{line-height:1.5}.summon-pity span{line-height:1.6}.home-footer{flex-wrap:wrap;row-gap:5px}.brand small{letter-spacing:1px}

.play{display:grid;grid-template-columns:minmax(0,1fr) 24px;column-gap:12px;row-gap:4px;text-align:left}.play>span{grid-column:1;grid-row:1;white-space:nowrap;font-size:18px}.play>small{grid-column:1;grid-row:2;text-align:left}.play>b{grid-column:2;grid-row:1 / 3;align-self:center}

@media(max-width:600px){.home-copy p{max-width:60%;line-height:1.7}}

/* Two-thumb combat layout; left movement stays independent of right-hand abilities. */
@media (pointer:coarse),(max-width:600px),(max-width:1000px) and (max-height:500px){
 body.playing #hud{touch-action:none;-webkit-user-select:none;user-select:none}
 .abilities{display:contents!important}
 #manual-fire{display:flex!important;position:absolute;right:calc(20px + env(safe-area-inset-right));bottom:calc(54px + var(--safe-bottom));width:88px;height:88px;align-items:center;justify-content:center;padding:0 0 12px;border-radius:50%;z-index:8;touch-action:none}
 #manual-fire svg{width:38px;height:38px;pointer-events:none}
 #manual-fire:after{content:'ATTACK';bottom:10px;font-size:9px;letter-spacing:.8px;pointer-events:none}
 .abilities #battle-draw,.abilities #dash,.abilities #burst{position:absolute;z-index:8;margin:0;padding:7px 3px;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;touch-action:none;pointer-events:auto;overflow:hidden;box-shadow:0 3px 15px #0004}
 .abilities #battle-draw{right:calc(24px + env(safe-area-inset-right));bottom:calc(162px + var(--safe-bottom));width:64px;height:68px;border-radius:18px;border-width:1.5px}
 .abilities #dash{right:calc(122px + env(safe-area-inset-right));bottom:calc(38px + var(--safe-bottom));width:62px;height:62px;border-radius:50%}
 .abilities #burst{right:calc(122px + env(safe-area-inset-right));bottom:calc(120px + var(--safe-bottom));width:60px;height:60px;border-radius:50%}
 .abilities #battle-draw b,.abilities #dash b,.abilities #burst b{font-size:10px;line-height:1.1;white-space:nowrap;margin:0}
 .abilities #battle-draw small,.abilities #dash small,.abilities #burst small{font-size:9px;line-height:1.1;margin:0}
 .abilities #burst>b{font-size:0}.abilities #burst>b:after{content:'Burst';font-size:10px}
 .abilities #battle-draw em{display:none}.abilities #battle-draw .draw-deck{width:23px;height:21px;margin:0;flex-shrink:0}
 .abilities #battle-draw .draw-deck i{width:19px;height:23px;left:2px;top:0;border-radius:5px}
 .abilities #battle-draw .draw-deck i:first-child,.abilities #battle-draw .draw-deck i:nth-child(2){display:none}
 .abilities #battle-draw .draw-deck svg{width:17px;height:17px}
 .abilities #battle-draw .draw-meter{height:3px;width:42px;margin:2px 0 0;flex-shrink:0}
 .abilities #burst>span,.abilities #dash>span{width:22px;height:22px;margin:0}.abilities #burst svg,.abilities #dash svg{width:22px;height:22px}
 .abilities #burst>i{position:absolute;bottom:0;left:0;height:3px}
 #joystick{display:block;left:max(24px,env(safe-area-inset-left));bottom:calc(42px + var(--safe-bottom));width:110px;height:110px;z-index:6;pointer-events:none}
 #joystick>span{display:none}#touch-tip,.battle-help,.desktop-help{display:none!important}
 .battle-result,.battle-result.drawing,.battle-result.revealed{transform:translateX(-50%);right:auto;max-width:calc(100vw - 32px)}
 .battle-result{top:235px;left:50%;width:min(300px,80vw);pointer-events:none}
 #room-objective{top:104px;padding:8px 11px;left:16px;right:16px;max-width:none;font-size:12px}
 #room-objective small{font-size:11px;line-height:1.4}#room-objective b{font-size:13px}
 #evolution-info{font-size:10px;padding-top:4px}.room-meter{height:3px}
 .run-build,.battle-history{top:195px}#boss-bar{top:220px}#combo{top:210px}
}
@media (pointer:coarse) and (max-height:500px) and (orientation:landscape),(max-width:1000px) and (max-height:500px) and (orientation:landscape){
 #manual-fire{right:calc(22px + env(safe-area-inset-right));bottom:calc(22px + var(--safe-bottom));width:80px;height:80px}
 .abilities #battle-draw{right:calc(29px + env(safe-area-inset-right));bottom:calc(118px + var(--safe-bottom));width:60px;height:64px}
 .abilities #dash{right:calc(122px + env(safe-area-inset-right));bottom:calc(22px + var(--safe-bottom))}.abilities #burst{right:calc(122px + env(safe-area-inset-right));bottom:calc(104px + var(--safe-bottom))}
 #joystick{bottom:calc(22px + var(--safe-bottom))}#room-objective{top:104px;left:16px;right:auto;width:min(330px,46vw)}
 .meters{margin-top:8px}.run-build,.battle-history{display:none}#boss-bar{top:112px;left:50%;width:32%;transform:none}.battle-result{top:165px;width:260px}#lesson-hud{top:22%;max-width:360px}
}

/* Keep the held spell readable until the player casts it. */
.battle-result.held{opacity:1;transform:none;border-color:var(--card-color)}
.abilities #battle-draw.holding{border-color:var(--held-color);box-shadow:0 0 14px color-mix(in srgb,var(--held-color) 35%,transparent)}
.abilities #battle-draw.holding>small{white-space:normal;overflow-wrap:anywhere;line-height:1.1;color:var(--held-color)}
.battle-result.held small{letter-spacing:0;font-size:10px}
@media(pointer:coarse),(max-width:600px){.battle-result.held{width:205px;padding:8px;gap:8px}.battle-result.held .draw-card-face{width:27px;height:38px}.battle-result.held .draw-card-face svg{width:20px;height:20px}.battle-result.held b{font-size:13px;margin-top:3px}.battle-result.held small{font-size:9px}.battle-result.held p{font-size:10px;line-height:1.3;margin-top:3px}}

/* Preserve centering while showing a held spell on narrow screens. */
@media(pointer:coarse),(max-width:600px){.battle-result.held{transform:translateX(-50%)}}
