.spell-bar.rune-bar{position:absolute;right:15px;bottom:14px;display:block;padding:7px;border:1px solid #6f746147;border-radius:12px;background:linear-gradient(160deg,#111919dc,#121519ec);box-shadow:0 6px 26px #0007;z-index:5;max-width:calc(100% - 24px)}
.rune-slots{display:grid;grid-template-columns:repeat(5,48px);gap:5px}
.rune-slot{position:relative;display:grid;place-items:center;width:48px;min-width:44px;height:62px;padding:3px 4px 15px;border:1px solid #65726250;border-radius:8px;background:#17201d88;color:var(--rune-color);overflow:hidden;touch-action:manipulation}
.rune-slot svg{width:36px;height:38px;position:relative;z-index:1;transition:opacity .2s,filter .2s}
.skull-bone{fill:#b8b7a526;stroke:#c7c8b2;stroke-width:1.2}.skull-ridge{fill:none;stroke:#bfc4b4;stroke-width:.9;opacity:.6}.skull-eyes{fill:var(--rune-color);stroke:var(--rune-color);stroke-width:.5}.skull-nose{fill:#080e0b}
.rune-slot.empty svg{opacity:.28}.rune-slot.empty .skull-eyes{fill:#26322f;stroke:none}.rune-slot.empty{background:#11191738;border-color:#75857730}
.rune-slot.filled .skull-bone{fill:#a1a79165}.rune-slot.filled svg{filter:drop-shadow(0 0 4px var(--rune-color))}.rune-slot.cooling svg{opacity:.5;filter:none}.rune-slot.source-disabled svg{opacity:.35;filter:grayscale(1)}
.rune-slot:before{content:'';position:absolute;bottom:0;left:0;right:0;height:var(--cooldown,0%);background:#040709c4;pointer-events:none}
.rune-slot.selected,.rune-slot:focus-visible{outline:2px solid var(--rune-color);outline-offset:2px;background:#3c4133}.rune-slot.ready:hover{background:#323e32;border-color:var(--rune-color)}
.rune-slot kbd{position:absolute;bottom:3px;right:5px;font-size:10px;color:#c5cdb4;border:0;line-height:1.1;padding:0}.rune-rank{position:absolute;bottom:4px;left:5px;font-size:10px;line-height:1;color:var(--rune-color)}.rune-timer{position:absolute;top:12px;left:0;right:0;z-index:2;text-align:center;font-size:20px;font-weight:800;color:#fff4d8;text-shadow:0 2px 4px #000,0 0 7px #000}
.rune-tooltip{position:absolute;right:0;bottom:calc(100% + 10px);width:min(340px,80vw);padding:12px 14px;border:1px solid #8b927071;border-radius:8px;background:#111b19f5;box-shadow:0 4px 20px #0008;color:#d5dfc5;font-size:14px;line-height:1.5;pointer-events:none}.rune-tooltip[hidden]{display:none}
.rune-source{margin-top:9px;padding:10px;border:1px solid #71815e55;border-radius:6px;color:#b4c4a8;font-size:13px;line-height:1.5}.rune-source b{display:block;color:#dce6c6}.rune-source button{display:block;width:100%;margin-top:8px;padding:9px;border:1px solid #899a68;border-radius:5px;background:#344531;color:#d6e4be;font-size:13px}.rune-source small{display:block;margin-top:5px;font-size:12px}
@media(max-width:1024px){body.td-mobile #mobileDock{grid-template-columns:1fr 1fr;grid-template-rows:109px 52px;flex:0 0 171px;height:171px;min-height:171px;gap:5px;padding-bottom:5px}body.td-mobile #mobileDock .rune-bar{display:block;position:relative;grid-column:1/-1;grid-row:1;padding:0;border:0;background:none;box-shadow:none;max-width:none;width:100%;z-index:2}body.td-mobile #mobileDock .rune-slots{grid-template-columns:repeat(5,minmax(44px,1fr));grid-template-rows:52px 52px;gap:5px;height:109px}body.td-mobile #mobileDock .rune-slot{min-height:44px;height:52px;padding:2px 3px 13px;width:100%;border-radius:7px}body.td-mobile #mobileDock .rune-slot svg{width:33px;height:35px}body.td-mobile #mobileDock .rune-slot kbd{display:none}body.td-mobile #mobileBuild{grid-column:1;grid-row:2;flex-direction:row;gap:8px}body.td-mobile #mobileDock #startBtn{grid-column:2;grid-row:2}body.td-mobile .rune-tooltip{font-size:13px;bottom:calc(100% + 6px);width:min(340px,calc(100vw - 32px))}body.td-mobile .wave-quote{bottom:271px}body.td-mobile .toast{bottom:calc(228px + env(safe-area-inset-bottom,0px))}body.td-mobile .rune-source{order:5}}
@media(max-width:1024px) and (max-height:600px) and (orientation:landscape){body.td-mobile .battle-column{grid-template-columns:minmax(0,1fr) 238px;grid-template-rows:49px minmax(88px,1fr) 146px}body.td-mobile #mobileDock{grid-column:2;grid-row:3;grid-template-rows:93px 48px;min-height:0;height:146px;padding:0;gap:5px}body.td-mobile #mobileDock .rune-slots{grid-template-columns:repeat(5,minmax(44px,1fr));grid-template-rows:44px 44px;gap:5px 4px;height:93px}body.td-mobile #mobileDock .rune-slot{height:44px;min-height:44px;padding-bottom:5px}body.td-mobile #mobileDock .rune-slot svg{height:32px;width:32px}body.td-mobile .rune-rank{bottom:3px;left:3px;font-size:9px}body.td-mobile .rune-tooltip{right:0;width:min(330px,80vw)}body.td-mobile .wave-quote{bottom:8px;right:253px}body.td-mobile .toast{bottom:17px;left:calc((100% - 245px)/2);max-width:calc(100vw - 280px)}}

.scout-plan{display:grid;grid-template-columns:1fr 1fr;gap:14px}.scout-plan section{padding:16px;background:#223328;border:1px solid #66765666;border-radius:8px}.scout-plan h3{color:#d8dfbd;font-size:16px;margin-bottom:8px}.scout-plan p{font-size:14px;line-height:1.65;color:#b4c5ad}.scout-roster{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.scout-roster li{display:flex;flex-direction:column;gap:5px;border-bottom:1px solid #66765650;padding:10px;font-size:14px}.scout-roster span{color:#a0b498;font-size:13px}.scout-champion{padding:14px;border:1px solid #b49a5f77;background:#a4893920;color:#ead393;font-size:15px;margin-top:14px}@media(max-width:600px){.scout-plan,.scout-roster{grid-template-columns:1fr}}

.atmosphere-label{display:block;margin-top:7px;color:#d0bca7;font-size:12px;letter-spacing:.3px;text-shadow:0 1px 5px #000}@media(max-width:700px){body.td-mobile .atmosphere-label{font-size:10px;line-height:1.3;max-width:200px;margin-top:4px}}

.boss-dossier{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:24px;margin:0 0 24px}.boss-dossier canvas{width:180px;height:206px;object-fit:contain;filter:drop-shadow(0 0 22px #8b214355)}.boss-defeated{font-size:12px;letter-spacing:2px;color:#bd806c;margin-bottom:18px}.boss-lore-copy .eyebrow{color:#c0a074;font-size:11px;letter-spacing:1.5px}.boss-lore-copy p{font-size:17px;line-height:1.65;color:#e7dccb;margin:12px 0}.boss-lore-copy small{color:#9c9588;font-size:12px}.boss-lore-copy a{display:inline-block;margin-left:12px;color:#ceb783;font-size:12px;text-decoration:underline}#victoryBossLore{border-top:1px solid #b99e5b55;padding:15px 0;margin:16px auto;max-width:520px}#victoryBossLore p{font-size:14px;line-height:1.5;margin:8px 0}.boss-dossier+#continueAfterBoss{width:100%}@media(max-width:600px){.boss-dossier{grid-template-columns:1fr;gap:4px;margin-bottom:17px}.boss-dossier canvas{width:130px;height:145px;margin:auto}.boss-dossier .modal-title{text-align:center;margin-bottom:5px}.boss-defeated{text-align:center;margin-bottom:14px}.boss-lore-copy p{font-size:16px;line-height:1.55}}

.rune-binding-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.rune-binding-grid button{display:flex;flex-direction:column;gap:9px;padding:16px;min-height:100px;border:1px solid #817252;background:#25312a;border-radius:8px;text-align:left}.rune-binding-grid small{color:#e0c786}.rune-binding-grid span{color:#bdc7ac;font-size:13px}.rune-evolution{margin:8px 0;color:#e4c48e;line-height:1.6}.rune-slot.innate{border-color:#c66c3b}.locked-world{opacity:1!important;background:#172120!important;color:#7e8e85}.locked-world h3{color:#8c9b91}.chapter-stop.locked{opacity:.35}@media(max-width:580px){.rune-binding-grid{grid-template-columns:1fr 1fr}}

/* The skull arsenal is independent of towers. */
.rune-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px;min-height:44px}.rune-toolbar-label{font-size:12px;letter-spacing:1.8px;color:#beaa88}.rune-shop-button{min-height:44px;padding:5px 10px;border:1px solid #99774d88;border-radius:6px;background:linear-gradient(#4b3730,#2b2526);font-size:14px;color:#f3dcaa;line-height:1.2}.rune-shop-button:hover{border-color:#e1bc78;background:#54352e}
.rune-face{display:grid;place-items:center}.skull-shadow{fill:#070b12;opacity:.5}.skull-sigil{fill:none;stroke:var(--rune-color);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.skull-crown{fill:none;stroke:#ead5a4;stroke-width:1.3;stroke-linejoin:round}.rune-slot .skull-bone{fill:#aea99848;stroke:#c6c6ba}.rune-slot.filled .skull-bone{fill:#b9b29d99}.rune-slot.empty.affordable{border-color:#ba9b6266}.rune-slot.empty .rune-rank{color:#d1b887}.rune-slot.empty:not(.affordable) .rune-rank{color:#89918b}.rune-slot.empty svg{opacity:.38}.rune-slot.empty:hover svg{opacity:.75}
.wave-countdown{display:block;font-size:13px;line-height:1.4;color:#c9b995;font-variant-numeric:tabular-nums}.countdown-urgent{color:#ff917c}.wave-launch{gap:9px}.start-wave:disabled{opacity:.8}
.magic-shop{color:#e7dfd1}.magic-shop-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.magic-shop-heading .modal-title{margin-top:7px;margin-bottom:0}.magic-wallet{font-size:22px;white-space:nowrap;color:#f1cf87;font-variant-numeric:tabular-nums}.magic-shop .modal-intro{font-size:15px;line-height:1.6;margin:15px 0 20px}.magic-feature{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr);gap:24px;padding:20px;border:1px solid #77636188;background:radial-gradient(ellipse at 10% 45%,#5c29332b,transparent 70%),linear-gradient(135deg,#262329,#161c20);border-radius:12px}.magic-art{position:relative;display:grid;place-items:center;min-height:190px;align-self:center}.magic-art canvas{width:100%;height:auto;max-width:300px}.magic-emblem{position:absolute;display:grid;place-items:center;color:var(--rune-color);--rune-color:inherit}.magic-emblem svg{width:108px;height:114px;filter:drop-shadow(0 0 12px currentColor)}.magic-art.has-preview .magic-emblem{display:none}.magic-feature-copy h3{font-size:25px;line-height:1.2;margin:8px 0 12px;color:#f5ebd9}.magic-feature-copy p{font-size:14px;line-height:1.65;color:#c5c4bf}.magic-feature-copy .eyebrow{color:var(--rune-color);font-size:12px}.magic-stat-row{display:flex;gap:24px;margin:18px 0}.magic-stat-row span{font-size:12px;color:#a4aaa7}.magic-stat-row b{display:block;font-size:19px;color:#ece5d6;margin-bottom:5px}.magic-next{padding:10px 12px;background:#e0b9780c;border-left:2px solid #ba9364}.magic-next b{display:block;color:#e3c48c}.magic-actions{display:flex;gap:9px;margin-top:16px}.magic-actions button{min-height:48px;font-size:14px;padding:11px 18px}.magic-actions .primary{flex:1}.magic-actions button:disabled{opacity:.4;cursor:not-allowed;filter:grayscale(.5)}.magic-budget{min-height:22px;margin-top:9px!important;font-size:13px!important;color:#ceaf8b!important}.magic-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:20px 0}.magic-card{display:flex;align-items:center;gap:11px;min-height:80px;padding:10px 14px;text-align:left;background:#22242b;border:1px solid #6e646349;border-radius:8px;color:#e6dfd1}.magic-card-skull{width:43px;flex:none}.magic-card-skull svg{width:43px;height:47px;display:block}.magic-card b{display:block;font-size:15px;line-height:1.35}.magic-card small{display:block;margin-top:6px;font-size:13px;color:#c6ad81}.magic-card.selected{border-color:var(--rune-color);background:#353038;box-shadow:inset 3px 0 var(--rune-color)}.magic-card.locked .magic-card-skull{opacity:.4}.magic-card.owned .skull-bone{fill:#b8ae9980}.magic-card:focus-visible{outline:2px solid #f2d898;outline-offset:2px}.theme-choice-copy>strong{font-size:16px;line-height:1.4}.theme-choice-copy>span{font-size:14px;line-height:1.5}
@media(max-width:650px){.magic-feature{grid-template-columns:1fr;gap:4px;padding:15px}.magic-art{min-height:120px;max-height:160px;overflow:hidden}.magic-art canvas{max-width:230px}.magic-emblem svg{width:80px;height:84px}.magic-feature-copy h3{font-size:23px}.magic-shop .modal-intro{font-size:14px}.magic-stat-row{margin:12px 0}.magic-card{padding:9px;gap:7px;min-height:80px}.magic-card b{font-size:14px}.magic-card-skull,.magic-card-skull svg{width:32px}.magic-shop-heading .modal-title{font-size:25px}.magic-wallet{font-size:19px}.magic-actions{flex-wrap:wrap}.magic-actions button{flex:1}}
@media(max-width:1024px){body.td-mobile #mobileDock{grid-template-rows:143px 48px;flex-basis:200px;height:200px;min-height:200px}body.td-mobile #mobileDock .rune-toolbar{height:44px;margin-bottom:4px}body.td-mobile #mobileDock .rune-slots{grid-template-rows:45px 45px;gap:4px;height:94px}body.td-mobile #mobileDock .rune-slot{height:45px;padding-bottom:11px}body.td-mobile #mobileDock .rune-slot svg{height:31px;width:31px}body.td-mobile .rune-slot.empty .rune-rank{font-size:11px}body.td-mobile .wave-quote{bottom:300px}body.td-mobile .toast{bottom:calc(257px + env(safe-area-inset-bottom,0px))}}
@media(max-width:1024px) and (max-height:600px) and (orientation:landscape){body.td-mobile .battle-column{grid-template-rows:49px minmax(44px,1fr) 193px}body.td-mobile #mobileDock{grid-template-rows:141px 48px;min-height:0;height:193px}body.td-mobile #mobileDock .rune-slots{grid-template-rows:44px 44px;height:92px}body.td-mobile #mobileDock .rune-slot{height:44px}body.td-mobile .wave-quote{bottom:8px;right:253px}body.td-mobile .toast{bottom:17px}body.td-mobile .rune-toolbar-label{display:none}body.td-mobile .rune-shop-button{width:100%}}
@media(max-width:1024px) and (max-height:320px) and (orientation:landscape){body.td-mobile .battle-column{grid-template-rows:minmax(44px,1fr) 193px}}

.magic-current{padding:9px 11px;border-left:2px solid var(--rune-color);background:#c5d6ed08}.magic-current b{display:block;color:var(--rune-color)}
@media(max-width:1024px) and (max-height:600px) and (orientation:landscape){body.td-mobile #mobileTools{grid-template-columns:44px minmax(44px,1fr) 44px 66px;grid-template-rows:44px;height:44px;min-height:44px;align-self:start;gap:4px}body.td-mobile #mobileTools #mobileSelection{display:none}body.td-mobile #mobileZoomOut{grid-row:1;grid-column:1}body.td-mobile #mobileZoomReset{grid-row:1;grid-column:2}body.td-mobile #mobileZoomIn{grid-row:1;grid-column:3}body.td-mobile #mobileTools #mobileDetails,body.td-mobile #mobileTools #mobileCancel{grid-row:1;grid-column:4;width:66px;max-width:66px}}
