.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}}
