:root{color-scheme:dark;font-family:"Trebuchet MS",Arial,sans-serif;background:#0c0b15;color:#eeeaf7;--muted:#a8a1bd;--edge:#373046;--lilac:#bd9afc}
*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 45% 43%,#191427 0%,#0d0b16 65%,#0b0a13);overflow-x:hidden}.defs{position:absolute;width:0;height:0}button,select,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #ffce98;outline-offset:4px}button{transition:background .15s,transform .15s}button:active{transform:translateY(2px)}[hidden]{display:none!important}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.shell{width:min(1140px,100%);margin:auto;padding:max(22px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));display:flex;flex-direction:column;min-height:100svh}.top,.hud,.hudGroup,nav,footer,.keys,.brand,.tool,.stat,.swipe,.level,.primary,.icon{display:flex;align-items:center}.top,.hud,footer{justify-content:space-between}.top{margin:0 2px 20px;min-height:42px}.brand{gap:12px;font-size:22px;font-weight:800;letter-spacing:-.8px}.brand svg{width:32px;height:32px;stroke:none;color:#ae8ae4;filter:drop-shadow(2px 2px 0 #55317a)}nav{gap:10px}.tool,.icon{background:#1c1828;border:1px solid var(--edge);border-radius:8px}.tool{padding:8px 13px;gap:9px;font-size:14px;color:#d6d0e4;min-height:38px}.tool svg{width:17px;height:17px;color:var(--lilac)}.tool:hover,.icon:hover{background:#30253f}.cabinet{border:1px solid #50415f;background:#171321;border-radius:14px;padding:0 7px 7px;box-shadow:0 10px 50px #0004,inset 0 0 0 2px #ffffff03;display:flex;flex-direction:column;flex:1;max-height:860px}.hud{min-height:54px;padding:0 15px;gap:10px;font:14px/1 ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums}.hudGroup{gap:19px}.level{gap:8px;color:#d0b4ff;text-transform:uppercase;letter-spacing:1px;font-size:13px;font-weight:bold}.level b{font:inherit}.bars{width:17px;height:15px;background:linear-gradient(to top,#be96f5 35%,transparent 35%) left/4px 100% no-repeat,linear-gradient(to top,#be96f5 65%,transparent 65%) center/4px 100% no-repeat,linear-gradient(#be96f5,#be96f5) right/4px 100% no-repeat}.stat{gap:8px;color:#cec8db}.stat svg{width:16px;height:16px;color:#9f92b6}.divider{height:14px;width:1px;background:#3b3148}.icon{width:34px;height:34px;justify-content:center}.screen{isolation:isolate;position:relative;flex:1;overflow:hidden;border:1px solid #40344f;background:#100d1d;border-radius:8px;min-height:480px;touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}.screen:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 52% 41%,#302044 0%,#1e152f 32%,#110e1d 76%)}#world,.grain,.corners{position:absolute;inset:0;width:100%;height:100%}.grain{pointer-events:none;opacity:.095;background:repeating-linear-gradient(0deg,transparent 0 3px,#07040d 3px 4px)}.corners{pointer-events:none;z-index:2}.corners i{position:absolute;width:12px;height:12px;border-color:#826a95;border-style:solid;border-width:0}.corners i:nth-child(1){top:13px;left:13px;border-width:2px 0 0 2px}.corners i:nth-child(2){top:13px;right:13px;border-width:2px 2px 0 0}.corners i:nth-child(3){bottom:13px;left:13px;border-width:0 0 2px 2px}.corners i:nth-child(4){bottom:13px;right:13px;border-width:0 2px 2px 0}
.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none}.overlay button{pointer-events:auto}#cover{width:min(68%,540px);height:clamp(160px,32vh,330px);object-fit:contain;image-rendering:pixelated}.overlay h1{margin:0;width:min(44%,285px);line-height:0}.overlay h1 canvas{width:100%;height:auto;image-rendering:pixelated}.overlay p{color:#c1b9cf;text-align:center;font-size:16px;line-height:1.5;margin:20px 10px 22px}.primary{border:1px solid #ffa6a0;border-bottom:4px solid #a44d61;box-shadow:0 4px 0 #29192c,0 2px 26px #e87e8030,inset 0 1px #ffc3b1;color:#291626;background:#ff988e;font-weight:800;min-height:50px;border-radius:7px;padding:0 35px;justify-content:center;gap:14px;font-size:17px}.primary:hover{background:#ffafa1}.playTriangle{width:13px;height:15px;background:#382032;clip-path:polygon(0 0,30% 0,30% 14%,55% 14%,55% 28%,79% 28%,79% 42%,100% 42%,100% 58%,79% 58%,79% 72%,55% 72%,55% 86%,30% 86%,30% 100%,0 100%)}.quiet{border:0;background:transparent;color:#b1a5c4;padding:11px 15px;min-height:40px;font-size:13px}.quiet:hover{color:#fff}.overlay .quiet{margin-top:4px}footer{min-height:52px;color:#a69cb8;gap:14px;font-size:13px;padding:4px}.keys{gap:4px}.key{font:13px/1 ui-monospace,monospace;border:1px solid #40364e;background:#211b2c;border-bottom:3px solid #352c42;color:#ccc3d9;border-radius:4px;min-width:23px;height:23px;display:grid;place-items:center}.wide{padding:0 7px}.keys small{font-size:12px;margin:0 4px}.swipe{gap:7px}.swipe svg{width:16px;height:16px}.sr{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
dialog{width:min(420px,calc(100% - 32px));padding:29px;border:1px solid #6a547a;border-radius:14px;background:#211a2e;color:#eeeaf7;box-shadow:0 24px 100px #000a}dialog::backdrop{background:#090710bd;backdrop-filter:blur(5px)}.close{position:absolute;right:12px;top:12px;font-size:22px}h2{font-size:30px;letter-spacing:-1px;margin:8px 0 20px}dialog h2{font-size:25px;padding-right:20px}dialog p{line-height:1.5;color:#cfc5df}dialog label{display:block;margin:18px 0 7px}select,input{background:#130f1c;color:inherit;border:1px solid #51425f;padding:10px;border-radius:6px;width:100%}dialog .primary{margin-top:20px;width:100%}dialog .quiet{width:100%}.finish{background:#130e20e8}.portalArt{display:grid;place-items:center;margin-bottom:28px;width:75px;height:75px;font-size:42px;color:#ffdb8f;border:6px double #ffc178;box-shadow:0 0 30px #ffab6744}.eyebrow{font:700 13px monospace;letter-spacing:2px;text-transform:uppercase;color:#cda6ff}.result{margin:0 0 24px;color:#d0c5df}.finish h2{font-size:clamp(32px,6vw,56px);margin:12px 0}.legend{display:flex;align-items:center;gap:9px;margin:9px 0;color:#cfc5df}.sample{width:16px;height:16px;background:#655679;border:2px solid #8b78a4}.sample.wall{background:repeating-linear-gradient(135deg,#705785 0 2px,#372b49 2px 5px)}.sample.lamp{background:#ffc77c;border-color:#fff0bf}
@media(min-height:980px){.shell{justify-content:center}.cabinet{min-height:720px;flex:0 1 76svh}}
@media(max-width:600px){.shell{padding:max(12px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.top{margin:0 3px 12px}.brand{font-size:20px;gap:8px}.brand svg{width:27px;height:27px}nav{gap:6px}.tool{padding:8px;gap:6px;font-size:13px}.cabinet{border-radius:11px;padding:0 4px 4px;max-height:none}.hud{min-height:46px;padding:0 9px;font-size:12px}.hudGroup{gap:9px}.level{font-size:11px;gap:5px}.bars{width:13px}.stat{gap:5px}.stat svg{width:14px;height:14px}.screen{min-height:385px}#cover{width:94%;height:clamp(180px,29svh,290px)}.overlay h1{width:46%}.overlay p{font-size:15px}.keys{display:none}footer{justify-content:center;min-height:40px}.primary{min-height:48px}.tool span{display:none}.tool{width:40px;height:40px;justify-content:center}.tool svg{width:19px;height:19px}}
@media(max-height:620px) and (min-width:601px){.shell{padding-top:8px;padding-bottom:0}.top{min-height:32px;margin-bottom:8px}.hud{min-height:37px}.screen{min-height:290px}#cover{height:23svh}.overlay h1{width:160px}.overlay p{margin:7px;font-size:14px}.primary{min-height:40px}.overlay .quiet{margin:0;padding:6px;min-height:28px}footer{min-height:32px}}

/* Campaign navigation */
.shell{height:100svh;min-height:0;max-height:1120px}.cabinet{min-height:0;max-height:none;flex:1 1 auto;padding:7px}.screen{min-height:0;touch-action:auto}.shell[data-screen=play] .screen,#world{touch-action:none}.shell[data-screen=play] .cabinet{padding-top:0}.top{flex:none}.hud,.shell footer{flex-shrink:0}#summary,.version,.target,#catalogCount{font:13px ui-monospace,monospace;color:#c2b2cc}#summary{border-left:2px solid #8a6aa3;padding-left:11px}.version{font-size:12px;color:#a699ad}.shell:not([data-screen=play]) .keys{display:none}#savingNotice{font-size:12px;color:#ffbe90}
.page{position:absolute;inset:0;z-index:1;overflow:auto;overscroll-behavior:contain;animation:screenIn .19s ease-out both}.home{display:grid;grid-template-columns:1fr 1.2fr;align-items:center;align-content:center;padding:clamp(30px,6vw,86px);gap:20px}.home h1{margin:0;line-height:0}.home h1 canvas{width:min(100%,280px);height:auto;image-rendering:pixelated}.homeCopy{position:relative;z-index:1}.tagline{font-size:clamp(16px,2vw,22px);color:#e0d4e4;margin:16px 0 34px}.homeActions{max-width:295px}.homeActions button,.menuCard button{width:100%}.homeActions .primary{height:52px}.target{text-align:center;font-size:12px;margin:9px 0 17px}.secondary{display:flex;align-items:center;gap:10px;justify-content:center;background:#2e233b;border:1px solid #5c476b;color:#ede3f1;border-radius:7px;font-weight:600;min-height:45px;padding:9px 15px}.secondary:hover,.back:hover{background:#42304e}.secondary svg{width:17px;height:17px;color:#ccade5}.homeActions .secondary+.secondary,.menuCard button+button{margin-top:8px}.artFrame{position:relative;display:grid;place-items:center;isolation:isolate}.artFrame #cover{width:140%;max-width:none;height:auto;z-index:1;animation:reveal .85s ease-out both}.orbit{position:absolute;width:96%;aspect-ratio:1;border-radius:50%;border:1px solid #9372a328;background:radial-gradient(circle,#8f689733,transparent 64%);transform:scaleY(.6) rotate(-14deg)}.orbit:after{content:'';position:absolute;inset:-12%;border:1px dashed #977da025;border-radius:inherit}
.panel{padding:clamp(20px,4vw,45px);display:flex;flex-direction:column;align-items:center;background:#171221df}.panelHead,.settingsRows,#tiles{width:min(100%,680px)}.panelHead{flex:none}.back,.danger{min-height:44px;border:1px solid #55435f;background:#2b2337;color:#e0d2eb;border-radius:7px;padding:8px 14px}.panel h2{margin:16px 0 8px;letter-spacing:-1.5px;font-size:clamp(30px,4vw,45px)}progress{width:100%;height:6px;appearance:none;border:0;border-radius:9px;background:#3b3046;margin:12px 0 18px}progress::-webkit-progress-bar{border-radius:9px;background:#3b3046}progress::-webkit-progress-value{background:#cfabf0;border-radius:9px}progress::-moz-progress-bar{background:#cfabf0;border-radius:9px}
#catalog{background:#0e0c1bea}
#tiles{
  position:relative;min-height:0;overflow:auto;flex:1 1 auto;
  padding:2px 5px 18px;scrollbar-color:#605077 transparent;
  touch-action:pan-y;overscroll-behavior:contain;
}
#tiles:focus-visible{outline:2px solid #a98dc8;outline-offset:2px}
.levelGroup+.levelGroup{margin-top:clamp(16px,3vw,24px)}
.levelGroup h3{
  display:flex;align-items:center;gap:12px;margin:0 0 8px;
  color:#d1c4e0;font:700 14px/1.3 ui-monospace,monospace;
  font-variant-numeric:tabular-nums;
}
.levelGroup h3::after{
  content:'';height:1px;flex:1;
  background:linear-gradient(90deg,var(--accent),transparent);
}
.levelGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(5px,1.4vw,12px)}
.tile{
  position:relative;min-width:0;min-height:48px;height:clamp(48px,10vw,84px);
  border-radius:8px;border:1px solid color-mix(in srgb,var(--accent) 62%,#110d1c);
  background:linear-gradient(150deg,color-mix(in srgb,var(--accent) 60%,#121022),#100d1b);
  color:#eee4f6;font:700 clamp(16px,3vw,25px)/1 ui-monospace,monospace;
  font-variant-numeric:tabular-nums;
}
.tile svg{position:absolute;top:4px;right:4px;width:12px;height:12px}
.tile:disabled{cursor:default;background:#141020;color:#aaa0b5;border-color:#2b2337}
.tile.open:hover,.tile.done:hover{background:color-mix(in srgb,var(--accent) 52%,#171221)}
.tile.open{border-color:color-mix(in srgb,var(--accent) 68%,#c3a3da)}
.tile.done{color:#e3d2fa}
.tile.new{animation:unlock .8s ease-out both}
.setting{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid #49394f}.setting input{appearance:none;position:relative;width:46px;height:26px;padding:0;border-radius:20px;background:#3f3548;cursor:pointer}.setting input:before{content:'';position:absolute;width:18px;height:18px;background:#ddd1e7;border-radius:50%;top:3px;left:4px}.setting input:checked{background:#846596}.setting input:checked:before{left:22px;background:#fff0ff}.danger{margin:25px 0;color:#ffb3ab}.centered{display:grid;place-items:center;background:#171221eb;padding:20px}.menuCard{width:min(310px,100%);text-align:center;margin:auto}.menuCard h2{font-size:clamp(28px,4vw,38px);margin:10px 0 20px}.menuCard p{color:#cfbfd9}.menuCard .portalArt{margin:0 auto 18px}.menuCard .quiet{min-height:44px}
@keyframes screenIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@keyframes reveal{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}@keyframes unlock{0%,60%{box-shadow:0 0 13px #ffc691,inset 0 0 24px #ffb0884d}100%{box-shadow:inset 0 0 16px #e2a28e20}}
@media(max-width:650px){.home{display:flex;flex-direction:column;justify-content:safe center;align-items:center;gap:0;padding:20px}.homeCopy{display:contents}.home h1{order:0;text-align:center}.home h1 canvas{width:clamp(100px,34vw,165px)}.tagline{order:1;margin:9px 0 2px;font-size:16px}.artFrame{order:2;width:min(90%,310px);margin:3px 0}.artFrame #cover{width:100%;height:auto}.homeActions{order:3;width:min(100%,295px)}.panel{padding:18px 13px}.panel h2{margin-top:9px}.shell footer{justify-content:space-between}.cabinet{padding:4px}.centered{padding:12px}}
@media(max-height:540px){.home{padding:14px 7%;gap:7px}.tagline{margin:6px 0 10px}.target{margin:4px 0 7px}.menuCard .portalArt{display:none}.home h1 canvas{max-width:140px}}
html[data-reduce=true] *,html[data-reduce=true] *:before{animation-duration:.001ms!important;animation-delay:0ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
.page{overflow-x:hidden;outline:none}.shell[data-screen=play] #world{animation:screenIn .15s ease-out}.shell[data-screen=catalog] #summary{visibility:hidden}#pauseBtn{width:44px;height:44px}
.artFrame{pointer-events:none}

@font-face{
  font-family:Nunito;
  src:url('../fonts/nunito-cyrillic.woff2') format('woff2');
  font-style:normal;font-weight:200 1000;font-display:swap;
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face{
  font-family:Nunito;
  src:url('../fonts/nunito-latin.woff2') format('woff2');
  font-style:normal;font-weight:200 1000;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
.homeActions .expeditionButton{background:#f0cb80;border-color:#ffe1a6;border-bottom-color:#a07339;box-shadow:0 4px 0 #29192c,inset 0 1px #ffe7b6}
.homeActions .expeditionButton:hover{background:#f6d895}
.homeActions .expeditionButton,.homeActions .levelsButton{height:auto;min-height:55px;padding:6px 12px}
.homeActions .levelsButton{margin-top:8px}
.modeHint{display:block;font-size:11px;font-weight:700;margin-top:2px;overflow-wrap:anywhere}
.framedButton{border:1px solid #685478;border-radius:7px;background:#21192c}
.framedButton:hover,.returnButton:hover{background:#493652}
.returnButton{border-color:#896ca0;color:#f3e7fa;background:#382a49}
.homeExtras{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
.homeExtras .quiet{padding-inline:5px}
.hudStats{display:flex;flex:1;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.hud>.icon{flex-shrink:0}
.crystalMark{display:inline-block;width:12px;height:12px;margin:0 5px;transform:rotate(45deg);background:#f2cd80;border:1px solid #ffe4a0;box-shadow:0 0 12px #edb96866;flex-shrink:0}
.expeditionPage{font-family:Nunito,system-ui,sans-serif;background:radial-gradient(ellipse at 50% 44%,#273340 0,#191625 52%,#171321 100%)}
.expeditionPage .expeditionCard h2{font-size:clamp(26px,6.4vw,40px);font-weight:800;letter-spacing:-.035em}
.expeditionCard{width:min(390px,100%);padding:10px 0}
.expeditionCard h2{margin-bottom:12px;line-height:1.1}
.expeditionCard p{line-height:1.5;margin:10px 0 18px}
.expeditionCard .largeCrystal{width:25px;height:25px;margin:11px 0 14px;box-shadow:0 0 21px #edb96888}
.expeditionCard .bestStat{display:inline-flex;gap:.4em;align-items:center;padding:6px 11px;border:1px solid #856840;border-radius:7px;color:#f9d66f;background:#2e251f;font-weight:700}
.bestStat strong{font-weight:inherit}

.expeditionCard button:disabled{cursor:wait;opacity:.65}
.expeditionHud{gap:clamp(6px,2vw,20px)}
.hud:has(.expeditionHud:not([hidden])){padding-block:7px}
.energyStat{display:flex;align-items:center;gap:7px;flex:1;max-width:270px;min-width:0;color:#f9d66f;font-weight:700}
.energyMeter{display:grid;gap:5px;flex:1;min-width:0}
.energyMeter>span:first-child{white-space:nowrap;font-size:clamp(11px,2.6vw,14px)}
.energyBolt{width:22px;height:28px;flex:none;background:linear-gradient(155deg,#ffebac,#f9d66f 55%,#cc9037);clip-path:polygon(48% 0,91% 0,64% 37%,100% 37%,35% 100%,46% 56%,8% 56%)}
.energyStat b{font-weight:inherit}
.scoreStat b{display:block;color:#fff1fb;font-size:clamp(17px,3.8vw,25px);line-height:1.1;font-weight:800}
.scoreStat{display:flex;justify-content:flex-end;gap:clamp(5px,2vw,16px);color:#dfc8ec;font-size:clamp(11px,3.1vw,15px);font-weight:700}
.scoreStat>span{display:grid;gap:3px;padding:4px 5px;text-align:center;border:1px solid #554469;border-radius:6px;background:#221a31}
.energyBar{position:relative;display:block;height:10px;background:#3d3449;border:1px solid #725944;border-radius:8px;overflow:hidden}
.energyBar i{position:absolute;inset:0;background:#f9d66f;transform:scaleX(var(--charge, .5));transform-origin:left;transition:transform .18s ease-out,background .18s ease-out}
.energyBar[data-low=true] i{background:#e7b44a}
.expeditionResults{display:grid;grid-template-columns:1fr auto;gap:8px 20px;margin:18px auto;padding:13px 12px;text-align:left;background:#241b31;border:1px solid #4e3d60;border-radius:8px;color:#cfc2da;font-size:14px}
.expeditionResults dd{margin:0;text-align:right;color:#efe3fa;font:700 14px ui-monospace,monospace}
@media(max-width:380px){.energyBolt{width:15px;height:21px}.energyStat{gap:4px}.scoreStat>span{padding-inline:3px}.hud:has(.expeditionHud:not([hidden])){gap:5px;padding-inline:5px}}

.expeditionButton .crystalMark{border-color:currentColor}
#expeditionMultiplier{color:#f9d66f;font-size:11px;font-weight:700}
.surveyButton{position:absolute;z-index:3;top:15px;left:15px;width:clamp(70px,19vw,112px);aspect-ratio:1;padding:3px;border:1px solid #88729f;border-radius:8px;background:#241931;box-shadow:0 3px 10px #100a19a0}
.surveyButton:hover{border-color:#f9d66f}
.surveyButton canvas{display:block;width:100%;height:100%;border-radius:4px;pointer-events:none}
.surveyDialog[open]{position:fixed;inset:0;display:flex;flex-direction:column;gap:12px;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.surveyHeader{display:flex;justify-content:space-between;align-items:center;gap:8px}
.surveyHeader h2{margin:0;padding:0}
.surveyHeader form{margin:0}
.surveyHeader button{touch-action:manipulation}
.surveyDialog .surveyLegend{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;font-size:13px}
.surveyLegend i{display:inline-block;width:9px;height:9px;background:#71598c;border-radius:2px}
.surveyLegend span:nth-child(2) i{background:#b29bbe}
.surveyLegend span:nth-child(3) i{background:#f9d66f}
#surveyViewport{display:block;width:100%;height:0;min-height:0;flex:1;border-radius:8px;outline:1px solid #574664;touch-action:none;cursor:grab}
#surveyViewport:active{cursor:grabbing}

.surveyDialog[open]{background:var(--map-bg,#181223)}
.surveyLegend i{background:var(--map-floor,#71598c)}
.surveyLegend span:nth-child(2) i{background:var(--map-wall,#b29bbe)}
.expeditionTotals{display:grid;gap:11px;margin:14px 0;text-align:center}
.expeditionTotals dd{margin:4px 0 0;font-family:ui-monospace,monospace;font-weight:800;line-height:1}
.expeditionFinalScore{padding:12px 8px;background:#342638;border:1px solid #ac8651;border-radius:9px;color:#f9d66f}
.expeditionFinalScore dt{font-size:14px;font-weight:700}
.expeditionFinalScore dd{font-size:clamp(32px,8vw,53px)}
.expeditionFinalBest dt{color:#cbb4de;font-size:13px;font-weight:700}
.expeditionFinalBest dd{color:#efe0fb;font-size:clamp(21px,5vw,29px)}

#chargeBadge{color:#f9d66f}
#chargeBadge{position:absolute;bottom:3px;right:3px;background:#23192c;border-radius:5px;padding:2px 5px}
.keyTutorialRow{
  display:flex;align-items:center;gap:12px;margin:12px 0;
}
.keyTutorialRow svg{width:26px;height:26px;color:#f4d69a}
.keyTutorialRow .wallTutorialIcon{
  --wall-icon-fill:color-mix(in srgb,var(--campaign-accent) 32%,#40334c);
  color:color-mix(in srgb,var(--campaign-accent) 24%,#eee5fa);
}
#keyStatus{
  position:absolute;z-index:3;top:15px;right:15px;pointer-events:none;
  border:1px solid #745d58;border-radius:7px;padding:6px 9px;
  background:#181222;color:#f4d69a;font:700 14px/1.3 ui-monospace,monospace;
}
#rewardToast,.mapNotice{position:absolute;z-index:5;background:#302538;color:#ffe39b;border:1px solid #90754c;border-radius:10px;padding:12px 16px;text-align:center}
#rewardToast{top:12%;left:50%;transform:translateX(-50%);white-space:pre-line;pointer-events:none}
.mapNotice{top:50%;left:50%;transform:translate(-50%,-50%);width:min(340px,90%);box-shadow:0 8px 42px #110c1ed9}
.mapNotice p{color:#eee5f4;line-height:1.45}
.mapControls{display:flex;align-items:center;gap:8px;color:#f9d66f}
.mapControls button{min-width:40px;min-height:36px;background:#33263e;border:1px solid #746180;border-radius:6px}
.surveyLegend span:nth-child(4) i{background:#627780}

#campaignResult{color:color-mix(in srgb,var(--campaign-accent) 45%,white)}
#campaignStats .level{border-bottom:2px solid color-mix(in srgb,var(--campaign-accent) 65%,#c7a9ed)}

#powerGlow{position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;opacity:0;transition:opacity .25s ease;box-shadow:inset 0 0 12px 2px var(--power-glow),inset 0 0 42px 8px color-mix(in srgb,var(--power-glow) 72%,transparent),inset 0 0 88px color-mix(in srgb,var(--power-glow) 46%,transparent)}
#powerGlow.active{opacity:1}
[data-reduce="true"] #powerGlow{transition:none}
.surveyLegend #exitLegend i{background:#ffe4a0;border-radius:0;transform:rotate(45deg)}
.surveyLegend #portalLegend i{background:transparent;border:2px solid #e7baff;border-radius:50%}
.surveyLegend #chestLegend i{background:#72533c;border:1px solid #f8ce74}
