/* Cosmic Quest 0.2.0 — brand art and functional adventure navigation. */
body.kxe-adventure{--kx-bg:#16124d;--kx-panel:#24195c;--kx-panel2:#332477;--kx-line:#6552a7;--kx-text:#fff8ff;--kx-muted:#ddd5ff;--kx-mint:#76e8ff;--kx-gold:#ffd061;--kx-purple:#c6a3ff;--kx-coral:#ffab83;--kx-shadow:0 9px 0 #100b3a80,0 18px 40px #08062666;--kx-radius:24px;background:#16124d;}
.kxe-adventure .ks-hero{background:linear-gradient(180deg,#19134c44,#17124ecf 65%,#17124e),url('art/arena.webp') center top/100% auto no-repeat,#17124e;min-height:85vh;}
.kxe-adventure #ks-header,.kxe-adventure #ks-footer{background:#20134f;border-color:#6345a2;color:var(--kx-text);}.kxe-adventure #ks-header .ksp-wallet{background:#312166;border-color:#7155b7;}.kxe-adventure #ks-header .ksp-menu-toggle,.kxe-adventure #ks-header .ks-button{background:#382473;border-color:#7055b5;color:#fff;}
.kxe-adventure .ksp-layout .ks-button,.kxe-adventure #ksp-drawer .ks-button{background:linear-gradient(#ffe591,#ffc34b);border:1px solid #fff0b8;color:#372053;box-shadow:0 4px 0 #b57424,0 7px 13px #13092855;font-weight:850;}.kxe-adventure .ksp-layout .ks-button:not(:disabled):hover{background:#ffe69b;}.kxe-adventure .ksp-layout .ks-button--outline,.kxe-adventure #ksp-drawer .ks-button--outline{background:linear-gradient(#50369a,#37236f);border-color:#8a70ce;color:#fff5ff;box-shadow:0 4px 0 #211345;}.kxe-adventure .ksp-layout .ks-button--outline:not(:disabled):hover{background:#5b3aa7;}
.kxe-adventure .ksp-layout :is(input:not([type=hidden]):not([type=radio]):not([type=checkbox]),select){background:#20164b;border-color:#7961bd;}.kxe-adventure .ksp-layout :is(input[type=radio],input[type=checkbox]){accent-color:#ffce62;}.kxe-adventure .ksp-layout .ksp-kicker,.kxe-adventure .ksp-layout .ks-kicker{color:#ffdc83;}
.kxe-adventure .kxe-rail{background:linear-gradient(160deg,#382178,#22164f 70%);border-color:#7254b3;padding:16px 12px;}.kxe-adventure .kxe-rail-brand{font-size:23px;letter-spacing:-.06em;color:#ffda70;text-shadow:0 2px 0 #7c4097;}.kxe-brand-cat{width:47px;height:47px;object-fit:contain;filter:drop-shadow(0 3px 3px #150928);}.kxe-rail nav a:hover,.kxe-rail nav a[aria-current=page],.kxe-rail nav a[aria-current=location]{background:#5a399b;color:#fff;border-color:#916bd6;}.kxe-rail .kxe-pref button{background:#2c1c62;border-color:#8163c6;}.kxe-adventure #ksp-drawer{background:#241651;border-color:#7454bd;}.kxe-adventure #ksp-drawer .ksp-learn-nav a{background:#3b287a;border-color:#7657bc;}.kxe-adventure #ksp-drawer .ksp-learn-nav a[aria-current=page]{background:#ffd061;color:#342052;}
/* gateway */
.kxe-adventure .ks-hero-grid{min-height:540px;}.kxe-adventure .ks-hero-grid h1{font-size:clamp(44px,6.5vw,85px);text-shadow:0 4px 0 #110833;}.kxe-adventure .ks-hero-grid h1 span{color:#ffce58;}.kxe-login-scene{position:relative;margin-top:20px;border-radius:26px;overflow:hidden;border:2px solid #9c78e6;box-shadow:var(--kx-shadow);line-height:0;}.kxe-login-art{width:100%;display:block;aspect-ratio:1.9;object-fit:cover;}.kxe-adventure .ks-access{background:linear-gradient(145deg,#422787,#251551);border:1px solid #9168d1;box-shadow:0 10px 0 #120b35,0 24px 64px #0b072e88;}.kxe-adventure .ks-hero-grid .kxe-pref{margin-top:16px;}
/* Profile dashboard: full illustration strip above authoritative carousel. */
.kxe-adventure .ksp-profile-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;background:linear-gradient(145deg,#38216f,#241653);border:1px solid #9672d8;padding:clamp(16px,2.8vw,28px);isolation:isolate;}.kxe-hero-scene{position:relative;margin:calc(-1 * clamp(16px,2.8vw,28px));margin-bottom:0;height:clamp(155px,21vw,270px);overflow:hidden;z-index:0;border-radius:24px 24px 0 0;}.kxe-hero-art{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 44%;}.kxe-hero-scene:after{content:'';position:absolute;inset:60% 0 0;background:linear-gradient(transparent,#38216f);pointer-events:none;}.kxe-adventure .ksp-profile-avatar{background:#51338f;border-color:#e4c8ff;overflow:hidden;width:74px;height:74px;box-shadow:0 5px 0 #160d3e;}.kxe-avatar-art{width:100%;height:100%;object-fit:contain;}.kxe-adventure .ksp-profile-identity h1{color:#fff;}.kxe-adventure .ksp-profile-hero .ksp-stat,.kxe-adventure .ksp-stat,.kxe-adventure .ksp-rich .ksp-stat{background:linear-gradient(145deg,#4a3189,#33236d);border-color:#8662cd;box-shadow:0 4px 0 #1c1245;}.kxe-adventure .ksp-stat strong{color:#ffdc79;}.kxe-adventure .ksp-stat[data-kxe-metric=xp] strong{color:#78e8ff;}.kxe-adventure .ksp-stat[data-kxe-metric=gems] strong{color:#d4b4ff;}.kxe-adventure .ksp-stat-prev,.kxe-adventure .ksp-stat-next{background:#4a2d87;border-color:#9c74db;}
/* Actual clickable constellation, never decorative fake unlocks. */
.kxe-star-map{position:relative;isolation:isolate;padding:24px;border:1px solid #8667cb;border-radius:26px;background:linear-gradient(#22145366,#1c114bb8),url('art/arena.webp') center/cover no-repeat;box-shadow:var(--kx-shadow);overflow:hidden;}.kxe-map-head{position:relative;z-index:1;}.kxe-map-head h2{font-size:clamp(25px,3vw,38px);margin:5px 0!important;}.kxe-map-head p{color:var(--kx-muted);margin:4px 0 0;}.kxe-eyebrow{font-weight:900;color:#ffd46b;font-size:11px;letter-spacing:.2em;}.kxe-map-field{min-height:240px;display:grid;grid-template-columns:repeat(var(--nodes),minmax(0,1fr));gap:12px;align-items:end;position:relative;padding:26px 0 10px;}.kxe-map-field:before{content:'';position:absolute;top:54%;left:8%;right:8%;height:4px;background:repeating-linear-gradient(90deg,#9ee9ff 0 10px,transparent 10px 19px);filter:drop-shadow(0 0 5px #75dfff);opacity:.7;transform:rotate(-3deg);}.kxe-map-center{position:absolute;right:0;top:-99px;width:clamp(90px,15vw,175px);pointer-events:none;opacity:.96;}.kxe-map-cat{display:block;width:100%;height:auto;filter:drop-shadow(0 8px 10px #0e0835);}.kxe-adventure .ksp-layout .kxe-map-node{position:relative;display:grid;justify-items:center;text-align:center;gap:7px;align-content:start;min-width:0;min-height:168px;padding:9px 6px;text-decoration:none;color:#fff8ff;border-radius:18px;}.kxe-map-node:nth-of-type(even){margin-bottom:30px;}.kxe-map-node:hover,.kxe-map-node:focus-visible{background:#7d4cc852;}.kxe-map-orb{display:grid;place-items:center;width:clamp(62px,7vw,92px);height:clamp(62px,7vw,92px);border:3px solid #d4adff;border-radius:50%;background:radial-gradient(circle at 36% 28%,#b98aff,#7439cd 42%,#352075 72%);box-shadow:inset 0 -7px 8px #21115280,0 7px 0 #211346,0 0 23px #b587ff66;color:#fff0b2;font-size:clamp(30px,4vw,44px);text-shadow:0 3px 0 #573181;}.kxe-map-node[data-destination=explore] .kxe-map-orb{background:radial-gradient(circle at 30% 24%,#fff4b5,#fbc344 47%,#d67b26);border-color:#fff1ab;color:#65418d;box-shadow:0 6px 0 #884e27,0 0 26px #ffc95a77;}.kxe-map-node[data-destination=wallet] .kxe-map-orb{background:radial-gradient(circle at 30% 24%,#9cecff,#417de1 48%,#2840a4);border-color:#9aeaff;}.kxe-map-node strong{font-size:14px;line-height:1.25;color:#fff8ff!important;overflow-wrap:anywhere;}.kxe-map-node small{font-size:11px;line-height:1.3;color:#e4d7ff;overflow-wrap:anywhere;}
/* islands: floating podium under actual subject art, with a readable card below */
.kxe-adventure .ksp-catalog-heading{background:linear-gradient(100deg,#3b238c,#5734a9 60%,#39217a);border-color:#9a78d9;min-height:160px;}.kxe-adventure .ksp-catalog-heading h2{max-width:73%;}.kxe-catalog-cat{position:absolute;right:12px;bottom:0;width:clamp(84px,18%,160px);height:auto;pointer-events:none;filter:drop-shadow(0 4px 8px #21134e);}.kxe-adventure .kxe-world-orbit{display:none;}.kxe-adventure .ksp-catalog .ksp-search{background:#2e1e68;border-color:#7859bd;}.kxe-adventure .ksp-catalog-grid .ksp-catalog-tile,.kxe-adventure .ksp-rich .ksp-catalog-grid .ksp-catalog-tile{background:linear-gradient(160deg,#3b287c,#25164f);border:1px solid #7859bc;box-shadow:0 6px 0 #140b38,0 10px 22px #0b052f55;border-radius:22px;}.kxe-adventure .ksp-catalog-tile:hover{border-color:#e8baff;}.kxe-adventure .ksp-catalog-tile.ksp-locked{border-color:#65538b;}.kxe-adventure .ksp-catalog-tile .kxe-mission-number{color:#ffda85;}.kxe-adventure .ksp-chip{background:#4a3385;border-color:#8263c4;color:#f3e8ff;}.kxe-adventure .ksp-grade{background:#684b36;border-color:#ac8550;color:#ffe6a6;}.kxe-adventure .ksp-teacher-card{background:#362369;border-color:#795cba;color:#fff;}.kxe-island-grid .ksp-catalog-tile{--island:#8754dc;--island-light:#cab2ff;}.kxe-island-grid [data-world=science]{--island:#3a91c2;--island-light:#92efff;}.kxe-island-grid [data-world=math]{--island:#8a4ee0;--island-light:#e1b5ff;}.kxe-island-grid [data-world=history]{--island:#bd7737;--island-light:#ffda80;}.kxe-island-grid [data-world=earth]{--island:#388c83;--island-light:#9bf5ca;}.kxe-island-grid [data-world=language]{--island:#c052a0;--island-light:#ffc1e5;}.kxe-island-grid [data-world=tech]{--island:#456dd0;--island-light:#a9d4ff;}.kxe-island{position:relative;isolation:isolate;display:grid;place-items:center;min-height:160px;padding:8px 10px 34px;background:radial-gradient(ellipse at 50% 42%,color-mix(in srgb,var(--island) 66%,transparent),transparent 69%);}.kxe-island:before{content:'';position:absolute;width:85%;height:74%;top:0;border:1px dashed #c4b2ff55;border-radius:50%;transform:rotate(-14deg);z-index:-1;}.kxe-island-base{position:absolute;bottom:9px;left:10%;right:10%;height:44px;background:linear-gradient(155deg,var(--island-light),var(--island) 40%,#30205e 83%);clip-path:polygon(0 23%,22% 2%,77% 0,100% 21%,91% 51%,66% 82%,53% 100%,34% 80%,9% 51%);filter:drop-shadow(0 8px 10px #100a3b);z-index:-1;}.kxe-island-base:before{content:'';position:absolute;inset:0 0 45%;background:var(--island-light);opacity:.45;clip-path:polygon(0 45%,22% 0,77% 0,100% 40%,78% 95%,22% 100%);}.kxe-adventure .kxe-island :is(.ksp-thumb,.ksp-art,.ksp-concept-icon){width:clamp(90px,11vw,160px);height:clamp(90px,11vw,160px);aspect-ratio:1;max-width:100%;margin:0;border:2px solid var(--island-light);border-radius:45% 45% 40% 40%;box-shadow:0 6px 0 #211449,0 0 18px color-mix(in srgb,var(--island-light) 40%,transparent);object-fit:cover;}.kxe-adventure .kxe-island .ksp-concept-icon{display:grid;place-items:center;font-size:clamp(42px,6vw,70px);background:radial-gradient(circle at 35% 30%,var(--island),#3e257e);color:var(--island-light);}.kxe-island-spark{position:absolute;right:8%;top:10%;color:#ffdb6d;font-size:32px;text-shadow:0 0 11px #ffdb6d;pointer-events:none;}
/* cinematic reading, high contrast question cards */
.kxe-adventure .ksp-reading-heading,.kxe-adventure .ksp-reader,.kxe-adventure .ksp-transcript,.kxe-adventure .ksp-reader:fullscreen .ksp-transcript{background:#2a1a60;border-color:#785bb8;}.kxe-adventure .ksp-reader-image{background:#120b32;border-color:#614599;}.kxe-adventure .ksp-page-arrow{background:#50318e;border-color:#a57ad9;color:#ffecba;}.kxe-adventure .ksp-quiz,.kxe-adventure .ksp-quiz-result{background:linear-gradient(120deg,#2b1b68f5,#322074ed),url('art/arena.webp') center/cover;border-color:#9771d8;}.kxe-adventure .ksp-option,.kxe-adventure .ksp-hc-options label{background:linear-gradient(145deg,#4a328a,#34236f);border-color:#8064bd;box-shadow:0 5px 0 #1b104a;color:#fff;}.kxe-adventure .ksp-option:hover,.kxe-adventure .ksp-hc-options label:hover{background:#59409c;border-color:#c5a4ff;}.kxe-adventure .ksp-option:has(input:checked),.kxe-adventure .ksp-rich .ksp-option:has(input:checked),.kxe-adventure .ksp-hc-options label:has(input:checked){background:#634293;border-color:#ffdc7c;color:#fff4cc;box-shadow:0 5px 0 #482664;}.kxe-choice-letter{background:#2b1b5a;border-color:#a78ad9;color:#fff5da;}.kxe-adventure .ksp-option:has(input:checked) .kxe-choice-letter,.kxe-adventure .ksp-hc-options label:has(input:checked) .kxe-choice-letter{background:#ffd363;color:#342053;border-color:#ffedb3;}.kxe-adventure #ksp-quiz-clock:not(:empty){background:#2a1a60;border-color:#8c6acb;}.kxe-adventure .ksp-quiz-result h2{color:#ffda71;}.kxe-result-emblem{width:102px;height:102px;background:#49308d;border-color:#b08ae6;box-shadow:0 5px 0 #291b64;}.kxe-result-emblem img{width:100%;height:100%;object-fit:contain;}
/* Hardcore eclipse arena. The artwork stays behind content. */
.kxe-adventure .ksp-hc{--kx-mint:#ffd166;background:linear-gradient(150deg,#1a1045ec,#281149e8),url('art/arena.webp') center top/cover;border-color:#a57bdd;}.kxe-adventure .ksp-hc-heading{border-color:#735299;color:#ffdc85;}.kxe-adventure .ksp-hc-stats>div,.kxe-adventure .ksp-hc-meter{background:#34205f;border-color:#8a65b6;}.kxe-adventure .ksp-hc-stats>div:nth-child(2) b{color:#7fe9ff;}.kxe-adventure .ksp-hc-stats>div:nth-child(3) b{color:#d6b4ff;}.kxe-adventure #ksp-hc-clock{background:#ffcf67;box-shadow:inset 0 -5px 0 #bd7b2a;}.kxe-adventure #ksp-hc-clock.ksp-hc-urgent{background:#ffab97;box-shadow:inset 0 -5px 0 #ad465a;}.kxe-adventure .ksp-hc-feedback,.kxe-adventure .ksp-hc-hint-panel{background:#382269;border-color:#9873cb;}.kxe-arena-emblem{display:block;width:100px;height:100px;margin:0 auto;}.kxe-arena-emblem img{width:100%;height:100%;object-fit:contain;}
/* Illustrated card backs: distinct visual tokens with original name, cost and form intact. */
.kxe-adventure .ksp-hc-powers form,.kxe-adventure .ksp-dash[data-kxe-screen=wallet] .ksp-card-grid .ksp-tile{background:linear-gradient(160deg,#462a79,#261447);border:1px solid #9772c9;box-shadow:0 5px 0 #140a32;min-width:0;}.kxe-card-art{position:relative;display:grid;place-items:center;height:90px;background:url('art/eclipse.webp') center/contain no-repeat;isolation:isolate;}.kxe-card-art .kxe-power-icon{display:grid;place-items:center;width:40px;height:40px;margin:0;background:#2e1c66;border:2px solid #ffd376;border-radius:50%;color:#ffe4a0;font-size:24px;box-shadow:0 0 18px #ffd37666;}.kxe-card-art [data-kxe-power]{color:#fff;}.kxe-adventure [data-kxe-power=time] .kxe-power-icon{color:#90efff;border-color:#90efff;}.kxe-adventure [data-kxe-power=hint] .kxe-power-icon{color:#ffd879;border-color:#ffd879;}.kxe-adventure [data-kxe-power=reduce] .kxe-power-icon{color:#b9a1ff;border-color:#b9a1ff;}.kxe-adventure [data-kxe-power=change] .kxe-power-icon{color:#ffb1d9;border-color:#ffb1d9;}.kxe-adventure .ksp-dash[data-kxe-screen=wallet] .kxe-card-art{height:145px;}.kxe-adventure .ksp-dash[data-kxe-screen=wallet] .kxe-card-art .kxe-power-icon{width:53px;height:53px;font-size:30px;}.kxe-adventure .ksp-dash .ksp-tile:not(.ksp-catalog-tile){background:linear-gradient(150deg,#3d2777,#281953);border-color:#7759b8;}.kxe-adventure .ksp-after-quiz{background:#382570;border-color:#8664c6;}
@media(max-width:760px){.kxe-adventure .ks-hero{background:linear-gradient(#24165340,#1d144ad9 64%,#17124e),url('art/mobile.webp') center top/100% auto no-repeat,#17124e;}.kxe-adventure .ks-hero-grid{min-height:0;}.kxe-login-scene{margin-top:12px;}.kxe-adventure .kxe-rail{padding:10px;}.kxe-adventure .ksp-profile-avatar{width:58px;height:58px;}.kxe-star-map{padding:16px;}.kxe-map-head h2{max-width:78%;}.kxe-map-head p{max-width:80%;}.kxe-map-field{grid-template-columns:repeat(2,minmax(0,1fr));min-height:0;gap:8px;padding-top:18px;}.kxe-map-field:before{top:22%;bottom:10%;height:auto;left:50%;right:auto;width:3px;transform:none;background:repeating-linear-gradient(180deg,#9ee9ff 0 9px,transparent 9px 17px);}.kxe-map-center{top:-77px;width:92px;}.kxe-adventure .ksp-layout .kxe-map-node{min-height:124px;margin:0;padding:5px 3px;transform:none;}.kxe-map-node small{font-size:12px;}.kxe-island{min-height:142px;}.kxe-adventure .kxe-island :is(.ksp-thumb,.ksp-art,.ksp-concept-icon){width:105px;height:105px;}.kxe-card-art{height:70px;}.kxe-adventure .ksp-hc-powers form{padding:8px;}.kxe-adventure .ksp-catalog-heading{min-height:135px;}.kxe-catalog-cat{right:5px;}.kxe-adventure .ksp-hc-stats>div{padding:8px;}}
@media(max-width:440px){.kxe-adventure .kxe-island-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.kxe-adventure .kxe-island-grid .ksp-catalog-tile{padding:9px;gap:8px;}.kxe-adventure .kxe-island-grid .ksp-catalog-tile h3{font-size:16px;}.kxe-adventure .kxe-island-grid .ksp-catalog-tile .ks-button{font-size:12px;padding:7px;}.kxe-adventure .kxe-island :is(.ksp-thumb,.ksp-art,.ksp-concept-icon){width:85px;height:85px;}.kxe-island{min-height:116px;padding:5px 3px 26px;}.kxe-island-base{height:35px;}.kxe-map-center{width:72px;top:-70px;}.kxe-adventure .ksp-catalog-heading h2{font-size:24px;}.kxe-card-art{height:61px;}}
/* Final fit refinements: keep the hero face and island art fully legible. */
.kxe-hero-art{object-position:50% 17%;}.kxe-adventure .kxe-island :is(.ksp-thumb,.ksp-art,.ksp-concept-icon){min-height:0;min-width:0;}.kxe-adventure .ksp-layout .kxe-rail nav a{color:#e6dcff;}.kxe-adventure .ksp-layout .kxe-rail nav a[aria-current]{color:#fff2b9;}.kxe-adventure .ksp-layout .kxe-map-node:focus-visible{outline-offset:2px;}.kxe-map-orb{transition:box-shadow .2s,translate .2s;}.kxe-map-node:hover .kxe-map-orb{box-shadow:0 8px 0 #211346,0 0 35px #c9a8ffaa;translate:0 -4px;}.kxe-adventure #ksp-hc-clock:not(.ksp-hc-urgent){background:linear-gradient(90deg,#ffcf67 var(--kxe-timer,100%),#c8a35f var(--kxe-timer,100%));}
@media(max-width:760px){.kxe-hero-art{object-position:50% 44%;}}
@media(prefers-reduced-motion:reduce){.kxe-map-node:hover .kxe-map-orb{translate:none;}}
.kxe-motion-off .kxe-map-node:hover .kxe-map-orb{translate:none;}
