:root{color-scheme:dark;font-family:Georgia,serif;color:#eee4d1;background:#080c12;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#26303b,#080c12 65%);min-height:100dvh}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,#pad:focus-visible{outline:2px solid #a5efff;outline-offset:2px}#game{height:100dvh;width:min(100%,560px);margin:auto;display:flex;flex-direction:column;position:relative;background:#0d131b;box-shadow:0 0 70px #000;overflow:hidden;border-inline:1px solid #3b3d42}header{height:71px;flex:none;display:flex;align-items:center;gap:10px;padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));background:linear-gradient(#20242c,#0d111a);border-bottom:3px ridge #78604a;z-index:2}.portrait{width:42px;height:45px;display:grid;place-items:center;background:radial-gradient(#573246,#22141e);color:#ffba57;font-size:34px;border:3px ridge #8c7052;box-shadow:inset 0 0 10px #000}.healthgroup{flex:1;min-width:65px}label,.panel-label{font:9px system-ui,sans-serif;font-weight:800;letter-spacing:1.3px;color:#baa78c}label{display:flex;justify-content:space-between;gap:4px}label b{color:#f8e9d0;font-size:10px;letter-spacing:0}meter{display:block;width:100%;height:17px;margin-top:5px}meter::-webkit-meter-bar{background:#171b24;border:2px solid #4b4d57;border-radius:3px}meter::-webkit-meter-optimum-value{background:linear-gradient(#e86751,#9e2d30)}.wave{border:2px ridge #6e5844;padding:7px 10px;background:#11141b;text-align:center;white-space:nowrap}.wave span{font-weight:bold;letter-spacing:1px;font-size:15px;color:#ffd38a}.wave small{display:block;font:9px system-ui;color:#b5a997;margin-top:3px}#pause{width:44px;height:44px;border:3px ridge #7e6550;background:#171e28;color:#a4e7f7;font:bold 24px system-ui;border-radius:5px}#arena{position:relative;flex:1;min-height:0;overflow:hidden;background:#282934}#scene{width:100%;height:100%;display:block;image-rendering:pixelated}.arena-top{position:absolute;top:12px;left:14px;right:14px;display:flex;justify-content:space-between;pointer-events:none}.arena-top span{font:9px system-ui;letter-spacing:1px;font-weight:bold;background:#0c151edf;padding:6px 8px;border:1px solid #35515b;color:#71d8e7;border-radius:3px}#targetlabel{color:#c4b291;border-color:#574a3c}#banner{position:absolute;left:12%;right:12%;top:39%;text-align:center;font-weight:bold;color:#ffdc94;font-size:16px;text-shadow:0 2px 4px #000;pointer-events:none;background:#0c111ad9;border:1px solid #746044;padding:9px;opacity:0;transition:opacity .15s}#banner.visible{opacity:1}#statuses{position:absolute;bottom:30px;left:0;right:0;text-align:center;color:#9eeaff;font:11px system-ui;pointer-events:none}.arena-caption{position:absolute;bottom:9px;width:100%;text-align:center;color:#968677;font:8px system-ui;font-weight:bold;letter-spacing:2px;pointer-events:none}#targets{position:absolute;inset:0;pointer-events:none}.enemy-target{position:absolute;width:54px;height:64px;border:0;background:transparent;transform:translate(-50%,-50%);pointer-events:auto;padding:0}.enemy-target:focus-visible{outline:2px solid #ffd47b}.controls{height:clamp(192px,29dvh,252px);flex:none;display:grid;grid-template-columns:44% 56%;border:4px ridge #5a5046;background:linear-gradient(135deg,#171d27,#090f17);box-shadow:0 -8px 25px #0008;z-index:2}.gesture-side{min-height:0;border-right:2px ridge #51483e;padding:8px 8px 5px;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.panel-label{width:100%;display:flex;justify-content:space-between;font-size:8px;letter-spacing:.8px}.panel-label span{color:#64808a;font-size:7px}#pad{width:min(100%,170px);aspect-ratio:1;min-height:0;flex-shrink:1;touch-action:none;user-select:none;-webkit-user-select:none;border:1px solid #564b3f;border-radius:8px;background:radial-gradient(#1b2933,#0e131d);box-shadow:inset 0 0 25px #0008}#padsvg{width:100%;height:100%;display:block;overflow:visible}#trail,#tail{fill:none;stroke:#ffce75;stroke-width:9;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 6px #ff9f2c)}#tail{stroke-width:5;opacity:.55}.pad-note{margin:2px 0 0;color:#a7b6af;font:8px system-ui;white-space:nowrap}.pad-note i{display:inline-block;width:5px;height:5px;background:#8aff99;border-radius:50%;box-shadow:0 0 4px #8aff99}.spell-side{padding:8px 6px;display:flex;flex-direction:column;min-height:0;gap:5px}#spells{overflow:auto;min-height:0;flex:1;display:flex;flex-direction:column;gap:4px;scrollbar-width:thin;scrollbar-color:#5a5143 #111720}.spell{width:100%;min-height:44px;flex:1;display:flex;align-items:center;gap:6px;background:linear-gradient(110deg,#192532,#111822);border:2px ridge #46505c;text-align:left;padding:1px 6px 1px 2px;position:relative;border-radius:4px}.spell.selected{border-color:#bf8b46;box-shadow:inset 0 0 12px #b4751a18}.spell svg{width:37px;height:37px;flex:none}.spell-name{flex:1;font-weight:bold;font-size:11px;text-transform:uppercase;color:#f1d5a6;letter-spacing:.4px}.spell-icon{font-size:24px;position:relative;width:30px;text-align:center;text-shadow:0 0 8px currentColor}.cooldown{position:absolute;inset:0;background:#0b101ad9;display:grid;place-items:center;font:bold 12px system-ui;color:#f4dfbc;border-radius:4px}.cooldown[hidden]{display:none}footer{height:24px;flex:none;text-align:center;padding:5px 0 max(5px,env(safe-area-inset-bottom));font:9px system-ui;color:#78848f;background:#0a0f16}.overlay{position:absolute;inset:0;z-index:10;background:#070c15ce;backdrop-filter:blur(5px);display:grid;place-items:center;padding:24px}.overlay[hidden]{display:none}.modal{width:100%;max-width:380px;padding:29px 25px;background:linear-gradient(145deg,#222936,#101722);border:4px ridge #8c6d48;box-shadow:0 20px 80px #000;text-align:center;max-height:100%;overflow:auto}.eyebrow{font:9px system-ui;letter-spacing:3px;color:#8ecdd6}.modal h1{margin:12px 0 6px;font-size:46px;line-height:.94;color:#fbd292;letter-spacing:3px;text-shadow:2px 4px #543822}.modal h2{font-size:30px;color:#fbd292;margin:14px 0}.modal p{font:12px/1.7 system-ui;color:#b4bfcc}.modal .sigil{font-size:45px;color:#ffb65d;text-shadow:0 0 25px #f67639;margin:15px}.primary,.secondary{display:block;width:100%;min-height:44px;padding:12px;margin-top:9px;border:2px ridge #be9459;background:linear-gradient(#a47435,#61431f);font:bold 13px system-ui;letter-spacing:1px;border-radius:4px}.secondary{background:#1b2a38;border-color:#546374;color:#bed0de;font-size:11px}.settings{display:flex;justify-content:center;gap:8px;margin-top:15px;flex-wrap:wrap}.settings button{min-height:44px;padding:5px 8px;border:1px solid #4b5360;background:#111b27;font:10px system-ui}.results{display:grid;grid-template-columns:1fr 1fr;gap:7px}.results div{background:#0d1622;padding:11px;color:#f5ce88;font-size:20px}.results small{display:block;color:#96a5b6;font:9px system-ui;margin-top:3px}.hint-large svg{width:100px;height:100px}.tutorial{border-block:1px solid #4a443d;padding:8px 0}.toast-error #trail{stroke:#ff655b}.toast-success #trail{stroke:#b0ffbb}@media(max-width:360px){header{gap:6px;padding-inline:7px}.portrait{display:none}.wave{padding:6px}.wave span{font-size:12px}.controls{grid-template-columns:45% 55%}.spell-name{font-size:9px}.spell-icon{width:23px}.panel-label{font-size:7px}.panel-label span{display:none}}@media(max-height:650px){.controls{height:31dvh;min-height:155px}header{height:59px}.gesture-side,.spell-side{padding-top:4px}.panel-label{display:none}.modal{padding:16px}.modal h1{font-size:35px}.modal .sigil{margin:7px}.pad-note{font-size:7px}footer{height:20px}.spell{min-height:44px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.spell.on-cooldown{filter:grayscale(1);background:#141820;border-color:#42464d;box-shadow:none}.spell.on-cooldown>svg,.spell.on-cooldown>.spell-name{opacity:.45}.spell.on-cooldown .spell-icon{text-shadow:none;color:#80858d!important}.spell.on-cooldown .cooldown{background:#10141bef;color:#fff}
/* Fire evolution grimoire and paused reward selection. */
.controls{height:clamp(210px,31dvh,270px)}
#pad{width:min(100%,170px,calc(31dvh - 65px));flex-shrink:0}
.gesture-preview{font:9px/1.3 system-ui;color:#f1c37d;min-height:25px;text-align:center;display:grid;place-items:center}
.spell-name small{display:block;font:7px system-ui;letter-spacing:1px;color:#a29888;margin-bottom:3px}
.spell-lock{display:none;font-size:17px}.spell.locked{filter:grayscale(1);border-color:#303a46;box-shadow:none;background:#101720}
.spell.locked>svg,.spell.locked>.spell-name{opacity:.3}.spell.locked .spell-lock{display:inline}.spell.locked .spell-glyph{display:none}
.reward-modal h2{font-size:25px}.reward-modal p{margin:8px 0 14px}.reward-list{display:grid;gap:9px}
.reward-card{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:12px 10px;border:2px ridge #76604a;background:linear-gradient(120deg,#202c39,#121b28);border-radius:5px;min-height:77px}
.reward-card.evolution{border-color:#d59b4f;background:linear-gradient(120deg,#493323,#1f202b)}.reward-card:hover:not(:disabled){border-color:#ffcf87}
.reward-card:disabled{opacity:.38;cursor:default;filter:grayscale(1)}.reward-card svg{height:54px;width:54px;flex:none}.reward-card strong{font-size:15px;color:#fbd395;display:block}.reward-card small{display:block;font:11px/1.5 system-ui;color:#b3c2cf;margin-top:4px}.reward-card em{display:block;font:9px/1.4 system-ui;color:#e0b976;margin-top:4px}.reward-symbol{font-size:29px;color:#f4b95b;width:44px;text-align:center;flex:none}
.run-stats{font:10px system-ui;color:#a8b7c5;margin:15px 0 8px}.spell-results{margin:12px 0;font:10px/1.8 system-ui;color:#aebbc9}.spell-results div{display:flex;justify-content:space-between;gap:8px}
@media(max-height:650px){.controls{height:34dvh;min-height:190px}#pad{width:min(100%,145px,calc(34dvh - 52px))}.gesture-preview{font-size:8px;min-height:22px}.modal .hint-large svg{width:62px;height:62px}.modal p{font-size:11px;line-height:1.4}.modal h2{font-size:23px}.reward-card{padding:8px;min-height:65px}.reward-card svg{width:43px;height:43px}.reward-card strong{font-size:13px}.reward-card small{font-size:10px}}
/* Two current spell forms; earlier forms live only in the progression track. */
#spells{justify-content:center;gap:10px;overflow:auto}.school-spell{flex:0 0 auto;min-height:82px;padding:8px 6px;gap:5px}.school-spell svg{width:46px;height:46px}.school-spell .spell-name{font-size:11px}.school-spell .spell-name small{color:var(--school-color);font-size:8px}.school-spell.selected{border-color:var(--school-color)}.school-spell .spell-icon{font-size:25px;width:30px}.school-spell .cooldown{font-size:13px;color:#fff}.circle-track{display:flex;gap:4px;margin-top:7px}.circle-track i{font:8px system-ui;font-style:normal;display:grid;place-items:center;width:17px;height:17px;border:1px solid #414c59;border-radius:3px}.circle-track .current{color:var(--school-color);border-color:var(--school-color);background:#314153}.circle-track .past{color:#9ca6af;background:#27323b}.circle-track .future{color:#535f6d;background:#111923}.on-cooldown .circle-track{opacity:.7}.starter-patterns{display:flex;justify-content:center;gap:25px;margin:8px 0}.starter-patterns svg{width:70px;height:70px;display:block}.starter-patterns small{font:10px system-ui;color:#b8c7d8}.reward-card.ice{border-color:#72c5e5;background:linear-gradient(120deg,#213e4b,#141d2a)}.reward-card.ice strong{color:#a7e9ff}
@media(max-width:360px){.school-spell{min-height:73px;padding:5px 3px}.school-spell svg{width:36px;height:36px}.school-spell .spell-name{font-size:9px}.school-spell .spell-name small{font-size:7px}.school-spell .spell-icon{width:23px;font-size:21px}.circle-track{gap:3px}.circle-track i{width:15px;height:15px}.starter-patterns svg{width:55px;height:55px}}
@media(max-height:650px){#spells{gap:7px}.school-spell{min-height:72px}.starter-patterns{margin:4px 0}.starter-patterns svg{width:50px;height:50px}.reward-card strong{font-size:12px}.reward-card em{font-size:8px}}
/* Circle browser: summary and circle buttons are siblings, never nested buttons. */
.school-spell{display:block;padding:5px;overflow:visible;min-height:0}.spell-summary{display:flex;align-items:center;gap:5px;width:100%;min-height:44px;padding:0;border:0;background:transparent;text-align:left;border-radius:3px}.spell-summary .spell-name{min-width:0;overflow-wrap:anywhere}.spell-summary .spell-description{display:block;font:8px/1.3 system-ui;color:#a8b8c9;text-transform:none;letter-spacing:0;margin-top:3px}.spell-summary .spell-icon{flex:none}.spell-summary svg{flex:none}.circle-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin-top:4px}.circle-track button{position:relative;min-width:0;min-height:36px;display:grid;place-items:center;font:11px system-ui;border:1px solid #414c59;border-radius:3px;background:#111923;color:#778797;padding:0;touch-action:manipulation}.circle-track button.unlocked{background:#25323f;color:#d9e3ec;border-color:#607489}.circle-track button.future{border-style:dashed;color:#75818d}.circle-track button.current{color:var(--school-color);border:2px solid var(--school-color);background:#314153}.circle-track button:focus-visible,.spell-summary:focus-visible{outline:2px solid #a5efff;outline-offset:1px;z-index:1}.spell.locked .spell-summary>svg,.spell.locked .spell-summary .spell-name{opacity:.4}.spell.locked .spell-summary .spell-lock{display:inline}.spell.locked .spell-summary .spell-glyph{display:none}.spell.locked .circle-track{filter:none;opacity:1}.on-cooldown .circle-track{opacity:1}.spell.locked{filter:none}.spell.locked .spell-summary{filter:grayscale(1)}.spell.on-cooldown.locked{filter:grayscale(1)}.on-cooldown .spell-summary>svg,.on-cooldown .spell-summary .spell-name{opacity:.45}
@media(max-width:360px){.school-spell{padding:3px}.school-spell .spell-summary svg{width:29px;height:29px}.school-spell .spell-name{font-size:9px}.spell-summary .spell-description{font-size:7px}.school-spell .spell-icon{width:22px}.circle-track{gap:2px;margin-top:3px}.circle-track button{min-height:32px}}
/* Three compact schools and a separate, paused, collapsible spellbook. */
#book{display:grid;place-items:center;flex:none;width:36px;height:42px;font-size:23px;padding:0}#spells{justify-content:flex-start;gap:6px}.school-spell{padding:3px}.spell-summary{min-height:35px}.spell-summary svg{width:33px;height:33px}.spell-summary .spell-description{display:none}.school-spell .spell-name{font-size:10px}.school-spell .spell-icon{font-size:22px;width:25px}.circle-track{margin-top:3px}.circle-track button{min-height:27px}.starter-patterns{gap:8px}.starter-patterns svg{width:60px;height:60px}.starter-patterns small{font-size:9px}.expanded-book{padding:18px 16px;max-width:430px;text-align:left}.expanded-book h2{margin:10px 0;color:#fbd292}.expanded-book p{font-size:11px;margin:8px 0 14px}.book-schools{display:grid;gap:9px}.book-school{border:1px solid #465466;border-radius:6px;background:#101923;overflow:hidden}.book-school summary{cursor:pointer;min-height:44px;padding:12px;color:var(--school-color);font:bold 14px system-ui}.book-school summary span{float:right;font-size:11px}.book-spell{display:flex;gap:9px;align-items:center;text-align:left;padding:8px;width:100%;border:0;border-top:1px solid #303e4d;background:#172330}.book-spell svg{width:46px;height:46px;flex:none}.book-spell strong{display:block;font:12px system-ui;color:#e4d7bd}.book-spell small{display:block;font:9px/1.5 system-ui;color:#9caec0}.book-spell.locked{background:#111923}.book-spell.locked>svg,.book-spell.locked>span{opacity:.5}.book-spell.selected{box-shadow:inset 3px 0 var(--school-color);background:#263444}.reserved-school{padding:12px;border:1px dashed #465262;border-radius:5px;color:#778697;font:12px system-ui;min-height:48px}.reserved-school small{display:block;margin-top:5px;font-size:10px}#bookstatus{font:10px system-ui;color:#adc9d9;margin-top:9px;min-height:14px}.expanded-book .primary{position:sticky;bottom:-18px;background:linear-gradient(#a47435,#61431f)}
@media(max-width:360px){#book{width:30px;height:38px;font-size:20px}.school-spell .spell-summary svg{width:29px;height:29px}.school-spell .spell-name{font-size:9px}.circle-track button{min-height:26px}.spell-summary{min-height:31px}.school-spell{padding:2px}.starter-patterns svg{width:48px;height:48px}.starter-patterns small{font-size:8px}.expanded-book{padding:13px}.book-spell svg{width:38px;height:38px}.book-spell strong{font-size:11px}}
.controls{height:clamp(210px,33dvh,280px)}
@media(max-height:650px){.controls{height:34dvh;min-height:190px}}
/* Air glyphs: the arena owns input; the grimoire is only a compact preview. */
#glyph-layer{position:absolute;inset:0;width:100%;height:100%;z-index:1;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}
.arena-top,#banner,#statuses,.arena-caption{z-index:2;pointer-events:none}.enemy-target{pointer-events:none}
.arena-caption{bottom:8px;padding:0 10px;letter-spacing:.4px;color:#c6d3dd}.arena-caption #gesturestate{font:8px system-ui;color:#9ce7f0}.arena-caption #castpreview{font:10px/1.4 system-ui;min-height:15px;text-shadow:0 1px 3px #000}
#statuses{bottom:47px}
.controls{display:block;height:112px;min-height:0;padding:4px;border-width:2px;box-shadow:0 -3px 16px #0008}
#spells{height:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;justify-content:stretch;gap:4px;overflow:hidden}
.school-spell{flex:1 1 0;max-width:none;width:auto;min-width:0;display:flex;flex-direction:column;justify-content:space-between;padding:3px;border:1px solid #46505c}
.spell-summary{display:grid;grid-template-columns:34px minmax(0,1fr);gap:3px;min-height:43px;flex:1}.school-spell .spell-summary svg{width:34px;height:34px}.school-spell .spell-name{font: bold 9px/1.2 system-ui;letter-spacing:0;overflow-wrap:normal;text-transform:none}.school-spell .spell-name small{font:6px/1.4 system-ui;letter-spacing:.2px}.school-spell .spell-icon{position:absolute;right:3px;top:3px;font-size:10px;width:22px;pointer-events:none}.spell-glyph{display:none}.spell-lock{font-size:10px}.school-spell .cooldown{font:10px system-ui;min-height:16px;inset:0;white-space:nowrap}
.circle-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:2px;margin:2px 0 0}.circle-track button{min-height:36px;font-size:10px}.circle-track button.future::after{content:'·';position:absolute;right:2px;bottom:0;color:#78828a}
footer{height:23px;padding:4px 6px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:360px){.spell-summary{display:flex;flex-direction:column;justify-content:center;gap:0;min-height:52px}.school-spell .spell-summary svg{width:27px;height:27px}.school-spell .spell-name{text-align:center;font-size:8px}.school-spell .spell-name small{font-size:6px;margin:0}.circle-track button{min-height:34px}.school-spell{padding:2px}.controls{height:112px;min-height:0}}
@media(max-height:650px){.controls{height:112px;min-height:0}}
#game .controls{padding:2px}#spells .spell-summary{display:flex;flex-direction:column;justify-content:center;gap:1px;min-height:0}#spells .spell-summary svg{width:38px;height:38px;display:block;flex:none}#spells .spell-name{flex:none;text-align:center;font-size:10px;min-height:22px}#spells .spell-name small{font-size:7px;margin:0}#spells .circle-track button{min-height:32px}
.route-progress{position:absolute;top:48px;left:28%;right:28%;z-index:2;pointer-events:none;text-align:center;color:#f1f7ff;font:8px system-ui;text-shadow:0 1px 3px #21324e}.route-progress meter{height:8px;margin-top:3px}.route-progress meter::-webkit-meter-bar{background:#1b3047;border:1px solid #b3d2e3}.route-progress meter::-webkit-meter-optimum-value{background:#9fe9dc}.arena-caption{color:#f1f7ff;text-shadow:0 1px 3px #182e43}.arena-top span{background:#172e46e8;border-color:#8cbed2}#banner{background:#192f45e8;border-color:#b9d7e5;color:#f5e0aa}#statuses{color:#fff4c9;text-shadow:0 1px 3px #20364c}
.chest-prize{margin:8px auto;width:90px;height:90px;display:grid;place-items:center;background:radial-gradient(#72613655,#1a2c2400);color:#f1d489;font-size:60px}.chest-prize svg{width:82px;height:82px}.reward-modal h3{color:#f4d395;font-size:19px}.reward-modal{border-color:#a28650;background:linear-gradient(145deg,#293b30,#14221d)}.arena-top span{background:#1b3026e8;border-color:#6f9876}#banner{background:#1b3026e8;border-color:#8b9e68}
/* One stable glyph per school and serially recharging charges. */
#spells .spell-summary svg{width:44px;height:44px}#spells .spell-name{font-size:10px;min-height:22px}.charge-row{width:100%;display:flex;justify-content:space-between;align-items:center;gap:3px;font:8px system-ui;color:#e9dcbd;min-height:17px}.charge-dots{display:flex;gap:4px}.charge-dots i{width:7px;height:7px;display:block;border:1px solid #74838c;border-radius:50%;background:#14201f}.charge-dots i.full{background:var(--school-color);border-color:var(--school-color);box-shadow:0 0 4px var(--school-color)}.charge-progress{height:3px;flex:none;width:100%;background:#34433e;border-radius:2px;overflow:hidden}.charge-progress i{display:block;height:100%;background:var(--school-color)}#gold{color:#ffd688;border-color:#9f8652;white-space:nowrap}.book-base{padding:9px;text-align:center}.book-base svg{width:80px;height:80px;display:block;margin:auto}.book-base strong{font:14px system-ui;color:#efd39e}.book-mod{padding:9px;border-top:1px solid #3b5047;font:12px system-ui}.book-mod small{display:block;color:#b1c3b8;font:10px/1.5 system-ui;margin-top:4px}.book-mod.owned{background:#284139}.book-mod.owned strong{color:#b6f2cf}.book-mod.unknown{opacity:.6}.purchase-confirmation{padding:10px;border:1px solid #8d9d68}.reward-card.lightning{border-color:#ae8bc4}.reward-card.fire{border-color:#bc8a4c}.reward-card.ice{border-color:#7fbfd1}
@media(max-width:360px){.charge-row{font-size:7px}.charge-dots{gap:3px}.charge-dots i{width:6px;height:6px}.arena-top{left:9px;right:9px}.arena-top span{font-size:8px;padding:6px}.reward-card strong{font-size:12px}.reward-card svg{width:36px;height:36px}.reward-card{gap:8px}}
#checkpoint-target{position:absolute;z-index:3;width:96px;height:112px;transform:translateX(-50%);background:transparent;border:1px solid #e3d49177;border-radius:8px;padding:0;touch-action:manipulation;cursor:pointer;box-shadow:0 0 18px #d0e7a122}#checkpoint-target[hidden]{display:none}#checkpoint-target span{position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;background:#172d24ed;border:1px solid #879b62;border-radius:3px;color:#ffe9a8;padding:4px 6px;font:9px system-ui;margin-top:3px}#checkpoint-target:hover,#checkpoint-target:focus-visible{border-color:#f6e39d;box-shadow:0 0 22px #d0e7a155;outline:2px solid #e6edba;outline-offset:2px}

.spell-cost{font:8px system-ui;color:#f1d392;text-align:center;line-height:12px}.charge-wait{font:7px system-ui;color:#c2d9ce;min-height:10px;text-align:right}.charge-dots{gap:3px}.charge-row{min-height:12px}.school-spell.on-cooldown .spell-cost{color:#e8cbb6}
.school-spell{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;align-items:stretch;grid-template-rows:minmax(0,1fr) 12px 12px 10px 3px;gap:0}#spells .spell-summary svg{width:36px;height:36px}#spells .spell-name{font-size:9px;min-height:22px}.spell-cost,.charge-row,.charge-wait,.charge-progress{min-width:0}
.reward-card .cost-increase{font-weight:bold;color:#ffd08a;border:1px solid #bd914f;padding:4px 6px;border-radius:3px}.reward-card .cost-unchanged{color:#a5e6c4}.book-form{border-top:1px solid #3b5047;padding:8px;font:11px system-ui}.book-form small{display:block;margin-top:4px;color:#d4c6a8;font-size:10px}.book-form p{margin:5px 0;font-size:10px}.book-form.current{border-left:3px solid var(--school-color);background:#284139}.book-form.future{opacity:.6}.book-form.past{opacity:.75}
