
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Shippori+Mincho:wght@500;600;700&display=swap');
:root{--bg:#10141c;--panel:#1a202b;--panel2:#202936;--line:#35404d;--muted:#9ba6b1;--text:#f2eee5;--red:#cb5b59;--gold:#d7b875;--green:#84b89b;--blue:#83a9c9}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% -10%,#303744 0,#171c26 38%,#10141c 75%);color:var(--text);font:15px 'Zen Kaku Gothic New',sans-serif;min-height:100vh}button{font:inherit;color:inherit;cursor:pointer}.wrap{max-width:1180px;margin:auto;padding:22px 28px 48px}.top{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff18;padding:5px 0 19px}.brand{display:flex;align-items:center;gap:13px}.crest{width:42px;height:42px;border:1px solid #d7b87588;border-radius:50%;display:grid;place-items:center;color:var(--gold);font-size:25px}.brand h1{font:600 20px 'Shippori Mincho',serif;letter-spacing:.18em;margin:0}.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.2em;margin-top:3px}.top-right{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:13px}.save{border:1px solid var(--line);background:none;padding:7px 11px;border-radius:8px;color:#d4d8d9}.layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;margin-top:20px}.side{display:flex;flex-direction:column;gap:14px}.card{background:linear-gradient(145deg,#202733,#191f29);border:1px solid #ffffff13;border-radius:13px;padding:17px;box-shadow:0 12px 35px #0002}.profile{position:relative;overflow:hidden}.profile:after{content:'⛩';position:absolute;right:-5px;top:18px;font-size:101px;color:#d7b8750b}.eyebrow{font-size:11px;letter-spacing:.2em;color:var(--gold);font-weight:700}.profile h2{font:600 19px 'Shippori Mincho',serif;margin:9px 0 2px}.level{color:var(--muted);font-size:13px}.xpbar,.bar{height:7px;border-radius:8px;background:#0c1118;overflow:hidden}.xpbar{margin:13px 0 5px}.xpbar i,.bar i{display:block;height:100%;background:linear-gradient(90deg,#ae8053,#e2c986);border-radius:8px;transition:width .3s}.minor{font-size:11px;color:var(--muted);display:flex;justify-content:space-between}.stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}.stat{background:#11172088;padding:9px 10px;border-radius:8px}.stat span{display:block;color:var(--muted);font-size:11px}.stat b{font-size:16px}.section-title{font:600 14px 'Shippori Mincho',serif;margin:0 0 12px}.gear-row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #ffffff10;font-size:12px}.gear-row:last-child{border:0;padding-bottom:0}.gear-row span{color:var(--muted)}.gear-row b{color:#e9d7ac;font-weight:500}.inventory{font-size:12px;color:var(--muted);line-height:1.8}.main{min-width:0}.heading{display:flex;justify-content:space-between;align-items:end;margin:2px 2px 13px}.heading h2{font:600 22px 'Shippori Mincho',serif;margin:3px 0 0}.heading p{margin:0;color:var(--muted);font-size:12px}.course{display:flex;align-items:center;gap:11px}.course-mark{color:var(--gold);font-size:23px;border:1px solid #d7b87555;border-radius:9px;padding:5px 10px}.battle{min-height:368px;position:relative;overflow:hidden;background:linear-gradient(180deg,#252c35 0%,#252b32 46%,#35302a 100%);border:1px solid #ffffff17;border-radius:14px}.battle:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 90%,#c69b572b,transparent 44%),linear-gradient(0deg,#10141caa,transparent 43%);pointer-events:none}.battle-top{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:flex-start;padding:18px}.battle-tag{background:#10141caa;border:1px solid #ffffff1c;border-radius:20px;padding:6px 11px;font-size:11px;color:#d9d6ce}.enemy-info{width:220px;margin-left:auto;text-align:right}.enemy-info h3{font:600 17px 'Shippori Mincho',serif;margin:0 0 5px}.enemy-info small{color:#bbc1c2;font-size:11px}.bar{height:6px;margin-top:9px;background:#13171b}.bar i{background:linear-gradient(90deg,#b84e4c,#e17465)}.enemy-hp-label{display:flex;justify-content:space-between;font-size:11px;margin-top:4px;color:#d7d6d1}.stage{position:absolute;inset:65px 0 46px;display:grid;place-items:center}.enemy-art{font-size:116px;filter:drop-shadow(0 12px 17px #0007);animation:float 3.4s ease-in-out infinite;user-select:none}.enemy-art.hit{animation:shake .27s}.@keyframes float{50%{transform:translateY(-7px)}}@keyframes shake{25%{transform:translateX(-12px)}75%{transform:translateX(12px)}}.intent{position:absolute;z-index:1;bottom:15px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#111720dc;border:1px solid #ffffff20;padding:8px 14px;border-radius:20px;font-size:12px;color:#e5d7b8}.idle-stage{text-align:center;max-width:390px;z-index:1}.idle-stage .seal{font-size:73px;color:#d7b8756b;line-height:1}.idle-stage h3{font:600 20px 'Shippori Mincho',serif;margin:7px}.idle-stage p{color:#b8bdc0;font-size:13px;line-height:1.8}.start{margin-top:9px;background:#b08b52;border:0;color:#16191d;padding:11px 26px;border-radius:8px;font-weight:700;box-shadow:0 4px 18px #0003}.start:hover,.cmd:hover{filter:brightness(1.13);transform:translateY(-1px)}.battle-bottom{position:absolute;z-index:1;bottom:0;left:0;right:0;padding:13px 18px;background:linear-gradient(0deg,#111720e8,#11172000);display:flex;justify-content:space-between;align-items:center;color:#c7c7c1;font-size:12px}.battle-bottom b{color:#f1dcae}.combat-ui{margin-top:13px;display:grid;grid-template-columns:1.1fr 1fr;gap:13px}.commands,.log{background:var(--panel);border:1px solid #ffffff13;border-radius:12px;padding:14px}.command-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.command-head h3{margin:0;font:600 14px 'Shippori Mincho',serif}.command-head span{font-size:11px;color:var(--muted)}.cmdgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cmd{display:flex;align-items:center;gap:9px;background:#242d39;border:1px solid #ffffff14;border-radius:9px;padding:10px;text-align:left;transition:.15s}.cmd:disabled{opacity:.4;cursor:not-allowed;transform:none}.cmd[data-action="flee"]{grid-column:1/-1;min-height:58px;justify-content:center;border-color:#98585488;background:linear-gradient(110deg,#38272d,#2c2931);font-size:14px}.cmd[data-action="flee"] .ico{color:#f09b87}.cmd .ico{font-size:20px;width:26px;text-align:center}.cmd b{display:block;font-size:12px}.cmd small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.log{height:147px;overflow:hidden}.logline{font-size:12px;line-height:1.65;color:#c2c7c8;padding:3px 0;border-bottom:1px solid #ffffff0b}.logline:first-of-type{color:#f0dba9}.logline span{color:var(--muted);font-size:10px;margin-right:7px}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,20px);background:#282f39;border:1px solid #d7b87566;border-radius:9px;padding:11px 17px;opacity:0;pointer-events:none;transition:.22s;z-index:9;box-shadow:0 8px 25px #0007}.toast.show{opacity:1;transform:translate(-50%,0)}.shake-screen{animation:screen .25s}@keyframes screen{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}.loot{color:#e8cd8d!important}.foot{text-align:center;color:#69747d;font-size:11px;margin:18px 0 0}
.miko-art{position:absolute;z-index:1;left:13%;bottom:38px;width:132px;height:236px;filter:drop-shadow(0 10px 12px #0006);animation:mikoIdle 3.6s ease-in-out infinite;pointer-events:none}@keyframes mikoIdle{50%{transform:translateY(-4px)}}.miko-art:after{content:''}.battle:has(#activeStage:not([hidden])) .miko-art{animation:mikoReady 1.8s ease-in-out infinite alternate}@keyframes mikoReady{to{transform:translateY(-4px) rotate(-1deg)}}#soundToggle{color:#e5d3a9;border-color:#d7b87566}#soundToggle[aria-pressed="true"]{background:#b08b5230;color:#ffe6a8}.miko-art{left:14%}@media(max-width:780px){.wrap{padding:15px}.layout{grid-template-columns:1fr}.side{display:grid;grid-template-columns:1fr 1fr}.profile{grid-column:1/-1}.battle{min-height:330px}.combat-ui{grid-template-columns:1fr}.log{height:auto;min-height:90px}}@media(max-width:500px){.top-right .save{display:none}.top-right{font-size:11px}.side{grid-template-columns:1fr}.profile{grid-column:auto}.battle{min-height:315px}.enemy-info{width:175px}.enemy-art{font-size:91px}.miko-art{width:98px;height:180px;left:6%;bottom:38px}.idle-stage{max-width:270px;margin-left:36px}.heading{align-items:flex-start;gap:8px}.heading h2{font-size:19px}.heading p{font-size:11px}.course-mark{font-size:19px}.cmd{padding:9px 7px}}


/* Screen layout and game artwork */
.wrap{max-width:1600px;height:100vh;min-height:680px;padding:16px 26px 20px;display:flex;flex-direction:column}.top{flex:none;padding:2px 0 13px}.layout{flex:1;min-height:0;grid-template-columns:286px minmax(0,1fr);gap:18px;margin-top:15px}.side{min-height:0;overflow:auto}.main{min-height:0;display:flex;flex-direction:column;gap:10px}.screen-tabs{display:flex;gap:4px;padding:3px;background:#111720;border:1px solid #ffffff16;border-radius:9px}.screen-tab{border:0;background:transparent;color:#9ba6b1;padding:6px 13px;border-radius:6px;font-size:12px}.screen-tab.active{background:#b08b5230;color:#f1dcae}.prep-screen{position:relative;isolation:isolate;flex:1;min-height:470px;overflow:hidden;display:grid;grid-template-columns:1.06fr .94fr;grid-template-rows:1fr auto;border:1px solid #ffffff18;border-radius:15px;background:radial-gradient(ellipse at 78% 53%,#984f3833,transparent 37%),radial-gradient(ellipse at 22% 84%,#bb9b5724,transparent 50%),linear-gradient(135deg,#252b32,#171b23 70%);box-shadow:0 18px 50px #0003}.prep-screen:before{content:'';position:absolute;inset:0;z-index:-1;opacity:.35;background:repeating-linear-gradient(0deg,transparent 0 46px,#d9c38a0d 47px 48px)}.prep-copy{align-self:center;padding:clamp(24px,4vw,60px);z-index:2}.prep-title{display:flex;gap:16px;align-items:center;margin:15px 0 27px}.prep-seal{width:55px;height:55px;border:1px solid #d7b87577;border-radius:50%;display:grid;place-items:center;color:var(--gold);font-size:29px}.prep-title h2{font:600 clamp(26px,3vw,40px) 'Shippori Mincho',serif;letter-spacing:.08em;margin:0}.prep-title p{color:#b6bdc0;margin:7px 0 0;font-size:14px}.course-panel{display:flex;justify-content:space-between;gap:16px;max-width:600px;padding:18px 20px;border:1px solid #d7b87537;border-radius:11px;background:#11172099}.course-label{font-size:10px;letter-spacing:.2em;color:var(--gold)}.course-panel h3{font:600 18px 'Shippori Mincho',serif;margin:6px 0}.course-panel p{color:#b5bec2;font-size:12px;line-height:1.8;margin:0}.course-range{align-self:center;min-width:100px;color:#abb4b8;font-size:11px;text-align:center}.course-range strong{display:block;font:600 18px 'Shippori Mincho',serif;color:#f1dcae;margin-top:6px}.prep-note{display:grid;gap:4px;margin:20px 0 18px 4px}.prep-note span{color:var(--gold);font-size:11px;letter-spacing:.1em}.prep-note b{font:500 13px 'Shippori Mincho',serif}.prep-note small{color:#9ba6b1;font-size:11px}.enter-training{display:flex;align-items:center;justify-content:space-between;width:min(100%,320px);padding:14px 18px;border:1px solid #e6c980;background:linear-gradient(110deg,#d0ac66,#a77d45);color:#17191d;border-radius:8px;font-weight:700;box-shadow:0 8px 24px #0004;transition:.16s}.enter-training:hover{transform:translateY(-2px);filter:brightness(1.07)}.enter-training span{font-size:24px;line-height:16px}.prep-art{position:relative;min-width:0;overflow:hidden}.prep-art .art-halo{position:absolute;width:min(34vw,490px);aspect-ratio:1;border-radius:50%;left:50%;top:51%;transform:translate(-50%,-50%);background:radial-gradient(circle,#d7b8752a 0,#b3443820 40%,transparent 70%);border:1px solid #d7b87521;box-shadow:0 0 65px #d7b87516}.prep-art>img{position:absolute;bottom:-2%;left:50%;transform:translateX(-50%);height:94%;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 18px 20px #0008)}.nameplate{position:absolute;right:8%;bottom:9%;display:grid;gap:3px;padding:9px 13px;border:1px solid #d7b87540;border-radius:7px;background:#13171de0}.nameplate span{font-size:9px;letter-spacing:.17em;color:var(--gold)}.nameplate b{font:500 13px 'Shippori Mincho',serif}.prep-bottom{grid-column:1/-1;display:flex;justify-content:space-between;padding:12px 22px;border-top:1px solid #ffffff14;background:#10141c88;color:#879198;font-size:10px}.layout .battle{flex:1;min-height:310px}.combat-ui{flex:none;height:158px;grid-template-columns:1.1fr 1fr;gap:10px;margin-top:0}.commands,.log{min-height:0;height:100%;padding:12px}.cmdgrid{gap:6px}.cmd{padding:8px 10px}.command-head{margin-bottom:8px}.logline{font-size:11px;padding:2px 0}.miko-art{position:absolute;z-index:1;left:13%;bottom:43px;width:auto;height:76%;max-width:26%;object-fit:contain;filter:drop-shadow(0 12px 14px #0008);animation:mikoIdle 3.6s ease-in-out infinite;pointer-events:none}.battle:has(#activeStage:not([hidden])) .miko-art{animation:mikoReady 1.8s ease-in-out infinite alternate}.enemy-art{position:absolute;left:69%;bottom:26px;width:auto;height:min(82%,300px);max-width:30%;object-fit:contain;filter:drop-shadow(0 14px 15px #0009);animation:float 3.4s ease-in-out infinite;user-select:none;pointer-events:none}.enemy-art.hit{animation:shake .27s}.vitals{margin-top:13px;display:grid;grid-template-columns:1fr auto;gap:5px 8px;align-items:center}.vitals>div:first-child,.vitals>div:nth-of-type(3){display:contents}.vitals span{font-size:11px;color:#b2bbc0}.vitals b{font-size:11px;color:#eee6d3;text-align:right}.vitalbar{grid-column:1/-1;height:6px;border-radius:9px;overflow:hidden;background:#0d1218;margin-bottom:3px}.vitalbar i{display:block;height:100%;width:100%;border-radius:9px;transition:width .25s}.vitalbar.hp i{background:linear-gradient(90deg,#b64b4d,#ef8971)}.vitalbar.mp i{background:linear-gradient(90deg,#528fa5,#8dd2d1)}.stat b{font-size:14px}.heading{margin:0 2px 2px}.battle{min-height:0}.battle-top{padding:15px 18px}.stage{inset:62px 0 47px}.intent{bottom:8px}.battle-bottom{padding:12px 18px}.foot{display:none}body[data-screen="prep"] .heading,body[data-screen="prep"] #battle,body[data-screen="prep"] .combat-ui{display:none}body[data-screen="battle"] #prepScreen{display:none}
@media(max-width:850px){.wrap{height:auto;min-height:100vh;padding:14px}.layout{height:auto;grid-template-columns:1fr}.side{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.profile{grid-column:1/-1}.main{min-height:720px}.prep-screen{min-height:620px}.prep-copy{padding:28px}.layout .battle{flex:none;height:400px}.combat-ui{height:auto;min-height:158px}.commands,.log{height:158px}}
@media(max-width:560px){.wrap{padding:10px}.top{align-items:flex-start;gap:8px}.brand{gap:7px}.brand h1{font-size:17px}.brand small{font-size:9px}.crest{width:34px;height:34px;font-size:20px}.top-right{gap:5px;flex-wrap:wrap;justify-content:flex-end}.top-right .save{display:none}#soundToggle{display:block!important;padding:6px 8px!important}.screen-tab{padding:6px 9px}.layout{margin-top:10px}.side{grid-template-columns:1fr}.profile{grid-column:auto}.main{min-height:0}.prep-screen{display:flex;flex-direction:column;min-height:650px}.prep-copy{padding:23px 18px 8px}.prep-title{margin:12px 0 17px}.prep-title h2{font-size:26px}.prep-title p{font-size:12px}.course-panel{padding:13px;gap:7px}.course-panel p{font-size:11px}.course-range{min-width:78px}.course-range strong{font-size:16px}.prep-note{margin:13px 0}.prep-art{position:absolute;right:0;bottom:34px;width:57%;height:43%;opacity:.76;pointer-events:none}.prep-art>img{height:100%;left:55%}.prep-art .art-halo{width:100%;top:58%}.nameplate{display:none}.enter-training{z-index:3;position:relative}.prep-bottom{margin-top:auto;font-size:9px;padding:10px}.heading h2{font-size:20px}.heading p{font-size:11px}.layout .battle{height:350px;min-height:350px}.enemy-info{width:145px}.miko-art{height:58%;max-width:32%;left:4%;bottom:42px}.enemy-art{width:clamp(116px,33vw,155px);left:69%;bottom:32px}.stage{inset:60px 0 45px}.intent{font-size:10px;padding:7px 10px;max-width:90%;white-space:normal;text-align:center}.combat-ui{grid-template-columns:1fr}.commands{height:154px}.log{height:100px}.cmd{padding:7px}.cmd small{font-size:9px}}


[hidden]{display:none!important}.battle-vitals{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #ffffff12}.fight-vital>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.fight-vital span{font-size:11px;color:#aeb8bd}.fight-vital b{font-size:12px;color:#f2e8d0}.fight-vital .vitalbar{height:7px;margin:0}.combat-ui{height:194px}.commands{overflow:hidden}.equipment-list{display:grid;gap:6px;margin-top:9px}.equipment-entry{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:7px 8px;background:#11172088;border:1px solid #ffffff10;border-radius:7px;font-size:11px}.equipment-entry span{color:#e5d3a9}.equipment-entry small{color:#aab4ba}.equip-button{border:1px solid #d7b87555;border-radius:5px;color:#e6d4aa;background:#d7b87512;padding:4px 7px;font-size:10px;white-space:nowrap}.equip-button:disabled{opacity:.5}.enhance-box{margin-top:12px;padding-top:10px;border-top:1px solid #ffffff12}.enhance-box h4{font:600 12px 'Shippori Mincho',serif;margin:0 0 7px;color:#ead8b0}.enhance-box select{width:100%;padding:7px 8px;border-radius:6px;border:1px solid #ffffff20;background:#121821;color:#eee8dc;font:inherit;font-size:11px}.enhance-info{font-size:10px;line-height:1.55;color:#aeb7bc;margin:7px 0}.enhance-info b{color:#ead8b0}.enhance-box #enhance{width:100%;border:1px solid #d7b87566;color:#e5d3a9;background:#c19b4d12;padding:7px;border-radius:7px;font-size:11px}.enhance-box #enhance:disabled{opacity:.42;cursor:not-allowed}body[data-screen="battle"] .enhance-box,body[data-screen="battle"] .equipment-list{display:none}.equipment-list:empty{display:none}
@media(max-width:850px){.combat-ui{height:auto;min-height:194px}.commands{height:auto;min-height:194px}.battle-vitals{gap:8px}.equipment-list{max-height:170px;overflow:auto}}
@media(max-width:560px){.combat-ui{min-height:0}.commands{min-height:190px}.battle-vitals{margin-bottom:7px;padding-bottom:7px}.enhance-box{margin-top:10px}.equipment-list{max-height:190px}}


.side-action{display:block;width:100%;margin-top:8px;padding:8px 10px;text-align:left;border:1px solid #ffffff16;border-radius:7px;background:#11172080;color:#d9c89f;font-size:11px}.side-action:hover{border-color:#d7b87566;background:#d7b87512}.prep-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}.prep-shortcuts button{display:grid;grid-template-columns:30px 1fr;grid-template-rows:auto auto;gap:2px 8px;text-align:left;align-items:center;padding:9px 10px;border:1px solid #ffffff18;border-radius:8px;background:#131922bd;color:#eee8dc}.prep-shortcuts button:hover{border-color:#d7b87577;background:#242630}.prep-shortcuts button>span{grid-row:1/3;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;border:1px solid #d7b87555;color:#e5c881}.prep-shortcuts b{font-size:11px}.prep-shortcuts small{font-size:9px;color:#9aa5ad}.enter-training{margin-top:0}
.prep-panel{flex:1;min-height:0;padding:clamp(22px,4vw,52px);border:1px solid #ffffff18;border-radius:15px;background:radial-gradient(ellipse at 85% 45%,#a8583820,transparent 38%),linear-gradient(135deg,#252b32,#171b23 75%);display:flex;flex-direction:column;gap:22px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:17px;border-bottom:1px solid #ffffff17}.panel-head h2{font:600 clamp(25px,3vw,36px) 'Shippori Mincho',serif;margin:4px 0}.panel-head p{margin:0;color:#aab4b9;font-size:12px}.back-home{padding:9px 13px;border:1px solid #ffffff1c;border-radius:7px;background:#10151d;color:#d8ccad;font-size:11px;white-space:nowrap}
.equipment-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.7fr);gap:18px;flex:1;min-height:0}.equipment-owned,.equipment-detail{padding:17px;border:1px solid #ffffff13;border-radius:10px;background:#1117208c;min-height:0}.equipment-owned h3,.panel-section-title{margin:0 0 12px;font:600 14px 'Shippori Mincho',serif;color:#ecdfc2}.equipment-panel-list{display:grid;gap:8px;max-height:100%;overflow:auto}.gear-choice{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px;border:1px solid #ffffff15;border-radius:8px;background:#1b232e;color:#eee8dc;text-align:left}.gear-choice.selected{border-color:#dabd75;background:#8e73351c;box-shadow:inset 3px 0 #d7b875}.gear-choice.equipped{opacity:.72}.gear-choice b{display:block;font-size:13px}.gear-choice small{display:block;margin-top:4px;color:#aab5bb;font-size:11px}.choice-state{flex:none;color:#d8bd7a;font-size:10px}.equipment-detail{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:25px}.detail-emblem,.enhance-mark{width:62px;height:62px;display:grid;place-items:center;border-radius:50%;border:1px solid #d7b8755c;background:#d7b87510;color:#dfc17d;font:500 28px 'Shippori Mincho',serif;margin-bottom:18px}.equipment-detail h3{margin:6px 0;font:600 20px 'Shippori Mincho',serif}.equipment-detail p{min-height:36px;color:#b1bbc0;font-size:12px;line-height:1.7}.current-loadout{display:grid;gap:8px;width:100%;margin:12px 0 18px;padding:12px;border-radius:8px;background:#0e141c}.current-loadout span{display:flex;justify-content:space-between;color:#aab3b8;font-size:11px}.current-loadout b{color:#e5d6b5}.panel-primary{padding:12px 16px;border:1px solid #d7b87588;border-radius:7px;background:linear-gradient(110deg,#c6a25e,#977040);color:#17191d;font-weight:700;font-size:12px}.panel-primary:disabled{opacity:.45;cursor:not-allowed}
.material-summary{display:flex;gap:12px}.material-summary>div{min-width:170px;padding:15px 18px;border:1px solid #ffffff16;border-radius:9px;background:#11172099}.material-summary span{display:block;color:#aab4b9;font-size:11px}.material-summary b{display:block;margin-top:6px;color:#ecd59b;font:600 19px 'Shippori Mincho',serif}.materials-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px;overflow:auto}.material-card{padding:15px;border:1px solid #ffffff15;border-radius:8px;background:#11172099}.material-card span{display:block;color:#aeb9be;font-size:11px}.material-card b{display:block;margin-top:8px;color:#e8d5a9;font:600 17px 'Shippori Mincho',serif}.empty-state{padding:24px;border:1px dashed #ffffff20;border-radius:9px;color:#9ba6b1;font-size:12px}
.enhancement-workspace{display:flex;align-items:center;gap:clamp(24px,8vw,100px);width:min(100%,720px);margin:auto;padding:clamp(20px,5vw,50px);border:1px solid #ffffff15;border-radius:12px;background:#11172099}.enhancement-workspace .enhance-mark{flex:none;width:92px;height:92px;font-size:43px;margin:0}.enhancement-form{flex:1;min-width:0}.enhancement-form label{display:block;margin-bottom:8px;color:#dcc789;font-size:12px}.enhancement-form select{width:100%;padding:12px;border:1px solid #ffffff22;border-radius:7px;background:#161d27;color:#f2eee5;font:inherit}.enhancement-form .enhance-info{margin:13px 0 16px;padding:12px;border-radius:7px;background:#0c121a;color:#b2bdc1;font-size:12px;line-height:1.9}.enhancement-form .enhance-info b{color:#ecd59b}.enhancement-form .panel-primary{width:100%}
body[data-screen="prep"][data-prep-view="equipment"] #prepScreen,body[data-screen="prep"][data-prep-view="materials"] #prepScreen,body[data-screen="prep"][data-prep-view="enhancement"] #prepScreen,body[data-screen="prep"][data-prep-view="guide"] #prepScreen{display:none!important}body[data-screen="prep"][data-prep-view="equipment"] #equipmentPanel,body[data-screen="prep"][data-prep-view="materials"] #materialsPanel,body[data-screen="prep"][data-prep-view="enhancement"] #enhancementPanel,body[data-screen="prep"][data-prep-view="guide"] #guidePanel{display:flex!important}body[data-screen="battle"] .prep-panel{display:none!important}body[data-screen="battle"] .shrine-only{display:none!important}
@media(max-width:850px){.prep-shortcuts button{grid-template-columns:25px 1fr;padding:8px}.equipment-workspace{grid-template-columns:1fr;overflow:auto}.equipment-detail{min-height:230px}.equipment-owned{min-height:240px}.prep-panel{overflow:auto}.materials-list{overflow:visible}}
@media(max-width:560px){.prep-shortcuts{grid-template-columns:1fr 1fr}.prep-shortcuts button:last-child{grid-column:1/-1}.prep-shortcuts small{font-size:8px}.panel-head h2{font-size:25px}.panel-head p{font-size:10px}.panel-head{align-items:flex-start}.back-home{padding:8px}.prep-panel{padding:18px 14px;gap:14px;min-height:540px}.equipment-workspace{gap:10px}.equipment-owned,.equipment-detail{padding:13px}.equipment-detail{min-height:210px}.material-summary{gap:7px}.material-summary>div{min-width:0;flex:1;padding:12px}.material-summary b{font-size:17px}.enhancement-workspace{flex-direction:column;align-items:stretch;gap:17px;padding:18px}.enhancement-workspace .enhance-mark{width:54px;height:54px;font-size:26px}.materials-list{grid-template-columns:1fr 1fr}}


/* Readable combat stats, complete shrine status, and responsive character placement */
.main{overflow-y:auto;scrollbar-gutter:stable}
.prep-screen{flex:1 0 620px;min-height:620px}
.prep-status{margin:12px 0;padding:11px 12px;border:1px solid #d7b87535;border-radius:10px;background:#101720a8}
.prep-status-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:#e7d5a9;font-size:11px;letter-spacing:.08em}
.prep-status-head small{color:#8e9aa2;font-size:9px;letter-spacing:0}
.prep-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.prep-stat{min-width:0;padding:7px 8px;border-radius:7px;background:#0d131b;color:#aab5bb}
.prep-stat>span{display:block;font-size:10px}
.prep-stat>b{display:block;margin-top:3px;color:#f0e5ce;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.prep-stat>small{display:block;margin-top:2px;color:#8e9aa2;font-size:9px;overflow-wrap:anywhere}
.prep-stat-bar{display:block;height:4px;margin-top:5px;border-radius:5px;background:#202936;overflow:hidden}
.prep-stat-bar>i{display:block;width:100%;height:100%;border-radius:5px}
.prep-stat-bar.hp>i{background:linear-gradient(90deg,#b64b4d,#ef8971)}
.prep-stat-bar.mp>i{background:linear-gradient(90deg,#528fa5,#8dd2d1)}
.battle-vitals{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.fight-stat{min-width:0;min-height:34px;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 9px;border:1px solid #ffffff12;border-radius:7px;background:#11172088}
.fight-stat span{color:#aeb8bd;font-size:11px}
.fight-stat b{color:#f2e8d0;font-size:15px;overflow-wrap:anywhere}
.combat-ui{height:auto;min-height:0;align-items:stretch}
.commands{height:auto;min-height:0;overflow:visible}
.log{height:auto;min-height:210px}
.cmd[data-action="flee"]{min-height:58px}
@media(max-width:850px){.main{overflow-y:visible}.prep-screen{flex:none;min-height:620px}.combat-ui{height:auto;min-height:0}.commands,.log{height:auto;min-height:0}.commands{overflow:visible}}
@media(max-width:560px){
 .main{overflow:visible}
 .prep-screen{display:flex;flex-direction:column;height:auto;min-height:0;overflow:hidden}
 .prep-copy{order:1;flex:none;align-self:stretch;padding:18px 14px 4px}
 .prep-status{margin:10px 0;padding:9px}
 .prep-status-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .prep-stat{padding:6px 7px}
 .prep-stat>b{font-size:12px}
 .prep-art{order:2;position:relative;right:auto;bottom:auto;flex:none;width:100%;height:235px;margin-top:8px;opacity:1;pointer-events:none}
 .prep-art>img{left:50%;bottom:0;height:100%;max-width:100%;transform:translateX(-50%)}
 .prep-art .art-halo{width:210px;top:50%}
 .prep-bottom{order:3;margin-top:0;padding:10px 12px;font-size:9px}
 .battle-vitals{gap:6px}
 .fight-stat{padding:5px 7px}
 .combat-ui{grid-template-columns:1fr;min-height:0}
 .commands{height:auto;min-height:0}
 .log{height:120px;min-height:120px}
}


/* Material crafting visual treatment */
.enhancement-workspace{width:min(100%,920px);gap:clamp(18px,4vw,44px);align-items:stretch;padding:clamp(16px,3vw,30px);background:linear-gradient(145deg,#171d27dd,#111720dd),radial-gradient(ellipse at 15% 45%,#ba8b3f20,transparent 55%)}
.enhancement-visual{flex:none;width:min(38%,310px);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:14px;border:1px solid #d7b87535;border-radius:12px;background:radial-gradient(ellipse at 50% 70%,#d9ae5d20,transparent 68%),#0d131bb0}
.enhancement-visual img{display:block;width:100%;height:190px;object-fit:contain;filter:drop-shadow(0 10px 18px #0009)}
.enhancement-visual span{margin-top:8px;color:#c7b27d;font:500 10px 'Shippori Mincho',serif;letter-spacing:.08em}
.enhancement-form{flex:1;min-width:0}
.enhancement-form select optgroup{background:#171e29;color:#d9c48f}
.enhance-info{display:grid;gap:10px}
.recipe-top{display:flex;align-items:center;gap:12px;padding:11px;border:1px solid #d7b87528;border-radius:9px;background:linear-gradient(100deg,#d7b8750e,#111720)}
.recipe-icon{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:10px;border:1px solid #d7b87555;background:#d7b87512;font-size:26px}
.recipe-top>span:last-child{display:grid;gap:3px;min-width:0}
.recipe-top small,.recipe-foot{color:#9ca9b0;font-size:10px}
.recipe-top b{color:#f0dfb8;font-size:13px;overflow-wrap:anywhere}
.recipe-top em{color:#b6c0c3;font-size:10px;font-style:normal}
.recipe-detail{display:grid;grid-template-columns:1fr auto;gap:3px 10px;padding:9px 11px;border-left:2px solid #c4a35e;background:#0d131b88}
.recipe-detail span,.recipe-detail i{color:#aeb9bd;font-size:10px;font-style:normal}
.recipe-detail b{grid-column:2;grid-row:1/3;align-self:center;color:#f1e5cb;font-size:15px;text-align:right}
.recipe-foot{display:block;line-height:1.6}
.material-card{display:flex;align-items:center;gap:11px;min-width:0;padding:12px;border:1px solid #ffffff17;border-radius:10px;background:linear-gradient(135deg,#202a36,#151c25);box-shadow:inset 0 1px #ffffff08}
.material-card.special-material{border-color:#d7b87555;background:linear-gradient(135deg,#383326,#191e24)}
.material-card.field-material{border-color:#7890a633}
.material-icon{width:43px;height:43px;flex:none;display:grid;place-items:center;border-radius:11px;border:1px solid #ffffff1c;background:radial-gradient(circle at 35% 25%,#ffffff22,transparent 65%),#2b3038;font-size:24px;box-shadow:0 4px 12px #0005}
.special-material .material-icon{border-color:#d7b87555;background:radial-gradient(circle at 35% 25%,#ffe8a333,transparent 70%),#413824}
.material-copy{min-width:0;display:grid;gap:3px}
.material-copy small{color:#b19b62;font-size:9px;letter-spacing:.06em}
.material-copy b{color:#f1e8d6;font-size:12px;overflow-wrap:anywhere}
.material-copy em{color:#a9b4b9;font-size:10px;font-style:normal}
@media(max-width:850px){.enhancement-visual{width:32%}.enhancement-visual img{height:145px}}
@media(max-width:560px){
 .enhancement-workspace{align-items:stretch;gap:13px;padding:13px}
 .enhancement-visual{width:100%;max-width:none;min-height:145px;padding:8px}
 .enhancement-visual img{height:118px}
 .enhancement-visual span{margin-top:2px;font-size:10px}
 .material-card{gap:8px;padding:9px}
 .material-icon{width:36px;height:36px;font-size:20px}
}


.version-tag{padding:5px 8px;border:1px solid #d7b87542;border-radius:6px;background:#d7b8750c;color:#d7b875;font:700 10px 'Shippori Mincho',serif;letter-spacing:.08em;white-space:nowrap}
.enemy-level{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:5px 0 2px;color:#c2cbd0}
.enemy-level-value{font:700 20px 'Shippori Mincho',serif;color:#f0dfba;letter-spacing:.02em;text-shadow:0 2px 9px #0009}
.enemy-level-value.is-stronger{color:#ff666c;text-shadow:0 0 12px #ff434944,0 2px 8px #000c}
.enemy-rank{padding:2px 6px;border-radius:4px;background:#8e303c44;color:#ff8185;font-size:11px;font-weight:700}
.enemy-rarity{padding:2px 7px;border:1px solid #e2c27688;border-radius:10px;background:#92743b33;color:#ffdf91;font-size:11px;font-weight:700;letter-spacing:.08em}
@media(max-width:560px){.version-tag{font-size:9px;padding:4px 6px}.enemy-level-value{font-size:18px}}

.number-settings{position:fixed;z-index:1000;right:auto;top:76px;width:min(330px,calc(100vw - 32px));padding:16px;background:#1b222d;border:1px solid #d7b87566;border-radius:12px;box-shadow:0 15px 40px #0009}.number-settings[hidden]{display:none}.number-settings-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#e9d7ac}.number-settings-title button{border:0;background:transparent;color:var(--muted);font-size:22px}.number-settings label{display:grid;gap:6px;margin-top:10px;color:var(--muted);font-size:12px}.number-settings select{width:100%;padding:9px;border:1px solid var(--line);border-radius:7px;background:#111720;color:var(--text);font:inherit}
/* PCの小さいウィンドウでもページ全体を上下にスクロール */html,body{height:auto;min-height:100%;overflow-y:auto}.wrap{height:auto;min-height:100vh}.layout{flex:none;min-height:auto;align-items:start}.side{min-height:0;max-height:none;overflow:visible}.main{min-height:0}.prep-screen{flex:none;min-height:520px}.layout .battle{flex:none;min-height:340px}.combat-ui{height:auto;min-height:158px;align-items:start}.commands,.log{height:auto;min-height:158px}.log{max-height:230px;overflow-y:auto}@media(max-width:850px){.main{min-height:0}.layout .battle{height:400px;min-height:400px}.combat-ui{height:auto}.commands,.log{height:auto;min-height:158px}}@media(max-width:560px){.top-right .save#numberSettingsOpen{display:block}.layout .battle{height:380px;min-height:380px}}

/* YOInomori visual identity: night sanctuary */
:root{--bg:#080d19;--panel:#10192a;--panel2:#152137;--line:#4c5470;--muted:#aeb8c7;--text:#f7f2e9;--red:#e77a79;--gold:#e6c878;--green:#9bcbb4;--blue:#91bfdc}
html,body{height:auto!important;min-height:100%;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-color:#8c7549 #0b1020;scrollbar-width:thin}
body{background:linear-gradient(180deg,#07101caa,#090d18e8 70%),url('assets/shrine-night-bg.png') center/cover fixed!important;background-color:#080d19!important}
body:before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 50% 0,#7586a11a,transparent 56%),linear-gradient(90deg,#070b13aa,transparent 18%,transparent 82%,#070b13aa)}
.wrap{height:auto!important;min-height:100vh!important;overflow:visible!important;padding-bottom:32px}.top{position:relative;border-bottom:1px solid #d8bb7255;box-shadow:0 8px 28px #0004}.top:after{content:'✦　⛩　✦';position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);padding:0 10px;background:#11182a;color:#d2b66b;font-size:10px;letter-spacing:.22em}.brand h1{text-shadow:0 0 20px #d9bd734f}.screen-tab.active{box-shadow:inset 0 0 0 1px #d7b87545,0 0 16px #d7b87514}
.layout{height:auto!important;max-height:none!important;min-height:auto!important;flex:none!important;overflow:visible!important;align-items:start}.side,.main{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}.card,.commands,.log,.battle,.prep-screen{border-color:#d1b66c38;box-shadow:0 14px 42px #02050bb0, inset 0 1px #ffffff09}.card,.commands,.log{background:linear-gradient(145deg,#172238f2,#0d1422f2);backdrop-filter:blur(12px)}.battle{background:linear-gradient(180deg,#13233ac9,#151a26d9 50%,#1b1820ed)}.battle:before{background:radial-gradient(ellipse at 50% 90%,#d5af582c,transparent 48%),linear-gradient(0deg,#080d19cc,transparent 50%)}.prep-screen{background:radial-gradient(ellipse at 78% 53%,#984f3833,transparent 37%),linear-gradient(135deg,#101a2be8,#0b111eea 74%),url('assets/shrine-night-bg.png') center/cover}.commands,.log{height:auto!important;min-height:0;overflow:visible}.combat-ui{height:auto!important;min-height:0!important;flex:none!important;align-items:start}.cmdgrid{grid-auto-rows:minmax(54px,auto)}.cmd{min-width:0;min-height:58px;border-color:#d7b87520;background:linear-gradient(135deg,#25324a,#182235);box-shadow:inset 0 1px #ffffff0a}.cmd[data-action="flee"]{min-height:56px}.cmd small{line-height:1.35}.log{max-height:245px;overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#796643 #111827}.command-head h3,.section-title,.heading h2{color:#f2dfaf}
.materials-list{overflow:visible!important;max-height:none!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:12px}.material-card{display:flex;align-items:center;gap:12px;min-width:0;min-height:82px;padding:12px 14px;border:1px solid #c8b16b40;border-radius:12px;background:linear-gradient(135deg,#17243aee,#101827f2);box-shadow:0 8px 22px #0005,inset 0 1px #fff1}.material-card span.material-icon{display:grid!important;place-items:center;flex:0 0 48px;width:48px;height:48px;margin:0;padding:0;border-radius:14px;border:1px solid #b9c8da44;background:radial-gradient(circle at 35% 25%,#fff3,transparent 70%),linear-gradient(145deg,#34435b,#172033);font-family:'Apple Color Emoji','Segoe UI Emoji',sans-serif;font-size:25px;line-height:1;filter:drop-shadow(0 4px 6px #0008)}.material-card.special-material span.material-icon{border-color:#e6c878a6;background:radial-gradient(circle at 35% 25%,#fff5,transparent 66%),linear-gradient(145deg,#695332,#302333);box-shadow:0 0 18px #e8ca7130}.material-copy{display:grid;gap:2px;min-width:0}.material-copy small{font-size:10px;letter-spacing:.06em;color:#d0b970}.material-copy b{margin:0!important;font:600 14px 'Shippori Mincho',serif!important;line-height:1.4;overflow-wrap:anywhere}.material-copy em{font-size:11px}
@media(max-width:1100px) and (min-width:851px){.layout{grid-template-columns:230px minmax(0,1fr)}.combat-ui{grid-template-columns:1fr!important}.commands,.log{height:auto!important}.log{max-height:190px}}
@media(max-height:760px) and (min-width:851px){.wrap{height:auto!important;min-height:100vh!important}.layout{height:auto!important}.side{overflow:visible!important}.prep-screen{min-height:520px}.layout .battle{min-height:360px}.combat-ui{height:auto!important}.commands,.log{height:auto!important}}
@media(max-width:850px){.wrap{height:auto!important;min-height:100vh!important}.layout{height:auto!important;overflow:visible!important}.prep-screen{min-height:620px}.combat-ui{height:auto!important;grid-template-columns:1fr!important}.commands,.log{height:auto!important}.log{max-height:220px}.material-card{min-height:74px}}
@media(max-width:560px){.prep-screen{min-height:650px}.material-card{padding:10px;gap:10px}.material-card span.material-icon{flex-basis:42px;width:42px;height:42px;font-size:22px}.number-settings{position:fixed;right:12px;top:70px}}

.battle .intent{bottom:4px;z-index:3;width:max-content;max-width:min(88%,700px);white-space:normal;text-align:center;line-height:1.55;border-color:#e2c77b88;background:linear-gradient(110deg,#111827f2,#191b25f2);box-shadow:0 6px 22px #0009,0 0 18px #d7b87518}.battle .battle-bottom{z-index:4;min-height:44px;height:auto;line-height:1.45}.battle .battle-bottom #turnMsg{max-width:78%;white-space:normal}.battle .stage{inset:62px 0 58px}.cmd:disabled{opacity:.48}.cmd:not(:disabled):not([data-action="flee"]){border-color:#d7b87555}
.battle-log{position:absolute;z-index:5;top:57px;left:14px;width:min(43%,360px);padding:8px 10px;border:1px solid #d7b87555;border-radius:9px;background:#0b1220df;backdrop-filter:blur(8px);box-shadow:0 6px 18px #0008;pointer-events:none}.battle-callout{padding:0 0 5px;margin-bottom:3px;border-bottom:1px solid #d7b87535;color:#f2dca5;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.battle-log #logs{display:grid;gap:1px;max-height:44px;overflow:hidden}.battle-log .logline{font-size:10px;line-height:1.45;padding:1px 0;white-space:normal;overflow-wrap:anywhere;border:0}.battle-log .logline span{font-size:9px}.battle-bottom{min-height:34px;height:34px;padding:6px 14px;justify-content:flex-end;background:linear-gradient(0deg,#101725e8,#10172500)}.combat-ui{grid-template-columns:minmax(0,1fr)!important}.combat-ui>.log{display:none!important}.title-stat{grid-column:1/-1;border-color:#d7b87555;background:linear-gradient(110deg,#211e2c,#182238)}.title-stat b{color:#eed89c!important;font:600 15px 'Shippori Mincho',serif!important}.title-stat small{font-size:10px;color:#c7b77e}@media(max-width:560px){.battle-log{top:58px;left:10px;width:44%;padding:7px 8px}.battle-log .logline{font-size:9px}.battle-callout{font-size:10px}.battle-bottom{height:30px;min-height:30px;padding:4px 10px}.stage{inset:62px 0 48px!important}}@media(max-width:380px){.battle-log{width:42%;top:62px}.enemy-info{width:160px}.battle-tag{padding:5px 8px;font-size:10px}}
.battle-log{top:58px;left:50%;transform:translateX(-50%);width:min(64%,560px)}.battle .stage{inset:142px 0 58px}.course-ranks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:13px}.course-ranks>span,.course-ranks>button{display:flex;flex-direction:column;gap:3px;min-width:0;padding:8px;border:1px solid #ffffff16;border-radius:7px;background:#101722aa;color:#929ba3}.course-ranks>span.current,.course-ranks>button.current{border-color:#d7b87566;background:linear-gradient(130deg,#b28b3820,#16212b);color:#e9d49e;box-shadow:inset 0 0 16px #d7b8750b}.course-ranks>button{font:inherit;text-align:left;cursor:pointer}.course-ranks>button:disabled{opacity:.48;cursor:not-allowed}.course-ranks>button:not(:disabled):hover{border-color:#d7b87588}.course-ranks small{font-size:9px;letter-spacing:.08em}.course-ranks b{font:600 12px 'Shippori Mincho',serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.course-ranks em{font-style:normal;font-size:9px;line-height:1.45}.course-copy{min-width:0;flex:1}.course-panel{align-items:flex-start}.course-range{flex:none}@media(max-width:700px){.course-ranks{grid-template-columns:repeat(2,minmax(0,1fr))}.course-ranks>span,.course-ranks>button{padding:7px}.course-ranks b{font-size:11px}.battle-log{top:58px;width:min(76%,520px)}.battle .stage{inset:132px 0 48px}}@media(max-width:380px){.course-ranks em{font-size:8px}.battle-log{width:82%;top:60px}.battle .stage{inset:140px 0 48px}}
.battle-log{padding:0;border:0;border-radius:0;background:transparent;backdrop-filter:none;box-shadow:none;top:62px;width:min(60%,520px)}.battle-callout{padding:0;margin:0 0 2px;border:0;background:transparent;font-size:9px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.battle-log #logs{gap:0;max-height:30px}.battle-log .logline{padding:0;font-size:9px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.battle-log .logline span{font-size:8px;margin-right:4px}.battle .stage{inset:112px 0 58px}@media(max-width:700px){.battle-log{top:58px;width:76%}.battle-callout,.battle-log .logline{font-size:8px}.battle-log #logs{max-height:25px}.battle .stage{inset:105px 0 48px}}@media(max-width:380px){.battle-log{top:60px;width:82%}.battle .stage{inset:108px 0 48px}}
#log.battle-log{position:relative!important;inset:auto!important;transform:none!important;z-index:6!important;width:100%!important;max-width:100%!important;height:34px!important;min-height:0!important;max-height:34px!important;margin:0 auto!important;padding:0 12px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;overflow:hidden!important;pointer-events:none}.battle-callout{display:block!important;max-width:100%!important;height:12px!important;max-height:12px!important;padding:0!important;margin:0 0 1px!important;border:0!important;background:none!important;box-shadow:none!important;color:#e6d29b;font-size:8px!important;line-height:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis}.battle-log #logs{display:grid!important;grid-auto-rows:10px;gap:0!important;max-height:20px!important;overflow:hidden!important}.battle-log .logline{height:10px!important;max-height:10px!important;padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;font-size:8px!important;line-height:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis}.battle-log .logline span{font-size:7px!important;margin-right:3px}.battle .stage{inset:112px 0 58px!important}@media(max-width:700px){#log.battle-log{height:29px!important;max-height:29px!important;padding:0 8px!important}.battle-callout{height:10px!important;max-height:10px!important;font-size:7px!important;line-height:10px!important}.battle-log #logs{grid-auto-rows:9px;max-height:18px!important}.battle-log .logline{height:9px!important;max-height:9px!important;font-size:7px!important;line-height:9px!important}.battle .stage{inset:104px 0 48px!important}}@media(max-width:380px){#log.battle-log{height:27px!important;max-height:27px!important;padding:0 6px!important}.battle .stage{inset:102px 0 48px!important}}
#log.battle-log{position:relative!important;inset:auto!important;transform:none!important;z-index:1!important;display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:7px 0 0!important;padding:3px 8px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important;pointer-events:none;color:#e9dfc8}.battle-callout{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:1;max-width:100%!important;height:auto!important;max-height:none!important;padding:0!important;margin:0 0 2px!important;border:0!important;background:none!important;box-shadow:none!important;color:#d9c58f;font-size:9px!important;line-height:1.25!important;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis}.battle-log #logs{display:grid!important;grid-template-rows:repeat(2,minmax(0,auto));gap:0!important;max-height:38px!important;overflow:hidden!important}.battle-log .logline{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;height:auto!important;max-height:38px!important;padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;font-size:9px!important;line-height:1.3!important;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis;overflow-wrap:anywhere}.battle-log .logline span{font-size:8px!important;margin-right:4px;color:#cbb77f}@media(max-width:700px){#log.battle-log{margin:5px 0 0!important;padding:2px 6px!important}.battle-callout{font-size:8px!important}.battle-log .logline{font-size:8px!important;line-height:1.25!important;max-height:34px!important}.battle-log #logs{max-height:34px!important}.battle-log .logline span{font-size:7px!important}}.title-stat{padding:10px 12px!important;border-color:#d7b87577!important;background:linear-gradient(110deg,#292236,#172237)!important}.title-stat>span{color:#ead49c!important;font-size:11px!important;letter-spacing:.04em}.title-stat>b{font-size:15px!important;color:#fff0c5!important}.title-stat>small{margin-top:5px!important;color:#e6d8b2!important;font-size:11px!important;line-height:1.7!important}
.battle-log-layout{position:relative;flex:1 0 400px;min-height:400px}.battle-log-layout>.battle{height:400px;min-height:400px}.battle-log-layout>#log.battle-log{position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:8!important;width:min(88%,620px)!important;max-width:620px!important;margin:0!important;padding:0 10px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;overflow:hidden!important;pointer-events:none;text-align:center}.battle-log .battle-callout{display:block!important;max-width:100%!important;margin:0 0 3px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:10px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis}.battle-log #logs{display:grid!important;grid-auto-rows:14px;gap:0!important;max-height:42px!important;overflow:hidden!important}.battle-log .logline{display:block!important;height:14px!important;max-height:14px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:10px!important;line-height:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis;overflow-wrap:normal!important}.battle-log .logline span{font-size:9px!important;margin-right:5px}.battle .battle-vitals{position:absolute!important;z-index:6!important;top:58px!important;left:14px!important;width:min(300px,44%)!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3px 12px!important}.battle .fight-vital{min-width:0}.battle .fight-vital>div:first-child{margin-bottom:2px}.battle .fight-vital span,.battle .fight-stat span{font-size:10px}.battle .fight-vital b,.battle .fight-stat b{font-size:10px}.battle .fight-vital .vitalbar{height:5px}.battle .fight-stat{min-height:18px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.battle .stage{inset:112px 0 58px!important}@media(max-width:700px){.battle-log-layout{flex:none;min-height:0}.battle-log-layout>.battle{height:380px!important;min-height:380px!important}.battle-log-layout>#log.battle-log{position:relative!important;top:auto!important;left:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:6px 0 0!important;padding:2px 8px!important;text-align:left}.battle-log .battle-callout{font-size:9px!important}.battle-log #logs{grid-auto-rows:12px;max-height:36px!important}.battle-log .logline{height:12px!important;max-height:12px!important;font-size:9px!important;line-height:12px!important}.battle-log .logline span{font-size:8px!important}.battle .battle-vitals{top:61px!important;left:9px!important;width:min(210px,52%)!important;gap:2px 8px!important}.battle .fight-vital span,.battle .fight-stat span,.battle .fight-vital b,.battle .fight-stat b{font-size:9px}.battle .stage{inset:112px 0 48px!important}}@media(max-width:380px){.battle-log-layout>.battle{height:380px!important}.battle-log-layout>#log.battle-log{padding-inline:6px!important}.battle .battle-vitals{width:54%!important;top:62px!important;left:7px!important}}
@media(min-width:701px){.battle .battle-vitals{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto auto!important}.battle .battle-vitals>.fight-vital:nth-child(1){grid-column:1;grid-row:1}.battle .battle-vitals>.fight-vital:nth-child(2){grid-column:1;grid-row:2}.battle .battle-vitals>.fight-stat:nth-child(3){grid-column:2;grid-row:1}.battle .battle-vitals>.fight-stat:nth-child(4){grid-column:2;grid-row:2}}@media(max-width:700px){.battle .battle-vitals{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto auto!important}.battle .battle-vitals>.fight-vital:nth-child(1){grid-column:1;grid-row:1}.battle .battle-vitals>.fight-vital:nth-child(2){grid-column:2;grid-row:1}.battle .battle-vitals>.fight-stat:nth-child(3){grid-column:1;grid-row:2}.battle .battle-vitals>.fight-stat:nth-child(4){grid-column:2;grid-row:2}}
.battle .battle-vitals{position:absolute!important;z-index:6!important;top:96px!important;right:14px!important;left:auto!important;transform:none!important;width:min(210px,40%)!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important;gap:3px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.battle .battle-vitals>.fight-vital:nth-child(1),.battle .battle-vitals>.fight-vital:nth-child(2),.battle .battle-vitals>.fight-stat:nth-child(3),.battle .battle-vitals>.fight-stat:nth-child(4){grid-column:1!important;grid-row:auto!important}.battle .fight-vital{padding:0!important}.battle .fight-vital>div:first-child{display:flex!important;justify-content:space-between!important;align-items:center!important;margin:0 0 2px!important}.battle .fight-vital .vitalbar{height:5px!important;margin:0!important}.battle .fight-stat{display:flex!important;justify-content:space-between!important;align-items:center!important;min-height:15px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.battle .stage{inset:190px 0 58px!important}@media(max-width:700px){.battle .battle-vitals{top:93px!important;right:9px!important;left:auto!important;width:min(190px,48%)!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important;gap:2px!important}.battle .stage{inset:184px 0 48px!important}}@media(max-width:380px){.battle .battle-vitals{top:92px!important;right:7px!important;width:49%!important}.battle .stage{inset:181px 0 48px!important}}
@media(min-width:701px){.battle .battle-vitals{top:58px!important;right:auto!important;left:14px!important;width:min(270px,31%)!important}.battle-log-layout>#log.battle-log{top:158px!important;left:12px!important;right:auto!important;transform:none!important;width:min(30%,320px)!important;max-width:320px!important;text-align:left!important}.battle-log-layout>.battle .miko-art{left:36%!important}.battle-log-layout>.battle .stage{inset:188px 0 58px!important}}
@media(max-width:700px){.battle .battle-vitals{top:58px!important;left:10px!important;right:auto!important;transform:none!important;width:min(200px,50%)!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important;gap:2px!important}.battle .battle-vitals>.fight-vital:nth-child(1),.battle .battle-vitals>.fight-vital:nth-child(2),.battle .battle-vitals>.fight-stat:nth-child(3),.battle .battle-vitals>.fight-stat:nth-child(4){grid-column:1!important;grid-row:auto!important}.battle .battle-vitals .fight-vital>div:first-child{margin-bottom:1px!important}.battle .battle-vitals .vitalbar{height:4px!important}.battle .battle-vitals .fight-stat{min-height:13px!important}.battle .miko-art{height:clamp(150px,48vw,185px)!important;width:auto!important;max-width:34%!important;left:6%!important;bottom:34px!important}.battle .stage{inset:150px 0 48px!important}}@media(max-width:380px){.battle .battle-vitals{left:8px!important;top:57px!important;width:49%!important}.battle .miko-art{height:150px!important;bottom:32px!important}.battle .stage{inset:146px 0 48px!important}}
.idle-stage>.restart-training{display:inline-flex;align-items:center;justify-content:center;position:relative;z-index:8;min-width:136px;min-height:48px;margin:0 auto 12px;padding:12px 22px;font-size:15px;touch-action:manipulation;pointer-events:auto}.battle .battle-vitals{left:12px!important;right:auto!important}@media(max-width:700px){.battle .battle-vitals{left:8px!important;right:auto!important;width:min(180px,46%)!important}.battle .battle-vitals>.fight-vital:nth-child(1),.battle .battle-vitals>.fight-vital:nth-child(2),.battle .battle-vitals>.fight-stat:nth-child(3),.battle .battle-vitals>.fight-stat:nth-child(4){grid-column:1!important}.battle .battle-vitals .fight-stat{justify-content:space-between!important}}
.prep-preparation{max-width:660px;margin:13px 0 10px;padding:12px;border:1px solid #d7b87555;border-radius:12px;background:linear-gradient(145deg,#111a2be0,#14151fd9);box-shadow:0 0 0 3px #10162299,inset 0 0 0 1px #9d51452b,0 8px 24px #03071370;position:relative}.prep-preparation:before,.prep-status:before,.course-panel:before{content:"";position:absolute;inset:5px;pointer-events:none;border:1px solid #d7b87528;border-radius:8px;clip-path:polygon(0 0,16px 0,16px 2px,2px 2px,2px 16px,0 16px,0 0,100% 0,calc(100% - 16px) 0,calc(100% - 16px) 2px,calc(100% - 2px) 2px,calc(100% - 2px) 16px,100% 16px,100% 0,100% 100%,calc(100% - 16px) 100%,calc(100% - 16px) calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) calc(100% - 16px),100% calc(100% - 16px),100% 100%,0 100%,16px 100%,16px calc(100% - 2px),2px calc(100% - 2px),2px calc(100% - 16px),0 calc(100% - 16px),0 100%)}.prep-preparation-head{display:flex;align-items:baseline;gap:10px;margin:0 0 9px;padding:0 4px}.prep-preparation-head>span{font-size:8px;letter-spacing:.14em;color:#9ba9b4}.prep-preparation-head h3{margin:0;color:#eedba7;font:600 15px 'Shippori Mincho',serif;letter-spacing:.1em}.prep-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}.prep-shortcuts .prep-card{position:relative;isolation:isolate;display:grid;grid-template-columns:76px minmax(0,1fr) 18px;align-items:center;gap:8px;min-width:0;min-height:100px;padding:8px 12px;border:1px solid #d7b87566;border-radius:9px;background:radial-gradient(ellipse at 20% 55%,#b7783128,transparent 48%),linear-gradient(135deg,#242a32,#131b2a 72%);color:#f3e6c8;text-align:left;overflow:hidden;box-shadow:inset 0 0 0 3px #151724,inset 0 0 0 4px #ad6b513b,0 5px 13px #0005;transition:transform .16s,border-color .16s,filter .16s}.prep-shortcuts .prep-card:before{content:"";position:absolute;z-index:-1;inset:4px;border:1px solid #d7b87535;border-radius:6px;pointer-events:none;clip-path:polygon(0 0,15px 0,15px 2px,2px 2px,2px 15px,0 15px,0 0,100% 0,calc(100% - 15px) 0,calc(100% - 15px) 2px,calc(100% - 2px) 2px,calc(100% - 2px) 15px,100% 15px,100% 0,100% 100%,calc(100% - 15px) 100%,calc(100% - 15px) calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) calc(100% - 15px),100% calc(100% - 15px),100% 100%,0 100%,15px 100%,15px calc(100% - 2px),2px calc(100% - 2px),2px calc(100% - 15px),0 calc(100% - 15px),0 100%)}.prep-shortcuts .prep-card:hover,.prep-shortcuts .prep-card:focus-visible{transform:translateY(-2px);border-color:#f0d88c;filter:brightness(1.13);outline:2px solid #d7b87588;outline-offset:2px}.prep-shortcuts .prep-card>img{width:74px;height:78px;object-fit:contain;filter:drop-shadow(0 5px 8px #0008)}.prep-card-copy{display:grid;gap:5px;min-width:0}.prep-card-copy b{font:600 15px 'Shippori Mincho',serif;color:#f1dfb4}.prep-card-copy small{font-size:10px;color:#aeb8bd;line-height:1.5}.prep-shortcuts .prep-card>i{font-style:normal;color:#d7b875;font-size:22px}.prep-equipment-link{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;margin-top:8px;padding:7px 10px;border:1px solid #bd706244;border-radius:6px;background:linear-gradient(90deg,#542d3933,#161a24);color:#bdb8b1;font-size:10px;text-align:left}.prep-equipment-link b{color:#e6d2a0;font-size:10px}.prep-status,.course-panel{position:relative;box-shadow:0 0 0 3px #11172566,inset 0 0 0 1px #8d474522,0 8px 20px #02061155}.card,.battle,.prep-panel,.commands,.log,.equipment-owned,.equipment-detail,.enhancement-workspace{border-color:#c9ad6b62!important;box-shadow:0 0 0 2px #0d142288,inset 0 0 0 1px #a64e4d25,0 12px 34px #0005}.battle,.prep-screen{border-radius:13px}.prep-panel{position:relative}.material-card,.prep-stat{border:1px solid #d7b87535!important;box-shadow:inset 0 0 0 2px #121825, inset 0 0 0 3px #994e4428}.prep-screen{border-color:#d7b87566!important;box-shadow:0 0 0 3px #111725,inset 0 0 0 1px #a84f482e,0 18px 50px #0005!important}@media(max-width:700px){.prep-preparation{padding:10px}.prep-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.prep-shortcuts .prep-card{grid-template-columns:56px minmax(0,1fr) 14px;min-height:86px;padding:6px 8px;gap:5px}.prep-shortcuts .prep-card>img{width:56px;height:64px}.prep-card-copy b{font-size:13px}.prep-card-copy small{font-size:9px}}@media(max-width:380px){.prep-shortcuts .prep-card{grid-template-columns:44px minmax(0,1fr) 12px;min-height:78px;padding:5px}.prep-shortcuts .prep-card>img{width:46px;height:54px}.prep-card-copy b{font-size:12px}.prep-equipment-link{font-size:9px}}
@media(min-width:701px){.battle-log-layout>#log.battle-log{width:min(23%,280px)!important;max-width:280px!important}.battle-log-layout>.battle .miko-art{left:28%!important}}
/* 神域の御札枠：金の二重縁と朱の内側ライン、四隅に小さな勾玉状の切り欠き */.card,.battle,.commands,.log,.prep-screen,.prep-panel,.course-panel,.prep-status,.prep-stat,.prep-preparation,.prep-shortcuts .prep-card,.equipment-owned,.equipment-detail,.material-card,.enhancement-workspace,.equipment-entry,.gear-choice,.material-summary>div,.number-settings{border:2px double #c5a45f!important;box-shadow:0 0 0 2px #271e2b,inset 0 0 0 1px #a14f4c38,inset 0 0 13px #c3973b0c,0 10px 28px #0004}.battle,.prep-screen,.commands,.prep-panel,.course-panel,.prep-status,.prep-preparation,.prep-stat,.material-card,.equipment-owned,.equipment-detail,.enhancement-workspace,.number-settings{position:relative}.battle:after,.prep-screen:after,.commands:after,.log:after,.prep-panel:after,.course-panel:after,.prep-status:after,.prep-preparation:after,.equipment-owned:after,.equipment-detail:after,.enhancement-workspace:after,.material-card:after,.number-settings:after{content:"";position:absolute;z-index:8;inset:6px;border:1px solid #e2c78245;border-radius:inherit;clip-path:polygon(0 0,18px 0,18px 2px,2px 2px,2px 18px,0 18px,0 0,100% 0,calc(100% - 18px) 0,calc(100% - 18px) 2px,calc(100% - 2px) 2px,calc(100% - 2px) 18px,100% 18px,100% 0,100% 100%,calc(100% - 18px) 100%,calc(100% - 18px) calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) calc(100% - 18px),100% calc(100% - 18px),100% 100%,0 100%,18px 100%,18px calc(100% - 2px),2px calc(100% - 2px),2px calc(100% - 18px),0 calc(100% - 18px),0 100%);pointer-events:none}.prep-stat:after{content:"◇";position:absolute;right:5px;top:3px;color:#d6b87445;font-size:9px;pointer-events:none}.prep-shortcuts .prep-card{border-width:3px!important;border-style:double!important;border-color:#d7b875!important;box-shadow:0 0 0 2px #351f2a,inset 0 0 0 2px #a14f4c3a,0 6px 18px #0007}.battle-log-layout>.battle .enemy-art{height:clamp(220px,30vw,300px)!important;width:auto!important;max-width:34%!important;object-fit:contain!important;left:67%!important;bottom:26px!important;filter:drop-shadow(0 14px 15px #0009)}@media(max-width:700px){.battle-log-layout>.battle .enemy-art{height:clamp(150px,48vw,185px)!important;width:auto!important;max-width:38%!important;left:64%!important;bottom:32px!important}}@media(max-width:380px){.battle-log-layout>.battle .enemy-art{height:150px!important;max-width:40%!important;left:62%!important;bottom:32px!important}}
.battle:after,.prep-screen:after,.commands:after,.log:after,.prep-panel:after,.course-panel:after,.prep-status:after,.prep-preparation:after,.equipment-owned:after,.equipment-detail:after,.enhancement-workspace:after,.material-card:after,.number-settings:after{inset:0!important;border:0!important;border-radius:inherit;clip-path:none!important;background:repeating-linear-gradient(45deg,transparent 0 2px,#d7b875 2px 4px,#79414a 4px 6px,#e8d18b 6px 8px,transparent 8px 11px) left top/20px 20px no-repeat,repeating-linear-gradient(135deg,transparent 0 2px,#d7b875 2px 4px,#79414a 4px 6px,#e8d18b 6px 8px,transparent 8px 11px) right top/20px 20px no-repeat,repeating-linear-gradient(135deg,transparent 0 2px,#d7b875 2px 4px,#79414a 4px 6px,#e8d18b 6px 8px,transparent 8px 11px) left bottom/20px 20px no-repeat,repeating-linear-gradient(45deg,transparent 0 2px,#d7b875 2px 4px,#79414a 4px 6px,#e8d18b 6px 8px,transparent 8px 11px) right bottom/20px 20px no-repeat!important;opacity:.72}.prep-preparation:before,.prep-status:before,.course-panel:before,.prep-shortcuts .prep-card:before{inset:0!important;border:0!important;border-radius:inherit;clip-path:none!important;background:repeating-linear-gradient(45deg,transparent 0 2px,#d7b875 2px 4px,#79414a 4px 6px,#e8d18b 6px 8px,transparent 8px 11px) left top/20px 20px no-repeat,repeating-linear-gradient(135deg,transparent 0 2px,#d7b875 2px 4px,#79414a 4px 6px,#e8d18b 6px 8px,transparent 8px 11px) right top/20px 20px no-repeat,repeating-linear-gradient(135deg,transparent 0 2px,#d7b875 2px 4px,#79414a 4px 6px,#e8d18b 6px 8px,transparent 8px 11px) left bottom/20px 20px no-repeat,repeating-linear-gradient(45deg,transparent 0 2px,#d7b875 2px 4px,#79414a 4px 6px,#e8d18b 6px 8px,transparent 8px 11px) right bottom/20px 20px no-repeat!important;opacity:.68}.prep-preparation{max-width:none!important;margin:0 0 2px!important;padding:12px!important}.prep-shortcuts{grid-template-columns:minmax(0,1fr)!important}.prep-shortcuts .prep-card{grid-template-columns:70px minmax(0,1fr) 18px!important;min-height:90px!important}.prep-shortcuts .prep-card>img{width:68px!important;height:72px!important}.prep-equipment-link{margin-top:7px}.side>.prep-preparation{grid-column:1/-1;width:100%}@media(max-width:850px){.side>.prep-preparation{grid-column:1/-1}.prep-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:560px){.prep-shortcuts .prep-card{grid-template-columns:50px minmax(0,1fr) 14px!important;min-height:80px!important;padding:5px!important}.prep-shortcuts .prep-card>img{width:48px!important;height:58px!important}}
.prep-preparation,.prep-preparation *{box-sizing:border-box}.prep-preparation{overflow:visible!important}.prep-shortcuts .prep-card{overflow:visible!important;grid-template-columns:86px minmax(0,1fr) 14px!important;min-height:116px!important;padding:8px!important;gap:5px!important}.prep-shortcuts .prep-card>img{display:block;width:84px!important;height:96px!important;max-width:none!important;max-height:none!important;object-fit:contain!important;overflow:visible!important;filter:drop-shadow(0 5px 8px #0009)}@media(max-width:850px){.prep-shortcuts .prep-card{grid-template-columns:70px minmax(0,1fr) 14px!important;min-height:96px!important}.prep-shortcuts .prep-card>img{width:68px!important;height:78px!important}}@media(max-width:560px){.prep-shortcuts .prep-card{grid-template-columns:50px minmax(0,1fr) 14px!important;min-height:80px!important}.prep-shortcuts .prep-card>img{width:48px!important;height:58px!important}}.battle:after,.prep-screen:after,.commands:after,.log:after,.prep-panel:after,.course-panel:after,.prep-status:after,.prep-preparation:after,.prep-shortcuts .prep-card:after,.equipment-owned:after,.equipment-detail:after,.enhancement-workspace:after,.material-card:after,.number-settings:after,.card:not(.profile):after,.equipment-entry:after,.gear-choice:after,.prep-stat:after{content:""!important;inset:0!important;border:0!important;border-radius:inherit;clip-path:none!important;background:transparent!important;opacity:.92!important;pointer-events:none!important;z-index:8!important}.prep-preparation:before,.prep-status:before,.course-panel:before,.prep-shortcuts .prep-card:before{display:none!important}
@media(min-width:851px){.prep-shortcuts .prep-card{grid-template-columns:90px minmax(0,1fr) 12px!important;min-height:122px!important;padding:7px!important;overflow:visible!important}.prep-shortcuts .prep-card>img{width:88px!important;height:104px!important;max-width:none!important;object-fit:contain!important}.prep-shortcuts .prep-card>.prep-card-copy{grid-row:auto!important;grid-column:auto!important;width:auto!important;height:auto!important;min-width:0!important;display:grid!important;place-items:stretch!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}}.battle:after,.prep-screen:after,.commands:after,.log:after,.prep-panel:after,.course-panel:after,.prep-status:after,.prep-preparation:after,.prep-shortcuts .prep-card:after,.equipment-owned:after,.equipment-detail:after,.enhancement-workspace:after,.material-card:after,.number-settings:after,.card:not(.profile):after,.equipment-entry:after,.gear-choice:after{content:""!important;position:absolute!important;inset:0!important;z-index:8!important;border:0!important;border-radius:inherit!important;clip-path:none!important;background:transparent url("assets/ui/shrine-frame.png") center/100% 100% no-repeat!important;opacity:.96!important;pointer-events:none!important}.profile:before{content:""!important;position:absolute!important;inset:0!important;z-index:8!important;border:0!important;background:transparent url("assets/ui/shrine-frame.png") center/100% 100% no-repeat!important;pointer-events:none!important}.prep-stat:after{content:"◇"!important;position:absolute!important;right:5px!important;top:3px!important;inset:auto 5px auto auto!important;border:0!important;background:none!important;color:#d6b87455!important;font-size:9px!important;pointer-events:none!important}
.card,.profile,.battle,.prep-screen,.commands,.log,.prep-panel,.course-panel,.prep-status,.prep-preparation,.prep-shortcuts .prep-card,.equipment-owned,.equipment-detail,.material-card,.enhancement-workspace,.material-summary>div,.number-settings,.equipment-entry,.gear-choice{border:26px solid transparent!important;border-image-source:url("assets/ui/shrine-frame-v2.png")!important;border-image-slice:260 210 240 210 fill!important;border-image-width:26px!important;border-image-outset:0!important;border-image-repeat:stretch!important;border-radius:0!important}.battle:after,.prep-screen:after,.commands:after,.log:after,.prep-panel:after,.course-panel:after,.prep-status:after,.prep-preparation:after,.prep-shortcuts .prep-card:after,.equipment-owned:after,.equipment-detail:after,.enhancement-workspace:after,.material-card:after,.number-settings:after,.card:not(.profile):after,.equipment-entry:after,.gear-choice:after,.profile:before{display:none!important;content:none!important}@media(max-width:700px){.card,.profile,.battle,.prep-screen,.commands,.log,.prep-panel,.course-panel,.prep-status,.prep-preparation,.prep-shortcuts .prep-card,.equipment-owned,.equipment-detail,.material-card,.enhancement-workspace,.material-summary>div,.number-settings,.equipment-entry,.gear-choice{border-width:19px!important;border-image-width:19px!important}}
.card,.profile,.battle,.prep-screen,.commands,.log,.prep-panel,.course-panel,.prep-status,.prep-preparation,.prep-shortcuts .prep-card,.equipment-owned,.equipment-detail,.material-card,.enhancement-workspace,.material-summary>div,.number-settings,.equipment-entry,.gear-choice{border-style:solid!important;border-width:28px!important;border-color:transparent!important;border-image-source:url("assets/ui/shrine-frame-v2.png")!important;border-image-slice:22% 15% 22% 15% fill!important;border-image-width:28px!important;border-image-outset:0!important;border-image-repeat:stretch!important;border-radius:0!important}.battle:after,.prep-screen:after,.commands:after,.log:after,.prep-panel:after,.course-panel:after,.prep-status:after,.prep-preparation:after,.prep-shortcuts .prep-card:after,.equipment-owned:after,.equipment-detail:after,.enhancement-workspace:after,.material-card:after,.number-settings:after,.card:not(.profile):after,.equipment-entry:after,.gear-choice:after,.profile:before{display:none!important;content:none!important;background:none!important}.prep-preparation:before,.prep-status:before,.course-panel:before,.prep-shortcuts .prep-card:before{display:none!important;content:none!important}@media(max-width:700px){.card,.profile,.battle,.prep-screen,.commands,.log,.prep-panel,.course-panel,.prep-status,.prep-preparation,.prep-shortcuts .prep-card,.equipment-owned,.equipment-detail,.material-card,.enhancement-workspace,.material-summary>div,.number-settings,.equipment-entry,.gear-choice{border-width:16px!important;border-image-width:16px!important}}
.card,.battle,.prep-screen,.commands,.log,.prep-panel,.prep-preparation,.number-settings{box-sizing:border-box!important;border-style:solid!important;border-width:26px!important;border-color:transparent!important;border-image-source:url("assets/ui/shrine-frame-v2.png")!important;border-image-slice:22% 15% 22% 15% fill!important;border-image-width:26px!important;border-image-outset:0!important;border-image-repeat:stretch!important;border-radius:0!important}.course-panel,.prep-status,.prep-shortcuts .prep-card,.equipment-owned,.equipment-detail,.enhancement-workspace,.material-card,.material-summary>div,.equipment-entry,.gear-choice{border-image:none!important;border-style:solid!important;border-width:1px!important;border-color:#d7b87538!important;border-radius:10px!important}.battle:after,.prep-screen:after,.commands:after,.log:after,.prep-panel:after,.course-panel:after,.prep-status:after,.prep-preparation:after,.prep-shortcuts .prep-card:after,.equipment-owned:after,.equipment-detail:after,.enhancement-workspace:after,.material-card:after,.number-settings:after,.card:not(.profile):after,.equipment-entry:after,.gear-choice:after,.profile:before{display:none!important;content:none!important;background:none!important}.prep-preparation:before,.prep-status:before,.course-panel:before,.prep-shortcuts .prep-card:before{display:none!important;content:none!important}@media(max-width:700px){.card,.battle,.prep-screen,.commands,.log,.prep-panel,.prep-preparation,.number-settings{border-width:16px!important;border-image-width:16px!important}.course-panel,.prep-status,.prep-shortcuts .prep-card,.equipment-owned,.equipment-detail,.enhancement-workspace,.material-card,.material-summary>div,.equipment-entry,.gear-choice{border-width:1px!important}}
.card,.battle,.prep-screen,.commands,.log,.prep-panel,.prep-preparation,.number-settings{box-sizing:border-box!important;border:23px solid transparent!important;border-image-source:url("assets/ui/shrine-frame-v3.png")!important;border-image-slice:24% 13% 24% 13% fill!important;border-image-width:23px!important;border-image-outset:0!important;border-image-repeat:stretch!important;border-radius:0!important;outline:0!important}.course-panel,.prep-status,.prep-shortcuts .prep-card,.equipment-owned,.equipment-detail,.enhancement-workspace,.material-card,.material-summary>div,.equipment-entry,.gear-choice,.prep-stat,.course-ranks>span{border:0!important;border-image:none!important;outline:0!important;box-shadow:none!important}.prep-bottom{border-top:0!important}.battle:after,.prep-screen:after,.commands:after,.log:after,.prep-panel:after,.course-panel:after,.prep-status:after,.prep-preparation:after,.prep-shortcuts .prep-card:after,.equipment-owned:after,.equipment-detail:after,.enhancement-workspace:after,.material-card:after,.number-settings:after,.card:not(.profile):after,.equipment-entry:after,.gear-choice:after,.profile:before{display:none!important;content:none!important;background:none!important}.prep-preparation:before,.prep-status:before,.course-panel:before,.prep-shortcuts .prep-card:before{display:none!important;content:none!important}@media(max-width:700px){.card,.battle,.prep-screen,.commands,.log,.prep-panel,.prep-preparation,.number-settings{border-width:15px!important;border-image-width:15px!important}}
.card,.battle,.commands,.log,.prep-panel,.prep-preparation,.number-settings{background:transparent!important;background-color:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}.prep-screen{background:transparent!important;background-color:transparent!important;box-shadow:none!important}.course-panel,.prep-status,.equipment-owned,.equipment-detail,.enhancement-workspace,.material-card,.material-summary>div,.equipment-entry,.gear-choice,.prep-stat,.course-ranks>span,.prep-shortcuts .prep-card{background:transparent!important;background-color:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}.battle-tag,.battle .intent,.battle-bottom,.prep-bottom,.nameplate{background:transparent!important;background-color:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;border:0!important}.course-panel,.prep-status,.prep-shortcuts .prep-card,.equipment-owned,.equipment-detail,.enhancement-workspace,.material-card,.material-summary>div,.equipment-entry,.gear-choice,.prep-stat,.course-ranks>span{border:0!important;border-image:none!important;outline:0!important}.prep-bottom{border-top:0!important}.battle:before,.prep-screen:before,.profile:after{display:none!important;content:none!important;background:none!important;box-shadow:none!important}.card,.battle,.prep-screen,.commands,.log,.prep-panel,.prep-preparation,.number-settings{background-clip:padding-box!important}
.course-panel,.prep-status,.prep-stat,.profile .stat,.battle-vitals,.fight-stat,.material-summary>div,.material-card,.equipment-owned,.equipment-detail,.enhancement-workspace,.equipment-entry,.gear-choice,.prep-shortcuts .prep-card{background:linear-gradient(145deg,#111a28dc,#0a111bdc)!important;border:1px solid #c5a45f55!important;border-radius:9px!important;box-shadow:inset 0 1px #ffffff0a,0 5px 16px #0003!important}.course-panel{padding:16px 18px!important}.prep-status{padding:12px!important}.prep-stat{padding:8px 9px!important}.battle .battle-vitals{padding:10px 12px!important;border-radius:10px!important}.battle .fight-stat{background:transparent!important;border:0!important;box-shadow:none!important}.prep-screen{background:linear-gradient(180deg,#07101c24,#090d1828 70%),url("assets/shrine-night-bg.png") center/cover no-repeat!important}.battle{background:rgba(6,12,22,.20)!important}.card,.commands,.log,.prep-panel,.prep-preparation,.number-settings{background:linear-gradient(145deg,#0d1524c9,#080e19c9)!important}.battle-top{position:absolute!important;inset:0 0 auto!important;z-index:7!important;pointer-events:none!important}.battle-tag{position:absolute!important;left:15px!important;top:13px!important;pointer-events:none!important}.enemy-info{position:absolute!important;top:12px!important;right:14px!important;width:min(220px,31%)!important;margin:0!important;text-align:right!important;z-index:8!important}.battle .battle-vitals{z-index:7!important}.battle-log-layout>.battle .stage{inset:124px 0 44px!important}.battle-log-layout>.battle .enemy-art{height:clamp(155px,17vw,190px)!important;width:auto!important;max-width:31%!important;left:67%!important;bottom:0!important;object-fit:contain!important}.battle-log-layout>#log.battle-log{top:196px!important;left:12px!important;right:auto!important;transform:none!important;width:min(23%,280px)!important;max-width:280px!important;text-align:left!important}@media(max-width:700px){.battle-log-layout>.battle .stage{inset:118px 0 42px!important}.battle-log-layout>.battle .enemy-art{height:clamp(128px,41vw,165px)!important;max-width:37%!important;left:63%!important;bottom:0!important}.enemy-info{top:11px!important;right:10px!important;width:min(190px,46%)!important}.battle-log-layout>#log.battle-log{position:relative!important;top:auto!important;left:auto!important;right:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:6px 0 0!important;text-align:left!important}}@media(max-width:380px){.battle-log-layout>.battle .stage{inset:116px 0 40px!important}.battle-log-layout>.battle .enemy-art{height:132px!important;max-width:39%!important;left:61%!important}.enemy-info{right:8px!important;width:45%!important}}.battle .battle-vitals,.prep-status,.course-panel,.prep-stat,.profile .stat{color:#f1eadb}.divinity-count{display:inline-block;margin-left:6px;padding:1px 6px;border:1px solid #d7b87566;border-radius:99px;color:#e4c77d;font-size:.72em;letter-spacing:.04em;vertical-align:middle}.divinity-open{display:block;width:100%;margin:9px 0 0;padding:9px 12px;border:1px solid #d7b87577;border-radius:8px;background:linear-gradient(110deg,#30271d,#1a202b);color:#f0d891;text-align:left;letter-spacing:.08em}.divinity-modal[hidden],.divinity-count[hidden],.divinity-open[hidden]{display:none!important}.divinity-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px}.divinity-backdrop{position:absolute;inset:0;border:0;background:#05070bd9;backdrop-filter:blur(5px)}.divinity-dialog{position:relative;width:min(100%,510px);padding:28px;border:1px solid #d7b87599;border-radius:15px;background:radial-gradient(ellipse at 50% 0,#32303a,#171b24 70%);box-shadow:0 20px 80px #000b,0 0 0 5px #d7b87512;color:#f2eee5}.divinity-close{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#c9bd9d;font-size:25px}.divinity-kicker{color:#e0bf71;font-size:12px;letter-spacing:.24em}.divinity-dialog h2{margin:7px 0 12px;font:600 27px 'Shippori Mincho',serif;letter-spacing:.18em}.divinity-dialog p{color:#c6c0b3;line-height:1.85;font-size:14px}.divinity-preview-stats{display:grid;gap:8px;margin:18px 0;padding:13px;border:1px solid #d7b87535;border-radius:9px;background:#0c1119aa}.divinity-preview-stats span{display:flex;justify-content:space-between;gap:14px;color:#abb2ba;font-size:12px}.divinity-preview-stats b{color:#f0d891;text-align:right}.divinity-prepare,.divinity-confirm button{padding:10px 15px;border:1px solid #d7b87588;border-radius:8px;background:linear-gradient(120deg,#554026,#322b25);color:#ffeab0}.divinity-confirm{display:grid;gap:9px;margin-top:14px;padding:14px;border:1px solid #cb5b5977;border-radius:9px;background:#21181aaa}.divinity-confirm[hidden]{display:none}.divinity-confirm>span{color:#c6c0b3;font-size:12px;line-height:1.7}.divinity-confirm>div{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.divinity-confirm button:first-child{background:#202936;color:#d8dce0;border-color:#59616a}.divinity-confirm button:last-child{background:linear-gradient(120deg,#702f32,#392328);border-color:#d17470}@media(max-width:560px){.divinity-dialog{padding:23px 18px}.divinity-dialog h2{font-size:23px}.divinity-preview-stats span{font-size:11px}}.divinity-rate{margin:14px 0 3px;padding:10px 12px;border-left:2px solid #d7b875;border-radius:0 7px 7px 0;background:#282318;color:#f0d891;font-size:13px;line-height:1.7}.divinity-confirm button:last-child{font-weight:700}.divinity-prep-link[hidden]{display:none!important}.divinity-prep-link{border-color:#d7b87588;background:linear-gradient(100deg,#322b21,#171b23);color:#f0d891}.gear-slot-accordion,.gear-rank-accordion{overflow:hidden;border:1px solid #d7b87542;border-radius:9px;background:linear-gradient(145deg,#151c27ed,#0d131bdc)}.gear-slot-accordion>summary,.gear-rank-accordion>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;list-style:none;cursor:pointer;color:#f1dfb4}.gear-slot-accordion>summary::-webkit-details-marker,.gear-rank-accordion>summary::-webkit-details-marker{display:none}.gear-slot-accordion>summary>span,.gear-rank-accordion>summary>span{display:grid;gap:3px;min-width:0}.gear-slot-accordion>summary b{font:600 15px 'Shippori Mincho',serif}.gear-rank-accordion>summary b{font:600 12px 'Shippori Mincho',serif}.gear-slot-accordion>summary small,.gear-rank-accordion>summary small{color:#9ba6b1;font-size:10px}.gear-slot-accordion>summary>i,.gear-rank-accordion>summary>i{font-style:normal;color:#d7b875;transition:transform .18s}.gear-slot-accordion[open]>summary>i,.gear-rank-accordion[open]>summary>i{transform:rotate(180deg)}.gear-slot-content{display:grid;gap:8px;padding:0 9px 9px}.gear-rank-accordion{border-color:#ffffff1c;background:#0d131b99}.gear-rank-accordion>summary{padding:10px 11px}.gear-rank-list{display:grid;gap:7px;padding:0 8px 8px}.equipment-panel-list>.empty-state{padding:14px}
.prep-card-guide .guide-mark{grid-row:1/3;display:grid;place-items:center;width:74px;height:78px;border:1px solid #d7b87555;border-radius:8px;background:linear-gradient(145deg,#241d28,#111720);color:#e5c881;font:600 27px "Shippori Mincho",serif;box-shadow:inset 0 0 18px #d7b87512}.guide-panel{overflow:auto}.guide-accordions{display:grid;gap:9px;overflow:auto;padding:2px 5px 8px}.guide-accordions details{border:1px solid #d7b87535;border-radius:8px;background:linear-gradient(120deg,#1b2029,#121720);color:#e8e1d3}.guide-accordions summary{cursor:pointer;list-style:none;padding:13px 16px;color:#f0dca9;font:600 15px "Shippori Mincho",serif}.guide-accordions summary::-webkit-details-marker{display:none}.guide-accordions summary:after{content:"＋";float:right;color:#c4a96b;font:14px sans-serif}.guide-accordions details[open] summary:after{content:"−"}.guide-accordions p{margin:0;padding:0 16px 15px;color:#c5cbd0;font-size:13px;line-height:1.85;max-width:1000px}@media(max-width:560px){.prep-card-guide .guide-mark{width:56px;height:58px}.guide-accordions summary{padding:12px;font-size:14px}.guide-accordions p{padding:0 12px 12px;font-size:12px;line-height:1.75}}
#numberSettings{position:fixed!important;z-index:1000!important}