.fx-sprite{display:block;width:100%;height:100%;max-height:120px;filter:drop-shadow(0 4px 3px #0006)}.fx-mini{width:56px;height:61px;flex:0 0 56px;align-self:center;background:radial-gradient(ellipse at 50% 75%,#ffffff15,transparent 75%);border:1px solid var(--line,#8884);border-radius:10px}.fx-mini.large{width:100px;height:108px;margin:0 auto .4rem}.fx-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:.5rem;margin:.7rem 0}.fx-gallery>div{text-align:center;padding:.4rem;border:1px solid var(--line,#8884);border-radius:10px;background:#8881;font-size:.75rem}.fx-gallery .fx-sprite{height:82px}.fx-effect-controls{display:grid;gap:.55rem}.fx-stage[hidden]{display:none!important}.fx-stage{position:fixed;z-index:39;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(360px,calc(100vw - 24px));border:1px solid var(--fx-color,#c9a6ef);border-radius:16px;background:linear-gradient(155deg,#242d3b,#11151f);color:#f7efe2;padding:.65rem .9rem;box-shadow:0 8px 30px #0008;pointer-events:none;overflow:hidden;min-height:108px}.fx-stage .fx-kind{font-size:.69rem;letter-spacing:.16em;color:var(--fx-color);font-weight:800}.fx-stage .fx-label{font-size:.81rem;overflow-wrap:anywhere;position:relative;z-index:3;line-height:1.25}.fx-scene{height:92px;position:relative;isolation:isolate;background:radial-gradient(ellipse at 50% 90%,#ffffff13,transparent 70%);overflow:hidden}.fx-actors{display:flex;justify-content:space-between;align-items:center;height:100%;padding:0 12%;gap:35%;position:relative;z-index:1}.fx-actors span{width:64px;height:70px;flex:0 0 64px}.fx-actors span:empty{visibility:hidden}.fx-burst{position:absolute;inset:0;display:grid;place-items:center;z-index:2}.fx-burst i{position:absolute;width:8px;height:8px;background:var(--fx-color);clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);opacity:0;box-shadow:0 0 9px var(--fx-color)}.fx-mark{width:40px;height:40px;background:var(--fx-color);clip-path:polygon(50% 0,64% 34%,100% 50%,64% 66%,50% 100%,36% 66%,0 50%,36% 34%);position:absolute;left:calc(50% - 20px);top:25px;opacity:0;z-index:2;filter:drop-shadow(0 0 7px var(--fx-color))}.fx-playing .fx-mark{animation:fx-impact .7s ease-out both}.fx-playing .fx-burst i{animation:fx-particles .72s var(--delay) ease-out both}.fx-playing .fx-actors span:first-child{animation:fx-lunge .45s ease-out both}.fx-playing[data-outcome=hit] .fx-target{animation:fx-recoil .45s .18s ease-out both}.fx-playing[data-outcome=miss] .fx-target{animation:fx-dodge .5s .14s ease-out both}.fx-stage[data-kind=slash] .fx-mark{width:90px;height:40px;left:calc(50% - 45px);clip-path:polygon(0 98%,35% 16%,100% 0,65% 30%,20% 100%)}.fx-stage[data-kind=pierce] .fx-mark{width:74px;height:18px;clip-path:polygon(0 40%,70% 40%,70% 0,100% 50%,70% 100%,70% 60%,0 60%)}.fx-stage[data-kind=lightning] .fx-mark{clip-path:polygon(53% 0,9% 55%,45% 55%,22% 100%,91% 40%,57% 40%,82% 0)}.fx-stage[data-kind=fire] .fx-mark{clip-path:polygon(50% 0,62% 32%,88% 14%,82% 48%,100% 67%,77% 100%,21% 100%,0 68%,25% 44%,30% 15%)}.fx-stage[data-kind=heal] .fx-mark{clip-path:polygon(37% 0,63% 0,63% 37%,100% 37%,100% 63%,63% 63%,63% 100%,37% 100%,37% 63%,0 63%,0 37%,37% 37%)}.fx-stage[data-kind=guard] .fx-mark{clip-path:polygon(50% 0,100% 20%,88% 73%,50% 100%,12% 73%,0 20%)}.fx-stage[data-kind=cold] .fx-mark{clip-path:polygon(50% 0,62% 35%,100% 25%,72% 50%,100% 75%,62% 65%,50% 100%,38% 65%,0 75%,28% 50%,0 25%,38% 35%)}.fx-stage[data-kind=rest] .fx-mark{clip-path:polygon(72% 0,36% 18%,24% 50%,38% 80%,70% 90%,92% 78%,74% 100%,27% 93%,0 55%,15% 17%)}.fx-stage[data-kind=move] .fx-mark{clip-path:polygon(0 0,55% 50%,0 100%,40% 100%,100% 50%,40% 0)}.fx-stage[data-kind=cast] .fx-mark,.fx-stage[data-kind=force] .fx-mark,.fx-stage[data-kind=thunder] .fx-mark{border-radius:50%;clip-path:none;background:transparent;border:5px solid var(--fx-color)}.fx-stage[data-kind=poison] .fx-mark,.fx-stage[data-kind=acid] .fx-mark{clip-path:polygon(50% 0,88% 58%,100% 78%,75% 100%,25% 100%,0 78%,12% 58%)}.fx-stage[data-kind=psychic] .fx-mark,.fx-stage[data-kind=effect] .fx-mark{clip-path:polygon(0 50%,24% 20%,50% 10%,76% 20%,100% 50%,76% 80%,50% 90%,24% 80%,0 50%,29% 50%,50% 65%,71% 50%,50% 35%,29% 50%)}.fx-stage[data-kind=necrotic] .fx-mark{clip-path:polygon(25% 0,75% 0,100% 28%,87% 66%,68% 66%,68% 100%,32% 100%,32% 66%,13% 66%,0 28%)}.fx-stage[data-outcome=miss] .fx-burst i{display:none}.fx-stage[data-outcome=miss] .fx-mark{animation-name:fx-miss}.reduced .fx-stage{display:none!important}@media(prefers-reduced-motion:reduce){.fx-stage{display:none!important}}@keyframes fx-impact{0%{opacity:0;transform:translateX(-45px) scale(.3)}35%{opacity:1;transform:translateX(10px) scale(1.25)}100%{opacity:0;transform:translateX(18px) scale(1.8)}}@keyframes fx-miss{0%{opacity:0;transform:translateX(-60px) scale(.3)}45%{opacity:.8;transform:translateX(24px) scale(.8)}100%{opacity:0;transform:translateX(110px) scale(.35)}}@keyframes fx-particles{0%,20%{opacity:0;transform:rotate(var(--a)) translateX(0)}40%{opacity:1}100%{opacity:0;transform:rotate(var(--a)) translateX(48px)}}@keyframes fx-lunge{0%,100%{transform:translateX(0)}40%{transform:translateX(15px) rotate(5deg)}}@keyframes fx-recoil{0%,100%{transform:translateX(0)}45%{transform:translateX(9px) rotate(7deg);filter:brightness(1.8)}}@keyframes fx-dodge{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px) translateX(8px)}}
/* Type-specific trajectories; no animation changes the resolved game state. */
.fx-playing:not([data-outcome=miss])[data-kind=pierce] .fx-mark{animation-name:fx-arrow}.fx-playing:not([data-outcome=miss])[data-kind=slash] .fx-mark{animation-name:fx-sweep}.fx-playing:not([data-outcome=miss])[data-kind=lightning] .fx-mark{animation-name:fx-bolt}.fx-playing:not([data-outcome=miss])[data-kind=fire] .fx-mark,.fx-playing:not([data-outcome=miss])[data-kind=heal] .fx-mark,.fx-playing:not([data-outcome=miss])[data-kind=rest] .fx-mark{animation-name:fx-rise}.fx-playing:not([data-outcome=miss])[data-kind=force] .fx-mark,.fx-playing:not([data-outcome=miss])[data-kind=guard] .fx-mark,.fx-playing:not([data-outcome=miss])[data-kind=thunder] .fx-mark,.fx-playing:not([data-outcome=miss])[data-kind=cast] .fx-mark{animation-name:fx-ring}@keyframes fx-arrow{0%{opacity:0;transform:translateX(-100px)}20%{opacity:1}80%{opacity:1;transform:translateX(60px)}100%{opacity:0;transform:translateX(75px)}}@keyframes fx-sweep{0%{opacity:0;transform:translateX(-35px) rotate(-60deg)}40%{opacity:1;transform:translateX(20px) rotate(22deg)}100%{opacity:0;transform:translateX(42px) rotate(90deg)}}@keyframes fx-bolt{0%,20%,50%,100%{opacity:0}10%,35%,65%{opacity:1;transform:scale(1.3) translateX(20px)}}@keyframes fx-rise{0%{opacity:0;transform:translateY(18px) scale(.55)}35%{opacity:1;transform:translateY(0) scale(1.25)}100%{opacity:0;transform:translateY(-28px) scale(1.65)}}@keyframes fx-ring{0%{opacity:.9;transform:scale(.25)}45%{opacity:1;transform:scale(1.35)}100%{opacity:0;transform:scale(2.2)}}
/* Tactical sectors and expanded low-poly action choreography */
.tac-map{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));width:100%;max-width:660px;margin:.8rem auto;aspect-ratio:1;background:#222a31;border:2px solid var(--accent);border-radius:8px;overflow:hidden;isolation:isolate}.tac-map[data-terrain=Forest]{background:#283d30}.tac-map[data-terrain=Desert]{background:#81633c}.tac-map[data-terrain=Ruins],.tac-map[data-terrain=Dungeon]{background:#3c414a}.tac-map[data-terrain=Castle]{background:#4b4650}.tac-map[data-terrain=Darkness]{background:#111823}.tac-cell{min-width:0!important;min-height:0!important;aspect-ratio:1;border:1px solid #ffffff18!important;border-radius:0!important;padding:0!important;position:relative;background:#ffffff03!important;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden;color:#f4eee5!important}.tac-cell:disabled{opacity:1!important;cursor:default}.tac-cell.sector-x{border-left:2px solid #d7bc79!important}.tac-cell.sector-y{border-top:2px solid #d7bc79!important}.tac-cell.reachable{background:#72b49c55!important;box-shadow:inset 0 0 0 1px #81d8b3;cursor:pointer}.tac-cell.ally{background:#33664e99!important}.tac-cell.enemy{background:#8b3b3c99!important}.tac-cell.current{box-shadow:inset 0 0 0 2px #ffe3a0}.tac-cell .fx-mini{width:78%!important;height:72%!important;min-width:0!important;margin:0!important}.tac-cell .fx-mini svg{width:100%;height:100%}.tac-cell span{font-size:clamp(5px,1.35vw,10px);line-height:1;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tac-card .row{flex-wrap:wrap}
.fx-stage .fx-signature{position:absolute;inset:5px;pointer-events:none}.fx-signature i{position:absolute;left:50%;top:50%;width:12px;height:12px;background:var(--fx-color);clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);opacity:0;animation:fx-shard .9s var(--delay) both;box-shadow:0 0 12px var(--fx-color)}.fx-stage[data-kind=fire] .fx-signature i{clip-path:polygon(50% 0,95% 74%,50% 100%,0 74%);animation-name:fx-ember}.fx-stage[data-kind=cold] .fx-signature i{clip-path:polygon(50% 0,100% 45%,65% 100%,20% 85%,0 45%);animation-name:fx-crystal}.fx-stage[data-kind=lightning] .fx-signature i{width:42px;height:7px;clip-path:polygon(0 35%,40% 0,60% 65%,100% 20%,65% 100%,35% 45%);animation-name:fx-electric}.fx-stage[data-kind=pierce] .fx-signature i{width:35px;height:4px;clip-path:polygon(0 30%,80% 30%,80% 0,100% 50%,80% 100%,80% 70%,0 70%);animation-name:fx-projectile}.fx-stage[data-kind=heal] .fx-signature i{clip-path:polygon(35% 0,65% 0,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%,0 35%,35% 35%);animation-name:fx-ember}.fx-stage[data-kind=force] .fx-signature i,.fx-stage[data-kind=thunder] .fx-signature i{background:transparent;border:2px solid var(--fx-color);border-radius:50%;clip-path:none;animation-name:fx-wave}.fx-stage[data-kind=poison] .fx-signature i,.fx-stage[data-kind=acid] .fx-signature i{border-radius:50%;clip-path:none;animation-name:fx-ember}.fx-stage[data-outcome=miss] .fx-signature{display:none}@keyframes fx-shard{0%{opacity:0;transform:rotate(var(--a)) translateX(0) scale(.25)}30%{opacity:1}100%{opacity:0;transform:rotate(var(--a)) translateX(90px) scale(.1)}}@keyframes fx-ember{0%{opacity:0;transform:translate(0,12px) scale(.4)}35%{opacity:.95}100%{opacity:0;transform:translate(var(--dx),-85px) rotate(70deg) scale(.15)}}@keyframes fx-crystal{0%{opacity:0;transform:rotate(var(--a)) translateX(0)}40%{opacity:1;transform:rotate(var(--a)) translateX(45px) scale(1.5)}100%{opacity:0;transform:rotate(var(--a)) translateX(85px) scale(.2)}}@keyframes fx-electric{0%,30%,60%,100%{opacity:0}15%,45%,75%{opacity:1;transform:rotate(var(--a)) translateX(45px)}}@keyframes fx-projectile{0%{opacity:0;transform:translateX(-115px)}20%,65%{opacity:1}100%{opacity:0;transform:translateX(100px)}}@keyframes fx-wave{0%{opacity:1;transform:scale(.4)}100%{opacity:0;transform:scale(10)}}
.tac-cell.blocked{background:#53493c88!important}.tac-cell.rough{background:#9b82563b!important}.tac-obstacle{width:75%;height:72%;display:block;background:linear-gradient(140deg,#b4a387 0 30%,#777061 31% 58%,#4e4740 59%);clip-path:polygon(10% 90%,0 46%,28% 10%,78% 0,100% 42%,86% 95%)}.tac-rough{display:block;width:80%;height:60%;background:#9fb478;opacity:.8;clip-path:polygon(0 100%,10% 40%,25% 85%,40% 0,50% 75%,70% 30%,80% 85%,98% 50%,100% 100%)}.tac-map[data-terrain=Desert] .tac-rough{background:#dbc38f}.tac-map[data-terrain=Ruins] .tac-rough,.tac-map[data-terrain=Dungeon] .tac-rough,.tac-map[data-terrain=Castle] .tac-rough{background:#afa9a0}.tac-cell.reachable.rough{background:#648f6288!important}.tac-map[data-terrain=Forest]{background:radial-gradient(ellipse at 35% 35%,#556849 0%,#263e31 65%)}.tac-map[data-terrain=Desert]{background:repeating-linear-gradient(152deg,#8e7248 0 23px,#9e8052 24px 28px,#907249 29px 52px)}.tac-map[data-terrain=Dungeon],.tac-map[data-terrain=Ruins]{background:repeating-linear-gradient(137deg,#353840 0 35px,#40444b 36px 40px,#34373c 41px 80px)}

/* Spell-specific procedural signatures */
.fx-stage[data-spell=fireball] .fx-signature i{width:22px;height:22px;animation-name:fx-fireball;clip-path:polygon(50% 0,78% 18%,100% 60%,75% 100%,16% 90%,0 52%,22% 25%)}
.fx-stage[data-spell=missiles] .fx-signature i{width:28px;height:8px;border:0;border-radius:50%;background:#c8b3ff;animation-name:fx-projectile;clip-path:polygon(0 40%,80% 0,100% 50%,80% 100%,0 60%)}
.fx-stage[data-spell=fog] .fx-signature i{width:42px;height:25px;background:#cbd9e1;clip-path:polygon(0 45%,20% 0,70% 0,100% 45%,80% 90%,25% 100%);animation-name:fx-fog}
.fx-stage[data-spell=bless] .fx-signature i{width:12px;height:24px;background:#ffe1a2;clip-path:polygon(45% 0,60% 42%,100% 50%,60% 62%,45% 100%,30% 62%,0 50%,30% 42%);animation-name:fx-ember}
.fx-stage[data-spell=shield] .fx-signature i{width:18px;height:20px;background:transparent;border:2px solid #95dbff;clip-path:none;animation-name:fx-wave;border-radius:40%}
@keyframes fx-fireball{0%{opacity:0;transform:rotate(var(--a)) translateX(0) scale(.15)}25%{opacity:1}65%{opacity:.8;transform:rotate(var(--a)) translateX(66px) scale(2)}100%{opacity:0;transform:rotate(var(--a)) translateX(100px) scale(.1)}}
@keyframes fx-fog{0%{opacity:0;transform:rotate(var(--a)) translateX(0) scale(.4)}45%{opacity:.7;transform:rotate(var(--a)) translateX(35px) scale(1.8)}100%{opacity:0;transform:rotate(var(--a)) translateX(72px) scale(2.3)}}
/* v0.6.5: fog-of-war and map controls. */
.tac-cell.fog-memory{background:#171e25!important;box-shadow:inset 0 0 0 1px #39414b!important}.tac-cell.fog-memory>*{opacity:.35}.tac-cell.fog-unknown{background:#090e15!important;box-shadow:none!important;border-color:#141b23!important}.tac-cell.fog-unknown.sector-x,.tac-cell.fog-memory.sector-x{border-left:2px solid #6e6247!important}.tac-cell.fog-unknown.sector-y,.tac-cell.fog-memory.sector-y{border-top:2px solid #6e6247!important}.tac-cell.fog-unknown.reachable,.tac-cell.fog-memory.reachable{box-shadow:inset 0 0 0 1px #6aa88e!important}.tac-cell.dim-cell:after,.tac-cell.dark-cell:after{content:'';position:absolute;inset:0;background:#10182b40;pointer-events:none}.tac-cell.dark-cell:after{background:#0c12295c}.tac-cell.in-range:not(.occupied):not(.reachable){box-shadow:inset 0 0 0 1px #d7bd7899}.tac-cell.cover,.tac-cell.cover3{background:#85785b77!important}.tac-cover{width:78%;height:38%;background:linear-gradient(145deg,#c1b695 0 30%,#80765f 31% 70%,#544e40 71%);border-bottom:2px solid #494333;transform:skewY(-8deg)}.cover3 .tac-cover{height:72%}.tac-torch{color:#ffdc87;font-size:clamp(9px,2.8vw,24px);text-shadow:0 0 7px #ffb443,0 0 16px #ff8a30;font-style:normal}.tac-legend{display:flex;flex-wrap:wrap;gap:.4rem .8rem;font-size:.72rem;color:var(--muted)}.tac-legend span{display:flex;align-items:center;gap:.3rem}.tac-legend i{width:.7rem;height:.7rem;border-radius:2px;display:inline-block;border:1px solid #9c9c9c55}.legend-visible{background:#52675d}.legend-memory{background:#27313a}.legend-hidden{background:#090e15}.legend-move{background:#6aa88e}.legend-cover{background:#a39575}.tac-cell.fog-memory.spell-preview,.tac-cell.fog-unknown.spell-preview{background:#252127!important;box-shadow:inset 0 0 0 1px #cf8a62!important}
.tac-cell.hazard{background:#88552d66!important}.tac-hazard{font-size:clamp(9px,2.8vw,24px);font-style:normal;font-weight:900;color:#ffd291;text-shadow:0 0 6px #b84e17}
