/* Powers Unleashed: localized art-driven effects, no timers or form controls are reimplemented. */
.kxe-adventure .kxe-arena{background:radial-gradient(ellipse at 50% -10%,#57338a 0%,transparent 45%),linear-gradient(145deg,#20124d,#161038);border:1px solid #9a73de;box-shadow:0 8px 0 #10092c,0 0 35px #8754dc25}
.kxe-adventure .kxe-arena .ksp-hc-heading{font-weight:850;letter-spacing:.02em;border-bottom-color:#8754dc80}
.kxe-adventure .kxe-arena .ksp-hc-stats>div{position:relative;display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:3px;background:linear-gradient(160deg,#432c79,#2b1b55);border-color:#9a72d0;padding:10px;min-width:0}
.kxe-arena-stat-art{width:clamp(32px,5vw,52px);height:clamp(32px,5vw,52px);object-fit:contain;filter:drop-shadow(0 3px 9px #0005);pointer-events:none}
.kxe-adventure .kxe-arena .ksp-hc-stats small{font-size:clamp(10px,1.3vw,13px);line-height:1.2}.kxe-adventure .kxe-arena .ksp-hc-stats b{overflow-wrap:anywhere}
.kxe-adventure .kxe-arena .ksp-hc-meter{background:#26184e;border-color:#a587df}.kxe-adventure .kxe-arena #ksp-hc-clock.ksp-hc-urgent{color:#451b29;background:#ffb5a2;box-shadow:0 0 0 2px #ffb5a255,inset 0 -4px 0 #ae5361}.kxe-adventure .kxe-arena:has(#ksp-hc-clock.ksp-hc-urgent) .ksp-hc-meter{border-color:#ffad9d;box-shadow:0 0 18px #f7997a35}
.kxe-adventure .kxe-arena .ksp-hc-options label{background:linear-gradient(145deg,#40266e,#2a1c53);border-color:#8864c8;min-height:66px}.kxe-adventure .kxe-arena .ksp-hc-options label:has(input:checked){border-color:#ffd061;background:#563c78;box-shadow:0 4px 0 #1f143b,0 0 13px #ffd06135}.kxe-adventure .kxe-arena .ksp-hc-options label:focus-within{outline:3px solid #ffd061;outline-offset:2px}
.kxe-spell-icon{position:relative;display:grid;place-items:center;width:min(100%,148px);height:100%;max-height:148px;aspect-ratio:1;isolation:isolate;pointer-events:none}.kxe-spell-icon img{position:absolute;object-fit:contain;pointer-events:none;max-width:none}.kxe-spell-icon-ring{width:100%;height:100%;opacity:.75;filter:drop-shadow(0 0 7px var(--ability,#8754dc))}.kxe-spell-icon-object{width:70%;height:70%;filter:drop-shadow(0 5px 12px #09051c99)}.kxe-spell-icon-shard{width:33%;height:33%;z-index:2}.kxe-spell-icon-shard.first{left:9%;top:21%;transform:rotate(-25deg)}.kxe-spell-icon-shard.second{right:9%;bottom:18%;transform:rotate(30deg)}.kxe-adventure .kxe-spell-icon .kxe-spell-clock{width:49%;height:49%;filter:drop-shadow(0 0 8px #76e8ff);z-index:2}.kxe-adventure .kxe-ability-art:has(.kxe-spell-icon)::before,.kxe-adventure .kxe-ability-art:has(.kxe-spell-icon)::after{display:none}
.kxe-adventure .kxe-confirm-symbol:has(.kxe-spell-icon){width:114px;height:114px;border:0;box-shadow:none}.kxe-adventure .kxe-power-interactive:has(.kxe-spell-icon) .kxe-ability-art{height:clamp(88px,12vw,144px)}
@media(hover:hover){.kxe-power-interactive:has(.kxe-power-trigger:not(:disabled)):hover .kxe-spell-icon-ring{animation:kxe-spell-orbit 3s linear infinite}.kxe-power-interactive:has(.kxe-power-trigger:not(:disabled)):hover .kxe-spell-icon-object{animation:kxe-spell-hover .8s ease-in-out infinite alternate}}
@keyframes kxe-spell-orbit{to{transform:rotate(360deg)}}@keyframes kxe-spell-hover{to{transform:translateY(-5px) rotate(3deg)}}
.kxe-spell-receipt{display:flex;align-items:center;gap:12px;min-width:0;padding:9px 13px;border:1px solid var(--spell-color,#b799ff);border-radius:13px;background:linear-gradient(115deg,#352160,#211547);color:#fff;box-shadow:0 3px 0 #11092c;line-height:1.35}.kxe-spell-receipt[data-status=failure]{--spell-color:#ffb9a8!important}.kxe-spell-receipt[data-status=uncertain]{--spell-color:#ffd061!important}.kxe-spell-mark{display:grid;place-items:center;flex:none;width:42px;height:42px;color:var(--spell-color);font-size:23px;font-weight:900}.kxe-spell-mark img{width:100%;height:100%;object-fit:contain}.kxe-spell-copy{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}.kxe-spell-copy strong{color:var(--spell-color);font-size:15px}.kxe-spell-copy span{font-size:12px;color:#f0e5ff}.kxe-spell-copy small{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#d7c5ff;font-weight:700}
.kxe-spell-layer{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:2147481200;isolation:isolate}.kxe-spell-sprite{position:absolute;object-fit:contain;pointer-events:none;filter:drop-shadow(0 0 4px #c8adff44);max-width:none!important}
.kxe-arena-outcome{display:flex;gap:10px;align-items:center;color:#e6d4ff;font-weight:800;font-size:13px;letter-spacing:.04em}.kxe-arena-outcome img{width:53px;height:53px;object-fit:contain}.kxe-arena-outcome:is([data-outcome=feedback],[data-outcome=won],[data-outcome=cashed]){color:#ffd061}
@media(max-width:600px){.kxe-adventure .kxe-arena .ksp-hc-stats>div{padding:7px 3px}.kxe-adventure .kxe-arena .ksp-hc-stats b{font-size:clamp(18px,5vw,24px)}.kxe-spell-receipt{padding:8px;gap:7px}.kxe-spell-mark{width:35px;height:35px}.kxe-adventure .kxe-arena .ksp-hc-options label{min-height:60px}}
.kxe-motion-off .kxe-spell-layer{display:none!important}.kxe-motion-off .kxe-spell-icon *{animation:none!important}@media(prefers-reduced-motion:reduce){.kxe-spell-layer{display:none!important}.kxe-spell-icon *{animation:none!important}}
/* Explicit square sizing avoids clipping in narrow grid cells. */
.kxe-adventure .kxe-ability-art .kxe-spell-icon{width:clamp(80px,11vw,138px);height:clamp(80px,11vw,138px);max-width:100%;max-height:100%;min-width:0;min-height:0;aspect-ratio:1}
.kxe-adventure .kxe-confirm-symbol .kxe-spell-icon{width:106px;height:106px;max-width:100%;max-height:100%}
.kxe-spell-mark img{max-width:100%;max-height:100%}
.kxe-spell-slab{position:absolute;width:35px;height:25px;background:linear-gradient(145deg,#9f74e2,#46286f);border:1px solid #d8b8ff;border-radius:5px;box-shadow:0 0 8px #b38aff88;pointer-events:none}
.kxe-spell-slab.a{clip-path:polygon(0 0,100% 0,59% 48%,75% 65%,0 100%)}.kxe-spell-slab.b{clip-path:polygon(100% 0,100% 100%,0 100%,75% 65%,59% 48%)}
/* Confirmed normal-quiz reward overlay: never captures pointer input or covers controls with a panel. */
.kxe-normal-reward-layer{position:fixed;inset:0;pointer-events:none;z-index:900;overflow:hidden}.kxe-normal-reward-layer img{position:absolute;width:28px;height:28px;object-fit:contain;pointer-events:none}
