/* V0.3 — full-art worlds and collectible ability cards. */
.kxe-adventure .ksp-explore-grid .kxe-island{min-height:0;padding:5px 0 12px;display:block;background:none;}
.kxe-adventure .ksp-explore-grid .kxe-island:before,.kxe-adventure .ksp-explore-grid .kxe-island-base{display:none;}
.kxe-adventure .ksp-explore-grid .kxe-island .ksp-thumb{display:block;width:100%;height:auto;max-width:100%;max-height:none;aspect-ratio:auto;object-fit:contain;border-radius:12px;border:0;box-shadow:none;background:transparent;margin:0;}
.kxe-adventure .ksp-explore-grid .kxe-island-spark{top:6px;right:8px;font-size:25px;}
.kxe-adventure .ksp-explore-grid .kxe-world-clickable{grid-template-rows:auto auto 1fr auto;align-content:stretch;}
.kxe-adventure .ksp-catalog-grid .kxe-world-clickable{cursor:pointer;isolation:isolate;transition:box-shadow .22s,border-color .22s,transform .22s;}
.kxe-adventure .ksp-catalog-grid .kxe-world-clickable .kxe-stretched-link{position:absolute!important;inset:0!important;z-index:5!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-height:0!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;font-size:0!important;line-height:0!important;box-shadow:none!important;background:none!important;transform:none!important;color:transparent!important;}
.kxe-adventure .kxe-stretched-link::after{content:none!important;}
.kxe-adventure .kxe-world-clickable:focus-within,.kxe-adventure .kxe-power-interactive:focus-within{outline:3px solid #ffdc83;outline-offset:3px;}
@media(hover:hover){.kxe-adventure .ksp-catalog-grid .kxe-world-clickable:hover{border-color:var(--island-light,#ffd061);box-shadow:0 0 28px var(--island-light,#ffd061),0 10px 25px #130b35;transform:translateY(-4px);animation:kxe-world-glow 1.5s ease-in-out infinite;}}
.kxe-adventure .ksp-catalog-grid .kxe-world-launch{border-color:#ffe4a0;box-shadow:0 0 35px #ffce6f;transform:scale(.985);}
@keyframes kxe-world-glow{0%,100%{box-shadow:0 0 13px color-mix(in srgb,var(--island-light,#ffd061) 55%,transparent),0 7px 0 #140b38;}50%{box-shadow:0 0 29px color-mix(in srgb,var(--island-light,#ffd061) 90%,transparent),0 7px 0 #140b38;}}
.kxe-adventure [data-kxe-power=hint]{--ability:#ffd061;--ability-bg:#63401d;}.kxe-adventure [data-kxe-power=time]{--ability:#76e8ff;--ability-bg:#1d5678;}.kxe-adventure [data-kxe-power=reduce]{--ability:#c9a1ff;--ability-bg:#56318b;}.kxe-adventure [data-kxe-power=change]{--ability:#ffa8db;--ability-bg:#7b285c;}
.kxe-adventure .ksp-hc-powers form.kxe-power-interactive,.kxe-adventure .ksp-dash[data-kxe-screen=wallet] .ksp-card-grid .ksp-tile.kxe-power-interactive{position:relative;isolation:isolate;overflow:visible;display:grid;grid-template-rows:auto auto auto 1fr auto;align-content:start;gap:7px;min-height:0;padding:clamp(10px,1.5vw,17px);border:1px solid color-mix(in srgb,var(--ability) 68%,#442365);border-radius:20px;background:radial-gradient(ellipse at 50% 0%,var(--ability-bg),transparent 65%),linear-gradient(165deg,#321c66,#191039);box-shadow:0 5px 0 #120a2d,inset 0 0 15px #0003;transition:transform .2s,box-shadow .2s;cursor:pointer;}
.kxe-adventure .ksp-dash[data-kxe-screen=wallet] .kxe-power-interactive form{position:static;display:contents;}
.kxe-adventure .kxe-power-interactive [hidden]{display:none!important;}
.kxe-adventure .kxe-power-interactive .kxe-ability-art{height:clamp(100px,13vw,172px);display:grid;place-items:center;background:radial-gradient(ellipse at 50% 45%,color-mix(in srgb,var(--ability) 27%,transparent),transparent 66%);position:relative;overflow:hidden;border-radius:12px;color:var(--ability);}
.kxe-adventure .kxe-ability-art:before,.kxe-adventure .kxe-ability-art:after{content:'';position:absolute;aspect-ratio:1;width:clamp(72px,10vw,130px);border-radius:50%;border:1px solid currentColor;opacity:.5;pointer-events:none;}
.kxe-adventure .kxe-ability-art:after{width:clamp(90px,12vw,154px);border-style:dashed;opacity:.35;}
.kxe-adventure .kxe-ability-art svg{width:clamp(45px,6vw,80px);height:auto;filter:drop-shadow(0 0 9px var(--ability));z-index:1;}
.kxe-adventure .kxe-power-interactive>strong,.kxe-adventure .kxe-power-interactive>h3{font-size:clamp(15px,1.65vw,21px);line-height:1.2;color:#fff;}
.kxe-adventure .kxe-power-interactive>small{color:var(--ability);font-size:13px;font-weight:800;}
.kxe-adventure .kxe-power-description{font-size:12px;line-height:1.35;color:#e6d8ff;}
.kxe-adventure .kxe-power-cost{display:block;border-radius:10px;border:1px solid color-mix(in srgb,var(--ability) 48%,transparent);padding:8px 9px;background:#160d35;color:#fff0ce;font-size:12px;font-weight:700;line-height:1.4;overflow-wrap:anywhere;}
.kxe-adventure .kxe-power-trigger{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;border-radius:inherit!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important;z-index:3;cursor:pointer;}
.kxe-adventure .kxe-power-trigger:disabled{cursor:default;}
@media(hover:hover){.kxe-adventure .kxe-power-interactive:has(.kxe-power-trigger:not(:disabled)):hover{transform:translateY(-4px);border-color:var(--ability);box-shadow:0 0 20px color-mix(in srgb,var(--ability) 65%,transparent),0 6px 0 #120a2d;animation:kxe-ability-glow 1.5s ease-in-out infinite;}.kxe-adventure .kxe-power-interactive:hover .kxe-ability-art:after{animation:kxe-orbit-spin 8s linear infinite;}}
.kxe-adventure .kxe-power-interactive:has(.kxe-power-trigger:active){transform:scale(.97);}
@keyframes kxe-ability-glow{0%,100%{box-shadow:0 0 12px color-mix(in srgb,var(--ability) 45%,transparent),0 5px 0 #120a2d;}50%{box-shadow:0 0 25px color-mix(in srgb,var(--ability) 85%,transparent),0 5px 0 #120a2d;}}
@keyframes kxe-orbit-spin{to{transform:rotate(360deg);}}
.kxe-spark-burst{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:2147483000;}.kxe-spark-bit{position:absolute;line-height:1;pointer-events:none;text-shadow:0 0 8px currentColor;transform:translate(-50%,-50%);}
.kxe-adventure .kxe-confirm-dialog{position:fixed;inset:0;margin:auto;width:min(420px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:0;overflow:auto;border:1px solid var(--ability,#ffd061);border-radius:24px;background:#201247;color:#fff;box-shadow:0 0 32px #9b6cfa65;z-index:99999;}
.kxe-adventure .kxe-confirm-dialog:not([open]){display:none!important;}.kxe-adventure .kxe-confirm-dialog::backdrop{background:#09051dd9;}
.kxe-confirm-panel{padding:22px;text-align:center;display:grid;gap:11px;background:radial-gradient(ellipse at top,var(--ability-bg,#543287),transparent 65%);}
.kxe-adventure .kxe-confirm-kicker{font-size:11px;letter-spacing:.18em;font-weight:800;color:var(--ability,#ffd061);margin:0;}.kxe-confirm-symbol{width:84px;height:84px;border:1px solid var(--ability,#ffd061);border-radius:50%;margin:auto;display:grid;place-items:center;color:var(--ability,#ffd061);box-shadow:0 0 24px color-mix(in srgb,var(--ability,#ffd061) 40%,transparent);}.kxe-confirm-symbol svg{width:48px;height:48px;}
.kxe-adventure .kxe-confirm-dialog h2{margin:0;font-size:clamp(22px,5vw,28px);line-height:1.2;color:#fff;}.kxe-adventure .kxe-confirm-terms{margin:0;font-size:16px;color:#fff2cf;}.kxe-adventure .kxe-confirm-timer{margin:0;padding:10px;border-radius:10px;background:#352660;color:#f9dd9d;font-size:13px;font-weight:700;}.kxe-adventure .kxe-confirm-timer[hidden]{display:none!important;}.kxe-adventure .kxe-confirm-urgent{color:#ffd2ca;background:#682e53;}.kxe-confirm-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:4px;}.kxe-adventure .kxe-confirm-actions button{min-height:48px;border-radius:12px;font:inherit;font-weight:800;cursor:pointer;padding:8px;border:1px solid #a88ad7;}.kxe-adventure .kxe-confirm-cancel{background:#392566;color:#fff;}.kxe-adventure .kxe-confirm-go{background:var(--ability,#ffd061);color:#20123d;border-color:transparent;}.kxe-adventure .kxe-confirm-actions button:focus-visible{outline:3px solid white;outline-offset:3px;}.kxe-adventure .kxe-confirm-go:disabled{opacity:.5;cursor:default;}
@media(max-width:440px){.kxe-adventure .ksp-explore-grid .kxe-island .ksp-thumb{width:100%;height:auto;}.kxe-adventure .ksp-hc-powers form.kxe-power-interactive{padding:10px;}.kxe-adventure .kxe-power-interactive .kxe-ability-art{height:100px;}.kxe-adventure .kxe-confirm-panel{padding:18px;}}
.kxe-motion-off .kxe-world-clickable,.kxe-motion-off .kxe-power-interactive,.kxe-motion-off .kxe-ability-art:after{animation:none!important;transition:none!important;transform:none!important;}
@media(prefers-reduced-motion:reduce){.kxe-world-clickable,.kxe-power-interactive,.kxe-ability-art:after{animation:none!important;transition:none!important;transform:none!important;}}
