.play{gap:24px;display:grid}.play h1{margin:0;font-size:30px}.welcome-grid{grid-template-columns:1.2fr 1fr;align-items:center;gap:32px;min-height:70vh;display:grid}.welcome h1{font-size:clamp(28px,4vw,46px);line-height:1.5}.welcome p{color:#aab6cc;line-height:1.9}.welcome-monsters{gap:8px;display:flex}.portrait{aspect-ratio:1;background-image:url(/art/monsters-cel.png);background-repeat:no-repeat;background-size:600% 300%;border-radius:18px;flex-shrink:0;width:120px}.portrait.large{width:100%;max-width:260px;margin:16px auto}.portrait.tiny{border-radius:10px;width:54px}.auth{gap:18px;display:grid}.auth label,.modal label{gap:8px;display:grid}.auth h2{margin:0}.auth small{color:#99a8c0;line-height:1.6}.error{color:#ffcedc;background:#502b3f;border:1px solid #a25c77;border-radius:12px;padding:14px 18px}.starter-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.starter{text-align:left;cursor:pointer;color:inherit;transition:transform .2s,border-color .2s}.starter:hover{border-color:#a393eb;transform:translateY(-4px)}.starter h2{font-size:22px}.companion{color:#b6c1d6;align-items:center;gap:12px;font-size:13px;display:flex}.starter-link{color:#baf;margin-top:22px;display:block}.tutorial-track ol{justify-content:space-between;gap:12px;padding:0;list-style:none;display:flex}.tutorial-track li{color:#8090ac;text-align:center;justify-items:center;gap:8px;font-size:12px;display:grid}.tutorial-track li>span{border:1px solid #42506c;border-radius:50%;place-items:center;width:28px;height:28px;display:grid}.tutorial-track .current{color:#d7cdff}.tutorial-track .current>span{color:#fff;background:#8064c6}.tutorial-track .done{color:#87dbc4}.tutorial-track small{color:#98a7bf}.account-meta{color:#bbc8de;flex-wrap:wrap;align-items:center;gap:15px;font-size:13px;display:flex}.team-picker{flex-wrap:wrap;gap:14px;margin:18px 0;display:flex}.team-card{cursor:pointer;border:1px solid #34445f;border-radius:14px;justify-items:center;gap:8px;width:190px;padding:16px;display:grid;position:relative}.team-card.selected{background:#252340;border-color:#ad98fa}.team-card input{z-index:1;accent-color:#9b85e0;width:18px;height:18px;position:absolute;top:12px;left:12px}.team-card small{text-align:center;color:#aebbd0;font-size:11px}.actions{flex-wrap:wrap;gap:12px;margin-top:18px;display:flex}.expedition-party{flex-wrap:wrap;gap:22px;display:flex}.expedition-party>div{gap:8px;display:grid}.expedition-party small{color:#aebbd0}.battle-list{flex-wrap:wrap;gap:8px;margin-top:18px;display:flex}.reward-number{color:#e8cc87;font-size:30px}.receipt{border-color:#665989}.modal-backdrop{z-index:100;background:#030712d9;justify-content:center;align-items:center;padding:18px;display:flex;position:fixed;inset:0;overflow:auto}.modal{width:100%;max-width:570px;max-height:92vh;overflow:auto;box-shadow:0 20px 70px #0008}.modal>.portrait{margin:auto}.modal h2{line-height:1.6}.modal .stats strong{display:block}.battle-modal{max-width:840px}.battle-modal .battlefield{z-index:2;background:#111c30;top:0}.battle-modal .close{z-index:3;background:#26334b;margin-bottom:16px;position:sticky;top:0}.play button:disabled,.auth button:disabled{opacity:.45;cursor:wait}.play small{display:block}.play .filters{margin:18px 0;padding:0}.play details summary{cursor:pointer}.play details>button{margin:10px}.play .log-text,.play .fighter{text-align:left}.play .notice{line-height:1.8}.modal .stats{margin:16px 0}.modal form{gap:12px;display:grid}@media (width<=900px){.welcome-grid{grid-template-columns:1fr}.welcome-monsters .portrait{width:30%;max-width:160px}.starter-grid{gap:10px}.starter{padding:14px}.starter h2{font-size:18px}.tutorial-track ol{flex-wrap:wrap;justify-content:flex-start}.tutorial-track li{min-width:64px}.account-meta{gap:8px}.starter .companion{flex-direction:column;align-items:start}}@media (width<=600px){.starter-grid{grid-template-columns:1fr}.starter{grid-template-columns:110px 1fr;align-items:center;gap:8px;display:grid}.starter>.portrait.large{grid-area:1/1/5;width:110px;margin:0}.starter>.badge,.starter>h2,.starter>.companion,.starter>.starter-link{grid-column:2;margin:0}.starter .companion{flex-direction:row;align-items:center}.starter .companion .portrait{width:36px}.starter-link{font-size:13px}.team-card{width:calc(50% - 7px);padding:12px 5px}.team-card .portrait{width:105px}.team-picker{gap:10px}.modal-backdrop{padding:8px}.modal{padding:16px}.expedition-party .portrait{width:95px}.play h1{font-size:25px}.account-meta{font-size:12px}.play>.section-title{flex-direction:column;align-items:flex-start;gap:12px}.tutorial-track{padding:16px}.tutorial-track ol{gap:10px}.tutorial-track li{min-width:50px;font-size:10px}.play .log-text{font-size:12px}.welcome h1{font-size:30px}}.game-main{max-width:1280px;margin:auto;padding:24px}.game-tabs{z-index:5;background:#0b1020ef;flex-wrap:wrap;gap:8px;padding:12px 0;display:flex;position:sticky;top:0}.game-tabs button{color:#c8d4ec;background:#141c30;border:1px solid #303c58;border-radius:10px;padding:12px 20px}.selected{background:#293252!important;outline:2px solid #aea4ff!important}.workshop{grid-template-columns:1fr 1.2fr;gap:20px;margin-top:20px;display:grid}.item-list{flex-direction:column;gap:8px;max-height:420px;display:flex;overflow:auto}.item-detail{background:#0d1427;border-radius:12px;padding:20px}.equipment-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:20px;display:grid}.equipment-grid article>button{text-align:left;width:100%;margin:8px 0;display:block}.chat-history{max-height:550px;overflow:auto}.chat-history article{border-bottom:1px solid #303c58;padding:16px 0}.chat-text{white-space:pre-wrap;overflow-wrap:anywhere}textarea{color:#e2eafb;background:#0d1427;border:1px solid #3c4865;border-radius:8px;width:100%;min-height:90px;margin:8px 0;padding:12px;display:block}button:disabled{opacity:.45;cursor:not-allowed}@media (width<=650px){.game-main{padding:12px}.workshop{grid-template-columns:1fr}.game-tabs{gap:5px}.game-tabs button{flex:1 0 22%;padding:10px 5px}.item-list{max-height:240px}.item-detail{padding:14px}}.equipped-label{color:#8edbd5;margin-top:4px;display:block}.skill-slot small,.skill-slot strong{display:block}.fixed-slot{background:#10182a!important;border-style:dashed!important}.skill-slot{min-height:70px}.item-detail{align-self:start;position:sticky;top:105px}@media (width<=650px){.item-detail{position:static}}:root{color:#e6eaf6;font-synthesis:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#080e1d;font-family:Inter,Noto Sans JP,Yu Gothic UI,Meiryo,sans-serif;font-size:14px;line-height:1.7}*{box-sizing:border-box}body{background:radial-gradient(at 90% 0,#17294755,#0000 45%),#080e1d;margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:#131e32;border:1px solid #2b3852;border-radius:9px;padding:10px 16px;transition:background .15s,border-color .15s}button:hover{background:#22314e;border-color:#727ea5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline-offset:3px;outline:2px solid #b5a4ff}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{letter-spacing:.03em;font-size:30px}h2{font-size:18px}h3{font-size:16px}small{font-size:12px}input,select{width:100%;color:inherit;background:#0c1526;border:1px solid #34425c;border-radius:7px;padding:9px}label{color:#b6c1d9;font-size:12px}label input,label select{margin-top:5px;display:block}em{font-style:normal}.topbar{background:#0b1323e8;border-bottom:1px solid #263149;justify-content:space-between;align-items:center;gap:16px;height:88px;padding:0 max(24px,50vw - 640px);display:flex}.brand{align-items:center;gap:15px;font-family:Georgia,serif;font-size:27px;line-height:1.1;display:flex}.brand-sub{letter-spacing:.42em;color:#a9bad7;font:10px/2.4 sans-serif;display:block}.moon{color:#c8d9ff;text-shadow:0 0 18px #849fe28c;font-size:47px}.environment{color:#aebddb;align-items:center;gap:9px;font-size:12px;display:flex}.dot{background:#b4a2f9;border-radius:100%;width:6px;height:6px}.shell{grid-template-columns:200px minmax(0,1fr);gap:36px;max-width:1280px;margin:auto;padding:32px 24px 60px;display:grid}.shell>aside{border-right:1px solid #202b42;padding-right:22px}.shell>aside .eyebrow{margin:9px 0 24px;font-size:9px}nav{gap:8px;display:grid}nav button{text-align:left;color:#97a7c2;background:0 0;border-color:#0000;align-items:center;gap:16px;padding:13px;display:flex}nav button span{text-align:center;width:26px;font-size:24px}nav button.active{color:#d7d1ff;background:#232948;border-color:#41466e}.aside-note{color:#8394b7;margin:70px 0 0 14px;font-family:serif;font-size:18px;line-height:2}.aside-note small{letter-spacing:.15em;margin-top:30px;font-family:sans-serif;font-size:9px;display:block}.eyebrow{color:#a8b8db;letter-spacing:.22em;font-size:10px;font-weight:600}.hero{background:radial-gradient(at 80% 0,#34406d88,#0000 65%),linear-gradient(145deg,#15243d,#0d1528);border:1px solid #31415f;border-radius:16px;min-height:300px;padding:40px 36px;position:relative;overflow:hidden}.hero:after{content:"";pointer-events:none;border:1px solid #6476b122;border-radius:50%;width:60%;height:230px;position:absolute;bottom:-100px;right:-30px;transform:rotate(-12deg);box-shadow:0 -18px #6476b111,0 -38px #6476b109}.hero h1{margin:16px 0;font-family:serif;font-size:38px;font-weight:500}.hero p:not(.eyebrow){color:#abbad3;line-height:1.9}.hero-moon{filter:drop-shadow(0 0 24px #a4b7ff55);border-radius:50%;width:75px;height:75px;position:absolute;top:40px;right:70px;transform:rotate(-25deg);box-shadow:-18px 8px #d1dcff}.primary{color:#12152e;background:#a49ae6;border-color:#b9b0fa;min-height:44px;margin-top:25px;font-weight:700}.primary:hover{background:#c1b8ff}.primary span{padding-left:24px}.section-title{justify-content:space-between;align-items:center;gap:12px;margin:27px 0 15px;display:flex}.badge{color:#c4cee7;white-space:nowrap;border:1px solid #3c4863;border-radius:5px;padding:2px 8px;font-size:11px;display:inline-block}.zone-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;display:grid}.zone{text-align:left;background:linear-gradient(145deg,#132c31,#101b2b);min-height:205px;padding:22px 18px}.zone.cave{background:linear-gradient(145deg,#222c46,#101829)}.zone.lake{background:linear-gradient(145deg,#142b44,#101829)}.landmark{color:#91b5b4;margin-bottom:10px;font-size:36px;display:block}.cave .landmark{color:#b6a8e3}.lake .landmark{color:#8dbbdb}.zone p{color:#9cacc7;margin:8px 0 18px;font-size:12px}.zone-link{color:#b5c2dc;font-size:11px}.panel{background:#111b2d;border:1px solid #2a3751;border-radius:12px;padding:24px}.connection{justify-content:space-between;align-items:center;gap:20px;margin-top:24px;display:flex}.connection h2{margin:5px 0}.connection-state{flex-wrap:wrap;align-items:center;gap:14px;display:flex}.status{color:#d6bd91;font-size:12px}.status.ok{color:#93d4c6}.quiet{background:0 0;padding:7px 13px;font-size:12px}.muted{color:#9aaac7}.notice{color:#899bb9;margin-top:20px;font-size:12px;line-height:1.9}.heading{margin:4px 0 26px}.heading h1{margin:8px 0}.chips{flex-wrap:wrap;gap:8px;margin-bottom:22px;display:flex}.chips button{border-radius:20px;padding:7px 14px;font-size:12px}.selected{background:#242c49!important;border-color:#8c83c9!important}.roster-layout{grid-template-columns:1fr 1.25fr;align-items:start;gap:24px;display:grid}.monster-list{gap:9px;display:grid}.monster-row{text-align:left;align-items:center;gap:12px;width:100%;padding:13px;display:flex}.monster-row>span:nth-child(2){flex:1}.monster-row small{color:#8f9fbc;font-size:10px;display:block}.avatar{color:#c7d6ed;background:linear-gradient(145deg,#34435c,#172237);border:1px solid #556078;border-radius:10px;place-items:center;width:38px;height:42px;font-family:serif;font-size:20px;display:grid}.character{position:sticky;top:20px}.character-title{justify-content:space-between;align-items:center;gap:10px;margin:12px 0 24px;display:flex}.level-summary{border-block:1px solid #2b3850;grid-template-columns:1fr 1fr;margin-bottom:16px;padding:16px 0;display:grid}.level-summary small{color:#99aaca;display:block}.level-summary strong{font-size:26px;font-weight:500}.level-summary em{color:#7d90b2;font-size:12px}.stat{border-bottom:1px solid #1e2c42;grid-template-columns:1fr 1fr 90px;align-items:center;gap:14px;padding:8px 0;display:grid}.stat>span{color:#a7b8d6;font-size:12px}.stat>strong{text-align:right;font-variant-numeric:tabular-nums;font-size:17px}.stat label{align-items:center;gap:6px;display:flex}.stat input{width:60px;margin:0;padding:5px}.filters{grid-template-columns:1.4fr repeat(3,1fr) 1.35fr;gap:12px;padding:18px;display:grid}.memory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;display:grid}.memory{padding:20px}.memory-heading{align-items:center;gap:12px;display:flex}.rank{color:#d9c4ef;background:#302844;border:1px solid #73668b;border-radius:5px;place-items:center;width:34px;height:38px;font-size:19px;display:grid}.rank-E{color:#afc1c5;background:#243239}.rank-D{color:#b0d1b6;background:#25392f}.rank-C{color:#b0c6ed;background:#243149}.memory-heading small{color:#9baccc;font-size:10px}.cost{white-space:nowrap;color:#8f9fbd;margin-left:auto;font-size:9px}.cost strong{color:#c1cde6;margin-left:4px;font-size:19px}.memory-meta{margin:14px 0 10px}.memory p{color:#b0bfd8;font-size:12px;line-height:1.9}.empty{text-align:center;color:#9ba9c3;padding:60px}.battlefield{z-index:2;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#111b2df5;padding:16px 22px;position:sticky;top:0}.battlefield>.section-title{margin:0 0 12px}.battlefield h2{font-size:14px}.teams{grid-template-columns:1fr 1fr;gap:20px;display:grid}.side-label{color:#9cacca;margin-bottom:7px;font-size:11px}.fighter{text-align:left;border-radius:6px;width:100%;margin-bottom:7px;padding:8px 10px;font-size:12px}.fighter>span{justify-content:space-between;align-items:center;gap:8px;display:flex}.fighter small{font-variant-numeric:tabular-nums;color:#bdcae3;font-size:11px}.fighter meter{width:100%;height:8px;margin:7px 0 3px;display:block}meter::-webkit-meter-bar{background:#243146;border:0}meter::-webkit-meter-optimum-value{background:#7cc9b9}.effect-tags{flex-wrap:wrap;gap:4px;display:flex}.effect-tags span{color:#d2c9ff;background:#373453;border-radius:3px;padding:0 4px;font-size:9px}.effects{border-top:1px solid #2a3751;margin-top:10px;padding-top:10px;font-size:12px}.effects summary{cursor:pointer;color:#c5bcf2}.effects>div{padding-top:10px}.effects p{margin-top:6px}.effects small{color:#93a6c8;display:block}.log{margin-top:20px;padding:20px 14px}.log-row{border:1px solid #0000;border-radius:7px;align-items:flex-start;min-height:0;margin:0;display:flex}.toggle,.leaf{text-align:center;background:0 0;border:none;flex-shrink:0;width:24px;min-height:0;padding:0 3px;line-height:1.35;display:block}.leaf{color:#657a9e}.log-text{text-align:left;background:0 0;border:0;border-radius:5px;flex:1;padding:0 3px;font-size:13px;line-height:1.35}.log-text:hover{background:#273249}.log-row.selected .log-text{color:#dfd9ff}footer{color:#8190ab;border-top:1px solid #243048;justify-content:space-between;max-width:1232px;margin:auto;padding:24px;font:12px Georgia,serif;display:flex}footer span{font-family:sans-serif;font-size:10px}@media (width<=1000px){.shell{grid-template-columns:160px minmax(0,1fr);gap:22px}.zone-grid{grid-template-columns:1fr}.zone{grid-template-columns:50px 1fr;gap:2px 14px;min-height:0;display:grid}.landmark{grid-row:1/4;margin:0}.zone p{margin:3px 0}.zone-link{grid-column:2}.filters{grid-template-columns:repeat(3,1fr)}.filters label:first-child{grid-column:span 2}.roster-layout{grid-template-columns:1fr}.character{position:static}.monster-list{grid-template-columns:repeat(2,1fr)}.memory-grid{grid-template-columns:1fr}.hero-moon{opacity:.6;right:35px}}@media (width<=640px){:root{font-size:13px}.topbar{height:73px;padding:0 18px}.brand{gap:10px;font-size:22px}.moon{font-size:37px}.brand-sub{font-size:8px}.environment{font-size:10px}.shell{padding:20px 16px 88px;display:block}.shell>aside{z-index:5;padding:6px 8px max(6px, env(safe-area-inset-bottom));background:#0b1426f5;border:0;border-top:1px solid #34405c;position:fixed;bottom:0;left:0;right:0}.shell>aside>.eyebrow,.aside-note{display:none}nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}nav button{border-radius:7px;flex-direction:column;gap:0;padding:3px 0;font-size:10px;display:flex}nav button span{font-size:22px;line-height:1.5}.hero{min-height:300px;padding:30px 24px}.hero h1{font-size:33px}.hero-moon{opacity:.6;width:55px;height:55px;top:35px;right:24px}.hero .eyebrow{font-size:8px}.connection{align-items:flex-start;padding:18px}.connection-state{flex-direction:column;align-items:flex-end;gap:7px}.heading h1{font-size:26px}.heading .muted{font-size:12px}.panel{padding:18px}.filters{grid-template-columns:1fr 1fr}.filters label:first-child,.filters label:last-child{grid-column:span 2}.monster-list{grid-template-columns:1fr}.monster-row{min-height:65px}.roster-layout{flex-direction:column-reverse;display:flex}.character,.monster-list{width:100%}.battlefield{padding:12px 10px;top:0}.teams{gap:8px}.fighter{padding:7px 6px;font-size:10px}.fighter>span{flex-wrap:wrap;gap:0 7px}.fighter small{font-size:10px}.effects{font-size:11px}.log{padding:12px 4px}.log-text{font-size:11px}.toggle,.leaf{width:29px}.memory{padding:17px}footer{display:none}}.beta-notice{color:#f2e4c8;background:#262332;border:1px solid #8f784d;border-left:3px solid #e8c47b;border-radius:8px;margin:12px 0;padding:14px 16px;font-size:13px;line-height:1.7}.beta-notice p{margin:6px 0 0}.help-topic{border-bottom:1px solid #35435d}.help-topic summary{cursor:pointer;padding:16px 8px;font-weight:700}.help-topic summary:focus-visible{border-radius:6px;outline:2px solid #d6b8ff}.help-topic>div{overflow-wrap:anywhere;padding:0 10px 12px;line-height:1.8}.help-topic p{margin:8px 0}.game-announcement{background:#142037;border:1px solid #475b7b;border-radius:8px;margin:12px 0;padding:16px;line-height:1.7}.game-announcement h4{margin:0 0 6px}.game-announcement time{color:#b9c9e1;font-size:12px}.practice-panel{border-block:1px solid #35435d;margin:20px 0;padding:16px 0}.practice-opponents{overscroll-behavior:contain;gap:8px;max-height:360px;margin:12px 0;display:grid;overflow:auto}.practice-opponent{text-align:left;flex-direction:column;gap:5px;width:100%;display:flex}.practice-opponent small{overflow-wrap:anywhere}.practice-team{flex-wrap:wrap;gap:12px;display:flex}.practice-team>span{align-items:center;gap:4px;font-size:12px;display:flex}.practice-panel label{flex:1;min-width:0}.practice-panel input{width:100%}.feature-icon{object-fit:contain;vertical-align:middle;flex-shrink:0;width:19px;height:19px}.rank{min-width:1em;font-weight:800;display:inline-block}.rank-E{color:#cbd2df}.rank-D{color:#83e2a0}.rank-C{color:#80bcff}.rank-B{color:#d6b8ff}.rank-A{color:#ffc07c}.rank-S{color:#79edff}.equipment-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:stretch;gap:14px;display:grid}.equipment-detail,.equipment-list{background:#101a2d;border:1px solid #30405b;border-radius:12px;min-width:0;padding:14px}.equipment-detail{overflow-wrap:anywhere;overflow:auto}.equipment-detail h3,.equipment-detail p{margin:8px 0}.equipment-detail>button{margin:6px 5px 0 0}.equipment-detail .feature-icon{margin-right:5px}.equipment-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.equipment-stats>div{background:#1b2840;border-radius:6px;padding:6px}.equipment-stats dt,.equipment-stats dd{margin:0}.equipment-stats small{color:#a9bad4;font-size:11px;display:block}.equipment-list{flex-direction:column;gap:8px;display:flex}.equipment-list h3{margin:0}.equipment-list input{width:100%;min-width:0}.equipment-filters{grid-template-columns:1fr 1fr;gap:5px;display:grid}.equipment-filters select{width:100%;min-width:0;padding:5px;font-size:12px}.equipment-items{flex-direction:column;gap:5px;min-height:90px;display:flex;overflow:auto}.equipment-item{text-align:left;flex-shrink:0;justify-content:space-between;align-items:center;gap:5px;width:100%;padding:8px;display:flex}.equipment-item-text{flex-direction:column;min-width:0;display:flex}.equipment-item-text strong{overflow-wrap:anywhere;line-height:1.4}.equipment-item-text>span{font-size:12px}.equipped-label{color:#9de6c3;font-size:11px}.icon-matrix{flex-shrink:0;grid-template-rows:repeat(2,22px);grid-template-columns:repeat(2,22px);gap:2px;display:grid}.skill-icons>span{justify-content:center;align-items:center;display:flex}.icon-matrix>span:first-child{position:relative}.icon-matrix>span:first-child:has(img:nth-child(2)) img{width:13px;height:13px}.inline-icons{gap:2px;display:flex}.inline-icons .feature-icon{width:13px;height:13px}.inline-icons>span:empty{display:none}.merge-filter{align-items:center;gap:6px;font-size:12px;display:flex}.merge-filter input{width:auto}.inventory-workspace .equipment-items{max-height:65vh}.inventory-workspace .equipment-detail{max-height:80vh}.formation-editor{--slot-width:160px}.formation-editor>.chips{margin-bottom:10px}.formation-editor .equipment-workspace{height:350px}.formation-editor .equipment-items{flex:1}.formation-sheet{z-index:5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#121d32f7;border:1px solid #536687;border-radius:18px 18px 8px 8px;margin-top:14px;padding:7px 12px 12px;position:sticky;bottom:0;box-shadow:0 -8px 28px #0004}.sheet-handle{background:#6c7c98;border-radius:5px;width:44px;height:4px;margin:0 auto 5px}.sheet-toolbar{justify-content:space-between;align-items:center;margin-bottom:5px;display:flex}.sheet-toolbar button{margin-left:4px;padding:2px 11px}.sheet-toolbar button[aria-pressed=true]{background:#34335c;border-color:#b5a4ff}.loadout-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.loadout-columns>article{min-width:0}.character-inspect{background:0 0;border:0;flex-direction:column;align-items:center;width:100%;padding:3px;font-size:12px;line-height:1.4;display:flex}.character-inspect strong{overflow-wrap:anywhere}.character-inspect small{color:#b9c9e1}.character-inspect .portrait{width:44px;min-width:44px;height:44px}.loadout-body{flex-direction:column;gap:4px;display:flex}.loadout-slot,.weapon-slot{text-align:left;background:#1b2a43;border:1px solid #445576;border-radius:7px;flex-direction:column;justify-content:center;width:100%;min-width:0;min-height:62px;padding:5px 7px;line-height:1.25;display:flex;position:relative}.weapon-slot{min-height:43px}.slot-top{color:#a7b9d3;justify-content:space-between;align-items:center;min-height:12px;font-size:10px;display:flex}.slot-cost{color:#e2d8ff;font-size:11px}.card-name{overflow-wrap:anywhere;font-size:12px;line-height:1.35}.card-bottom{justify-content:space-between;align-items:center;gap:2px;margin-top:3px;font-size:11px;display:flex}.card-bottom small{font-size:10px}.card-bottom>span:first-child{white-space:nowrap}.fixed-slot{background:#162136;border-color:#35435d}.invalid-slot{border:2px solid #ff747e;padding:4px 6px}.selected,.loadout-slot.selected{border-color:#b9a0ff}.drop-target{background:#284655!important;outline:3px solid #a6f0d3!important}.draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.draggable:active{cursor:grabbing}.drag-ghost{z-index:10000;pointer-events:none;opacity:.93;border-color:#c4afff;position:fixed;box-shadow:0 8px 28px #0009}.detail-drag-card{width:min(var(--slot-width), 100%)}.drag-source-area p{color:#c8b8ff;font-size:12px}.target-mode{margin-top:8px;font-size:11px;padding:5px!important}.empty-slot{color:#9eb1ce;font-size:12px}.capacity,.normal-attack{color:#adbfda;text-align:center;font-size:10px}.empty-party{color:#96a8c5;border:1px dashed #41516c;border-radius:9px;place-content:center;font-size:12px;display:grid}.sheet-small .loadout-body{display:none}.sheet-large .equipment-workspace{height:250px}.party-chooser{margin-bottom:10px}.party-chooser>summary{cursor:pointer;padding:10px}.ally-name{color:#8ee5ac}.enemy-name{color:#ff959e}.fighter-heading{align-items:center;gap:7px;display:flex}.fighter-heading .portrait{width:30px;min-width:30px;height:30px}.fighter-heading small{display:block}.log-row .log-text{text-align:left;overflow-wrap:anywhere;min-width:0}.hp-graph{border:1px solid #3c4d69;border-radius:9px;margin:12px 0;padding:10px}.hp-graph summary{cursor:pointer;font-weight:700}.hp-graph svg{width:100%;display:block}.graph-legend{flex-wrap:wrap;gap:12px;font-size:12px;display:flex}.hp-graph label{align-items:center;gap:8px;display:flex}.graph-selection{font-size:12px}.graph-selection p{margin:5px 0}@media (width<=600px){.equipment-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}.equipment-detail,.equipment-list{border-radius:8px;padding:8px}.equipment-detail{font-size:12px}.equipment-detail h3{font-size:15px}.equipment-item{gap:2px;padding:6px}.equipment-item strong{font-size:12px}.equipment-item-text>span{font-size:10px}.icon-matrix{grid-template-rows:repeat(2,17px);grid-template-columns:repeat(2,17px);gap:1px}.icon-matrix .feature-icon{width:16px;height:16px}.icon-matrix>span:first-child:has(img:nth-child(2)) img{width:10px;height:10px}.formation-sheet{margin-left:-8px;margin-right:-8px;padding:6px}.loadout-columns{gap:4px}.loadout-slot,.weapon-slot{min-height:66px;padding:4px}.weapon-slot{min-height:44px}.invalid-slot{padding:3px}.card-name{font-size:11px}.card-bottom{flex-wrap:wrap}.inline-icons .feature-icon{width:11px;height:11px}.inline-icons{gap:1px}.character-inspect{font-size:11px}.equipment-stats{gap:4px}.equipment-filters select{padding:3px;font-size:11px}.formation-editor .equipment-workspace{height:320px}.sheet-large .equipment-workspace{height:230px}.fighter-heading{gap:3px;font-size:11px}.fighter-heading .portrait{width:24px;min-width:24px;height:24px}.log-row{font-size:12px}.inventory-workspace .equipment-items{max-height:65dvh}}.equipment-detail,.equipment-list{min-height:0}.rank{width:auto;height:auto;font-size:inherit;line-height:inherit;background:0 0;border:0;border-radius:0;padding:0}.play .card-bottom small{display:inline}.card-bottom>span:first-child{align-items:center;gap:4px;display:flex}.formation-sheet .loadout-columns{max-height:65dvh;overflow:auto}.formation-editor .equipment-workspace{overflow:hidden}.formation-sheet .card-bottom{flex-wrap:nowrap}.formation-editor{scroll-margin-top:75px}.formation-sheet .character-inspect .portrait{width:32px;min-width:32px;height:32px}.formation-sheet .loadout-slot{min-height:50px}.formation-sheet .weapon-slot{min-height:36px}.formation-sheet .character-inspect{padding:2px}.sheet-large .loadout-slot{min-height:70px}@media (width<=650px){.game-tabs{flex-wrap:nowrap;gap:4px;padding:6px 0;overflow-x:auto}.game-tabs button{flex:none;padding:7px 12px}.formation-editor .equipment-workspace{height:clamp(210px,100dvh - 550px,320px)}.formation-editor{scroll-margin-top:54px}.formation-sheet .loadout-slot{min-height:50px;padding:3px}.formation-sheet .invalid-slot{padding:2px}.formation-sheet .weapon-slot{min-height:36px;padding:3px}.sheet-large .loadout-slot{min-height:65px}.sheet-large .equipment-workspace{height:210px}.loadout-columns{gap:4px}}.formation-editor{flex-direction:column;height:calc(100dvh - 80px);min-height:650px;display:flex}.formation-editor>.chips{flex-shrink:0}.formation-editor .equipment-workspace{flex:1;height:auto;min-height:180px}.formation-sheet{flex-shrink:0;position:relative;bottom:auto}.formation-sheet .loadout-columns{max-height:54dvh}.sheet-large .loadout-columns{max-height:65dvh}.sheet-small .loadout-columns{max-height:100px}.formation-editor.sheet-large{min-height:760px}@media (width<=650px){.formation-editor{height:calc(100dvh - 54px);min-height:680px}.formation-editor .equipment-workspace{height:auto}.formation-sheet .loadout-columns{max-height:54dvh}.sheet-large .loadout-columns{max-height:65dvh}}.formation-editor .detail-drag-card{min-height:var(--slot-height,50px);height:var(--slot-height,50px);padding:3px}.formation-editor .detail-drag-card .slot-top{position:absolute;top:3px;right:3px}.formation-editor .detail-drag-card .card-name{padding-right:14px}@media (width>=651px){.equipment-workspace{grid-template-columns:minmax(0,1fr) minmax(250px,400px)}.formation-sheet .loadout-slot{height:60px}.formation-sheet .weapon-slot{height:46px}.sheet-large .loadout-slot{height:75px}}@media (width<=650px){.formation-sheet .loadout-slot{height:50px}.formation-sheet .weapon-slot{height:38px}.sheet-large .loadout-slot{height:65px}}.formation-editor,.formation-editor.sheet-large{height:calc(100dvh - 80px);min-height:calc(var(--sheet-height,50dvh) + 240px);padding-bottom:calc(var(--sheet-height,50dvh) + 12px)}.formation-editor .formation-sheet{z-index:8;width:min(100% - 24px,1232px);max-height:50dvh;padding-bottom:max(8px, env(safe-area-inset-bottom));border-bottom-right-radius:0;border-bottom-left-radius:0;flex-direction:column;margin:0;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.formation-sheet .sheet-toolbar,.formation-sheet .sheet-handle{flex-shrink:0}.formation-editor .formation-sheet .loadout-columns{min-height:0;max-height:none;overflow-y:auto}.formation-editor.sheet-large .formation-sheet{max-height:70dvh}.formation-editor.sheet-small .formation-sheet{max-height:140px}.equipment-search{flex-shrink:0;font-size:12px}.equipment-search summary{cursor:pointer;color:#c7d5ef;padding:3px 0}.equipment-search[open]{max-height:190px;padding-bottom:5px;overflow-y:auto}.equipment-search input{margin:5px 0}.equipment-search .equipment-filters{margin-top:4px}.equipment-items{min-height:0}@media (width<=650px){.formation-editor,.formation-editor.sheet-large{height:calc(100dvh - 54px);min-height:calc(var(--sheet-height,50dvh) + 230px)}.formation-editor .formation-sheet{width:100%}.equipment-list{gap:4px}.equipment-search summary{font-size:11px}}.formation-editor{min-height:0;padding-bottom:calc(var(--requested-sheet-height) + 12px);box-sizing:border-box}.formation-editor .formation-sheet{height:var(--requested-sheet-height);box-sizing:border-box;max-height:75dvh}.formation-editor .equipment-workspace{min-height:80px}.formation-sheet .loadout-columns{flex:1}.formation-sheet .sheet-handle{cursor:ns-resize;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;place-items:center;width:100%;height:26px;margin:-4px 0 0;display:grid}.sheet-handle span{background:#a8b9d3;border-radius:5px;width:44px;height:4px}.sheet-handle:focus-visible{outline:2px solid #d6b8ff}.character-stats dt{white-space:nowrap;align-items:center;gap:4px;font-size:12px;display:flex}.stat-icon{object-fit:contain;width:18px;height:18px}.character-stats dd{margin-top:4px;font-size:17px;font-weight:700}.character-stats dd small{font-weight:400}.equipment-item-text>span{flex-wrap:wrap;align-items:baseline;gap:4px;display:flex}.play .equipment-item-text .equipped-label{white-space:nowrap;font-size:inherit;display:inline}.drag-ghost,.drag-ghost *{pointer-events:none!important}@media (width<=650px){.formation-editor{min-height:0}.character-stats>div{padding:5px 3px}.character-stats dt{gap:2px;font-size:10px}.stat-icon{width:15px;height:15px}}.formation-editor .formation-sheet{overscroll-behavior:none;overflow:hidden}.formation-editor .formation-sheet .loadout-columns{overscroll-behavior:none;touch-action:pan-y;-webkit-overflow-scrolling:touch}.equipment-items,.equipment-detail{overscroll-behavior:contain}.touch-drag-hint{display:none}@media (pointer:coarse){.touch-drag-hint{color:#b9c9e1;font-size:10px;display:inline}}.formation-sheet .sheet-toolbar{touch-action:none}.skill-icons.inline-icons{--skill-icon-size:13px;grid-template-columns:repeat(5, var(--skill-icon-size));flex-shrink:0;gap:2px;margin-left:auto;display:grid}.skill-icons.inline-icons>span,.skill-icons.inline-icons>span:empty{width:var(--skill-icon-size);height:var(--skill-icon-size);display:flex}.skill-icons.inline-icons .feature-icon{width:var(--skill-icon-size);height:var(--skill-icon-size)}@media (width<=600px){.skill-icons.inline-icons{--skill-icon-size:11px;gap:1px}}
