*{box-sizing:border-box}body.campus-defense{margin:0;background:radial-gradient(ellipse at 15% 0,#25434580,transparent 55%),#101b28;color:#e9edf0;font:14px/1.5 Inter,Segoe UI,system-ui,sans-serif;--ink:#e9edf0;--muted:#a3b2bf;--surface:#1c2b3b;--gold:#ebc477} [hidden]{display:none!important}button,a,input,select{font:inherit}button,select{color:#e9edf0;background:#233447;border:1px solid #456074;border-radius:8px;padding:10px 13px}button{cursor:pointer;transition:background .15s,border-color .15s}button:hover:enabled{background:#30495e;border-color:#e2c27c}button:disabled{opacity:.46;cursor:not-allowed}button:focus-visible,a:focus-visible,canvas:focus-visible,select:focus-visible{outline:3px solid #f6d58a;outline-offset:3px}a{color:#f0d697;text-decoration:none}.primary{background:linear-gradient(#f2d28a,#c99c49);color:#20271d;border:1px solid #ffe8ac;font-weight:800;box-shadow:inset 0 1px #fff8c8,0 3px 0 #7b5825}.primary:hover:enabled{background:linear-gradient(#ffe4a4,#ddb061)}p,h1,h2,h3{margin:0}em{font-style:normal;color:#ebc477}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;color:#ebc477;line-height:1.4}.small{font-size:11px;color:#a3b2bf}.skip,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip:focus{position:fixed;clip:auto;width:auto;height:auto;z-index:200;top:5px;background:#152332;padding:12px}.defense-wrap{max-width:1440px;padding:25px 24px 10px;margin:auto}.defense-header{display:flex;align-items:center;gap:17px;padding:18px 0 26px}.brand-home{font:700 42px Georgia,serif;width:58px;height:64px;border:1px solid #a88b4d;border-radius:14px;display:grid;place-content:center;position:relative;background:#213746}.brand-home span{position:absolute;font-size:13px;right:5px;bottom:3px}.defense-header h1{font:700 clamp(25px,3.3vw,44px)/1.2 Georgia,serif;letter-spacing:-.035em}.header-copy{font-size:12px;color:#a3b2bf;margin-top:5px}.defense-header nav{display:flex;gap:8px;align-items:center;margin-left:auto}.defense-header nav button,.defense-header nav a{font-size:11px;padding:10px 12px}.setup{display:grid;grid-template-columns:1fr 1.3fr;gap:36px;padding:30px 34px;margin-bottom:25px;border:1px solid #64765d;border-radius:16px;background:linear-gradient(90deg,#142e2ff2,#152334dd),url('/assets/overhaul/siege/banner.webp') center/cover;box-shadow:0 15px 40px #0003}.setup h2{font:700 30px/1.22 Georgia,serif;margin:10px 0}.setup-heading>p:not(.eyebrow){max-width:400px;color:#b9c7ce;font-size:12px}.map-label{display:block;font-size:11px;color:#e4cea2;margin:18px 0 8px}.map-label select{display:block;width:100%;margin-top:5px}.setup-options fieldset{margin:0;padding:0;border:0}.setup-options legend{font-size:12px;font-weight:700;margin-bottom:9px}.hero-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.hero-choice{padding:9px 5px;background:#142738b0;border:1px solid #4a5b68;text-align:center;min-height:138px}.hero-choice img{height:76px;width:84px;object-fit:contain;filter:drop-shadow(0 5px 5px #0005)}.hero-choice span{display:block;font-size:11px;font-weight:700}.hero-choice small{display:block;font-size:9px;font-weight:400;color:#aebdca;margin-top:2px}.hero-choice[aria-pressed=true]{border-color:#e9c679;background:linear-gradient(#40504a,#263849);box-shadow:inset 0 0 0 1px #d0b275}.setup #hero-description{font-size:12px;color:#d4dfdf;margin:11px 0;min-height:36px}.setup-start{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.setup-start .primary{min-width:200px;padding:13px 20px}.setup-start .check{width:100%}.check{display:flex;align-items:center;gap:7px;color:#b9c7cf;font-size:11px;cursor:pointer;min-height:34px}.check input{accent-color:#d4b46a}#asset-status{font-size:11px;color:#f1d18b;margin-top:8px}.battle{border:1px solid #42576c;border-radius:13px;background:#142333;box-shadow:0 20px 50px #0003;overflow:hidden;scroll-margin-top:50px}.battle-hud{display:flex;gap:32px;align-items:center;padding:14px 19px;background:linear-gradient(90deg,#213749,#1a2c3d);border-bottom:1px solid #455568}.battle-hud>div>span{font-size:9px;font-weight:800;letter-spacing:.13em;color:#b7c5ce;display:block}.battle-hud strong{font-size:21px;line-height:1.3;display:flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums}.gold-stat strong{color:#f8d98e}.gold-stat small{color:#e5b960;font-size:17px}.run-label{margin-left:auto;font-size:10px;color:#bdd2bc;background:#243f3c;padding:6px 10px;border-radius:30px}.battle-layout{display:grid;grid-template-columns:minmax(0,1fr) 276px;gap:16px;padding:14px}.battle-main{min-width:0}.placement-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.placement-tools button{padding:6px 10px;font-size:10px}.placement-tools p{font-size:10px;color:#a3b2bf}.battle-stage{position:relative;border:2px solid #c6ab70;border-radius:10px;overflow:hidden;background:#172b3a;box-shadow:0 6px 15px #0005}.board-scroll{overflow:auto;scrollbar-color:#927950 #18303c;overscroll-behavior-x:contain}canvas{display:block;width:100%;height:auto;outline:0;touch-action:manipulation}.board-scroll.is-zoomed{max-height:min(68dvh,576px)}.board-scroll.is-zoomed canvas{width:960px;min-width:960px;max-width:none;touch-action:pan-x pan-y}.board-badge{position:absolute;top:11px;right:11px;font-size:9px;font-weight:800;letter-spacing:.08em;background:#122637d9;border:1px solid #8d987150;color:#e4dca9;padding:5px 8px;border-radius:4px;pointer-events:none}.battle-controls{display:flex;gap:6px;margin-top:11px;align-items:center}.battle-controls button{font-size:11px;min-height:42px;padding:8px 11px}.battle-controls .primary{margin-right:auto;min-width:190px}.tactical-panel{min-width:0}.roster-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.roster-heading h2{font:700 23px Georgia,serif;margin-top:2px}.roster-heading>span{color:#8094a7;font-size:11px}.tower-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tower-choice{min-width:0;position:relative;padding:6px 5px 8px;display:flex;flex-direction:column;align-items:center;background:linear-gradient(#263e50,#1c3041);border-color:#426075;min-height:114px}.tower-choice img{width:72px;height:69px;object-fit:contain;filter:drop-shadow(0 4px 3px #0004)}.tower-choice strong{display:block;font-size:11px;line-height:1.3}.tower-choice small{display:block;font-size:11px;color:#f4cd7f;margin-top:3px;font-weight:700}.tower-choice[aria-pressed=true]{border-color:#eecf88;background:linear-gradient(#52604a,#34464a);box-shadow:inset 0 0 0 1px #e4c174}.tower-choice.unaffordable small{color:#e9a1a1}.tower-key{position:absolute;top:4px;left:7px;color:#7891a5;font-size:9px}.roster-tip{font-size:10px;color:#92a8b8;margin:10px 0 14px}.back-roster{font-size:11px;width:100%;margin-bottom:9px}.back-roster,#inspector{display:none}body[data-inspect='1'] .tower-roster{display:none}body[data-inspect='1'] .back-roster,body[data-inspect='1'] #inspector{display:block}.inspect-card{background:#1b2e3f;border:1px solid #40576b;border-radius:9px;padding:13px}.inspect-card h2{font:700 22px Georgia,serif;margin:5px 0}.inspect-card>p{font-size:11px;color:#aebfca}.inspect-portrait{float:right;width:64px;height:68px;object-fit:contain}.inspect-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px 0;margin:8px 0;border-top:1px solid #3b5063;border-bottom:1px solid #3b5063}.inspect-stats span{font-size:9px;color:#adbec9}.inspect-stats b{display:block;color:#fff2ce;font-size:15px}.branch-list{display:grid;gap:7px}.branch{border:1px solid #3b5269;border-radius:7px;padding:9px 10px;background:#203548}.branch>span{font-size:9px;color:#ddc891}.branch h3{font-size:12px;margin:3px 0}.branch p{font-size:10px;color:#a8bac8;margin-bottom:7px}.branch button{width:100%;padding:7px;font-size:11px;background:#38534f;border-color:#5b7b69;color:#dce8cc;min-height:36px}.branch button:disabled{background:#243444}.tower-ability{width:100%;margin:9px 0 0;background:#484367;border-color:#736e93;font-size:11px}.inspect-actions{display:flex;gap:6px;margin-top:8px}.inspect-actions button{font-size:10px;padding:8px}.inspect-performance{font-size:10px!important;margin-top:8px}.hero-skill{padding:12px;margin-top:13px;border:1px solid #6a6149;background:linear-gradient(#3d3c35,#27323b);border-radius:9px}.hero-skill-title{display:flex;gap:9px;align-items:center}.hero-skill-title img{width:51px;height:61px;object-fit:contain}.hero-skill h2{font:700 15px/1.25 Georgia,serif;margin-top:4px}.hero-skill>p{font-size:10px;color:#c2c9ca;margin:7px 0}.hero-skill button{width:100%;font-size:10px;background:#64533a;border-color:#9b8355;color:#f6e1b3}.wave-preview{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:13px 0 7px}.wave-preview h2{font:700 17px Georgia,serif;margin-top:4px}.wave-enemies{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}.wave-enemies button{padding:3px 6px;display:flex;gap:5px;align-items:center;font-size:11px;min-height:37px}.wave-enemies img{width:25px;height:29px;object-fit:contain}.wave-preview>p{flex-basis:100%;font-size:11px;color:#aebfcd}.battle-note{font-size:11px;color:#d8d3b4;border-top:1px solid #384c5c;padding:10px 0 0;margin-top:4px}.placement-confirm{display:flex;gap:8px;align-items:center;padding:12px;background:#344934;border:1px solid #7e9c5a;border-radius:8px;margin-top:9px}.placement-confirm>div{flex:1}.placement-confirm strong{font-size:12px}.placement-confirm p{font-size:10px;color:#d0ddc6}.placement-confirm button{font-size:11px;min-height:42px}footer{display:flex;align-items:center;gap:18px;font-size:10px;color:#7c92a4;padding:22px 1px}footer p{margin-right:auto;letter-spacing:.08em}footer span{color:#c4a566;padding:0 7px}dialog{background:#192c3d;color:#e9eef0;border:1px solid #a98b54;max-width:700px;width:calc(100% - 32px);padding:30px;border-radius:14px;box-shadow:0 20px 100px #0009}dialog::backdrop{background:#050e19bb;backdrop-filter:blur(4px)}dialog h2{font:700 30px Georgia,serif;color:#f5d68e;margin:8px 0 14px}dialog p{color:#becbd4;font-size:13px;margin:10px 0}.dialog-actions{display:flex;gap:10px;margin-top:25px}.dialog-close{float:right}.bestiary{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:20px}.bestiary article{background:#21384b;border-radius:8px;padding:12px}.bestiary img{width:60px;height:70px;object-fit:contain;float:left;margin-right:10px}.bestiary h3{font-size:13px;color:#f4dcaa}.bestiary p{font-size:11px}
@media(max-width:1050px){.battle-layout{grid-template-columns:minmax(0,1fr) 244px;gap:10px;padding:10px}.defense-wrap{padding:15px}.placement-tools p{display:none}.battle-controls button{padding:7px 8px;font-size:10px}.battle-controls .primary{min-width:155px}.tower-choice{min-height:102px}.tower-choice img{height:58px}.setup{gap:22px;padding:23px}.defense-header nav{flex-wrap:wrap;justify-content:flex-end}.defense-header nav button,.defense-header nav a{padding:7px 8px}.battle-hud{gap:22px}}
@media(max-width:760px){.defense-wrap{padding:8px}.defense-header{padding:14px 6px;gap:10px;flex-wrap:wrap}.brand-home{width:43px;height:49px;font-size:31px}.defense-header h1{font-size:26px}.header-copy{display:none}.defense-header nav{width:100%;justify-content:flex-start;margin-left:0}.defense-header .eyebrow{font-size:8px}.setup{grid-template-columns:1fr;gap:22px;padding:20px;margin-bottom:12px}.setup h2{font-size:29px}.hero-options{gap:6px}.hero-choice{min-height:130px}.hero-choice img{height:64px;width:65px}.setup-start .primary{width:100%}.battle-layout{grid-template-columns:1fr;padding:8px}.battle-hud{gap:15px;padding:11px}.battle-hud strong{font-size:16px}.battle-hud>div>span{font-size:8px}.run-label{font-size:8px;padding:4px 6px}.placement-tools .check{font-size:10px}.battle-controls{flex-wrap:wrap}.battle-controls .primary{width:100%;margin-bottom:4px}.battle-controls button:not(.primary){flex:1;font-size:10px;padding:8px 4px;min-height:40px}.tower-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.tower-choice{min-height:98px;padding:4px}.tower-choice img{width:60px;height:58px}.tower-choice strong{font-size:9px}.tower-choice small{font-size:10px}.tactical-panel{display:flex;flex-direction:column}.hero-skill{margin-top:10px}.hero-skill-title img{width:45px;height:53px}.roster-heading h2{font-size:21px}.wave-enemies{margin-left:0}.wave-preview>div:first-child{width:100%}.board-badge{font-size:7px;padding:3px 5px;top:5px;right:5px}.placement-confirm{flex-wrap:wrap}.placement-confirm>div{width:100%;flex-basis:100%}.placement-confirm button{flex:1}.bestiary{grid-template-columns:1fr}.dialog-actions{flex-wrap:wrap}footer{flex-wrap:wrap;gap:12px;font-size:9px}footer p{width:100%}.branch p{font-size:11px}.branch button,.inspect-actions button{min-height:42px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:760px){.battle-layout{display:flex;flex-direction:column}.battle-main,.tactical-panel{display:contents}.placement-tools{order:0}.battle-stage{order:1}.placement-confirm{order:2}.battle-controls{order:3}.tower-roster,#inspector,.back-roster{order:4}.hero-skill{order:5}.wave-preview{order:6}.battle-note{order:7}}

.tower-choice[data-tower=magician]{border-bottom:3px solid #b49ae4}.tower-choice[data-tower=criomant]{border-bottom:3px solid #73d9ee}.tower-choice[data-tower=piromant]{border-bottom:3px solid #f29969}.tower-choice[data-tower=alchimist]{border-bottom:3px solid #a5cf75}.tower-choice[data-tower=arcas]{border-bottom:3px solid #b6d2a1}.tower-choice[data-tower=balista]{border-bottom:3px solid #d9cc8c}.tower-choice[data-tower=bombarda],.tower-choice[data-tower=mortier]{border-bottom:3px solid #dfb16e}

.branch-icon{float:right;width:32px;height:32px;border-radius:6px;margin:1px 0 3px 7px;border:1px solid #65738e}
