:root{color-scheme:dark;--page: #0b080e;--panel: #141019;--inset: #17121f;--line: #30233d;--purple: #b47aff;--orange: #ff943d;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#f5f7ff;background:var(--page);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 84% 0%,#3c2250 0,transparent 34rem),radial-gradient(ellipse at 15% 14%,#321d3e 0,transparent 38rem),var(--page)}button,input,select{font:inherit}.page-shell{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:64px 0 80px}.site-header{margin-bottom:28px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.topbar .eyebrow{margin:0}.language-control{display:flex;align-items:center;gap:10px;white-space:nowrap}.language-control select{width:auto;min-width:170px;padding:9px 34px 9px 11px}.hero{display:grid;grid-template:"title image" auto "copy image" auto / minmax(0,1fr) clamp(112px,19vw,210px);width:100%;padding:clamp(18px,4vw,44px);border:1px solid #483457;border-radius:24px;background:linear-gradient(110deg,#241831,#301f36);column-gap:clamp(28px,6vw,72px);align-items:center}.hero>div{display:contents}.hero h1{grid-area:title;align-self:end}.hero-copy{grid-area:copy;max-width:690px;margin-bottom:0}.hero-thumbnail{grid-area:image;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 14px 22px rgba(0,0,0,.35))}.eyebrow,.formation-id{margin:0 0 8px;color:var(--purple);font-size:.73rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{margin-bottom:16px;font-size:clamp(2.6rem,5.4vw,4rem);line-height:.98;letter-spacing:-.055em}h2{margin-bottom:8px;font-size:clamp(1.5rem,3vw,2rem);letter-spacing:-.035em}h3{margin-bottom:6px;font-size:1.17rem}.hero-copy,.helper,.formation-heading p,.result-summary>p{color:#c8bbd4;line-height:1.55}.calculator,.formation-card,.remaining-card,.notes,.result-summary,.formation-guide{border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:0 18px 50px #0000002e}.calculator{padding:clamp(20px,4vw,34px)}.section-heading{display:flex;justify-content:space-between;gap:30px;align-items:flex-start;margin-bottom:28px}.section-heading .helper{max-width:330px;margin:0;font-size:.92rem}form{display:grid;gap:22px}fieldset{min-width:0;margin:0;padding:0;border:0}legend{margin-bottom:12px;font-weight:750}.input-grid{display:grid;gap:14px}.three-columns{grid-template-columns:repeat(3,1fr)}label{display:grid;gap:7px;color:#d1c4dd;font-size:.88rem;font-weight:650}input,select{width:100%;border:1px solid #4c385d;border-radius:10px;padding:12px 13px;color:#f7f9ff;background:var(--inset);outline:none}input:focus,select:focus{border-color:var(--purple);box-shadow:0 0 0 3px #b47aff2e}.troop-field.has-error{color:#ffb4ba}input.input-invalid{border-color:#ff6574;background:#301b2b;box-shadow:0 0 0 3px #ff657424}.input-error{color:#ffb4ba;font-size:.78rem;font-weight:650}.slot-field{width:min(100%,230px);margin-top:15px}.valora-control{display:flex;align-items:center;gap:12px;margin-top:17px;padding:12px;border:1px solid #4c385d;border-radius:13px;background:linear-gradient(110deg,#302044,var(--inset))}.valora-portrait{width:52px;height:52px;object-fit:contain}.valora-skill{width:38px;height:38px;object-fit:contain}.valora-control label{flex:1}.hero-roster{padding:clamp(12px,2.5vw,22px);border:1px solid #503c60;border-radius:17px;background:linear-gradient(135deg,#2d1d3c,#17121f 65%)}.hero-roster legend{padding:0 8px;margin:0;color:#e8eef2;font-size:1.2rem}.hero-roster>.helper{max-width:66ch;margin:1px 0 16px;font-size:.9rem}.hero-picker{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.hero-choice{position:relative;display:grid;grid-template-rows:1fr auto;min-width:0;overflow:hidden;padding:0;border:1px solid #4b3b59;border-radius:11px;background:#17121f;color:#c8bbd4;cursor:pointer;transition:border-color .16s,background-color .16s}.hero-choice:hover{border-color:#a9b7c8}.hero-choice-art{position:relative;display:grid;align-items:end;justify-items:center;min-height:72px;aspect-ratio:1 / .98;overflow:hidden;background:radial-gradient(ellipse at 50% 100%,#463355,#201729 78%)}.hero-choice-art img{width:100%;height:100%;max-height:126px;object-fit:contain;object-position:center bottom}.hero-choice-name{padding:8px 2px;font-size:clamp(.68rem,1.4vw,.9rem);font-weight:750}.hero-choice-state{position:absolute;top:6px;right:6px;display:grid;width:19px;height:19px;place-items:center;border:1px solid #a1afc5;border-radius:50%;background:#181120}.hero-choice[aria-pressed=false] img{opacity:.66;filter:saturate(.42)}.hero-choice[aria-pressed=true]{border-color:var(--purple);background:#332149;color:#f8efff}.hero-choice[aria-pressed=true] .hero-choice-art{background:radial-gradient(ellipse at 50% 100%,#59377a,#2b1b3d 75%)}.hero-choice[aria-pressed=true] .hero-choice-state{border-color:var(--purple);background:var(--purple)}.hero-choice[aria-pressed=true] .hero-choice-state:after{content:"";width:7px;height:4px;border-left:2px solid #21102e;border-bottom:2px solid #21102e;transform:translateY(-1px) rotate(-45deg)}.hero-choice:focus-visible{outline:2px solid var(--orange);outline-offset:3px}.amadeus-tip{margin-top:14px;padding:14px 16px;border-left:3px solid var(--orange);border-radius:8px;background:#362319;color:#ffd7b6}.amadeus-tip p{margin:0 0 10px;font-size:.9rem;line-height:1.5}.amadeus-tip label{display:flex;align-items:center;gap:8px;color:#fff6e0;cursor:pointer}.amadeus-tip input{width:16px;height:16px;accent-color:var(--orange)}.formation-heroes{margin-bottom:14px}.formation-heroes h4{margin:0 0 6px;color:#c8bbd4;font-size:.76rem;font-weight:750}.formation-heroes ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px;padding:0;margin:0;list-style:none}.formation-heroes li{display:flex;align-items:center;gap:8px;min-height:55px;padding:0 9px 0 2px;border:1px solid #523d66;border-radius:9px;background:linear-gradient(95deg,#38234e,#20172d);color:#f5f7ff;font-size:.88rem;font-weight:750}.formation-heroes img{width:52px;height:55px;object-fit:contain;object-position:center bottom}.formation-heroes small{display:block;margin-bottom:2px;color:#c8bbd4;font-weight:500}.formation-heroes .empty-hero{border-style:dashed;background:#17121f;color:#c8bbd4}.empty-hero i{width:52px;text-align:center;font-style:normal;color:#a9b}.form-error{margin:0;color:#ffb4ba}.live-status{margin:0;color:var(--purple);font-size:.88rem;font-weight:700}.results{margin-top:32px}.result-summary{padding:24px;margin-bottom:18px;background:linear-gradient(125deg,#482b61,var(--panel))}.result-summary h2{margin-bottom:5px}.result-summary>p:last-child{margin:0}.formation-guide{margin-bottom:18px;padding:21px}.formation-guide h3{margin-bottom:13px}.formation-guide ol{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0;padding:0;list-style:none;counter-reset:formation-step}.formation-guide li{position:relative;min-width:0;padding:15px 14px 15px 48px;border-radius:12px;background:var(--inset);counter-increment:formation-step}.formation-guide li:before{position:absolute;top:14px;left:14px;display:grid;width:24px;height:24px;place-items:center;border-radius:50%;color:#1b1027;background:var(--purple);content:counter(formation-step);font-size:.78rem;font-weight:900}.formation-guide li strong,.formation-guide li span{display:block}.formation-guide li strong{margin-bottom:5px;color:#f9fbff}.formation-guide li span{color:#c8bbd4;font-size:.88rem;line-height:1.45}.save-by-counts{margin:0 0 18px;padding:13px 15px;border:1px solid #784829;border-radius:11px;color:#ffd6b1;background:#ff943d1a;font-size:.93rem;font-weight:800;line-height:1.45}.results-stack{display:grid;gap:18px}.formation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.formation-card,.remaining-card,.notes{padding:clamp(14px,2vw,21px)}.formation-card[data-formation=Bear1]{border-color:#825434;background:linear-gradient(145deg,#33223a,#1b1423 65%)}.formation-card[data-formation=Bear1] .formation-id{color:var(--orange)}.formation-heading{display:flex;justify-content:space-between;gap:14px}.formation-heading p{margin-bottom:0;font-size:.88rem}.capacity{text-align:right;white-space:nowrap;color:#c8bbd4}.capacity strong{display:block;color:#f9fbff;font-size:1.15rem}.capacity span{font-size:.8rem}.fill-track{height:6px;margin:18px 0;overflow:hidden;border-radius:999px;background:#342640}.fill-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--purple),var(--orange))}.troop-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0}.troop-list div{padding:9px;border-radius:10px;background:var(--inset)}.troop-list dt{margin-bottom:3px;color:#b7a8c7;font-size:.71rem;font-weight:700;text-transform:uppercase}.troop-list dd{margin:0;font-size:.96rem;font-weight:800}.card-detail{margin:17px 0 0;padding:11px 12px;border-radius:10px;color:#d0daf1;background:#b47aff1a;font-size:.88rem;line-height:1.45}.notes{border-color:#744729;background:#291c19}.notes h3{margin-bottom:9px}.notes ul{margin:0;padding-left:20px;color:#e7c5a7;line-height:1.55}.site-footer{margin-top:48px;padding-top:24px;border-top:1px solid var(--line);text-align:center}.site-footer p{margin:0;color:#b7a8c7;font-size:.85rem}@media(max-width:800px){.hero-picker{grid-template-columns:repeat(4,minmax(0,1fr))}.hero{grid-template-columns:minmax(0,1fr) clamp(100px,17vw,132px);column-gap:clamp(20px,5vw,40px)}.formation-guide ol,.formation-grid{grid-template-columns:1fr}.section-heading{display:block}.section-heading .helper{margin-top:12px}}@media(max-width:620px){.page-shell{width:min(100% - 22px,1120px);padding-top:42px}.site-header{margin-bottom:38px}.topbar{align-items:flex-start;margin-bottom:28px}.language-control{display:grid;justify-items:end;gap:5px}.language-control select{min-width:148px;max-width:165px}.hero{grid-template:"title image" auto "copy copy" auto / minmax(0,1fr) 88px;column-gap:18px}.hero-thumbnail{align-self:start}h1{font-size:clamp(2.35rem,10vw,3.15rem)}.three-columns{grid-template-columns:1fr}.troop-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.troop-list div{padding:7px 5px}.troop-list dt{overflow-wrap:anywhere}.troop-list dd{font-variant-numeric:tabular-nums;font-size:.84rem}.hero-picker{gap:5px}.formation-heading{display:block}.capacity{margin-top:12px;text-align:left}}
