.demo-launch{padding:24px;margin-bottom:28px}.demo-launch-title{max-width:680px}.demo-launch-title h2{font-size:29px;margin:5px 0 10px}.demo-launch-title p{font-size:12px;line-height:1.7}.demo-scenario-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.demo-scenario-cards article{display:flex;gap:15px;align-items:center;padding:16px;border:1px solid #b28d4e;background:#f0dbac77;min-width:0}.demo-scenario-cards article>img{height:145px;width:110px;object-fit:contain}.demo-scenario-cards h3{font-size:23px;color:#694417}.demo-scenario-cards p{font-size:11px;margin:8px 0 14px;max-width:240px}.demo-challenge{display:flex;align-items:center;gap:9px;color:#65431e;font-size:12px;cursor:pointer;min-height:44px}.demo-challenge input{accent-color:#8b5c21;width:17px;height:17px}.demo-assist-note{font-size:11px;line-height:1.7;max-width:780px;margin-bottom:12px}.demo-launch>.small-text{margin-top:12px;font-size:10px}
.demo-header{position:relative;display:grid;grid-template-columns:320px minmax(0,1fr) 320px;height:81px;background:linear-gradient(#1b1c17,#263235 65%,#12242b);padding:0;gap:0;align-items:start;z-index:10}.demo-header .hud-portrait>img{position:absolute;width:125px;height:136px;object-fit:contain;left:-30px;top:0}.demo-header .target-orb{display:grid;place-items:center;font:24px Georgia;color:#f8dda1}.demo-header .demo-meter{height:13px;margin-top:3px}.demo-round{display:grid;grid-template-columns:35px 1fr;margin:20px auto 0;min-width:210px;height:34px;border:2px solid #ba8c39;background:linear-gradient(#8cbb11,#416802);color:#fff3bf;text-align:center;box-shadow:inset 0 0 0 1px #f6da78;position:relative}.demo-round>span{display:grid;place-items:center;border-right:1px solid #c6a43e;background:#185274;font-size:13px;font-weight:bold}.demo-round>strong{display:grid;place-items:center;font-size:14px;font-weight:normal}.demo-round>small{position:absolute;top:35px;left:0;right:0;font-size:9px;color:#e2c17b}
.demo-toolbar{display:flex;align-items:center;gap:16px;padding:7px 12px;border-top:1px solid #926d2a;border-bottom:1px solid #926d2a;background:#172b30;color:#d8bd7e;font-size:10px;min-height:40px}.demo-toolbar button{background:transparent;color:#dec18a;border:0;padding:4px;min-height:30px;font-size:10px}.demo-toolbar>span{margin-left:auto}.demo-toolbar button:hover{color:#fff3c4;text-decoration:underline}.demo-main{padding:7px 7px 0}.demo-field{min-height:450px;aspect-ratio:940/405;overflow:hidden}.demo-prompt{position:absolute;left:18%;right:18%;top:10px;text-align:center;z-index:5;font-size:11px;color:#ffedbb;text-shadow:0 1px 3px #130e02}.demo-units{position:absolute;inset:0;pointer-events:none}.demo-unit{position:absolute;left:var(--unit-x);bottom:var(--unit-y);transform:translateX(-50%);width:200px;height:230px;border:0;background:transparent;padding:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;pointer-events:auto;cursor:pointer;color:#fff0bd;z-index:2}.demo-unit.side-1{z-index:3}.demo-unit.dead{opacity:.8;cursor:default;pointer-events:none}.demo-unit.selected{z-index:4}.demo-unit.selected:after,.demo-unit:hover:after{content:'';position:absolute;bottom:37px;left:calc(50% - 45px);width:90px;height:15px;border:2px solid #ffe873;border-radius:50%;box-shadow:0 0 7px #f7e465;background:#f6ce3022;z-index:-1}.demo-unit:focus-visible{outline:1px dashed #fff0a3;outline-offset:3px}.demo-actor-sprite{width:230px;height:190px;display:flex;align-items:flex-end;justify-content:center;pointer-events:none;position:relative;flex-shrink:0}.demo-static-sprite{display:block;height:180px;max-width:245px;object-fit:contain;filter:drop-shadow(1px 3px 2px #0006)}.demo-actor-sprite.animated>.demo-static-sprite{display:none}.demo-actor-sprite canvas{position:absolute;bottom:0;left:50%;transform:translateX(-50%);height:auto;pointer-events:none;max-width:none}.demo-unit.dead .demo-static-sprite{filter:grayscale(.65) brightness(.65);transform:rotate(-65deg) translate(-20px,12px);height:100px;transform-origin:50% 100%}.demo-unit-caption{position:absolute;top:-6px;left:0;right:0;text-align:center;pointer-events:none;text-shadow:0 1px 3px #000}.demo-unit-caption strong{font-size:11px;font-weight:normal;display:block}.demo-unit-caption small{font-size:8px;color:#e8dba8}.demo-unit-status{width:110px;height:38px;flex-shrink:0;margin-top:1px;pointer-events:none}.demo-meter{height:12px;border:1px solid #653b1b;background:#231813;position:relative;overflow:hidden;box-shadow:0 0 0 1px #c29b57}.demo-meter>i{display:block;height:100%;background:linear-gradient(#f57a42,#b42312 55%,#65110c);transition:width .15s}.demo-meter.power{margin-top:3px;height:9px}.demo-meter.power>i{background:linear-gradient(#edd86c,#b08c14)}.demo-meter>span{position:absolute;inset:0;text-align:center;font:9px/11px Tahoma;color:#fff8dc;text-shadow:0 1px #000}.demo-meter.power>span{font-size:7px;line-height:8px}.demo-effects{display:flex;gap:3px;justify-content:center;position:relative;flex-wrap:wrap;margin-top:3px}.demo-effects>span{background:#302315dd;border:1px solid #bd9d55;color:#ffe4a2;padding:1px 3px;font-size:7px;max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.demo-initiative{position:absolute;right:7px;top:31%;width:116px;z-index:6}.demo-initiative h3{font:9px Tahoma;color:#fff0ba;text-shadow:0 1px #000;text-align:right;margin-bottom:6px}.demo-order-entry{width:100%;height:41px;position:relative;text-align:left;border:1px solid #bb9b3d;box-shadow:inset 0 0 0 1px #74531c;background:linear-gradient(#5a4c20,#342e16);color:#fff2c9;margin-bottom:4px;padding:4px 5px 3px 28px;border-radius:3px}.demo-order-entry>span{position:absolute;left:-6px;top:3px;border:1px solid #e6c762;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(#95bb2d,#406806);font:18px Georgia}.demo-order-entry.enemy>span{background:linear-gradient(#ed7d27,#a22215)}.demo-order-entry strong{display:block;font-size:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:normal}.demo-order-entry small{font-size:8px;color:#e7c888}.demo-order-entry.dead{opacity:.4}.demo-field-controls{position:absolute;left:18px;right:20px;bottom:13px;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:12px}.demo-field-controls>span{color:#f3dca5;font-size:9px;text-shadow:0 1px #000}.demo-field-controls .finish-turn{width:170px;font-size:12px;height:35px}.demo-float{position:absolute;top:36%;left:50%;transform:translateX(-50%);font:22px Georgia;color:#ffe4b3;opacity:0;text-shadow:0 1px 3px #000;white-space:nowrap;pointer-events:none;z-index:9}.demo-float.show{opacity:1;animation:demo-number 1.1s ease-out forwards}.demo-float.heal{color:#b7ed70}.demo-float.damage{color:#ffc27d}.demo-float.buff{font-size:12px;color:#d5bafa}@keyframes demo-number{0%{transform:translate(-50%,12px);opacity:0}15%{opacity:1}80%{opacity:1}100%{transform:translate(-50%,-35px);opacity:0}}
.demo-menu-slot{position:absolute;left:50%;top:34%;z-index:10;width:280px;pointer-events:none}.demo-target-menu{background:#d7bb7f;border:2px solid #9f7333;box-shadow:0 0 0 1px #e6ca82,0 4px 18px #21170ec2;pointer-events:auto}.demo-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#4f341c;color:#ffe4b3;min-height:30px;padding:3px 9px;font-size:11px}.demo-menu-heading>strong{font-weight:normal}.demo-menu-heading button{border:0;background:transparent;color:#ffe8b1;font:22px/22px Georgia;min-width:30px;min-height:30px}.demo-ability-list{padding:5px}.demo-ability{display:flex;align-items:center;gap:8px;text-align:left;width:100%;background:transparent;border:1px solid transparent;min-height:49px;padding:4px 6px;color:#5c3a17}.demo-ability:hover:not(:disabled){background:#f2dcaa;border-color:#a78341}.demo-ability>img{width:34px;height:34px;object-fit:contain;background:#342714;border:1px solid #a88439;border-radius:50%}.demo-ability>span{min-width:0}.demo-ability strong{font-size:11px;font-weight:normal;display:block}.demo-ability small{font-size:9px;display:block;margin-top:2px;color:#866032}.demo-ability kbd{margin-left:auto;font:9px Tahoma;border:1px solid #b39a68;padding:1px 4px;flex-shrink:0}.demo-target-menu>p{padding:12px;font-size:12px}.demo-load-status{min-height:23px;color:#cab275;font-size:9px;padding:5px 10px}.demo-load-status button{background:transparent;color:#efcd88;border:0;text-decoration:underline;font-size:10px;min-height:30px}.demo-bottom{display:grid;grid-template-columns:minmax(0,1fr) 260px;background:#e7d19c;border:1px solid #a58a50;margin:4px 7px 7px;min-height:190px;max-height:240px}.demo-log{padding:12px 16px;overflow:auto;scrollbar-width:thin;scrollbar-color:#ac8742 #ddc28e;max-height:235px}.demo-log p{font-size:11px;line-height:1.65;color:#66411a;margin:2px 0}.demo-log p>span{font-size:9px;margin-right:8px;color:#a48043}.demo-log .demo-log-damage,.demo-log .demo-log-death{color:#933d21}.demo-log .demo-log-heal{color:#527528}.demo-log .demo-log-outcome{color:#815006;font-weight:bold}.demo-help{border-left:1px solid #b28f4b;padding:13px;color:#68481e;overflow:auto}.demo-help summary{cursor:pointer;font:19px Georgia;min-height:30px}.demo-help p{font-size:10px;line-height:1.65;color:#78552b;margin:7px 0}.demo-result-slot{position:absolute;inset:0;display:grid;place-items:center;z-index:9;pointer-events:none}.demo-result{background:#e6cc93;border:3px solid #947137;box-shadow:0 0 0 1px #f9e7b5,0 10px 35px #17120fc9;padding:27px;max-width:430px;text-align:center;pointer-events:auto}.demo-result>span{font-size:9px;color:#9f722e;letter-spacing:1px}.demo-result h2{font:32px Georgia;color:#69421a;margin:9px 0}.demo-result p{font-size:12px;color:#87602b;margin-bottom:18px}.demo-result>div{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.demo-result .button{font-size:11px;min-height:40px}
@media(max-width:1100px){.demo-header{grid-template-columns:290px 1fr 290px}.demo-header .legacy-hud{transform:scale(.9);transform-origin:top left}.demo-header .target-hud{transform-origin:top right;justify-self:end}.demo-round{min-width:170px}.demo-unit{width:170px;height:220px}.demo-actor-sprite{height:180px;width:210px}.demo-initiative{width:100px}.demo-menu-slot{left:48%;width:260px}.demo-field{min-height:430px}.demo-toolbar{gap:8px;font-size:9px}.demo-toolbar button{font-size:9px}.demo-bottom{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:760px){.demo-header{grid-template-columns:265px 1fr;height:77px}.demo-header .legacy-hud.player-hud{transform:scale(.83)}.demo-header .target-hud{display:none}.demo-round{min-width:170px;margin-right:15px;margin-left:auto;margin-top:16px}.demo-toolbar{gap:7px;flex-wrap:wrap;padding:5px 8px}.demo-toolbar>span{order:4;width:100%;margin-left:0;font-size:8px}.demo-toolbar>button:first-child{margin-right:auto}.demo-field{min-height:470px;aspect-ratio:auto;background-size:auto 100%;background-position:center}.demo-unit{width:130px;height:190px}.demo-actor-sprite{height:150px;width:180px}.demo-unit-caption strong{font-size:9px}.demo-unit-caption small{font-size:7px}.demo-unit-status{width:88px}.demo-unit-caption{top:0}.demo-initiative{width:86px;right:4px;top:24%}.demo-order-entry{height:37px;padding-left:21px}.demo-order-entry>span{width:25px;height:25px;font-size:15px}.demo-order-entry strong{font-size:7px}.demo-order-entry small{font-size:7px}.demo-menu-slot{left:35%;top:38%;width:260px}.demo-ability strong{font-size:11px}.demo-bottom{grid-template-columns:1fr 190px}.demo-help{padding:10px}.demo-help summary{font-size:16px}.demo-log{padding:10px}.demo-log p{font-size:10px}.demo-scenario-cards{gap:10px}.demo-scenario-cards article{padding:10px;gap:8px}.demo-scenario-cards article>img{width:75px;height:120px}.demo-scenario-cards h3{font-size:19px}.demo-launch{padding:18px}}
@media(max-width:600px){.demo-header{display:block;height:128px}.demo-header .legacy-hud.player-hud{position:absolute;left:0;top:0;transform:scale(.85)}.demo-round{position:absolute;left:50%;top:76px;transform:translateX(-50%);margin:0;min-width:185px;height:31px}.demo-round>small{top:31px}.demo-round>strong{font-size:12px}.demo-main{padding:4px 4px 0}.demo-main>.battle-location{font-size:9px;padding:6px 8px}.demo-main>.battle-location>span{font-size:7px;max-width:135px;text-align:right}.demo-field{min-height:455px;background-position:50% center;border-width:4px}.demo-prompt{font-size:9px;left:12px;right:12px;top:8px}.demo-unit{width:105px;height:164px}.demo-actor-sprite{height:132px;width:155px}.demo-static-sprite{height:128px;max-width:175px}.demo-unit-caption{top:0}.demo-unit-caption strong{font-size:8px;max-width:100px;margin:auto}.demo-unit-caption small{font-size:6px}.demo-unit-status{width:76px;height:29px}.demo-meter{height:10px}.demo-meter>span{font-size:8px;line-height:9px}.demo-meter.power{height:7px;margin-top:2px}.demo-meter.power>span{font-size:6px;line-height:6px}.demo-effects>span{max-width:76px;font-size:6px}.demo-unit.side-0{left:calc(var(--unit-x) - 5%)}.demo-unit.side-1{left:calc(var(--unit-x) - 4%)}.demo-unit.count-3{width:95px}.demo-initiative{top:48px;right:2px;width:73px}.demo-initiative h3{font-size:7px}.demo-order-entry{height:31px;padding:3px 2px 2px 17px;margin-bottom:3px}.demo-order-entry>span{width:20px;height:21px;font-size:12px;left:-4px;top:3px}.demo-order-entry strong{font-size:6px;line-height:10px}.demo-order-entry small{font-size:6px;line-height:8px}.demo-field-controls{left:10px;right:10px;bottom:10px;align-items:center}.demo-field-controls>span{max-width:140px;font-size:8px}.demo-field-controls .finish-turn{width:145px;min-height:40px;font-size:11px}.demo-menu-slot{left:14px;right:14px;top:auto;bottom:57px;width:auto}.demo-menu-heading{font-size:12px;min-height:32px}.demo-menu-heading button{min-width:36px;min-height:32px}.demo-ability-list{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:6px}.demo-ability{gap:5px;min-height:58px;padding:4px;align-items:center}.demo-ability>img{width:30px;height:30px}.demo-ability strong{font-size:10px;line-height:1.2}.demo-ability small{font-size:8px;line-height:1.3}.demo-ability kbd{display:none}.demo-target-menu>p{font-size:11px}.demo-bottom{display:block;max-height:none;min-height:0;margin:3px 4px 5px}.demo-log{height:180px;max-height:180px;padding:10px}.demo-log p{font-size:11px;line-height:1.6}.demo-help{border:0;border-top:1px solid #b28f4b;overflow:visible;padding:9px 12px}.demo-help summary{font-size:17px}.demo-help p{font-size:11px}.demo-result{margin:0 15px;padding:20px 15px}.demo-result h2{font-size:28px}.demo-result p{font-size:11px}.demo-result .button{font-size:10px}.demo-toolbar{gap:4px;padding:4px 7px}.demo-toolbar button{font-size:9px;padding:3px;min-height:32px}.demo-toolbar>span{font-size:8px}.demo-load-status{font-size:8px;line-height:1.5}.demo-load-status button{font-size:9px}.demo-scenario-cards{grid-template-columns:1fr;gap:10px;margin:17px 0}.demo-scenario-cards article{padding:13px;gap:12px}.demo-scenario-cards article>img{width:85px;height:125px}.demo-scenario-cards h3{font-size:22px}.demo-scenario-cards p{font-size:11px;line-height:1.5}.demo-scenario-cards .button{font-size:11px;min-height:44px}.demo-launch{padding:15px}.demo-launch-title h2{font-size:26px}.demo-launch-title p,.demo-assist-note{font-size:11px}.demo-challenge{font-size:11px}.demo-float{font-size:19px}.demo-float.buff{font-size:10px}.demo-shell footer{gap:7px}.demo-shell footer>span{font-size:7px;max-width:180px}}
@media(prefers-reduced-motion:reduce){.demo-meter>i{transition:none}.demo-float.show{animation:none;opacity:1}}
.demo-animation-anchor{position:absolute;left:50%;bottom:0;width:0;height:0;pointer-events:none}.demo-animation-anchor canvas{transform:none;bottom:auto}
.demo-header .hud-portrait>img{left:-12px;top:-14px}.demo-field-controls{left:100px;right:35px}
.demo-unit.team-large{width:150px;height:188px}.demo-unit.team-large .demo-actor-sprite{height:147px;width:185px}
@media(max-width:600px){.demo-field-controls{left:25px;right:15px}}
@media(max-width:600px){.demo-unit.team-large{width:85px;height:130px}.demo-unit.team-large .demo-actor-sprite{height:99px;width:120px}.demo-unit.team-large .demo-static-sprite{height:95px;max-width:130px}.demo-unit.team-large .demo-unit-caption strong{font-size:7px}.demo-unit.team-large .demo-unit-caption small{font-size:6px}.demo-unit.team-large .demo-unit-status{width:64px}}
.demo-save-problem{margin-top:15px;padding:12px;border:1px solid #9e5527;background:#d4a97166;color:#7c3819;font-size:12px}
@media(max-width:600px){.demo-unit.team-large.side-0{left:max(15%,calc(var(--unit-x) - 3%))}}
.demo-menu-slot{inset:0;width:auto;pointer-events:none}.demo-target-menu{position:absolute;left:clamp(160px,var(--menu-x),calc(100% - 160px));top:18%;width:260px;height:260px;transform:translateX(-50%);background:transparent url('./assets/archive-ui/action-ring.png') center/225px 212px no-repeat;border:0;box-shadow:none}.demo-menu-heading{position:static;padding:0;background:none;min-height:0}.demo-menu-heading>strong{position:absolute;top:-15px;left:0;right:0;text-align:center;font-size:10px;color:#fff0c0;text-shadow:0 1px 3px #000;pointer-events:none}.demo-menu-heading>button{position:absolute;left:calc(50% - 17px);top:calc(50% - 17px);width:34px;height:34px;border-radius:50%;border:1px solid #d8af5a;background:#54391a;color:#ffdf9b;z-index:3;font-size:24px;line-height:24px}.demo-ability-list{position:absolute;inset:0;padding:0;pointer-events:none}.demo-ability{position:absolute;left:var(--ability-x);top:var(--ability-y);transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;border:1px solid #e1c069;border-radius:50%;background:#49381f;box-shadow:0 0 0 2px #85682f;padding:3px;display:grid;place-items:center;pointer-events:auto}.demo-ability>img{width:36px;height:36px;border:0;background:transparent}.demo-ability>span{position:absolute;left:50%;top:46px;transform:translateX(-50%);text-align:center;min-width:86px;max-width:106px;color:#fff0bb;text-shadow:0 1px 3px #000,0 0 4px #000}.demo-ability strong{font-size:9px;line-height:1.15;white-space:normal}.demo-ability small{font-size:8px;line-height:1.1;color:#ffe4a3;margin-top:3px}.demo-ability kbd{position:absolute;right:-7px;top:-6px;background:#224950;color:#fff1bc;border-radius:50%;width:15px;height:15px;line-height:13px;padding:0;text-align:center;border:1px solid #d8bb7b;font-size:8px}.demo-target-menu>p{position:absolute;left:15px;right:15px;top:65%;font-size:11px;text-align:center;background:#d7bb7f;padding:10px;color:#60401b}.demo-unit.selected .demo-unit-caption{visibility:hidden}.demo-shell .demo-toolbar button:disabled{opacity:.5;cursor:default}
@media(max-width:600px){.demo-menu-slot{inset:0}.demo-target-menu{left:14px;right:14px;top:auto;bottom:57px;width:auto;height:auto;min-height:115px;transform:none;background:#d7bb7f;border:2px solid #9f7333;box-shadow:0 0 0 1px #e6ca82,0 4px 18px #21170ec2}.demo-menu-heading{position:relative;display:flex;min-height:35px;background:#4f341c;padding:3px 8px}.demo-menu-heading>strong{position:static;color:#ffe4b3;font-size:12px;text-shadow:none;text-align:left}.demo-menu-heading>button{position:static;width:34px;height:30px;min-height:30px;margin-left:auto;background:transparent;border:0;line-height:24px}.demo-ability-list{position:relative;inset:auto;padding:6px;display:grid;grid-template-columns:1fr 1fr;gap:3px}.demo-ability{position:relative;left:auto;top:auto;transform:none;width:auto;height:auto;min-height:58px;border:1px solid transparent;border-radius:0;background:transparent;box-shadow:none;padding:4px;display:flex;gap:5px;text-align:left}.demo-ability>img{width:30px;height:30px;background:#342714;border:1px solid #a88439;border-radius:50%;flex-shrink:0}.demo-ability>span{position:static;transform:none;text-align:left;min-width:0;max-width:none;color:#5c3a17;text-shadow:none}.demo-ability strong{font-size:10px;line-height:1.2}.demo-ability small{font-size:8px;line-height:1.3;color:#866032}.demo-ability kbd{display:none}.demo-target-menu>p{position:static;text-align:left;background:none;margin:0;padding:12px}}
