:root{color-scheme:light;--game-font-ui: "Yuanti SC", "Hiragino Maru Gothic ProN", "PingFang SC", ui-rounded, system-ui, sans-serif;--game-font-display: "Hannotate SC", "Klee", "Yuanti SC", "Hiragino Maru Gothic ProN", "PingFang SC", ui-rounded, system-ui, sans-serif;--soft-adventure-bg: radial-gradient(circle at 28% 20%, rgba(255, 246, 191, .72), transparent 34%), radial-gradient(circle at 78% 18%, rgba(202, 247, 232, .72), transparent 32%), linear-gradient(160deg, #fff8dc 0%, #e9f7dd 42%, #c9efe8 100%);font-family:var(--game-font-ui);color:#261f18;background:#e8ddcb}*{box-sizing:border-box}html,body,#root{width:100%;height:100%}body{margin:0;overflow:hidden}.gameShell{position:fixed;top:0;right:0;bottom:0;left:0;overflow:hidden;background:#efe8dc}.startupLoadingScreen{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;background:radial-gradient(circle at 50% 14%,rgba(255,243,158,.72),transparent 32%),radial-gradient(circle at 15% 78%,rgba(142,239,188,.42),transparent 34%),radial-gradient(circle at 84% 76%,rgba(124,207,185,.36),transparent 36%),linear-gradient(180deg,#c8ef92 0%,#8bdc84 45%,#4f9e73 100%);font-family:var(--game-font-ui)}.startupLoadingBackdrop{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;transform:scale(1.02);animation:startupBackdropDrift 8s ease-in-out infinite alternate}.startupLoadingVignette{position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at 48% 30%,rgba(255,252,194,.22),transparent 28%),linear-gradient(180deg,rgba(255,247,174,.08),transparent 52%,rgba(20,86,49,.28)),linear-gradient(90deg,rgba(20,75,43,.2),transparent 24%,transparent 70%,rgba(23,73,50,.22));pointer-events:none}.startupLoadingMascotGlow{position:absolute;left:10%;bottom:5%;width:min(420px,45vw);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(255,247,161,.32),rgba(122,255,213,.18) 38%,transparent 68%);filter:blur(8px);opacity:.76;animation:startupGlowPulse 2.8s ease-in-out infinite;pointer-events:none}.startupLoadingPanel{position:absolute;left:50%;bottom:clamp(24px,7vh,72px);display:grid;width:min(680px,calc(100vw - 36px));min-height:188px;padding:26px 34px 30px;transform:translate(-50%);border:5px solid #472819;border-radius:28px;background:linear-gradient(180deg,rgba(255,249,210,.97),rgba(255,230,157,.95)),#fff0ae;box-shadow:inset 0 0 0 4px #ffffe8bd,0 7px #2f1b12,0 22px 36px #23140c59;color:#3f2418;text-align:center}.startupLoadingPanel:before,.startupLoadingPanel:after{content:"";position:absolute;top:20px;width:42px;height:24px;border:4px solid #4a2b1c;border-radius:999px;background:linear-gradient(#9be983,#4fc36a);box-shadow:inset 0 2px #ffffff7a}.startupLoadingPanel:before{left:22px;transform:rotate(-14deg)}.startupLoadingPanel:after{right:22px;transform:rotate(14deg)}.startupLoadingEyebrow{margin:0 0 5px;color:#2f705f;font-size:13px;font-weight:1000;letter-spacing:0}.startupLoadingPanel h1{margin:0 0 20px;color:#472819;font-family:var(--game-font-display);font-size:clamp(34px,4vw,52px);line-height:1.04;letter-spacing:0;text-shadow:0 2px 0 #fff4b6,0 5px 0 rgba(77,43,24,.15)}.startupLoadingTrack{position:relative;height:34px;overflow:hidden;border:4px solid #4a2b1c;border-radius:999px;background:linear-gradient(180deg,rgba(91,56,31,.2),rgba(255,255,255,.12)),#7a4a2a;box-shadow:inset 0 5px 6px #301b1057,0 4px #2f1b124d}.startupLoadingFill{position:absolute;inset:0 auto 0 0;min-width:18px;border-radius:999px;background:linear-gradient(90deg,rgba(255,255,255,.34),transparent 24%,rgba(255,255,255,.3) 48%,transparent 72%),linear-gradient(180deg,#fff06c,#f5b73b 48%,#da7b29);box-shadow:inset 0 4px #ffffff73,inset 0 -4px #78371a2e,0 0 18px #ffe3488c;transition:width .18s ease}.startupLoadingSpark{position:absolute;top:50%;width:22px;height:22px;transform:translate(-50%,-50%);border:3px solid #4a2b1c;border-radius:50%;background:radial-gradient(circle at 34% 28%,#fffbd2,#ffd955 44%,#f58b30);box-shadow:0 0 12px #ffed65eb,0 0 24px #7effcf80;transition:left .18s ease}.startupLoadingStatus{min-height:22px;margin:13px 0 0;color:#3b6958;font-size:clamp(15px,2vw,18px);font-weight:1000;line-height:1.25}.startupLoadingRetry{justify-self:center;min-width:156px;min-height:48px;margin-top:14px;padding:0 24px 3px;border:4px solid #4c2b1c;border-radius:18px;background:#8ff0d3;box-shadow:inset 0 2px #ffffffad,0 5px #3f2418,0 12px 18px #2f1c1233;color:#3b2117;cursor:pointer;font:inherit;font-size:19px;font-weight:1000}.startupLoadingRetry:hover{transform:translateY(-2px);filter:drop-shadow(0 0 12px rgba(112,255,226,.55))}.titleScreen{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;background:var(--soft-adventure-bg)}.titleCover{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.titleVignette{position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at 48% 36%,rgba(255,255,210,.2),transparent 28%),linear-gradient(90deg,rgba(255,255,255,.02),rgba(12,87,58,.05) 55%,rgba(7,49,49,.24)),linear-gradient(180deg,rgba(255,248,157,.2),transparent 34%,rgba(3,52,47,.12));pointer-events:none}.gameTitle{position:absolute;top:clamp(20px,3.2vw,42px);left:50%;margin:0;gap:clamp(2px,.18vw,4px);width:min(76vw,920px);transform:translate(-50%) rotate(-4deg);filter:drop-shadow(0 18px 20px rgba(60,31,8,.38))}.titleLogoSvg{display:block;width:100%;overflow:visible}.titleLogoHalo,.titleLogoLetter,.menuTextHalo,.menuTextFill{font-family:Hiragino Maru Gothic ProN,Arial Rounded MT Bold,PingFang SC,ui-rounded,system-ui,sans-serif;font-weight:1000;letter-spacing:0;paint-order:stroke fill;stroke-linejoin:round}.titleLogoHalo,.titleLogoLetter{font-size:118px}.titleLogoHalo{fill:#fff7bf;stroke:#fff7bf;stroke-width:30px}.titleLogoLetter{stroke:#39150d;stroke-width:15px}.titleLogoLetter:nth-of-type(6){stroke-width:13px}.menuButtons{position:absolute;right:clamp(18px,5vw,82px);top:50%;width:clamp(520px,45vw,700px);transform:translateY(-38%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.4vw,20px)}.menuButton{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:100%;aspect-ratio:528 / 172;border:0;background:transparent;color:#fff4a7;cursor:pointer;font:inherit;font-size:clamp(23px,2.1vw,34px);font-weight:1000;letter-spacing:0;text-shadow:none;filter:drop-shadow(0 14px 22px rgba(0,0,0,.42))}.menuHexFrame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.menuTextSvg{position:relative;z-index:1;display:block;width:100%;height:100%;padding:0 18%;transform:rotate(-1.5deg) translateY(-1px)}.menuTextHalo{font-size:42px;fill:#fff8cf;stroke:#fff8cf;stroke-width:12px}.menuTextFill{font-size:42px;fill:#ffe86b;stroke:#3f170c;stroke-width:7px}.menuButton:hover{transform:translateY(-2px) scale(1.025);filter:drop-shadow(0 14px 22px rgba(0,0,0,.42)) drop-shadow(0 0 14px rgba(80,255,199,.42))}.menuButton:hover .menuTextFill{fill:#70ffe2}.keyboardFocusRing{outline:none;filter:brightness(1.06) drop-shadow(0 0 7px rgba(255,248,186,.98)) drop-shadow(0 0 15px rgba(112,255,226,.72)) drop-shadow(0 9px 16px rgba(56,30,16,.24))}.keyboardFocusRing.keyboardFocusRing{outline:none;filter:brightness(1.07) drop-shadow(0 0 8px rgba(255,248,186,.98)) drop-shadow(0 0 18px rgba(112,255,226,.78)) drop-shadow(0 9px 18px rgba(56,30,16,.26))}.menuButton:active{transform:translateY(2px) scale(.99)}.menuButtonMuted{cursor:default;opacity:.8}.menuButtonBadge{position:absolute;z-index:2;right:9%;top:8%;min-width:58px;padding:3px 10px 4px;border:3px solid #3f170c;border-radius:999px;background:#fff6c7;color:#3f170c;font-size:clamp(12px,1vw,15px);font-weight:1000;line-height:1;box-shadow:0 3px #3f170c52}@keyframes startupBackdropDrift{0%{transform:scale(1.02) translate3d(-6px,-3px,0)}to{transform:scale(1.045) translate3d(6px,4px,0)}}@keyframes startupGlowPulse{0%,to{transform:scale(.96);opacity:.58}50%{transform:scale(1.05);opacity:.86}}.musicToggleButton{position:absolute;z-index:18;top:18px;left:18px;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:78px;min-height:42px;padding:0 14px 2px;border:3px solid #4c2b1c;border-radius:999px;background:rgba(255,243,194,.92);box-shadow:inset 0 2px #ffffffad,0 4px #3f2418,0 10px 18px #2f1c1238;color:#3b2117;cursor:pointer;font-family:var(--game-font-ui);font-size:15px;font-weight:1000}.musicToggleButton:hover{transform:translateY(-1px);background:rgba(255,251,210,.96)}.musicToggleButton:active{transform:translateY(2px);box-shadow:inset 0 2px #ffffffad,0 2px #3f2418,0 6px 12px #2f1c122e}.musicToggleButton-game{top:auto;right:18px;bottom:18px;left:auto}.musicToggleButton-developer{left:116px}.musicToggleButton-inline{position:relative;z-index:auto;top:auto;left:auto;min-height:40px}.musicToggleButton-muted{background:rgba(226,215,198,.9);color:#6c5748}.musicToggleButton-pending{animation:musicTogglePulse 1.6s ease-in-out infinite}.musicToggleIcon{width:18px;color:#146b60;font-size:20px;line-height:1;text-align:center}.musicToggleButton-muted .musicToggleIcon{color:#765d4b}.musicToggleLabel{line-height:1}.gameTopBar{position:absolute;z-index:24;top:24px;left:24px;display:inline-flex;align-items:center;gap:10px}.gameTopBar-game{inset:auto 18px 18px auto}.gameTopBar-developer{top:18px;left:116px}.gameTopBarButton{min-height:42px;padding:0 18px 2px;border:2px solid #4c2b1c;border-radius:12px;background:linear-gradient(#fff9dc,#f6df9d);box-shadow:inset 0 2px #ffffffad,0 3px #3f2418,0 8px 14px #2f1c1229;color:#3b2117;cursor:pointer;font-family:var(--game-font-display);font-size:16px;font-weight:1000}@keyframes musicTogglePulse{0%,to{filter:drop-shadow(0 0 0 rgba(112,255,226,0))}50%{filter:drop-shadow(0 0 10px rgba(112,255,226,.48))}}.gameCanvasHost{display:block;width:100%;height:100%}.gameCanvasHost canvas{display:block;width:100%;height:100%}.playtestBackButton{position:absolute;z-index:6;top:18px;left:18px;min-height:44px;padding:0 18px 2px;border:3px solid #4c2b1c;border-radius:14px;background:#fff3c2;box-shadow:inset 0 2px #ffffffad,0 4px #3f2418,0 9px 14px #2f1c122e;color:#3b2117;font:inherit;font-size:16px;font-weight:1000;cursor:pointer}.playtestWeaponPanel{position:absolute;z-index:6;top:74px;right:22px;display:grid;width:220px;gap:8px;padding:12px;border:3px solid #4c2b1c;border-radius:14px;background:rgba(255,243,194,.9);box-shadow:inset 0 2px #ffffffad,0 4px #3f2418,0 12px 24px #2f1c122e;color:#3b2117;font-family:var(--game-font-ui);font-weight:1000;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.playtestWeaponPanel strong{color:#174d45;font-size:15px;line-height:1}.playtestWeaponPanel p{margin:0;padding:6px 8px 7px;border:2px solid rgba(68,39,25,.24);border-radius:10px;background:rgba(255,255,242,.72);color:#5d3a22;font-size:12px;line-height:1.1}.playtestClassControl,.playtestSkinControl{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;gap:6px;padding:6px;border:2px solid rgba(68,39,25,.24);border-radius:10px;background:rgba(255,255,242,.72)}.playtestClassControl span,.playtestSkinControl span{color:#3b2117;font-size:14px;text-align:center;white-space:nowrap}.playtestClassControl button,.playtestSkinControl button{min-width:34px;min-height:30px;border:2px solid #5a3522;border-radius:9px;background:#9fe4d1;box-shadow:inset 0 2px #ffffff8c;color:#3b2117;font:inherit;font-size:13px;font-weight:1000;cursor:pointer}.playtestBossControl{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;gap:6px;padding:6px;border:2px solid rgba(68,39,25,.24);border-radius:10px;background:rgba(255,255,242,.72)}.playtestBossControl button{min-height:30px;border:2px solid #5a3522;border-radius:9px;background:#ffc3db;box-shadow:inset 0 2px #ffffff8c;color:#3b2117;font:inherit;font-size:12px;font-weight:1000;cursor:pointer}.playtestBossControl button:nth-child(2){overflow:hidden;padding-inline:8px;text-overflow:ellipsis;white-space:nowrap}.playtestCardListButton{min-height:34px;border:2px solid #5a3522;border-radius:10px;background:#ffeb8a;box-shadow:inset 0 2px #ffffff8c;color:#3b2117;cursor:pointer;font:inherit;font-size:13px;font-weight:1000}.playtestCardListDialog{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:14px;width:min(1040px,calc(100vw - 48px));max-height:min(760px,calc(100vh - 48px));padding:22px;border:5px solid #4c2b1c;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,236,.86),rgba(255,236,166,.92)),#ffe7a3;box-shadow:inset 0 0 0 4px #ffffec8a,0 8px #3f2418,0 22px 32px #2f1c1247;color:#3b2117;font-family:var(--game-font-ui)}.playtestCardListHeader{display:flex;align-items:start;justify-content:space-between;gap:16px}.playtestCardListHeader p,.playtestCardListHeader h2{margin:0}.playtestCardListHeader h2{color:#442719;font-family:var(--game-font-display);font-size:clamp(34px,4vw,54px);line-height:1}.playtestCardListClose,.playtestCardPlayerTab{min-height:40px;padding:0 16px 3px;border:3px solid #4c2b1c;border-radius:14px;background:#fff3c2;box-shadow:0 3px #3f2418;color:#3b2117;cursor:pointer;font:inherit;font-size:15px;font-weight:1000}.playtestCardPlayerTabs{display:flex;flex-wrap:wrap;gap:8px}.playtestCardPlayerTabActive{background:#9ff2d5;color:#174d45}.playtestCardList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:0;overflow-y:auto;padding:2px 4px 6px 0}.playtestCardListItem{display:grid;grid-template-columns:56px minmax(0,1fr) 86px;align-items:center;gap:10px;min-height:84px;padding:10px;border:3px solid rgba(76,43,28,.72);border-radius:16px;background:rgba(255,255,242,.72);box-shadow:inset 0 2px #ffffff8c}.playtestCardListItemSelected{border-color:#146b60;background:rgba(211,255,238,.86);box-shadow:inset 0 2px #ffffff9e,0 0 0 4px #71eecc5c}.playtestCardListItemEditing{border-color:#bd771c;background:rgba(255,242,185,.92);box-shadow:inset 0 2px #ffffffa3,0 0 0 4px #ffd65761}.playtestCardListItem img{width:54px;height:54px;object-fit:contain;filter:drop-shadow(0 4px 0 rgba(63,36,24,.25))}.playtestCardListText{display:grid;gap:4px;min-width:0}.playtestCardListText strong{color:#174d45;font-family:var(--game-font-display);font-size:20px;line-height:1}.playtestCardListText span{color:#5d3a22;font-size:12px;font-weight:1000;line-height:1.25}.playtestCardLevelField{display:grid;gap:4px;justify-items:center;color:#3b2117;font-size:12px;font-weight:1000}.playtestCardLevelField input{width:78px;height:34px;min-width:0;padding:0 8px 1px;border:2px solid rgba(68,39,25,.48);border-radius:11px;background:rgba(255,255,242,.9);color:#3b2117;font-family:var(--game-font-ui);font-size:14px;font-weight:1000;text-align:center}.playtestCardListItemEditing .playtestCardLevelField input{border-color:#4c2b1c;outline:3px solid rgba(255,205,83,.64)}.trainingSetupScreen{align-items:center}.trainingConfigPanel{position:relative;z-index:1;display:grid;gap:18px;width:min(1160px,calc(100vw - 48px));max-height:calc(100vh - 48px);overflow:auto;overscroll-behavior:contain;padding:28px 32px 30px;border:6px solid #4c2b1c;border-radius:32px;background:linear-gradient(180deg,rgba(255,251,216,.98),rgba(255,237,166,.95)),#fff0bd;box-shadow:inset 0 0 0 5px #ffffecb3,0 9px #26150f,0 26px 46px #26160e52;color:#3b2117;font-family:var(--game-font-ui)}.trainingConfigPanelCompact{width:min(1060px,calc(100vw - 48px));max-height:min(800px,calc(100vh - 48px))}.trainingConfigHeader{display:grid;gap:4px;justify-items:center;text-align:center}.trainingConfigHeader p,.trainingConfigHeader h1{margin:0}.trainingConfigHeader p{color:#2f705f;font-size:14px;font-weight:1000}.trainingConfigHeader h1{color:#442719;font-family:var(--game-font-display);font-size:clamp(34px,4vw,56px);line-height:1.04}.trainingConfigHero{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:stretch}.trainingStepperCard{display:grid;grid-template-columns:54px minmax(0,1fr) 54px;gap:12px;align-items:center;min-height:128px;padding:16px 18px;border:5px solid #4c2b1c;border-radius:26px;background:radial-gradient(circle at 50% 18%,rgba(255,255,236,.96),rgba(200,246,218,.72) 64%,rgba(255,231,157,.86)),#f7edb8;box-shadow:inset 0 0 0 3px #ffffec9e,0 6px #3f2418}.trainingCardFocused{border-color:#146b60;filter:drop-shadow(0 0 10px rgba(94,255,219,.72)) drop-shadow(0 7px 0 rgba(63,36,24,.44))}.trainingRoundArrow{display:grid;place-items:center;width:54px;height:54px;border:4px solid #4c2b1c;border-radius:50%;background:#fff3c2;box-shadow:0 4px #3f2418;color:#3b2117;cursor:pointer;font:inherit;font-size:38px;font-weight:1000;line-height:1}.trainingStepperContent{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-width:0;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;display:grid;gap:6px;justify-items:center;min-height:96px;padding:6px 10px;text-align:center}.trainingChoiceLabel{color:#2f705f;font-size:13px;font-weight:1000}.trainingChoiceTitle{color:#442719;font-family:var(--game-font-display);font-size:clamp(28px,3vw,40px);line-height:1}.trainingChoiceDescription{display:-webkit-box;min-height:36px;overflow:hidden;color:#5d4431;font-size:13px;font-weight:1000;line-height:1.18;-webkit-box-orient:vertical;-webkit-line-clamp:2}.trainingSkinContent{display:grid;grid-template-columns:auto auto;gap:14px;align-items:center;justify-content:center;justify-items:center;text-align:left}.trainingSkinPreviewFrame{display:grid;place-items:center;width:min(142px,24vw);min-width:108px;aspect-ratio:1.18;border:4px solid rgba(76,43,28,.76);border-radius:24px;background:radial-gradient(circle at 50% 48%,rgba(255,255,230,.98),rgba(169,235,204,.72) 68%),#c9efd4;box-shadow:inset 0 0 0 4px #ffffec94}.trainingSkinSprite{width:min(112px,19vw);height:min(112px,19vw);background-repeat:no-repeat;background-position:center;background-size:contain}.trainingSkinMeta{display:grid;gap:4px;justify-items:start;text-align:left}.trainingWeaponContent{display:grid;gap:8px;align-content:center;justify-items:center}.trainingWeaponDots{display:flex;gap:6px}.trainingWeaponDot{width:16px;height:16px;border:3px solid #4c2b1c;border-radius:50%;background:#fff3c2}.trainingWeaponDotActive{background:#92f1d5}.trainingMonsterSection{display:grid;gap:10px;min-height:0}.trainingSectionTitle{display:flex;align-items:center;justify-content:space-between;gap:12px}.trainingSectionTitle h2,.trainingSectionTitle span{margin:0}.trainingSectionTitle h2{color:#442719;font-family:var(--game-font-display);font-size:clamp(24px,3vw,34px);line-height:1}.trainingSectionTitle span{color:#2f705f;font-size:14px;font-weight:1000}.trainingMonsterGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-height:0;padding:2px 4px 6px 0}.trainingMonsterButton{display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:2px 8px;min-width:0;min-height:70px;padding:9px;border:3px solid rgba(76,43,28,.72);border-radius:16px;background:rgba(207,252,230,.72);box-shadow:inset 0 2px #ffffff8c;color:#3b2117;cursor:pointer;font:inherit;text-align:left}.trainingMonsterButtonSelected{border-color:#146b60;background:rgba(255,255,246,.94)}.trainingMonsterButtonFocused{box-shadow:inset 0 2px #ffffff9e,0 0 0 4px #71eecc5c}.trainingMonsterThumb{grid-row:1 / 3;width:44px;height:44px}.trainingMonsterButton span,.trainingMonsterButton small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trainingMonsterButton span{color:#174d45;font-family:var(--game-font-display);font-size:18px;line-height:1}.trainingMonsterButton small{color:#6b4b2e;font-size:12px;font-weight:1000}.trainingConfigActions,.trainingBossActions{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}.trainingActionButton{min-width:150px;min-height:52px;padding:0 24px 4px;border:4px solid #4c2b1c;border-radius:18px;box-shadow:inset 0 2px #ffffffad,0 5px #3f2418,0 12px 18px #2f1c1229;color:#3b2117;cursor:pointer;font:inherit;font-size:20px;font-weight:1000}.trainingActionButton:disabled{border-color:#4c2b1c73;background:#d6c9a5;box-shadow:inset 0 2px #ffffff85,0 3px #3f2418ad;color:#3b211794;cursor:not-allowed;transform:translateY(2px)}.trainingActionButtonPrimary{background:#92f1d5}.trainingActionButtonMuted{background:#fff3c2}.trainingBossDialog{display:grid;gap:18px;width:min(760px,calc(100vw - 48px));max-height:calc(100vh - 48px);padding:26px 30px 30px;border:6px solid #4c2b1c;border-radius:30px;background:linear-gradient(180deg,rgba(255,251,216,.98),rgba(255,229,181,.96)),#fff0bd;box-shadow:inset 0 0 0 5px #ffffecb3,0 9px #26150f,0 26px 46px #26160e52;color:#3b2117;font-family:var(--game-font-ui)}.trainingBossHeader{display:grid;gap:4px;justify-items:center;text-align:center}.trainingBossHeader p,.trainingBossHeader h2{margin:0}.trainingBossHeader h2{color:#442719;font-family:var(--game-font-display);font-size:clamp(34px,4vw,52px);line-height:1}.trainingBossPicker{display:grid;grid-template-columns:54px minmax(0,1fr) 54px;gap:12px;align-items:center;padding:12px;border:5px solid #4c2b1c;border-radius:26px;background:radial-gradient(circle at 50% 18%,rgba(255,255,236,.96),rgba(255,203,220,.72) 62%,rgba(255,235,156,.86)),#f7edb8;box-shadow:inset 0 0 0 3px #ffffec9e,0 6px #3f2418}.trainingBossPickerFocused{border-color:#146b60}.trainingBossPicker>button{display:grid;place-items:center;width:54px;height:54px;border:4px solid #4c2b1c;border-radius:50%;background:#fff3c2;box-shadow:0 4px #3f2418;color:#3b2117;cursor:pointer;font:inherit;font-size:38px;font-weight:1000;line-height:1}.trainingBossCard{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;align-items:center;min-width:0}.trainingBossSprite{display:block;width:150px;height:150px;object-fit:contain;filter:drop-shadow(0 12px 10px rgba(43,30,19,.2)) drop-shadow(0 0 12px rgba(255,231,121,.3))}.trainingBossCard strong,.trainingBossCard p,.trainingBossCard small{display:block;margin:0}.trainingBossCard strong{color:#442719;font-family:var(--game-font-display);font-size:clamp(26px,3vw,38px);line-height:1}.trainingBossCard p{margin-top:8px;color:#5d4431;font-size:14px;font-weight:1000;line-height:1.25}.trainingBossCard small{margin-top:10px;color:#2f705f;font-size:13px;font-weight:1000}.levelSelectScreen{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;padding:24px;background:var(--soft-adventure-bg);font-family:var(--game-font-ui)}.levelSelectBackdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,rgba(255,246,176,.18),rgba(22,74,40,.08)),url(../assets/maps/bright-jungle/terrain/jungle-background.webp?v=20260605-webp-q85) center / cover;filter:saturate(1.04) brightness(.96)}.levelSelectHeader,.levelSelectList{position:relative;z-index:1}.levelSelectHeader{display:flex;justify-content:center;width:min(980px,calc(100vw - 48px));margin:0 auto 24px;padding-top:10px}.levelSelectHeaderTitle{min-width:min(560px,62vw);padding:13px 34px 17px;border:4px solid #442719;border-radius:24px;background:rgba(255,241,190,.95);box-shadow:inset 0 0 0 3px #fffcddb8,0 6px #23140f,0 16px 28px #27180f3d;text-align:center}.levelSelectHeader p,.levelSelectHeader h1{margin:0;letter-spacing:0}.levelSelectHeader p{color:#2f705f;font-size:13px;font-weight:1000}.levelSelectHeader h1{color:#442719;font-family:var(--game-font-display);font-size:clamp(34px,4vw,52px);line-height:1.05}.levelSelectBackButton{min-height:56px;padding:0 26px 3px;border:4px solid #4c2b1c;border-radius:18px;background:#fff3c2;box-shadow:inset 0 2px #ffffffad,0 5px #3f2418,0 12px 18px #2f1c1233;color:#3b2117;cursor:pointer;font:inherit;font-size:22px;font-weight:1000}.levelSelectList{display:block;width:min(1020px,calc(100vw - 48px));max-height:calc(100vh - 158px);margin:0 auto;padding:18px;overflow-y:auto;border:4px solid #442719;border-radius:28px;background:rgba(255,241,190,.9);box-shadow:inset 0 0 0 3px #fffcddb8,0 8px #23140f,0 20px 34px #27180f40}.levelSelectGroupSection+.levelSelectGroupSection{margin-top:22px}.levelSelectGroupHeader{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 14px;padding:10px 14px 12px;border:2px solid rgba(68,39,25,.42);border-radius:18px;background:rgba(255,248,216,.74);color:#442719}.levelSelectGroupHeader h2{margin:0;font-family:var(--game-font-display);font-size:21px;line-height:1}.levelSelectGroupHeader p{margin:5px 0 0;color:#2b654f;font-size:12px;font-weight:1000}.levelSelectGroupHeader span{flex:0 0 auto;min-width:54px;padding:4px 10px 5px;border:2px solid rgba(68,39,25,.72);border-radius:999px;background:linear-gradient(#9df5de,#5fd8bd);color:#392015;font-size:12px;font-weight:1000;text-align:center}.levelSelectGroupGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.levelSelectCard{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;display:grid;grid-template-columns:64px 1fr;grid-template-rows:auto auto;align-items:center;min-height:118px;gap:4px 14px;padding:18px 18px 18px 16px;border:4px solid #4c2b1c;border-radius:20px;background:linear-gradient(135deg,rgba(143,240,211,.92),rgba(255,249,215,.96) 62%),#fff7cf;box-shadow:0 5px #3f2418;color:#3b2117;cursor:pointer;font:inherit;text-align:left}.levelSelectCard:hover:not(:disabled){transform:translateY(-2px);filter:drop-shadow(0 0 12px rgba(88,255,218,.38))}.levelSelectCard.keyboardFocusRing{box-shadow:inset 0 0 0 4px #fff9bdf2,0 0 0 5px #26a17e6b,0 5px #3f2418,0 0 0 9px #70ffe247,0 18px 30px #1f533f57;filter:brightness(1.08) drop-shadow(0 0 15px rgba(255,248,186,.95)) drop-shadow(0 0 24px rgba(112,255,226,.82)) drop-shadow(0 12px 20px rgba(56,30,16,.32))}.levelSelectCard:disabled{cursor:default}.levelSelectCardLocked{background:linear-gradient(135deg,rgba(228,220,197,.94),rgba(255,248,222,.88)),#f1e8d0;color:#3a2a1e94;filter:grayscale(.25)}.levelSelectIndex{grid-row:1 / 3;display:grid;place-items:center;width:58px;height:58px;border:4px solid #4c2b1c;border-radius:50%;background:#ffe77b;box-shadow:inset 0 2px #ffffff9e;color:#174d45;font-size:23px;font-weight:1000}.levelSelectName{overflow:hidden;color:#174d45;font-family:var(--game-font-display);font-size:25px;font-weight:1000;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.levelSelectMeta{color:#6a4c35;font-size:15px;font-weight:1000}.levelSelectLock{position:absolute;right:16px;top:14px;display:grid;place-items:center;min-width:44px;height:34px;padding:0 10px 2px;border:3px solid #6a4c35;border-radius:999px;background:rgba(255,244,191,.9);color:#6a4c35;font-weight:1000}.archiveScreen,.shopScreen{position:absolute;top:0;right:0;bottom:0;left:0;padding:24px;background:var(--soft-adventure-bg);font-family:var(--game-font-ui)}.archiveScreen{overflow-x:hidden;overflow-y:auto}.shopScreen{overflow:hidden}.archiveBackdrop,.shopBackdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at 22% 28%,rgba(255,245,168,.28),transparent 28%),linear-gradient(180deg,rgba(255,246,176,.16),rgba(28,82,55,.2)),url(../assets/maps/bright-jungle/terrain/jungle-background.webp?v=20260605-webp-q85) center / cover;filter:saturate(1.04) brightness(.95);pointer-events:none}.archiveBackdrop{position:fixed}.archiveHeader,.shopHeader{position:relative;z-index:2;display:grid;grid-template-columns:140px 1fr 140px;align-items:center;gap:18px;width:min(1120px,calc(100vw - 48px));margin:0 auto 20px}.archiveHeaderTitle,.shopHeaderTitle{justify-self:center;min-width:min(560px,62vw);padding:13px 34px 17px;border:4px solid #442719;border-radius:24px;background:rgba(255,241,190,.95);box-shadow:inset 0 0 0 3px #fffcddb8,0 6px #23140f,0 16px 28px #27180f3d;text-align:center}.archiveHeaderSpacer,.shopHeaderSpacer{min-width:140px}.archiveHeader p,.archiveHeader h1,.shopHeader p,.shopHeader h1{margin:0;letter-spacing:0}.archiveHeader p,.shopHeader p{color:#2f705f;font-size:13px;font-weight:1000}.archiveHeader h1,.shopHeader h1{color:#442719;font-family:var(--game-font-display);font-size:clamp(34px,4vw,52px);line-height:1.05}.archiveLayout{position:relative;z-index:1;display:grid;grid-template-columns:minmax(300px,.82fr) minmax(420px,1.18fr);align-items:start;gap:20px;width:min(1120px,calc(100vw - 48px));min-height:calc(100dvh - 184px);margin:0 auto}.archivePanel,.shopPanel{border:5px solid #4c2b1c;border-radius:28px;background:linear-gradient(180deg,rgba(255,251,216,.98),rgba(255,239,176,.94)),#fff0bd;box-shadow:inset 0 0 0 4px #ffffecad,0 7px #26150f,0 20px 34px #26160e47}.archivePanel{min-height:0;padding:22px;overflow:visible}.archivePanel h2,.shopPanel h2{margin:0;color:#442719;font-family:var(--game-font-display);font-size:30px;line-height:1.05}.archiveStats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.archiveStat{min-height:76px;padding:10px 12px;border:3px solid rgba(68,39,25,.82);border-radius:18px;background:rgba(255,248,216,.86);box-shadow:0 3px #3f24188a}.archiveStat span,.archiveLevelItem small,.archiveMessage,.shopOfferCard small{color:#5d4431;font-size:13px;font-weight:1000;line-height:1.25}.archiveStat strong{display:block;margin-top:6px;color:#174d45;font-family:var(--game-font-display);font-size:30px;line-height:1}.archiveLevelList{display:grid;align-content:start;gap:10px;padding-right:0}.archiveLevelItem{display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 10px;align-items:center;min-height:64px;padding:8px 10px;border:2px solid rgba(68,39,25,.26);border-radius:14px;background:rgba(255,253,237,.7)}.archiveLevelItem span{grid-row:1 / 3;display:grid;width:42px;height:42px;place-items:center;border:3px solid #4c2b1c;border-radius:50%;background:#ffe77b;color:#174d45;font-weight:1000}.archiveLevelItem strong{overflow:hidden;color:#174d45;font-family:var(--game-font-display);font-size:21px;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}.archiveTransferPanel{display:grid;grid-template-rows:auto 220px auto 160px auto;gap:12px}.archiveTransferHeader,.archiveImportRow{display:flex;align-items:center;justify-content:space-between;gap:12px}.archiveTextarea{width:100%;min-height:0;resize:none;padding:12px;border:3px solid rgba(68,39,25,.72);border-radius:16px;background:rgba(255,253,237,.82);color:#3b2117;font:900 12px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.archiveImportTextarea{font-family:var(--game-font-ui);font-size:13px}.archivePrimaryButton,.archiveFileButton{display:inline-grid;min-height:46px;place-items:center;padding:0 18px 3px;border:4px solid #4c2b1c;border-radius:16px;background:#9ff2d5;box-shadow:0 4px #3f2418;color:#173f39;cursor:pointer;font:inherit;font-size:17px;font-weight:1000;white-space:nowrap}.archivePrimaryButton:disabled{cursor:default;filter:grayscale(.35) brightness(.82)}.archiveDangerButton{display:inline-grid;min-height:44px;place-items:center;width:100%;margin:0 0 16px;padding:0 18px 3px;border:4px solid #4c2b1c;border-radius:16px;background:#e95f70;box-shadow:0 4px #3f2418;color:#fff8df;cursor:pointer;font:inherit;font-size:17px;font-weight:1000}.archiveFileButton{position:relative;background:#fff3c2}.archiveFileButton input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.archiveResetOverlay{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;background:rgba(36,22,14,.56)}.archiveResetDialog{display:grid;gap:14px;width:min(520px,calc(100vw - 40px));padding:28px;border:5px solid #4c2b1c;border-radius:26px;background:linear-gradient(180deg,rgba(255,251,216,.99),rgba(255,236,171,.97)),#fff0bd;box-shadow:inset 0 0 0 4px #ffffecb3,0 7px #26150f,0 22px 44px #26160e61}.archiveResetDialog h2{margin:0;color:#442719;font-family:var(--game-font-display);font-size:34px;line-height:1}.archiveResetDialog p{margin:0;color:#5d4431;font-size:17px;font-weight:1000;line-height:1.45}.archiveResetActions{display:flex;justify-content:flex-end;gap:12px;margin-top:6px}.archiveResetButton{display:inline-grid;min-width:128px;min-height:50px;place-items:center;padding:0 18px 3px;border:4px solid #4c2b1c;border-radius:16px;background:#fff3c2;box-shadow:0 4px #3f2418;color:#3b2117;cursor:pointer;font:inherit;font-size:18px;font-weight:1000}.archiveResetButtonDanger{background:#e95f70;color:#fff8df}.archiveMessage{margin:0}.shopScreen{background:#c9854b}.shopBackdrop{background:url(../assets/shop/sheep-shop/backgrounds/old-sheep-shop-bg.webp?v=20260605-webp-q85) center / cover;filter:saturate(1.02) brightness(.98);pointer-events:none}.shopAmbientShade{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,rgba(38,19,12,.04) 0 42%,rgba(78,42,24,.16) 64%,rgba(44,20,12,.28)),linear-gradient(180deg,rgba(255,245,177,.08),rgba(33,18,13,.12));pointer-events:none}.shopWallet{justify-self:end;display:inline-flex;align-items:center;gap:9px;min-height:54px;padding:0 18px;border:4px solid #4c2b1c;border-radius:18px;background:rgba(255,243,194,.94);box-shadow:0 5px #3f2418;color:#3b2117;font-size:24px;font-weight:1000}.rarityTag{--rarity-fill: #fffaf0;--rarity-glow: rgba(255, 255, 255, .82);--rarity-accent: #d8cfc1;--rarity-text: #3f3026;display:inline-grid;grid-template-columns:auto auto;grid-template-areas:"gem name";align-items:center;column-gap:7px;min-width:0;min-height:30px;padding:3px 12px 4px 10px;border:3px solid rgba(76,43,28,.88);border-radius:999px;background:radial-gradient(circle at 30% 20%,var(--rarity-glow),transparent 38%),linear-gradient(180deg,rgba(255,255,255,.52),rgba(255,255,255,.08)),var(--rarity-fill);box-shadow:inset 0 0 0 2px #ffffec8f,0 3px #3f24188f,0 8px 14px #331d111f;color:var(--rarity-text);font-weight:1000;line-height:1;white-space:nowrap}.rarityTagGem{grid-area:gem;width:13px;height:13px;border:2px solid rgba(76,43,28,.72);border-radius:4px;background:linear-gradient(135deg,rgba(255,255,255,.86),transparent 42%),var(--rarity-accent);box-shadow:0 1px #ffffff8c;transform:rotate(45deg)}.rarityTagName{grid-area:name;font-size:14px}.rarityTagCommon{--rarity-fill: #fffaf0;--rarity-glow: rgba(255, 255, 255, .9);--rarity-accent: #f6efe2;--rarity-text: #544437}.rarityTagUncommon{--rarity-fill: #8eeaa4;--rarity-glow: rgba(235, 255, 223, .82);--rarity-accent: #50c96f;--rarity-text: #14452d}.rarityTagRare{--rarity-fill: #7fcdff;--rarity-glow: rgba(231, 250, 255, .9);--rarity-accent: #3c9eea;--rarity-text: #123f69}.rarityTagEpic{--rarity-fill: #d996ff;--rarity-glow: rgba(255, 233, 255, .9);--rarity-accent: #a95be4;--rarity-text: #4a2464}.rarityTagLegendary{--rarity-fill: #ffd665;--rarity-glow: rgba(255, 250, 197, .94);--rarity-accent: #eea72e;--rarity-text: #684216}.shopContent{position:relative;z-index:2;display:grid;grid-template-columns:minmax(560px,820px);justify-content:end;width:min(1220px,calc(100vw - 48px));min-height:0;height:calc(100vh - 168px);height:calc(100dvh - 168px);margin:0 clamp(10px,5vw,84px) 0 auto;align-items:stretch}.shopPanel{align-self:stretch;min-height:0;padding:clamp(18px,2vw,26px);overflow-y:auto;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.shopPanelHeader{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.shopPanelLead{margin:0;color:#5d4431;font-size:15px;font-weight:1000;line-height:1.3;text-align:right}.shopTabs{display:flex;flex-wrap:wrap;gap:9px}.shopTab{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:42px;min-width:104px;padding:0 18px 3px;border:3px solid #4c2b1c;border-radius:16px;background:#fff3c2;box-shadow:inset 0 2px #ffffff9e,0 4px #3f2418;color:#3b2117;cursor:pointer;font:inherit;font-size:18px;font-weight:1000}.shopTabActive{background:#9ff2d5;color:#174d45}.shopOfferGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.4vw,18px)}.shopOfferCard{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:14px;min-height:152px;padding:14px 16px;border:4px solid #4c2b1c;border-radius:22px;background:linear-gradient(180deg,rgba(255,251,222,.96),rgba(255,226,148,.84)),#ffe6a6;box-shadow:inset 0 0 0 3px #ffffec94,0 6px #3f2418,0 16px 24px #331d1129;color:#3b2117;cursor:pointer;font:inherit;text-align:left}.shopOfferCard:hover{transform:translateY(-2px)}.shopOfferCard:active{transform:translateY(2px)}.shopOfferLocked{background:linear-gradient(180deg,rgba(255,238,204,.92),rgba(232,193,145,.84)),#edc992}.shopOfferOwned{background:linear-gradient(180deg,rgba(232,255,237,.96),rgba(154,233,198,.84)),#a2e8c8}.shopOfferClassCard{grid-template-columns:96px minmax(0,1fr)}.shopOfferArt{display:grid;width:96px;aspect-ratio:1;place-items:center;border:4px solid rgba(76,43,28,.9);border-radius:24px;background:radial-gradient(circle at 52% 38%,rgba(255,255,236,.98),rgba(168,225,194,.72) 68%),#b9dfc7;box-shadow:inset 0 0 0 3px #ffffec9e,0 4px #3f24188c}.shopOfferSprite{width:86px;height:86px;background-repeat:no-repeat;background-size:contain;background-position:center;filter:drop-shadow(0 10px 8px rgba(60,36,17,.18))}.shopOfferClassAvatar{display:grid;width:72px;aspect-ratio:1;place-items:center;border:4px solid rgba(76,43,28,.72);border-radius:22px;background:radial-gradient(circle at 50% 32%,rgba(255,255,236,.98),rgba(117,219,181,.88) 72%),#7be0bf;background-repeat:no-repeat;background-position:center;background-size:110px 110px;box-shadow:inset 0 0 0 3px #ffffec8a}.shopOfferClassAvatar img{display:block;max-width:58px;max-height:58px;object-fit:contain;filter:drop-shadow(0 8px 7px rgba(60,36,17,.18))}.shopOfferClassAvatar-classFrame{background-position:0 0;background-size:800% 300%}.shopOfferText{display:grid;gap:9px;min-width:0}.shopOfferTitleRow{display:grid;justify-items:start;gap:7px;min-width:0}.shopOfferText strong{color:#174d45;font-family:var(--game-font-display);font-size:clamp(23px,2vw,30px);line-height:1.05}.shopOfferRarityTag{transform:none}.shopOfferClassTag{justify-self:start;min-height:25px;padding:2px 10px 4px;border:3px solid rgba(76,43,28,.62);border-radius:999px;background:rgba(182,245,216,.92);color:#24584e;font-size:13px;font-weight:1000}.shopOfferDescription{display:-webkit-box;overflow:hidden;color:#5d452e;font-size:13px;font-weight:900;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:2}.shopOfferPrice{justify-self:start;min-height:32px;padding:4px 13px 6px;border:3px solid rgba(76,43,28,.72);border-radius:999px;background:rgba(255,243,194,.9);color:#5d3a22;font-size:15px}.shopPriceDanger{background:rgba(255,222,211,.96);color:#b92822}.shopOfferStatus{justify-self:start;color:#2f705f;font-size:14px;font-style:normal;font-weight:1000}.shopOfferStatusDanger{color:#b92822}.shopDialogOverlay{position:absolute;z-index:5;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;background:rgba(42,20,12,.42)}.shopPurchaseDialog{display:grid;justify-items:center;gap:12px;width:min(420px,calc(100vw - 40px));padding:26px;border:5px solid #4c2b1c;border-radius:28px;background:linear-gradient(180deg,rgba(255,251,216,.98),rgba(255,230,164,.96)),#fff0bd;box-shadow:inset 0 0 0 4px #ffffecad,0 7px #26150f,0 22px 34px #26160e5c;text-align:center}.shopPurchaseDialog p,.shopPurchaseDialog h2,.shopPurchaseDialog span{margin:0}.shopPurchaseDialog p{color:#2f705f;font-weight:1000}.shopPurchaseDialog h2{color:#442719;font-family:var(--game-font-display);font-size:36px;line-height:1.05}.shopPurchaseDialog span{color:#9b531f;font-size:20px;font-weight:1000}.shopDialogActions{display:grid;grid-template-columns:1fr 1fr;gap:14px;width:100%;margin-top:8px}.shopDialogButton{min-height:52px;border:4px solid #4c2b1c;border-radius:16px;background:#9ff2d5;box-shadow:0 4px #3f2418;color:#173f39;cursor:pointer;font:inherit;font-size:20px;font-weight:1000}.shopDialogButtonMuted{background:#fff3c2}.bestiaryScreen{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;padding:24px;background:var(--soft-adventure-bg);font-family:var(--game-font-ui)}.bestiaryBackdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at 76% 22%,rgba(255,247,182,.3),transparent 26%),linear-gradient(180deg,rgba(255,246,176,.16),rgba(28,82,55,.18)),url(../assets/maps/bright-jungle/terrain/jungle-background.webp?v=20260605-webp-q85) center / cover;filter:saturate(1.05) brightness(.95);pointer-events:none}.bestiaryHeader{position:relative;z-index:2;display:grid;grid-template-columns:140px 1fr 140px;align-items:center;gap:18px;width:min(1120px,calc(100vw - 48px));margin:0 auto 20px}.bestiaryHeaderTitle{grid-column:2;justify-self:center;min-width:min(560px,62vw);padding:13px 34px 17px;border:4px solid #442719;border-radius:24px;background:rgba(255,241,190,.95);box-shadow:inset 0 0 0 3px #fffcddb8,0 6px #23140f,0 16px 28px #27180f3d;text-align:center}.bestiaryHeaderSpacer{min-width:140px}.bestiaryHeader p,.bestiaryHeader h1{margin:0;letter-spacing:0}.bestiaryHeader p{color:#2f705f;font-size:13px;font-weight:1000}.bestiaryHeader h1{color:#442719;font-family:var(--game-font-display);font-size:clamp(34px,4vw,52px);line-height:1.05}.bestiaryCountPill{grid-column:3;justify-self:end;display:grid;min-width:84px;min-height:52px;place-items:center;padding:0 16px 3px;border:4px solid #4c2b1c;border-radius:18px;background:#9ff2d5;box-shadow:inset 0 2px #ffffff9e,0 5px #3f2418,0 12px 18px #2f1c1233;color:#174d45;font-size:22px;font-weight:1000}.bestiaryPanel{position:relative;z-index:1;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:16px;width:min(1120px,calc(100vw - 48px));height:calc(100dvh - 156px);margin:0 auto;padding:22px;border:5px solid #4c2b1c;border-radius:30px;background:linear-gradient(180deg,rgba(255,251,216,.98),rgba(255,239,176,.94)),#fff0bd;box-shadow:inset 0 0 0 4px #ffffecad,0 7px #26150f,0 20px 34px #26160e47}.bestiaryPanelHeader{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px}.bestiaryPanelHeader p,.bestiaryPanelHeader h2{margin:0}.bestiaryPanelHeader p{color:#2f705f;font-size:13px;font-weight:1000}.bestiaryPanelHeader h2{color:#442719;font-family:var(--game-font-display);font-size:34px;line-height:1.05}.bestiaryTabs{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}.bestiaryTab{min-height:42px;padding:0 18px 3px;border:3px solid #4c2b1c;border-radius:16px;background:#fff3c2;box-shadow:inset 0 2px #ffffff9e,0 4px #3f2418;color:#3b2117;cursor:pointer;font:inherit;font-size:18px;font-weight:1000}.bestiaryTabActive{background:#9ff2d5;color:#174d45}.bestiarySearch{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:12px;padding:10px 12px;border:3px solid rgba(76,43,28,.78);border-radius:18px;background:rgba(255,249,219,.76);box-shadow:inset 0 0 0 3px #ffffec6b;color:#4c2b1c;font-weight:1000}.bestiarySearch input{min-width:0;height:42px;padding:0 14px 2px;border:3px solid rgba(68,39,25,.42);border-radius:14px;background:rgba(255,255,245,.9);color:#23140f;font:inherit;font-size:15px;font-weight:900}.bestiarySearch input:focus{border-color:#146b60;outline:3px solid rgba(124,234,207,.5)}.bestiarySearchFocused{border-color:#146b60;filter:drop-shadow(0 0 10px rgba(94,255,219,.58)) drop-shadow(0 7px 0 rgba(63,36,24,.26))}.bestiaryCardGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));align-content:start;min-height:0;gap:16px;overflow-y:auto;padding:2px 4px 12px}.bestiaryCard{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;display:grid;grid-template-columns:104px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:10px 14px;min-height:172px;padding:14px;border:4px solid #4c2b1c;border-radius:22px;background:linear-gradient(135deg,rgba(143,240,211,.9),rgba(255,249,215,.96) 62%),#fff7cf;box-shadow:inset 0 0 0 3px #ffffec8a,0 5px #3f2418,0 14px 22px #331d1124;color:#3b2117;cursor:pointer;font:inherit;text-align:left}.bestiaryCard:hover{transform:translateY(-2px)}.bestiaryCard:active{transform:translateY(2px)}.bestiaryCard.keyboardFocusRing{box-shadow:inset 0 0 0 4px #fff9bdf2,0 0 0 5px #26a17e6b,0 5px #3f2418,0 0 0 9px #70ffe247,0 18px 30px #1f533f57}.bestiaryCardText{display:grid;align-content:start;gap:6px;min-width:0;min-height:0}.bestiaryCardText strong{overflow:hidden;color:#174d45;font-family:var(--game-font-display);font-size:26px;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}.bestiaryCardText small{overflow:hidden;color:#7b4f29;font-size:13px;font-weight:1000;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.bestiaryCardText em{display:-webkit-box;overflow:hidden;color:#5d4431;font-size:13px;font-style:normal;font-weight:900;line-height:1.32;max-height:2.64em;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.bestiaryCardTags{grid-column:2;display:flex;flex-wrap:wrap;align-self:end;gap:6px}.bestiaryCardTags b,.bestiaryDetailTags em{display:inline-grid;min-height:25px;place-items:center;padding:2px 9px 4px;border:2px solid rgba(68,39,25,.68);border-radius:999px;background:rgba(255,231,137,.92);color:#4c2b1c;font-size:11px;font-style:normal;font-weight:1000;line-height:1}.bestiaryEmpty{display:grid;min-height:180px;place-items:center;margin:0;border:3px dashed rgba(76,43,28,.42);border-radius:22px;background:rgba(255,253,237,.58);color:#5d4431;font-size:20px;font-weight:1000}.bestiaryResourcePreview{display:grid;place-items:center;overflow:hidden;border:4px solid rgba(76,43,28,.88);border-radius:24px;background:radial-gradient(circle at 52% 38%,rgba(255,255,236,.98),rgba(168,225,194,.72) 68%),#b9dfc7;box-shadow:inset 0 0 0 3px #ffffec9e,0 4px #3f24188c;background-repeat:no-repeat;background-position:0 0}.bestiaryResourcePreview-card{grid-row:1 / 3;width:96px;height:96px}.bestiaryResourcePreview-detail{width:220px;height:220px;border-radius:30px}.bestiaryResourcePreview img{display:block;max-width:82%;max-height:82%;object-fit:contain;filter:drop-shadow(0 10px 8px rgba(60,36,17,.2))}.bestiaryResourcePreview-card.bestiaryResourcePreview-classFrame,.bestiaryResourcePreview-card.bestiaryResourcePreview-playerSheet,.bestiaryResourcePreview-card.bestiaryResourcePreview-monsterSheet{background-size:800% 300%}.bestiaryResourcePreview-card.bestiaryResourcePreview-runOnlyMonsterSheet{background-size:800% 100%}.bestiaryResourcePreview-detail.bestiaryResourcePreview-classFrame,.bestiaryResourcePreview-detail.bestiaryResourcePreview-playerSheet,.bestiaryResourcePreview-detail.bestiaryResourcePreview-monsterSheet{background-size:800% 300%}.bestiaryResourcePreview-detail.bestiaryResourcePreview-runOnlyMonsterSheet{background-size:800% 100%}.bestiaryResourcePreview-card.bestiaryResourcePreview-bossSheet{background-size:2400% 400%;background-position:0 33.333%}.bestiaryResourcePreview-card.bestiaryResourcePreview-bossSheet.bestiaryResourcePreview-cardAvatar{background-size:contain;background-position:center}.bestiaryResourcePreview-detail.bestiaryResourcePreview-bossSheet{background-size:2400% 400%;background-position:0 33.333%}.bestiaryDetailOverlay{position:fixed;z-index:40;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;background:rgba(36,24,16,.48)}.bestiaryDetailDialog{position:relative;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:16px;width:min(980px,calc(100vw - 48px));max-height:min(780px,calc(100vh - 48px));padding:24px;overflow:hidden;border:5px solid #4c2b1c;border-radius:30px;background:linear-gradient(180deg,rgba(255,251,216,.99),rgba(255,239,176,.96)),#fff0bd;box-shadow:inset 0 0 0 4px #ffffecb8,0 8px #26150f,0 26px 46px #26160e66}.bestiaryDetailCloseButton{position:absolute;z-index:2;right:18px;top:18px;display:grid;width:42px;height:42px;place-items:center;border:3px solid #4c2b1c;border-radius:50%;background:#ffe779;box-shadow:0 3px #3f2418;color:#4c2b1c;cursor:pointer;font:inherit;font-size:18px;font-weight:1000}.bestiaryDetailHero{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;align-items:center;padding-right:48px}.bestiaryDetailTitleBlock{display:grid;gap:8px;min-width:0}.bestiaryDetailTitleBlock p,.bestiaryDetailTitleBlock h2,.bestiaryDetailTitleBlock span{margin:0}.bestiaryDetailTitleBlock p{color:#2f705f;font-size:14px;font-weight:1000}.bestiaryDetailTitleBlock h2{color:#442719;font-family:var(--game-font-display);font-size:clamp(34px,4vw,52px);line-height:1.02}.bestiaryDetailTitleBlock span{color:#5d4431;font-size:17px;font-weight:1000;line-height:1.45}.bestiaryDetailTags{display:flex;flex-wrap:wrap;gap:7px}.bestiaryDetailStats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}.bestiaryDetailStats div{min-width:0;padding:10px 8px;border:3px solid rgba(68,39,25,.72);border-radius:16px;background:rgba(255,253,237,.78);box-shadow:inset 0 0 0 2px #ffffec75;text-align:center}.bestiaryDetailStats dt,.bestiaryDetailStats dd{margin:0;line-height:1.08}.bestiaryDetailStats dt{color:#7b4f29;font-size:12px;font-weight:1000}.bestiaryDetailStats dd{margin-top:6px;color:#174d45;font-family:var(--game-font-display);font-size:22px}.bestiaryDetailBody{display:grid;align-content:start;min-height:0;gap:14px;overflow-y:auto;padding:2px 4px 8px}.bestiaryDetailSection{display:grid;gap:10px;padding:14px;border:3px solid rgba(76,43,28,.58);border-radius:20px;background:rgba(255,253,237,.62)}.bestiaryDetailSection h3{margin:0;color:#442719;font-family:var(--game-font-display);font-size:25px;line-height:1.05}.bestiaryDetailSection dl{display:grid;gap:8px;margin:0}.bestiaryDetailSection dl div{display:grid;grid-template-columns:minmax(130px,.35fr) minmax(0,1fr);gap:12px;align-items:start;padding:9px 10px;border:2px solid rgba(68,39,25,.22);border-radius:13px;background:rgba(255,249,219,.72)}.bestiaryDetailSection dt,.bestiaryDetailSection dd{margin:0;color:#5d4431;font-size:14px;font-weight:1000;line-height:1.35}.bestiaryDetailSection dt{color:#174d45}.bestiaryGallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(138px,1fr));gap:10px}.bestiaryGallery figure{display:grid;gap:7px;min-width:0;margin:0;padding:10px;border:2px solid rgba(68,39,25,.28);border-radius:14px;background:rgba(255,249,219,.72);text-align:center}.bestiaryGallery img,.bestiaryGalleryFrameStage{display:block;width:100%;height:118px;border-radius:10px;background:radial-gradient(circle at 50% 38%,rgba(255,255,236,.9),rgba(195,231,202,.58) 66%),#d8efd0}.bestiaryGallery img{object-fit:contain}.bestiaryGalleryFrameStage{display:grid;overflow:hidden;place-items:center}.bestiaryGalleryFrame{display:block;width:118px;max-width:100%;height:auto;aspect-ratio:1;background-repeat:no-repeat;background-position:0 0;background-size:800% 300%}.bestiaryGallery figcaption{overflow:hidden;color:#5d4431;font-size:12px;font-weight:1000;text-overflow:ellipsis;white-space:nowrap}.bestiaryAnimationPreview{display:grid;gap:12px;padding:14px;border:3px solid rgba(76,43,28,.62);border-radius:22px;background:linear-gradient(180deg,rgba(255,253,237,.72),rgba(255,239,176,.62)),#fff3c2;box-shadow:inset 0 0 0 3px #ffffec73}.bestiaryAnimationPreviewHeader{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.bestiaryAnimationPreviewHeader p,.bestiaryAnimationPreviewHeader h3{margin:0}.bestiaryAnimationPreviewHeader p{color:#2f705f;font-size:12px;font-weight:1000}.bestiaryAnimationPreviewHeader h3{color:#442719;font-family:var(--game-font-display);font-size:27px;line-height:1.05}.bestiaryPreviewActions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.bestiaryPreviewActionButton{display:inline-flex;min-height:38px;align-items:center;justify-content:center;gap:7px;padding:0 13px 3px;border:2px solid rgba(84,54,34,.62);border-radius:14px;background:linear-gradient(180deg,rgba(255,253,236,.96),rgba(255,230,161,.9)),#ffe7a1;box-shadow:inset 0 1px #fffff5d1,0 3px #58371f38;color:#4b321f;font-family:var(--game-font-display);font-size:14px;line-height:1;text-shadow:0 1px 0 rgba(255,248,215,.8);cursor:pointer}.bestiaryPreviewActionButton:hover{transform:translateY(-1px)}.bestiaryPreviewActionButton:active{transform:translateY(1px)}.bestiaryPreviewActionButtonActive{border-color:#563823d6;background:linear-gradient(180deg,rgba(255,251,224,.98),rgba(255,222,136,.94)),#ffe08d;box-shadow:inset 0 0 0 2px #ffffecb3,0 3px #58371f3d}.bestiaryPreviewActionButtonSelected{border-color:#442719e6;box-shadow:inset 0 0 0 2px #ffffecf0,0 0 0 3px #ffd3569e,0 5px #58371f4d,0 8px 14px #44271929}.bestiaryPreviewActionToggle{padding-left:10px}.bestiaryPreviewToggleTrack{position:relative;width:32px;height:18px;flex:0 0 auto;border:2px solid rgba(76,48,29,.52);border-radius:999px;background:rgba(141,111,76,.24);box-shadow:inset 0 2px 1px #44271924}.bestiaryPreviewToggleTrack:after{position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:#fffaf0;box-shadow:0 1px #44271947,0 0 0 1px #4427191f;content:"";transition:transform .14s ease}.bestiaryPreviewActionButtonActive .bestiaryPreviewToggleTrack{border-color:#387453b8;background:linear-gradient(180deg,#a9dc79,#72bd71)}.bestiaryPreviewActionButtonActive .bestiaryPreviewToggleTrack:after{transform:translate(14px)}.bestiaryPreviewStage{position:relative;overflow:hidden;min-height:330px;border:4px solid rgba(68,39,25,.86);border-radius:20px;background:radial-gradient(ellipse at 50% 70%,rgba(255,248,216,.58),transparent 34%),linear-gradient(180deg,rgba(255,246,203,.22),rgba(125,192,81,.06)),url(../assets/maps/bright-jungle/terrain/jungle-background.webp?v=20260605-webp-q85) center / cover;box-shadow:inset 0 0 0 3px #fffcdd6b,inset 0 -34px #40703814}.bestiaryPreviewGround{position:absolute;left:50%;bottom:54px;width:min(440px,70%);height:72px;border-radius:50%;background:radial-gradient(ellipse,rgba(77,65,42,.22),rgba(77,65,42,.02) 68%,transparent 72%);transform:translate(-50%);pointer-events:none}.bestiaryPreviewBoss{filter:drop-shadow(0 18px 16px rgba(43,30,19,.2)) drop-shadow(0 0 16px rgba(255,231,121,.34))}.setupScreen{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;overflow:hidden;padding:24px;background:var(--soft-adventure-bg);font-family:var(--game-font-ui)}.setupBackdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at 48% 38%,rgba(255,249,185,.24),transparent 28%),linear-gradient(180deg,rgba(255,245,177,.18),rgba(19,80,50,.18)),url(../assets/maps/bright-jungle/terrain/jungle-background.webp?v=20260605-webp-q85) center / cover;filter:saturate(1.04) brightness(.94)}.setupDialog{position:relative;z-index:1;width:min(1040px,calc(100vw - 48px));max-height:calc(100vh - 48px);padding:28px 34px 34px;overflow:auto;border:6px solid #4c2b1c;border-radius:34px;background:linear-gradient(180deg,rgba(255,251,216,.98),rgba(255,239,176,.94)),#fff0bd;box-shadow:inset 0 0 0 5px #ffffecb8,0 9px #26150f,0 26px 46px #26160e52}.setupBackButton{position:absolute;left:28px;top:28px;min-height:50px;padding:0 24px 3px;border:4px solid #4c2b1c;border-radius:18px;background:#fff3c2;box-shadow:inset 0 2px #ffffffad,0 5px #3f2418,0 12px 18px #2f1c1233;color:#3b2117;cursor:pointer;font:inherit;font-size:20px;font-weight:1000}.setupHeader{display:grid;gap:4px;justify-items:center;margin:8px auto 30px;padding:0 130px;text-align:center}.setupHeader p,.setupHeader h1{margin:0}.setupHeader p{color:#2f705f;font-size:14px;font-weight:1000}.setupHeader h1{color:#442719;font-family:var(--game-font-display);font-size:clamp(36px,4.6vw,58px);line-height:1.05}.characterSelectDialog{width:min(1120px,calc(100vw - 48px))}.characterSlotGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:24px}.characterSlotCard{position:relative;display:grid;justify-items:center;gap:14px;min-height:460px;padding:22px 22px 24px;border:5px solid #4c2b1c;border-radius:28px;background:linear-gradient(180deg,rgba(236,255,226,.95),rgba(255,247,203,.96)),#f9efbd;box-shadow:inset 0 0 0 3px #ffffeca6,0 6px #3f2418}.characterSlotCardConfirmed{background:linear-gradient(180deg,rgba(175,247,222,.96),rgba(255,244,184,.96)),#f9efbd}.characterSlotLabel{display:grid;place-items:center;min-width:82px;height:54px;padding:0 18px 3px;border:4px solid #4c2b1c;border-radius:999px;background:#ffe779;color:#174d45;font-size:25px;font-weight:1000;box-shadow:0 4px #3f2418}.characterPreviewWrap{display:grid;grid-template-columns:58px 1fr 58px;align-items:center;gap:10px;width:100%}.characterArrowButton{display:grid;place-items:center;width:58px;height:58px;border:4px solid #4c2b1c;border-radius:50%;background:#fff3c2;box-shadow:0 4px #3f2418;color:#3b2117;cursor:pointer;font:inherit;font-size:42px;font-weight:1000;line-height:1}.characterPreview{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:grid;place-items:center;width:100%;min-height:240px;border:4px solid rgba(76,43,28,.84);border-radius:26px;background:radial-gradient(circle at 50% 48%,rgba(255,255,230,.98),rgba(169,235,204,.72) 68%),#c9efd4;cursor:pointer;box-shadow:inset 0 0 0 4px #ffffec94}.characterPreviewFocused,.characterClassCardFocused,.characterConfirmButtonFocused{border-color:#146b60;filter:drop-shadow(0 0 10px rgba(94,255,219,.8)) drop-shadow(0 7px 0 rgba(63,36,24,.44))}.characterPreviewSprite{width:172px;height:172px;background-repeat:no-repeat;background-size:contain;background-position:center;image-rendering:auto;filter:drop-shadow(0 10px 8px rgba(60,36,17,.18))}.characterSkinMeta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;min-width:0;text-align:center}.characterName{color:#174d45;font-family:var(--game-font-display);font-size:32px;line-height:1.1}.characterRarityTag{transform:none}.characterClassPicker{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:stretch;gap:8px;width:100%}.characterClassArrow{display:grid;place-items:center;min-width:0;min-height:92px;border:3px solid #4c2b1c;border-radius:16px;background:#fff3c2;box-shadow:0 3px #3f2418;color:#3b2117;cursor:pointer;font:inherit;font-size:30px;font-weight:1000;line-height:1}.characterClassCard{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:grid;gap:3px;min-width:0;padding:10px 14px 12px;border:3px solid #4c2b1c;border-radius:18px;background:linear-gradient(180deg,rgba(230,255,247,.96),rgba(255,246,198,.96)),#e8fff4;box-shadow:inset 0 0 0 3px #ffffec94,0 3px #3f2418;cursor:pointer;font:inherit;text-align:center}.characterClassCard span,.characterClassCard small{color:#5d452e;font-size:12px;font-weight:1000;line-height:1.22}.characterClassCard strong{overflow:hidden;color:#174d45;font-family:var(--game-font-display);font-size:25px;line-height:1.08;text-overflow:ellipsis;white-space:nowrap}.characterClassCard small{display:-webkit-box;overflow:hidden;min-height:30px;-webkit-box-orient:vertical;-webkit-line-clamp:2}.characterConfirmButton{min-width:150px;min-height:58px;padding:0 28px 4px;border:4px solid #4c2b1c;border-radius:22px;background:#9ff2d5;box-shadow:0 5px #3f2418;color:#173f39;cursor:pointer;font:inherit;font-size:24px;font-weight:1000}.characterConfirmButtonConfirmed{background:#ffe779;color:#3b2117}.characterConfirmButton:disabled{cursor:default;background:#ffe779}.gameModalOverlay{position:absolute;z-index:30;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 42%,rgba(255,244,180,.18),transparent 32%),rgba(20,25,14,.55);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.gameSessionDialog{position:relative;width:min(820px,calc(100vw - 48px));aspect-ratio:1586 / 992;animation:settlementPop .52s cubic-bezier(.2,1.32,.28,1) both;filter:drop-shadow(0 18px 24px rgba(32,19,12,.34))}.gameSessionDialogCompact{width:min(680px,calc(100vw - 48px))}.gameSessionFrame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.gameSessionContent{position:absolute;top:15%;right:13%;bottom:12%;left:13%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.languageDialogContent{gap:clamp(12px,1.9vw,20px)}.languageChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2vw,18px);width:min(460px,100%)}.languageChoiceButton{display:grid;align-content:center;justify-items:center;min-height:76px;padding:8px 14px 10px;border:3px solid rgba(111,69,34,.42);border-radius:18px;background:linear-gradient(180deg,rgba(255,251,219,.96),rgba(255,224,139,.92)),#ffe59a;box-shadow:inset 0 -6px #a060272e,0 8px #683f1c2e;color:#5a351c;cursor:pointer;font:inherit}.languageChoiceButton strong{display:block;font-size:clamp(21px,2.7vw,30px);font-weight:1000;line-height:1.05}.languageChoiceButton span{display:block;margin-top:2px;color:#8a5a2b;font-size:13px;font-weight:900;line-height:1.05}.languageChoiceButtonActive{border-color:#f28c38;background:linear-gradient(180deg,rgba(255,246,174,.98),rgba(255,178,88,.95)),#ffc36e}.creditsDialog{width:min(920px,calc(100vw - 40px));height:min(690px,calc(100dvh - 34px));aspect-ratio:auto}.creditsDialogContent{top:11%;right:10%;bottom:8.5%;left:10%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-items:stretch;justify-items:center;justify-content:stretch;gap:clamp(12px,1.6vw,18px);overflow:hidden;color:#4a2b1b}.creditsDialogHeader{display:grid;justify-items:center;gap:5px;max-width:720px}.creditsDialogHeader h2{margin:0;color:#3f2418;font-family:var(--game-font-display);font-size:clamp(32px,4.4vw,48px);font-weight:1000;line-height:.95}.creditsDialogHeader p{margin:0;color:#6c4323;font-size:clamp(13px,1.5vw,16px);font-weight:900;line-height:1.35}.creditsSection{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;width:100%;gap:9px}.creditsSection h3{margin:0;color:#256051;font-size:clamp(18px,2.1vw,24px);font-weight:1000;line-height:1;text-align:left}.creditsList{display:grid;min-height:0;max-height:100%;margin:0;padding:2px 4px 4px;gap:10px;align-content:start;overflow:auto;list-style:none}.creditsItem{display:grid;gap:5px;padding:9px 12px 10px;border:3px solid rgba(91,54,27,.32);border-radius:18px;background:linear-gradient(180deg,rgba(255,252,218,.96),rgba(255,233,171,.92)),#ffefb8;box-shadow:inset 0 -5px #aa682a21,0 5px #55321824;text-align:left}.creditsItemMain{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:5px 12px}.creditsItem strong{color:#3f2418;font-size:clamp(15px,1.6vw,18px);font-weight:1000;line-height:1.12}.creditsItem span,.creditsItem p{color:#6a4325;font-size:clamp(11px,1.25vw,13px);font-weight:900;line-height:1.3}.creditsItem p{margin:0}.creditsLinks{display:flex;flex-wrap:wrap;gap:8px}.creditsLinks a{display:inline-flex;align-items:center;min-height:26px;padding:4px 10px 5px;border:2px solid rgba(31,93,78,.42);border-radius:999px;background:rgba(186,246,219,.68);color:#1f5d4e;font-size:11px;font-weight:1000;line-height:1;text-decoration:none}.creditsLinks a:hover,.creditsLinks a:focus-visible{background:#8ff1cf;outline:none;box-shadow:0 0 0 3px #fff8bae6}.creditsCloseButton{justify-self:center;min-width:160px;min-height:48px;margin-top:0;padding:0 26px 4px;border:4px solid #4c2b1c;border-radius:22px;background:#9ff2d5;box-shadow:0 5px #3f2418;color:#173f39;cursor:pointer;font:inherit;font-size:21px;font-weight:1000}.playerActivationDialog{position:relative;width:min(1180px,calc(100vw - 42px));aspect-ratio:1586 / 992;animation:settlementPop .52s cubic-bezier(.2,1.32,.28,1) both;filter:drop-shadow(0 18px 24px rgba(32,19,12,.34))}.playerActivationFrame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.playerActivationContent{position:absolute;top:12%;right:10%;bottom:11%;left:10%;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:clamp(12px,1.5vw,20px);min-height:0}.playerActivationHeader{display:grid;gap:2px;justify-items:center;text-align:center}.playerActivationHeader p,.playerActivationHeader h2,.playerActivationHeader span{margin:0}.playerActivationHeader p{color:#2f705f;font-size:clamp(12px,1.3vw,16px);font-weight:1000}.playerActivationHeader h2{color:#442719;font-family:var(--game-font-display);font-size:clamp(34px,4.2vw,58px);line-height:1.04}.playerActivationHeader span{color:#5d4431;font-size:clamp(14px,1.6vw,18px);font-weight:1000}.playerActivationSlots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.4vw,18px);align-items:stretch;min-height:0}.playerActivationSlot{position:relative;display:grid;grid-template-rows:auto 1fr auto;align-items:center;justify-items:center;min-width:0;min-height:210px;padding:clamp(14px,1.5vw,20px);border:5px solid #4c2b1c;border-radius:26px;background:radial-gradient(circle at 50% 28%,rgba(255,255,236,.94),rgba(255,235,155,.48) 58%,rgba(214,174,110,.56)),#ffe5a2;box-shadow:inset 0 0 0 4px #ffffec8f,0 6px #3f2418,0 15px 22px #2f1c1229}.playerActivationSlotActive{background:radial-gradient(circle at 50% 28%,rgba(255,255,236,.98),rgba(153,245,215,.66) 62%,rgba(83,194,171,.66)),#9ff2d5}.playerActivationSlotBadge{display:grid;place-items:center;min-width:64px;min-height:42px;padding:0 14px 3px;border:4px solid #4c2b1c;border-radius:999px;background:#ffe779;box-shadow:0 4px #3f2418;color:#174d45;font-size:clamp(18px,2vw,25px);font-weight:1000}.playerActivationSlot strong{color:#442719;font-family:var(--game-font-display);font-size:clamp(26px,3vw,38px);line-height:1}.playerActivationSlot small{width:100%;min-height:48px;display:grid;place-items:center;padding:8px 10px;border:3px solid rgba(76,43,28,.72);border-radius:16px;background:rgba(255,246,202,.72);color:#5d4431;font-size:clamp(12px,1.3vw,15px);font-weight:1000;line-height:1.18;text-align:center}.playerActivationKeys{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;min-height:44px}.playerActivationKey{min-height:38px;padding:0 14px 3px;border:3px solid #4c2b1c;border-radius:999px;background:#fff3c2;box-shadow:0 3px #3f2418;color:#3b2117;cursor:pointer;font:inherit;font-size:14px;font-weight:1000}.playerActivationKeyUsed{background:#9ff2d5;color:#174d45}.playerActivationActions{display:flex;justify-content:center;gap:14px}.playerActivationBackButton,.playerActivationConfirmButton{min-width:138px;min-height:52px;padding:0 24px 4px;border:4px solid #4c2b1c;border-radius:18px;box-shadow:inset 0 2px #ffffffad,0 5px #3f2418,0 12px 18px #2f1c1229;cursor:pointer;font:inherit;font-size:20px;font-weight:1000}.playerActivationBackButton{background:#fff3c2;color:#3b2117}.playerActivationConfirmButton{background:#9ff2d5;color:#173f39}.gameSessionEyebrow{margin:0 0 2px;color:#2f705f;font-size:clamp(14px,1.6vw,18px);font-weight:1000;letter-spacing:0}.gameSessionContent h2{margin:0;color:#442719;font-family:var(--game-font-display);font-size:clamp(40px,5.4vw,66px);line-height:1.04}.gamePauseDialog .gameSessionContent{top:10%;right:13%;bottom:8%;left:13%;justify-content:flex-start;padding-top:clamp(14px,2.4vw,26px)}.gamePauseDialog .gameSessionEyebrow{font-size:clamp(12px,1.3vw,15px)}.gamePauseDialog .gameSessionContent h2{font-size:clamp(34px,4.3vw,50px)}.gamePauseDialogSparse .gameSessionContent{padding-top:clamp(42px,6vw,78px)}.gamePauseDialogSparse .gamePauseActions{margin-top:clamp(30px,4.8vw,58px)}.gameSessionMessage{margin:8px 0 0;color:#5d4431;font-size:clamp(17px,2vw,24px);font-weight:1000}.settlementStats{display:grid;grid-template-columns:repeat(3,minmax(96px,1fr));gap:14px;width:min(520px,100%);margin:26px 0 4px}.settlementStat{min-height:86px;padding:10px 12px 12px;border:4px solid #4c2b1c;border-radius:18px;background:rgba(255,246,202,.94);box-shadow:inset 0 2px #ffffff9e,0 4px #3f2418;animation:settlementStatRise .52s ease both}.settlementStat:nth-child(2){animation-delay:90ms}.settlementStat:nth-child(3){animation-delay:.18s}.settlementStat span,.settlementStat strong{display:block}.settlementStat span{color:#2f705f;font-size:14px;font-weight:1000}.settlementStat strong{margin-top:6px;color:#442719;font-size:clamp(22px,3vw,34px);line-height:1}.gameSessionActions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:28px}.gamePauseActions{display:grid;grid-template-columns:repeat(3,minmax(128px,1fr));gap:14px 9px;width:min(520px,100%);margin-right:auto;margin-left:auto;margin-top:12px}.gamePauseActions .gameSessionButton{min-height:46px;padding:0 16px 3px;border-radius:16px;font-size:18px}.gameResumeDialogTwoActions .gamePauseActions{grid-template-columns:repeat(2,minmax(0,1fr));width:min(600px,100%)}.gameResumeIssues{width:min(620px,100%);margin:12px 0 0;padding:0 0 0 1.2em;color:#5d4431;font-size:clamp(14px,1.5vw,18px);font-weight:800;line-height:1.35;text-align:left}.gameResumeIssues li+li{margin-top:4px}.gameSessionButton{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-width:128px;min-height:52px;padding:0 22px 3px;border:4px solid #4c2b1c;border-radius:18px;background:#ffeb8a;box-shadow:inset 0 2px #ffffffad,0 5px #3f2418,0 12px 18px #2f1c1229;color:#3b2117;cursor:pointer;font:inherit;font-size:20px;font-weight:1000}.gameSessionButtonPrimary{background:#92f1d5}.gameSessionButtonMuted{background:#fff3c2}.gameCheatDialog .gameSessionContent{top:10%;right:13%;bottom:8%;left:13%;justify-content:flex-start;padding-top:clamp(14px,2vw,24px)}.gameCheatDialog .gameSessionContent h2{font-size:clamp(34px,4.3vw,50px)}.gameCheatDialog .gameSessionMessage{margin-top:4px;font-size:clamp(15px,1.8vw,20px)}.gameCheatActions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 9px;width:min(540px,100%);margin-top:clamp(14px,2vw,22px)}.gameCheatActions .gameSessionButton{min-width:0;min-height:46px;padding-inline:8px;font-size:clamp(15px,1.8vw,19px);white-space:nowrap}.bossRewardHud{position:absolute;z-index:9;top:42%;left:50%;display:inline-flex;align-items:baseline;justify-content:center;gap:6px;font-family:var(--game-font-ui);font-weight:1000;pointer-events:none;text-align:center;transform:translate(-50%,-50%);animation:bossRewardTextPop .9s cubic-bezier(.2,1.34,.28,1) both}.bossRewardHud:before,.bossRewardHud:after{position:absolute;top:50%;width:42px;height:42px;color:#fff6a6;content:"✦";font-size:38px;line-height:1;text-shadow:0 0 8px rgba(255,255,255,.9),0 0 16px rgba(255,214,72,.78);transform:translateY(-50%);animation:bossRewardTextSparkle 1.4s ease-in-out infinite}.bossRewardHud:before{right:calc(100% + 12px)}.bossRewardHud:after{left:calc(100% + 12px);animation-delay:.34s}.bossRewardHud strong{margin:0;color:#fff06b;font-family:var(--game-font-display);font-size:clamp(70px,12vw,132px);line-height:1;text-shadow:0 6px 0 #5a321c,0 0 12px rgba(255,255,255,.94),0 0 26px rgba(255,207,56,.84);white-space:nowrap}.bossRewardHud span{color:#fff6a6;font-size:clamp(28px,5vw,52px);line-height:1;text-shadow:0 4px 0 #5a321c,0 0 12px rgba(255,255,255,.82),0 0 22px rgba(255,207,56,.76)}@media (max-width: 560px){.gameResumeDialogTwoActions .gamePauseActions{width:min(360px,100%)}.gameCheatActions{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 8px;margin-top:12px}.gameCheatActions .gameSessionButton{min-height:42px;padding-inline:6px;font-size:14px}.bossRewardHud{top:38%}}@keyframes bossRewardTextPop{0%{opacity:0;transform:translate(-50%,-50%) scale(.74)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes bossRewardTextSparkle{0%,to{opacity:.48;transform:translateY(-50%) scale(.82) rotate(-12deg)}48%{opacity:1;transform:translateY(-50%) scale(1.12) rotate(10deg)}}.gameSessionButton:hover{transform:translateY(-2px)}.gameSessionButton:active{transform:translateY(2px);box-shadow:inset 0 2px #ffffffad,0 2px #3f2418,0 8px 14px #2f1c1229}.upgradeOverlay{position:absolute;z-index:28;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:clamp(28px,5vw,60px);background:radial-gradient(circle at 50% 40%,rgba(158,229,255,.18),transparent 32%),linear-gradient(90deg,rgba(28,37,113,.5),rgba(18,32,55,.42) 45%,rgba(22,58,72,.5)),rgba(10,16,30,.46);-webkit-backdrop-filter:blur(1.5px) saturate(.92);backdrop-filter:blur(1.5px) saturate(.92)}.upgradeBoard{position:relative;display:grid;grid-template-rows:clamp(74px,12vh,118px) minmax(0,1fr) clamp(68px,9vh,92px);gap:clamp(6px,1.5vh,16px);width:min(1500px,calc(100vw - 120px));height:min(780px,calc(100vh - 96px));padding:0 clamp(8px,2.2vw,34px) clamp(2px,.8vw,10px)}.upgradeBoardChains{position:absolute;left:50%;top:-22px;z-index:0;display:flex;width:min(420px,34vw);justify-content:space-between;transform:translate(-50%);pointer-events:none}.upgradeBoardChains span{width:20px;height:112px;border:5px solid #17130f;border-top:0;border-bottom-width:7px;border-radius:0 0 10px 10px;background:repeating-linear-gradient(180deg,#5f6570 0 16px,#1c1b20 16px 22px,#9b9aa0 22px 36px);box-shadow:inset 0 0 0 2px #ffffff2e,0 4px #0000006b}.upgradeHeader{position:relative;z-index:1;justify-self:center;align-self:start;display:grid;place-items:center;min-width:min(470px,50vw);min-height:clamp(68px,10vh,104px);padding:8px 52px 12px;border:6px solid #17130f;border-radius:10px;background:linear-gradient(180deg,rgba(255,255,255,.08),transparent 38%),#744428;box-shadow:inset 0 0 0 4px #ffcd8b26,0 6px #1a110d,0 20px 28px #100a0752;color:#f8f1df;font-family:var(--game-font-display);text-align:center}.upgradeHeader:before,.upgradeHeader:after{position:absolute;top:15px;width:7px;height:7px;border-radius:50%;background:#3b2117;content:"";box-shadow:28px 34px #3b21178c,58px 8px #3b21176b}.upgradeHeader:before{left:24px}.upgradeHeader:after{right:82px}.upgradeHeader p,.upgradeHeader h2{margin:0;letter-spacing:0}.upgradeHeader p{color:#d6f5ff;font-size:clamp(11px,1.3vw,15px);font-weight:1000}.upgradeHeader h2{margin-top:-4px;text-shadow:-3px 0 #17130f,0 3px #17130f,3px 0 #17130f,0 -3px #17130f,0 5px 0 rgba(23,19,15,.52);font-size:clamp(38px,5.2vh,66px);line-height:1}.upgradeCards{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,2vw,34px);align-items:end;min-height:0}.upgradeCard{position:relative;min-width:0;aspect-ratio:512 / 760;filter:drop-shadow(0 14px 0 rgba(0,0,0,.28)) drop-shadow(0 22px 24px rgba(9,11,28,.22))}.upgradeCardActive{filter:drop-shadow(0 14px 0 rgba(0,0,0,.28)) drop-shadow(0 0 18px rgba(130,255,127,.28)) drop-shadow(0 22px 24px rgba(9,11,28,.2))}.upgradeCardClickable{cursor:pointer}.upgradeCardsMany{grid-auto-rows:minmax(0,1fr);align-items:center;gap:clamp(10px,1.2vw,18px)}.upgradeCardsMany .upgradeCard{justify-self:center;width:min(100%,210px)}.upgradeCardFrame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.upgradeCardContent{position:absolute;top:6.8%;right:7.4%;bottom:8%;left:7.4%;display:grid;grid-template-rows:auto minmax(0,43%) auto minmax(44px,1fr) auto;gap:clamp(4px,.8vh,10px);align-items:center;color:#f6ead6;text-align:center}.upgradeCardTopline{display:inline-flex;justify-self:start;align-items:center;gap:5px;min-height:24px;padding:3px 9px 4px 6px;border:2px solid rgba(28,18,13,.72);border-radius:999px;background:rgba(93,53,34,.66);color:#f9ead2;font-size:clamp(10px,1.05vw,14px);font-weight:1000;box-shadow:inset 0 1px #ffe6b238,0 2px #120c0957;text-shadow:-1px 0 #23140f,0 1px #23140f,1px 0 #23140f,0 -1px #23140f}.upgradeGem{display:inline-block;width:15px;height:15px;border:2px solid #17130f;border-radius:4px;background:linear-gradient(135deg,rgba(255,255,255,.62),transparent 42%),linear-gradient(180deg,#94b0ad,#446767);transform:rotate(45deg);box-shadow:0 1px #0000004d}.upgradeCardActive .upgradeCardTopline{background:rgba(44,112,66,.72);color:#eeffe0}.upgradeCardActive .upgradeGem{background:linear-gradient(135deg,rgba(255,255,255,.68),transparent 42%),linear-gradient(180deg,#bcff95,#43a95f)}.upgradeIconWrap{display:grid;place-items:center;align-self:end;justify-self:center;width:min(68%,206px);aspect-ratio:1;border-radius:28%;background:radial-gradient(circle at 36% 28%,rgba(255,246,184,.4),transparent 26%),radial-gradient(circle at 50% 58%,rgba(21,15,11,.18),transparent 64%)}.upgradeIcon{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 0 rgba(24,16,12,.45)) drop-shadow(0 12px 10px rgba(24,16,12,.25))}.upgradeCard h3{margin:0;color:#f7e8cf;font-family:var(--game-font-display);font-size:clamp(16px,2vw,27px);line-height:1.02;text-shadow:-2px 0 #23140f,0 2px #23140f,2px 0 #23140f,0 -2px #23140f}.upgradeDescription,.upgradeFlavor{margin:0;color:#fff4dd;font-weight:1000;text-shadow:-1px 0 rgba(35,20,15,.82),0 1px rgba(35,20,15,.82),1px 0 rgba(35,20,15,.82),0 -1px rgba(35,20,15,.82)}.upgradeDescription{align-self:start;padding:0 7%;font-size:clamp(11px,1.18vw,17px);line-height:1.45}.upgradeFlavor{align-self:end;padding:0 8% 2%;font-family:var(--game-font-display);font-size:clamp(10px,1.02vw,15px);font-style:italic;line-height:1.26}.upgradePlayerMarkers{position:absolute;z-index:4;left:50%;top:-40px;display:flex;min-height:52px;align-items:flex-end;justify-content:center;gap:4px;transform:translate(-50%);pointer-events:none}.upgradeActionMarkers{position:absolute;left:50%;top:-46px;display:flex;align-items:flex-end;justify-content:center;gap:4px;transform:translate(-50%)}.upgradeCompletedPlayers{position:absolute;left:50%;bottom:calc(100% + 8px);display:flex;align-items:flex-end;gap:6px;min-height:54px;padding:7px 10px 9px;border:3px solid rgba(23,19,15,.82);border-radius:16px;background:rgba(255,243,194,.9);box-shadow:0 4px #110b0875;transform:translate(-50%)}.upgradeCompletedPlayers>span{align-self:center;color:#4c2b1c;font-size:13px;font-weight:1000;white-space:nowrap}.upgradeCompletedPlayers .upgradePlayerMarker:after{display:none}.upgradePlayerMarkerWrap{position:relative;display:grid;justify-items:center}.upgradePlayerMarker{position:relative;display:grid;place-items:center;min-width:58px;min-height:38px;padding:2px 10px 5px;border:3px solid #17130f;border-radius:10px;background:var(--player-color);box-shadow:inset 0 2px #ffffff6b,0 4px #00000085;color:#e8f6ff;font-family:var(--game-font-display);font-size:24px;line-height:.9;text-shadow:-2px 0 #082045,0 2px #082045,2px 0 #082045,0 -2px #082045}.upgradePlayerMarker:after{position:absolute;left:50%;bottom:-24px;width:0;height:0;border-right:18px solid transparent;border-left:18px solid transparent;border-top:24px solid var(--player-color);filter:drop-shadow(0 4px 0 #17130f);transform:translate(-50%);content:""}.upgradePlayerMarker small{margin-top:1px;font-family:var(--game-font-ui);font-size:10px;line-height:1}.upgradeMaxedHint{position:absolute;bottom:calc(100% + 6px);left:50%;width:max-content;max-width:150px;padding:4px 8px 5px;border:2px solid #17130f;border-radius:999px;background:#fff3c2;color:#4c2b1c;font-size:11px;font-weight:1000;line-height:1;text-align:center;transform:translate(-50%);box-shadow:0 3px #00000057}.upgradeActions{position:relative;z-index:3;display:flex;align-items:start;justify-content:center;gap:clamp(20px,4vw,58px);padding-top:4px}.upgradeAction{position:relative;display:grid;place-items:center;min-width:clamp(176px,15vw,270px);min-height:clamp(52px,7vh,72px);padding:0 34px 6px;border:5px solid #17130f;border-radius:18px;box-shadow:inset 0 4px #ffffff47,0 8px #0000009e,0 18px 18px #00000042;color:#fff2de;font-family:var(--game-font-display);font-size:clamp(21px,2.6vh,30px);font-weight:1000;line-height:1;text-shadow:-2px 0 #17130f,0 2px #17130f,2px 0 #17130f,0 -2px #17130f}.upgradeActionClickable{cursor:pointer}.upgradeAction-skip{background:linear-gradient(180deg,rgba(255,255,255,.12),transparent 40%),#b11c49}.upgradeAction-refresh{background:linear-gradient(180deg,rgba(255,255,255,.16),transparent 40%),#10805c}.upgradeAction strong{position:absolute;right:-32px;bottom:-20px;display:grid;place-items:center;width:56px;height:44px;border:4px solid #17130f;border-radius:50% 50% 45% 55%;background:#17130f;color:#fff7da;font-family:var(--game-font-display);font-size:22px;line-height:1;transform:rotate(-6deg)}.selectedUpgradeHud{position:absolute;z-index:8;display:flex;align-items:flex-start;gap:10px;max-width:min(52vw,720px);pointer-events:none}.selectedUpgradeHud-p1{top:76px;left:20px}.selectedUpgradeHud-p2{top:76px;right:116px;flex-direction:row-reverse}.selectedUpgradeHud-p3{bottom:116px;left:20px}.selectedUpgradeHud-p4{right:20px;bottom:22px;flex-direction:row-reverse}.selectedUpgradeHud strong{margin-top:24px;color:#58b8ff;font-family:var(--game-font-display);font-size:30px;line-height:1;text-shadow:-3px 0 #071c48,0 3px #071c48,3px 0 #071c48,0 -3px #071c48,0 5px 0 rgba(7,28,72,.42)}.selectedUpgradeStack{display:flex;flex-direction:column;gap:2px;align-items:flex-start;min-height:74px;padding:8px 4px 6px;overflow:visible}.selectedPassiveUpgradeList{display:flex;flex-wrap:nowrap;gap:0;align-items:center;min-height:64px;overflow:visible}.selectedPassiveUpgradeListActiveOnly{min-height:64px;padding-left:6px}.selectedUpgradeHud-p2 .selectedUpgradeStack,.selectedUpgradeHud-p4 .selectedUpgradeStack{align-items:flex-end}.selectedUpgradeHud-p2 .selectedPassiveUpgradeList,.selectedUpgradeHud-p4 .selectedPassiveUpgradeList{justify-content:flex-end}.selectedUpgradeBadge{position:relative;display:grid;width:54px;height:64px;place-items:center;margin-left:0;overflow:visible;transform:translateY(-7px)}.selectedUpgradeBadge:before{position:absolute;top:8px;right:7px;bottom:12px;left:7px;z-index:0;border:4px solid #201711;border-radius:8px;background:linear-gradient(135deg,rgba(255,255,255,.2),transparent 42%),#7a4c2f;box-shadow:inset 0 0 0 2px #ffe6a14d,0 4px #110b08b8,0 8px 14px #00000038;transform:rotate(45deg);content:""}.selectedUpgradeBadge:nth-child(2n){transform:translateY(9px)}.selectedUpgradeBadge img{position:relative;z-index:1;width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 4px 0 rgba(19,13,9,.38))}.selectedActiveUpgradeRow{display:flex;align-items:center;min-height:54px;padding-left:6px;transform:translateY(-8px)}.selectedActiveUpgradeRowInline{min-height:64px;padding-left:0;transform:none}.selectedUpgradeHud-p2 .selectedActiveUpgradeRow,.selectedUpgradeHud-p4 .selectedActiveUpgradeRow{padding-right:6px;padding-left:0}.selectedUpgradeHud-p2 .selectedActiveUpgradeRowInline,.selectedUpgradeHud-p4 .selectedActiveUpgradeRowInline{padding-right:0}.selectedActiveUpgradeBadge{position:relative;display:grid;width:50px;height:50px;place-items:center;border:4px solid #201711;border-radius:12px;background:linear-gradient(135deg,rgba(255,255,255,.24),transparent 48%),#5b7c49;box-shadow:inset 0 0 0 2px #e8ffb659,0 4px #110b08b8,0 8px 16px #0000003d;overflow:hidden}.selectedActiveUpgradeBadgeReady{animation:selectedActiveReadyPulse 1.35s ease-in-out infinite}.selectedActiveUpgradeBadgeActive{animation:selectedActiveStealthPulse .95s ease-in-out infinite;background:linear-gradient(135deg,rgba(255,255,255,.38),transparent 48%),#5c7890}.selectedActiveUpgradeBadgeTargeting{animation:selectedActiveMoonPulse 1.05s ease-in-out infinite;background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.64),transparent 30%),linear-gradient(135deg,rgba(171,232,255,.48),rgba(69,106,153,.78)),#4e668d}.selectedActiveUpgradeBadge:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;background:conic-gradient(from -90deg,rgba(14,12,18,.68) var(--cooldown-cover, 0%),rgba(14,12,18,.06) 0);opacity:0;content:"";pointer-events:none}.selectedActiveUpgradeBadgeActive:after{opacity:0}.selectedActiveUpgradeBadgeTargeting:after{opacity:0}.selectedActiveUpgradeBadgeCooling:after{opacity:1}.selectedActiveUpgradeBadge img{position:relative;z-index:1;width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 3px 0 rgba(19,13,9,.38))}.selectedActiveCooldown{position:absolute;z-index:3;color:#fff8d4;font-family:var(--game-font-display);font-size:22px;line-height:1;text-shadow:-2px 0 #211611,0 2px #211611,2px 0 #211611,0 -2px #211611}.selectedActiveUpgradeBadge small{position:absolute;right:-2px;bottom:-2px;z-index:4;display:grid;min-width:20px;height:20px;place-items:center;border:3px solid #201711;border-radius:999px;background:#fff2a8;color:#4b2a17;font-family:var(--game-font-display);font-size:14px;line-height:1}@keyframes selectedActiveReadyPulse{0%,to{box-shadow:inset 0 0 0 2px #e8ffb659,0 4px #110b08b8,0 8px 16px #0000003d}50%{box-shadow:inset 0 0 0 2px #f7ffc09e,0 4px #110b08b8,0 0 18px #97ff727a}}@keyframes selectedActiveStealthPulse{0%,to{opacity:.86;box-shadow:inset 0 0 0 2px #d5f9ff6b,0 4px #110b08b8,0 0 12px #9ce2ff4d}50%{opacity:.64;box-shadow:inset 0 0 0 2px #eaffffb3,0 4px #110b08b8,0 0 22px #bff7ff8a}}@keyframes selectedActiveMoonPulse{0%,to{box-shadow:inset 0 0 0 2px #e8f9ff9e,0 4px #110b08b8,0 0 12px #93dbff5c;transform:translateY(0)}50%{box-shadow:inset 0 0 0 2px #ffffffdb,0 4px #110b08b8,0 0 24px #caf5ffad;transform:translateY(-1px)}}.upgradeMiniBadge{position:relative;display:grid;width:50px;height:50px;place-items:center;border:4px solid #201711;border-radius:9px;background:linear-gradient(135deg,rgba(255,255,255,.22),transparent 42%),#7a4c2f;box-shadow:inset 0 0 0 2px #ffe6a147,0 4px #110b08b8;transform:rotate(45deg)}.upgradeMiniBadgeLarge{width:66px;height:66px}.upgradeMiniBadge img{width:58px;height:58px;object-fit:contain;transform:rotate(-45deg) scale(.84)}.upgradeMiniBadgeLarge img{width:74px;height:74px}.upgradeMiniBadge small{position:absolute;right:-8px;bottom:-8px;display:grid;width:22px;height:22px;place-items:center;border:3px solid #17130f;border-radius:50%;background:#fff3c2;color:#2a1710;font-family:var(--game-font-display);font-size:13px;line-height:1;transform:rotate(-45deg)}.upgradeReplacePanel{position:relative;display:grid;grid-template-columns:180px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:18px 22px;width:min(860px,calc(100vw - 72px));min-height:430px;padding:26px 30px 34px;border:6px solid #17130f;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,238,.22),rgba(255,255,255,0)),rgba(127,76,45,.98);box-shadow:inset 0 0 0 4px #ffe6a933,0 8px #110b08b8,0 22px 32px #00000047;color:#fff2de;font-family:var(--game-font-display)}.upgradeReplaceHeader{grid-column:1 / -1;display:flex;align-items:center;gap:18px}.upgradeReplaceHeader .upgradePlayerMarkerWrap{transform:translateY(-12px)}.upgradeReplaceHeader p,.upgradeReplaceHeader h2{margin:0}.upgradeReplaceHeader p{color:#d6f5ff;font-family:var(--game-font-ui);font-size:13px;font-weight:1000}.upgradeReplaceHeader h2{color:#fff4db;font-size:clamp(34px,5vw,54px);line-height:1;text-shadow:-3px 0 #17130f,0 3px #17130f,3px 0 #17130f,0 -3px #17130f}.upgradeReplacePreview{display:grid;align-content:center;justify-items:center;gap:16px;min-height:250px;padding:22px 14px;border:4px solid rgba(23,19,15,.88);border-radius:18px;background:rgba(90,52,32,.7);box-shadow:inset 0 2px #ffe6b32e,0 4px #110b088a;text-align:center}.upgradeReplacePreview span{color:#d6f5ff;font-family:var(--game-font-ui);font-size:12px;font-weight:1000}.upgradeReplacePreview strong{font-size:23px;line-height:1.05;text-shadow:-2px 0 #17130f,0 2px #17130f,2px 0 #17130f,0 -2px #17130f}.upgradeReplaceGrid{display:grid;grid-template-columns:repeat(5,minmax(86px,1fr));gap:14px;align-content:center}.upgradeReplaceOption{display:grid;min-height:118px;justify-items:center;align-content:center;gap:12px;padding:12px 8px;border:4px solid rgba(23,19,15,.78);border-radius:16px;background:rgba(255,237,181,.16);box-shadow:inset 0 2px #fff4cd29,0 4px #110b087a;text-align:center}.upgradeReplaceOptionSelected{background:rgba(126,238,210,.34);filter:brightness(1.1) drop-shadow(0 0 8px rgba(126,238,210,.72))}.upgradeReplaceOption span{color:#fff4dd;font-size:14px;line-height:1.1;text-shadow:-2px 0 #17130f,0 2px #17130f,2px 0 #17130f,0 -2px #17130f}.selectedUpgradeBadge small{position:absolute;right:5px;bottom:2px;z-index:2;display:grid;width:24px;height:24px;place-items:center;border:3px solid #17130f;border-radius:50%;background:#fff3c2;color:#2a1710;font-family:var(--game-font-display);font-size:14px;line-height:1}.upgradeActionDisabled{cursor:default;filter:grayscale(.28) brightness(.72)}@media (max-width: 980px),(max-height: 650px){.playerActivationDialog{width:min(980px,calc(100vw - 36px))}.playerActivationContent{top:11%;right:9%;bottom:10%;left:9%;gap:10px}.playerActivationSlots{gap:10px}.playerActivationSlot{min-height:164px;padding:12px}.playerActivationKeys{display:none}.upgradeBoard{grid-template-rows:70px minmax(0,1fr) 66px;gap:8px;width:min(980px,calc(100vw - 54px));height:min(620px,calc(100vh - 58px));padding-inline:8px}.upgradeCards{gap:10px}.upgradeCardsMany .upgradeCard{width:min(100%,160px)}.playtestCardList{grid-template-columns:1fr}.playtestCardListDialog{padding:16px}.upgradeDescription{padding-inline:4%;line-height:1.28}.upgradeFlavor{display:none}.upgradePlayerMarker{min-width:48px;min-height:32px;font-size:19px}.selectedUpgradeHud{max-width:46vw;transform:scale(.88);transform-origin:left top}.selectedUpgradeHud-p2,.selectedUpgradeHud-p4{transform-origin:right top}.selectedUpgradeBadge{width:50px;height:60px}.selectedUpgradeBadge:before{top:8px;right:7px;bottom:11px;left:7px}.selectedUpgradeBadge img{width:40px;height:40px}.upgradeReplacePanel{grid-template-columns:1fr;width:min(720px,calc(100vw - 48px));min-height:0;gap:14px;padding:22px}.upgradeReplacePreview{min-height:120px}.upgradeReplaceGrid{grid-template-columns:repeat(5,minmax(60px,1fr));gap:10px}.upgradeReplaceOption{min-height:96px;padding:10px 4px}}@keyframes settlementPop{0%{opacity:0;transform:translateY(18px) scale(.82)}68%{opacity:1;transform:translateY(-4px) scale(1.03)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes settlementStatRise{0%{opacity:0;transform:translateY(14px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}.waveHud{position:absolute;top:8px;left:50%;width:min(520px,calc(100vw - 176px));min-width:300px;aspect-ratio:1000 / 172;filter:drop-shadow(0 6px 8px rgba(35,18,10,.18));transform:translate(-50%)}.waveHudFrame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.waveHudNumber{position:absolute;left:10.8%;top:47.38%;display:grid;place-items:center;width:1.4em;height:1.4em;color:#fff7d2;font-family:var(--game-font-display);font-size:clamp(22px,2.8vw,32px);font-weight:1000;line-height:1;padding:0;text-align:center;text-shadow:-2px 0 #2b160d,0 2px #2b160d,2px 0 #2b160d,0 -2px #2b160d,0 4px 0 rgba(43,22,13,.45);transform:translate(-50%,-50%)}.waveHudTrack{position:absolute;left:23%;right:8.3%;top:40.2%;height:23%;overflow:hidden;border-radius:999px;background:rgba(111,82,45,.22)}.waveHudFill{height:100%;border-radius:inherit;background:linear-gradient(180deg,rgba(255,255,255,.42),transparent 48%),linear-gradient(90deg,#4a92f5,#62c8ff 60%,#a9f1ff);box-shadow:inset 0 0 0 2px #1f549047,0 0 7px #5bbfff3d;transition:width .18s ease-out}.waveHud-boss{width:min(580px,calc(100vw - 176px))}.waveHudNumber-boss{font-size:clamp(24px,2.7vw,34px)}.waveHudBossName,.waveHudBossSkill{position:absolute;left:23.5%;right:8.8%;overflow:hidden;color:#fff7d2;font-family:var(--game-font-ui);font-weight:1000;letter-spacing:0;text-overflow:ellipsis;text-shadow:-1px 0 #2b160d,0 1px #2b160d,1px 0 #2b160d,0 -1px #2b160d;white-space:nowrap}.waveHudBossName{top:19%;font-size:clamp(12px,1.4vw,15px)}.waveHudBossSkill{bottom:12%;color:#ffe2ee;font-size:clamp(10px,1.2vw,12px)}.waveHudTrack-boss{background:rgba(100,39,58,.28)}.waveHudFill-boss{background:linear-gradient(180deg,rgba(255,255,255,.42),transparent 48%),linear-gradient(90deg,#ff5d91,#ff93ba 62%,#ffd1df);box-shadow:inset 0 0 0 2px #7c20434d,0 0 10px #ff729e47}.coinHud{position:absolute;top:18px;right:22px;display:inline-flex;align-items:center;gap:8px;min-width:90px;height:42px;padding:0 14px;border:1px solid rgba(102,74,28,.22);border-radius:8px;background:rgba(255,248,224,.86);box-shadow:0 10px 28px #3c302329;font-weight:900;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.coinIcon{position:relative;display:inline-block;flex:0 0 auto;width:18px;height:18px;border:2px solid #8f5318;border-radius:50%;background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.92) 0 12%,transparent 20%),radial-gradient(circle at 50% 46%,#ffe56d 0 42%,#ffc33d 43% 66%,#d88726 67% 100%);box-shadow:inset 0 -3px #834b1452,inset 0 2px #fff79cc7,0 2px #59321233}.coinIcon:before{content:"";position:absolute;top:3px;right:3px;bottom:3px;left:3px;border:1px solid rgba(150,85,20,.62);border-radius:50%;box-shadow:inset 0 1px #fff288db}.coinIcon:after{content:"";position:absolute;left:50%;top:51%;width:8px;height:8px;background:linear-gradient(180deg,#bb701d,#d9962b);clip-path:polygon(50% 0,62% 34%,98% 36%,69% 57%,79% 92%,50% 72%,21% 92%,31% 57%,2% 36%,38% 34%);transform:translate(-50%,-50%) rotate(-8deg)}.shopWallet .coinIcon{width:24px;height:24px}.shopWallet .coinIcon:after{width:11px;height:11px}.playerStatsHud{position:absolute;left:18px;bottom:18px;width:min(380px,calc(100vw - 36px));padding:10px 12px 12px;border:2px solid rgba(68,39,25,.58);border-radius:12px;background:rgba(255,249,219,.84);box-shadow:0 8px 18px #23140f2e;color:#23140f;font-size:12px;font-weight:900;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.playerStatsHud strong{display:block;margin-bottom:6px;color:#174d45;font-size:13px;font-weight:1000}.playerStatsHud div{display:flex;flex-wrap:wrap;gap:6px}.playerStatsHud span{padding:3px 7px 4px;border:1px solid rgba(68,39,25,.22);border-radius:999px;background:rgba(255,255,245,.62);line-height:1}.centerNotice{position:absolute;left:50%;top:50%;min-width:110px;padding:12px 18px;transform:translate(-50%,-50%);border:1px solid rgba(63,48,34,.18);border-radius:8px;background:rgba(255,250,239,.9);font-weight:800;text-align:center}.spriteDemoScreen{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;padding:18px;background:var(--soft-adventure-bg);font-family:var(--game-font-ui)}.spriteDemoBackdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,rgba(255,248,188,.2),rgba(255,255,255,.04)),url(../assets/maps/bright-jungle/terrain/jungle-background.webp?v=20260605-webp-q85) center / cover;filter:saturate(1.06) brightness(.96)}.spriteDemoHeader,.spriteDemoLayout{position:relative;z-index:1}.spriteDemoHeader{display:flex;height:76px;align-items:center;justify-content:space-between;gap:18px}.spriteDemoHeaderTitle{padding:8px 26px 11px;border:4px solid #442719;border-radius:24px;background:rgba(255,241,190,.94);box-shadow:inset 0 0 0 3px #fffcddb8,0 6px #23140f,0 16px 28px #27180f3d;text-align:center}.spriteDemoActions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:flex-end}.spriteDemoHeader p,.spriteDemoHeader h1{margin:0;letter-spacing:0}.spriteDemoHeader p{color:#2f705f;font-size:12px;font-weight:1000;text-transform:uppercase}.spriteDemoHeader h1{color:#442719;font-family:var(--game-font-display);font-size:30px;line-height:1.05}.spriteDemoLayout{display:grid;grid-template-columns:280px minmax(520px,1fr);gap:18px;height:calc(100% - 92px);margin-top:16px}.spriteDemoPanel,.spriteDemoStage{border:4px solid #442719;border-radius:26px;background:linear-gradient(rgba(255,255,240,.2),rgba(255,255,255,0)),rgba(255,241,190,.94);box-shadow:inset 0 0 0 3px #fffcddb8,0 6px #23140f,0 16px 28px #27180f42}.spriteDemoPanel{display:flex;flex-direction:column;min-height:0;padding:24px;overflow:hidden}.spriteDemoPanel h2{margin:0 0 18px;color:#442719;font-family:var(--game-font-display);font-size:30px}.spriteDemoTabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px;padding:5px;border:3px solid rgba(68,39,25,.82);border-radius:18px;background:rgba(255,247,207,.72)}.spriteDemoTab{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:42px;border:0;border-radius:12px;background:transparent;color:#442719;cursor:pointer;font:inherit;font-size:18px;font-weight:1000}.spriteDemoTabActive{background:linear-gradient(#9df5de,#5fd8bd);box-shadow:0 3px #3f2418}.spriteDemoPanelScroll{flex:1;min-height:0;overflow-y:auto;padding-right:8px;scrollbar-color:rgba(68,39,25,.62) rgba(255,247,207,.5);scrollbar-width:thin}.spriteDemoPanelScroll::-webkit-scrollbar{width:8px}.spriteDemoPanelScroll::-webkit-scrollbar-track{border-radius:999px;background:rgba(255,247,207,.52)}.spriteDemoPanelScroll::-webkit-scrollbar-thumb{border-radius:999px;background:rgba(68,39,25,.62)}.spriteDemoSelectorGroup+.spriteDemoSelectorGroup{margin-top:24px;padding-top:22px;border-top:3px solid rgba(68,39,25,.22)}.spriteDemoSkinGrid{display:grid;gap:12px}.spriteDemoSkinButton{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:grid;grid-template-columns:64px 1fr;min-height:72px;align-items:center;gap:12px;padding:8px 12px;border:3px solid #4c2b1c;border-radius:16px;background:#fff7cf;box-shadow:0 3px #3f2418;color:#3b2117;cursor:pointer;font:inherit;font-weight:1000;text-align:left}.spriteDemoSkinButtonActive{background:linear-gradient(#9df5de,#5fd8bd);filter:drop-shadow(0 0 9px rgba(78,255,215,.58))}.spriteDemoSkinThumb{display:block;width:64px;height:64px;background-position:0 0;background-size:512px 192px}.spriteDemoStage{position:relative;overflow:hidden;background:linear-gradient(180deg,rgba(255,246,203,.18),rgba(125,192,81,.08)),url(../assets/maps/bright-jungle/terrain/jungle-background.webp?v=20260605-webp-q85) center / cover}.spriteDemoHint{position:absolute;left:18px;top:16px;padding:8px 14px 9px;border:2px solid rgba(68,39,25,.78);border-radius:999px;background:rgba(255,248,216,.86);color:#3b2117;font-size:13px;font-weight:1000}.spriteDemoEntity{position:absolute;width:256px;height:256px;background-repeat:no-repeat;background-size:2048px 768px;filter:drop-shadow(0 14px 12px rgba(43,30,19,.18));image-rendering:auto;transform-origin:center center}.spriteDemoMonster{filter:drop-shadow(0 14px 12px rgba(43,30,19,.18)) drop-shadow(0 0 14px rgba(129,255,220,.32))}.spriteDemoMonsterRuntimeHurt{filter:drop-shadow(0 14px 12px rgba(43,30,19,.18)) drop-shadow(0 0 16px rgba(255,228,152,.72)) brightness(1.2) saturate(1.14)}.spriteDemoMonsterRuntimeDeath{filter:drop-shadow(0 10px 10px rgba(43,30,19,.12)) drop-shadow(0 0 18px rgba(218,154,255,.72)) saturate(.92)}.spriteDemoMonsterHitEffect,.spriteDemoMonsterDeathEffect{position:absolute;z-index:1;pointer-events:none}.spriteDemoMonsterHitSlash{position:absolute;width:44px;height:5px;border:2px solid rgba(92,54,40,.72);border-radius:999px;background:#fff2a8;box-shadow:0 0 10px #ffe498b8;transform-origin:center}.spriteDemoMonsterHitSlashA{left:-54px;top:-24px;transform:rotate(28deg)}.spriteDemoMonsterHitSlashB{left:28px;top:-6px;transform:rotate(-8deg)}.spriteDemoMonsterDeathGlow{position:absolute;left:0;top:0;width:164px;height:64px;border:3px solid rgba(92,54,40,.34);border-radius:50%;background:radial-gradient(circle,rgba(216,154,255,.46),rgba(216,154,255,.16) 58%,transparent 74%);transform-origin:center}.spriteDemoMonsterDeathParticle{position:absolute;width:9px;height:9px;border:2px solid rgba(92,54,40,.5);border-radius:50%;background:#f6b5ff;box-shadow:0 1px #ffffff73 inset}.spriteDemoEntityDying{z-index:1;filter:drop-shadow(0 10px 10px rgba(43,30,19,.12)) drop-shadow(0 0 18px rgba(189,239,255,.82))}.spriteDemoGhostEntity{position:absolute;z-index:1;width:256px;height:256px;background-repeat:no-repeat;background-size:2048px 256px;filter:drop-shadow(0 10px 12px rgba(43,30,19,.12)) drop-shadow(0 0 22px rgba(189,239,255,.92));transform-origin:center center}.spriteDemoDeathEffect{position:absolute;z-index:0;pointer-events:none}.spriteDemoSoulGlow{position:absolute;left:-82px;top:-72px;width:164px;height:132px;border-radius:50%;background:radial-gradient(circle,rgba(205,252,255,.42),rgba(205,252,255,.12) 58%,transparent 72%);animation:soulGlowPulse 1.8s ease-in-out infinite}.spriteDemoDeathRing{position:absolute;border-style:solid;border-radius:50%;transform-origin:center}.spriteDemoDeathRingDark{border-color:#4b2a1b}.spriteDemoDeathRingLight{border-color:#fff3b0}.spriteDemoDeathPuff{position:absolute;border:2px solid rgba(75,42,27,.55);border-radius:50%;box-shadow:0 2px #ffffff6b inset}@keyframes soulGlowPulse{0%,to{transform:scale(.96);opacity:.72}50%{transform:scale(1.06);opacity:1}}.spriteDemoHitbox{position:absolute;z-index:2;box-sizing:border-box;border:3px solid rgba(255,67,67,.9);border-radius:12px;background:repeating-linear-gradient(45deg,rgba(255,67,67,.18) 0,rgba(255,67,67,.18) 8px,rgba(255,255,255,.08) 8px,rgba(255,255,255,.08) 16px);box-shadow:0 0 0 2px #fff8d8b8,0 0 18px #ff434359;pointer-events:none}.spriteDemoHitbox span{position:absolute;left:50%;bottom:calc(100% + 6px);transform:translate(-50%);padding:3px 8px 4px;border:2px solid rgba(68,39,25,.82);border-radius:999px;background:rgba(255,248,216,.92);color:#442719;font-size:11px;font-weight:1000;line-height:1;white-space:nowrap}.spriteDemoHitboxPlayer{border-color:#ff4343eb}.spriteDemoHitboxMonster{border-color:#28e5b1f5;background:repeating-linear-gradient(45deg,rgba(40,229,177,.2) 0,rgba(40,229,177,.2) 8px,rgba(255,255,255,.08) 8px,rgba(255,255,255,.08) 16px);box-shadow:0 0 0 2px #fff8d8b8,0 0 18px #28e5b159}.errorNotice{color:#8f2020}.developerScreen{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;padding:22px;background:var(--soft-adventure-bg)}.developerBackdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,rgba(255,248,188,.26),rgba(255,255,255,.04)),url(../assets/maps/bright-jungle/terrain/jungle-background.webp?v=20260605-webp-q85) center / cover;filter:saturate(1.08)}.developerScreen:after{position:absolute;top:0;right:0;bottom:0;left:0;content:"";pointer-events:none;background:radial-gradient(circle at 36% 18%,rgba(255,255,210,.26),transparent 22%),linear-gradient(90deg,rgba(42,90,39,.1),transparent 42%,rgba(40,76,60,.12))}.developerHeader,.editorHeader{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:70px;color:#3b2117}.developerHeader h1{margin:0;font-size:clamp(34px,4vw,58px);line-height:.95;color:#ffe66a;letter-spacing:0;text-align:center;text-shadow:0 5px 0 #5a2716,-3px 0 #5a2716,3px 0 #5a2716,0 -3px #5a2716,0 10px 20px rgba(44,24,14,.32)}.developerEyebrow{margin:0 0 4px;color:#174d45;font-size:13px;font-weight:1000;text-align:center;text-transform:uppercase}.workshopButton,.toolButton,.toolIconButton{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;border:3px solid #4c2b1c;border-radius:14px;background:#ffe88a;box-shadow:inset 0 2px #ffffffad,0 4px #3f2418,0 9px 14px #2f1c122e;color:#3b2117;cursor:pointer;font:inherit;font-weight:1000;letter-spacing:0;line-height:1;text-align:center;white-space:nowrap;transition:transform .12s ease,filter .12s ease,background .12s ease}.workshopButton{min-height:42px;padding:0 18px 2px;font-size:16px}.workshopButton:hover,.toolButton:hover,.toolIconButton:hover{transform:translateY(-1px);filter:brightness(1.04)}.workshopButton:active,.toolButton:active,.toolIconButton:active{transform:translateY(3px);box-shadow:inset 0 2px #ffffffad,0 1px #3f2418,0 7px 13px #2f1c122e}.workshopButtonPrimary{background:#71edcf}.workshopButtonSoft{background:#fff2b8}.workshopButtonDanger{background:#ff9580}.levelListLayout{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,340px);gap:18px;height:calc(100% - 86px);min-height:0}.levelCardsPanel{align-content:start;display:flex;flex-wrap:wrap;gap:18px;overflow:auto;padding:12px 6px 28px}.levelCard{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;width:260px;height:180px;flex:0 0 260px;border:0;background:transparent;cursor:pointer;font:inherit;padding:0;text-align:left;transform-origin:center bottom}.levelCard:hover{transform:translateY(-3px) rotate(-.5deg)}.levelCardSelected{filter:drop-shadow(0 0 10px rgba(91,255,218,.9)) drop-shadow(0 12px 18px rgba(56,30,16,.3))}.levelCard.levelCardSelected,.levelCard.levelCardSelected.keyboardFocusRing{border-radius:22px;box-shadow:0 0 0 5px #fff9bdeb,0 0 0 10px #26a17e57,0 18px 28px #381e1057;filter:brightness(1.07) drop-shadow(0 0 10px rgba(255,248,186,.95)) drop-shadow(0 0 24px rgba(91,255,218,.98)) drop-shadow(0 16px 24px rgba(56,30,16,.38))}.levelCardFrame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.levelCardMapWrap{position:absolute;left:24px;right:24px;top:34px;height:70px;overflow:hidden;border:4px solid #4d2d1f;border-radius:16px;background:var(--soft-adventure-bg)}.levelCardMap{width:100%;height:100%;object-fit:cover}.levelCardBody{position:absolute;left:32px;right:32px;bottom:34px;display:flex;flex-wrap:wrap;gap:2px 12px;align-items:center;color:#432719;font-size:11px;font-weight:900;line-height:1.05}.levelCardBody strong{flex:0 0 100%;overflow:hidden;font-size:16px;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.levelActionPanel,.assetPalette,.inspectorPanel{position:relative;min-height:0;overflow:hidden;border-radius:26px}.developerPanelFrame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.levelActionContent,.assetPaletteContent,.inspectorContent{position:relative;z-index:1;height:100%;padding:28px 28px 42px}.levelActionContent h2,.assetPaletteContent h2,.inspectorContent h2{margin:0 0 12px;color:#4b2919;font-size:24px;line-height:1}.selectedLevelName{min-height:54px;margin:0 0 18px;color:#174d45;font-size:21px;font-weight:1000}.levelActionGrid{display:grid;gap:12px}.developerDialogOverlay{position:absolute;z-index:10;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:rgba(34,31,22,.42)}.developerDialog{position:relative;width:min(760px,calc(100vw - 36px));aspect-ratio:760 / 440}.developerDialogFrame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.developerDialogContent{position:absolute;top:76px;right:72px;bottom:56px;left:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.developerDialogContent h2{margin:0 0 12px;font-size:34px}.developerDialogContent p{margin:0;max-width:460px;font-size:18px;font-weight:900;line-height:1.5}.developerDialogActions{display:flex;gap:16px;margin-top:30px}.levelGroupDialog{width:min(820px,calc(100vw - 36px));aspect-ratio:760 / 540}.levelGroupDialogContent{top:74px;right:90px;bottom:86px;left:90px;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:flex-start;overflow:hidden}.levelGroupDialogActions{display:flex;justify-content:center;gap:16px;margin-top:8px}.levelGroupDialogContent p{margin:0;font-size:16px}.levelGroupDialogContent h2{margin:0;font-size:30px}.levelGroupChoiceGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:min(500px,100%);min-height:0;max-height:168px;flex:1 1 168px;align-content:start;overflow-y:auto;padding:2px 8px 8px 2px;box-sizing:border-box}.levelGroupChoice{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:66px;padding:8px 12px;border:2px solid rgba(68,39,25,.72);border-radius:15px;background:rgba(255,249,218,.9);box-shadow:0 3px #23140f6b;color:#3b2117;cursor:pointer;font:inherit;text-align:left}.levelGroupChoice strong,.levelGroupChoice span{display:block}.levelGroupChoice strong{color:#174d45;font-size:15px;font-weight:1000}.levelGroupChoice span{margin-top:3px;font-size:12px;font-weight:900}.levelGroupNewField{flex:0 0 auto;display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:10px;width:min(500px,100%);margin-top:0;padding:8px 10px;border:2px solid rgba(68,39,25,.42);border-radius:15px;background:rgba(255,249,218,.72);color:#3b2117;font-weight:1000}.levelGroupNewField input{width:100%;min-width:0;height:34px;padding:0 10px 1px;border:2px solid rgba(80,48,32,.45);border-radius:10px;background:rgba(255,255,238,.92);color:#3b2117;font:inherit;font-weight:900}.levelEditorScreen{padding:16px}.editorHeader{height:60px}.levelNameField{display:inline-flex;align-items:center;gap:12px;min-width:min(620px,48vw);padding:8px 14px 9px;border:3px solid #4c2b1c;border-radius:17px;background:rgba(255,244,193,.92);box-shadow:0 4px #3f2418;font-weight:1000}.levelNameField span{flex:0 0 auto;white-space:nowrap}.levelNameField input,.waveCard input{width:100%;min-width:0;border:2px solid rgba(80,48,32,.45);border-radius:10px;background:rgba(255,255,238,.9);color:#3b2117;font:inherit;font-weight:900;letter-spacing:0}.levelNameField input{height:36px;padding:0 12px 1px;font-size:18px}.editorToolbarWrap{position:relative;z-index:2;width:min(1120px,calc(100vw - 32px));height:88px;margin:8px auto 14px}.editorToolbarFrame{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:fill}.editorToolbar{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:9px;height:100%;padding:20px 34px 24px}.toolIconButton{width:44px;padding:0;font-size:22px;line-height:1}.toolButtonActive{background:#71edcf;filter:drop-shadow(0 0 8px rgba(78,255,215,.52))}.toolButtonMuted{opacity:.72}.editorLayout{position:relative;z-index:1;display:grid;grid-template-columns:280px minmax(360px,1fr) 300px;gap:12px;height:calc(100% - 174px);min-height:0}.assetPaletteCollapsed{pointer-events:none;opacity:.48;filter:grayscale(.2)}.assetPaletteContent,.inspectorContent{height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.assetPaletteContent{display:flex;flex-direction:column;overflow:hidden;padding-bottom:34px}.assetPaletteScroll{min-height:0;overflow:auto;padding:0 2px 22px;overscroll-behavior:contain;scrollbar-width:thin}.assetGroup{margin:0 0 10px}.assetGroup h3,.inspectorSection h3{display:inline-flex;min-width:124px;min-height:34px;align-items:center;justify-content:center;margin:0 0 6px;padding:0 18px 4px;background:url(../assets/ui/developer/badges/category-badge.png) center / 100% 100% no-repeat;color:#3b2117;font-size:13px;font-weight:1000;line-height:1;white-space:nowrap}.mapAssetGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mapAssetItem{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-width:0;overflow:hidden;border:3px solid #4c2b1c;border-radius:16px;background:#fff4c7;box-shadow:0 3px #3f2418;color:#3b2117;cursor:pointer;font:inherit;text-align:left}.mapAssetItemActive{background:linear-gradient(#fff7d8,#ffe58a);box-shadow:0 3px #3f2418,0 0 0 3px #ffee80bf;transform:translateY(-1px)}.mapAssetItem img{display:block;width:100%;height:42px;object-fit:cover}.mapAssetItem span{display:block;padding:4px 10px 6px;overflow:hidden;text-overflow:ellipsis;font-weight:1000;line-height:1.15;white-space:nowrap}.assetGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.propAssetButton{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-width:0;border:3px solid #4c2b1c;border-radius:14px;background:#fff7cf;box-shadow:0 3px #3f2418;color:#3b2117;cursor:grab;font:inherit;font-size:11px;font-weight:1000;letter-spacing:0;padding:5px 5px 6px;line-height:1.15}.propAssetButton:active{cursor:grabbing}.propAssetButtonActive{background:#82f2da;filter:drop-shadow(0 0 8px rgba(77,255,219,.75))}.propAssetThumb{display:block;width:50px;height:40px;margin:0 auto 2px;background-repeat:no-repeat;background-position:left center;background-size:contain}.editorCanvasStage{position:relative;overflow:hidden;border:6px solid #4c2b1c;border-radius:24px;background:linear-gradient(45deg,rgba(86,62,37,.12) 25%,transparent 25%,transparent 75%,rgba(86,62,37,.12) 75%),#d9caa1;background-size:36px 36px;box-shadow:inset 0 0 0 4px #fff7d28c,0 12px 30px #2f1c123d}.editorCanvasStagePanning{cursor:grab}.editorCanvasStagePanning:active{cursor:grabbing}.editorWorld{position:absolute;left:0;top:0;overflow:hidden;border-radius:10px;box-shadow:0 14px 26px #2b1a1047;transform-origin:0 0}.editorMapImage{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;-webkit-user-select:none;user-select:none}.playerSpawnMarker{position:absolute;z-index:4;display:grid;width:44px;height:44px;place-items:center;border:4px solid #113e7c;border-radius:50%;background:#54bdff;color:#fff;font-weight:1000;transform:translate(-50%,-50%);text-shadow:0 2px 0 #15345f;box-shadow:0 5px #142d4c73}.placedProp{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;z-index:3;border:0;background:transparent;cursor:grab;padding:0}.placedProp:active{cursor:grabbing}.placedPropSprite{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:left top}.placedPropSelected{filter:drop-shadow(0 0 10px rgba(77,255,219,.95))}.placedPropSelected:after{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-8px;content:"";border:4px dashed rgba(255,235,91,.95);border-radius:16px;pointer-events:none}.inspectorSection{margin-bottom:14px}.inspectorTitle{margin:0 0 10px;color:#174d45;font-size:18px;font-weight:1000}.inspectorHint{margin:0;color:#5b4d36;font-weight:900;line-height:1.45}.inspectorList{display:grid;gap:8px;margin:0 0 16px}.inspectorList div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;border:2px solid rgba(76,43,28,.48);border-radius:12px;background:rgba(255,249,220,.7);font-weight:900}.inspectorList dt,.inspectorList dd{margin:0}.waveList{display:grid;gap:8px}.waveCard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px;border:3px solid #4c2b1c;border-radius:16px;background:rgba(255,248,215,.82);box-shadow:0 3px #3f2418}.waveCard strong{grid-column:1 / -1;color:#174d45;font-size:15px}.waveCard label{display:grid;gap:3px;font-size:11px;font-weight:1000}.waveCard input{height:27px;padding:0 7px 1px;font-size:12px}.developerScreen{--workshop-ink: #442719;--workshop-ink-deep: #23140f;--workshop-paper: rgba(255, 241, 190, .94);--workshop-paper-strong: #fff3c2;--workshop-mint: #78e9cf;--workshop-gold: #ffd967;--workshop-red: #f28d7f;--workshop-shadow: rgba(39, 24, 15, .28);padding:18px;background:var(--soft-adventure-bg);font-family:var(--game-font-ui)}.developerBackdrop{background:linear-gradient(180deg,rgba(255,247,170,.12),rgba(34,75,31,.1)),url(../assets/ui/developer/workshop-background.webp?v=20260605-webp-q85) center / cover;filter:saturate(1.08) brightness(.94)}.developerScreen:after{background:radial-gradient(circle at 50% 0%,rgba(255,242,152,.28),transparent 28%),linear-gradient(180deg,rgba(255,255,255,.08),rgba(40,77,31,.16))}.developerHeader{height:128px;min-height:128px;padding:0 4px;align-items:flex-start;justify-content:center}.developerTopActions{display:inline-flex;align-items:flex-start;gap:10px;min-width:216px}.developerHeader>.workshopButtonPrimary{position:absolute;top:0;right:4px}.developerTitle{width:min(42vw,520px);margin:0;color:transparent;font-size:0;text-shadow:none;filter:drop-shadow(0 10px 12px rgba(38,22,13,.32));transform:translateY(0) rotate(-2deg)}.developerTitleSvg{display:block;width:100%;height:auto;overflow:visible}.developerTitleHalo,.developerTitleLetter{font-family:Hiragino Maru Gothic ProN,Arial Rounded MT Bold,PingFang SC,ui-rounded,system-ui,sans-serif;font-weight:1000;letter-spacing:0;paint-order:stroke fill;stroke-linejoin:round}.developerTitleHalo{fill:#fff7bf;stroke:#fff7bf;stroke-width:28px}.developerTitleLetter{stroke:#39150d;stroke-width:14px}.developerEyebrow{color:#215c4d;letter-spacing:.08em}.developerPanelFrame,.editorToolbarFrame{display:none}.workshopButton,.toolButton,.toolIconButton{border:2px solid var(--workshop-ink);border-radius:12px;background:linear-gradient(#fff8ce,#f6dc89);box-shadow:inset 0 2px #ffffffb8,0 3px 0 var(--workshop-ink-deep),0 8px 14px #321c0f29;min-height:40px;color:#392015;font-family:var(--game-font-display)}.workshopButtonPrimary,.toolButtonActive{background:linear-gradient(#9df5de,#5fd8bd)}.workshopButtonSoft{background:linear-gradient(#fff9dc,#f6df9d)}.workshopButtonDanger{background:linear-gradient(#ffb5a7,#ec806f)}.levelListLayout{grid-template-columns:minmax(0,1fr) 330px;gap:20px;height:calc(100% - 140px)}.levelCardsPanel,.levelActionPanel,.assetPalette,.inspectorPanel,.editorCanvasStage,.levelNameField,.editorToolbarWrap{border:4px solid var(--workshop-ink);background:linear-gradient(rgba(255,255,240,.2),rgba(255,255,255,0)),var(--workshop-paper);box-shadow:inset 0 0 0 3px #fffcddb8,0 6px 0 var(--workshop-ink-deep),0 16px 28px var(--workshop-shadow)}.levelCardsPanel{display:block;overflow:auto;padding:22px;border-radius:26px}.levelCardsHeader{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:18px;color:var(--workshop-ink);font-weight:1000;font-family:var(--game-font-display)}.levelCardsHeader span{font-size:26px}.levelCardsHeader small{color:#2b654f;font-size:13px}.levelCardsGrid{display:flex;flex-wrap:wrap;gap:18px;align-content:flex-start}.levelGroupSection+.levelGroupSection{margin-top:26px}.levelGroupHeader{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 14px;padding:10px 14px 12px;border:2px solid rgba(68,39,25,.42);border-radius:18px;background:rgba(255,248,216,.74);color:var(--workshop-ink)}.levelGroupHeader h2{margin:0;font-size:21px;line-height:1;font-family:var(--game-font-display)}.levelGroupHeader p{margin:5px 0 0;color:#2b654f;font-size:12px;font-weight:1000}.levelGroupHeader span{flex:0 0 auto;min-width:54px;padding:4px 10px 5px;border:2px solid rgba(68,39,25,.72);border-radius:999px;background:linear-gradient(#9df5de,#5fd8bd);color:#392015;font-size:12px;font-weight:1000;text-align:center}.levelCard{width:286px;height:198px;flex-basis:286px}.levelCardMapWrap{left:26px;right:26px;top:36px;height:80px;border-width:3px;border-radius:14px}.levelCardBody{left:36px;right:36px;bottom:36px;gap:3px 12px;font-size:11px;font-family:var(--game-font-display)}.levelCardBody strong{font-size:17px}.levelActionPanel,.assetPalette,.inspectorPanel{border-radius:24px}.levelActionContent,.assetPaletteContent,.inspectorContent{padding:24px 24px 34px}.levelActionContent h2,.assetPaletteContent h2,.inspectorContent h2{margin-bottom:14px;color:var(--workshop-ink);font-size:26px;font-family:var(--game-font-display)}.selectedLevelName{min-height:44px;color:#235f50}.levelActionGrid{gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.levelEditorScreen{padding:16px 18px 18px}.editorHeader{height:62px;display:grid;grid-template-columns:minmax(210px,1fr) minmax(420px,980px) minmax(120px,1fr);align-items:start}.levelNameField{min-width:min(640px,52vw);padding:8px 14px;border-radius:18px;grid-column:2;justify-self:stretch;width:100%}.editorSaveButton{grid-column:3;justify-self:end}.levelNameField input{border-color:#44271973;background:rgba(255,255,238,.9)}.editorToolbarWrap{width:min(1120px,calc(100vw - 36px));height:94px;margin:12px auto 18px;border-radius:25px}.editorToolbar{gap:10px;padding:20px 30px 26px}.toolButton,.toolIconButton{min-height:42px;padding:0 16px 2px;font-size:14px}.toolIconButton{width:44px}.editorLayout{grid-template-columns:285px minmax(420px,1fr) 310px;gap:16px;height:calc(100% - 190px)}.assetPaletteContent,.inspectorContent{padding-bottom:48px}.assetGroup h3,.inspectorSection h3{min-width:auto;min-height:34px;margin:0 0 10px;padding:1px 16px 3px;border:2px solid var(--workshop-ink);border-radius:999px;background:linear-gradient(#ffe889,#f0c85b);box-shadow:0 3px #23140fb3;font-size:13px;font-family:var(--game-font-display)}.assetPaletteDisabled{pointer-events:none;opacity:.46;filter:saturate(.68)}.mapAssetItem,.propAssetButton,.waveCard,.inspectorList div{border-color:#442719e6}.mapAssetItem{border-width:2px;border-radius:14px}.mapAssetItem img{height:52px}.assetGrid{gap:9px}.propAssetButton{border-width:2px;min-height:96px;border-radius:14px;background:rgba(255,249,218,.9)}.propAssetThumb{width:58px;height:48px}.editorCanvasStage{border-width:4px;border-radius:26px;background:linear-gradient(45deg,rgba(111,84,45,.1) 25%,transparent 25%,transparent 75%,rgba(111,84,45,.1) 75%),#dbcda7;background-size:38px 38px}.inspectorHint{margin-bottom:16px}.mapSizeSection{padding:10px;border:2px solid rgba(68,39,25,.34);border-radius:14px;background:rgba(255,249,219,.62)}.mapSizeGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.numberConfigField{display:grid;gap:4px}.numberConfigLabelRow{display:flex;align-items:center;gap:5px;color:#3b2117;font-size:12px;font-weight:1000}.numberConfigInput{height:32px;min-width:0;padding:0 8px 1px;border:2px solid rgba(68,39,25,.34);border-radius:11px;background:rgba(255,255,242,.86);color:#3b2117;font-size:13px;font-family:var(--game-font-ui);font-weight:1000}.fieldHelpTooltip{position:relative;display:inline-flex;align-items:center}.fieldHelpButton{display:inline-grid;width:18px;height:18px;place-items:center;padding:0 0 1px;border:2px solid rgba(68,39,25,.78);border-radius:50%;background:rgba(255,248,215,.9);color:#3b2117;font-size:11px;font-family:var(--game-font-display);line-height:1;cursor:help}.fieldHelpBubble{position:absolute;bottom:calc(100% + 8px);left:50%;z-index:20;width:188px;padding:8px 10px;border:2px solid rgba(68,39,25,.86);border-radius:10px;background:rgba(255,250,222,.98);box-shadow:0 4px #23140f6b;color:#3b2117;font-size:11px;line-height:1.35;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .12s ease,transform .12s ease}.fieldHelpTooltip:hover .fieldHelpBubble,.fieldHelpTooltip:focus-within .fieldHelpBubble{opacity:1;transform:translate(-50%)}.waveCard{border-width:2px;border-radius:15px;background:rgba(255,249,219,.82);box-shadow:0 3px #23140fb8}.waveCard .numberConfigInput,.waveCard input{border-width:2px;border-color:#44271957}.waveSectionHeader{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.waveSectionHeader h3{margin-bottom:0}.waveSummaryCard{display:grid;width:100%;gap:7px;padding:12px;border:2px solid rgba(68,39,25,.42);border-radius:14px;background:rgba(255,249,219,.72);color:#3b2117;font:inherit;font-weight:1000;text-align:left;cursor:pointer}.waveSummaryCard span{color:#174d45;font-size:16px;line-height:1}.waveSummaryCard small{color:#5d3a22;font-size:11px;font-weight:900;line-height:1.35}.bossInspectorSection{padding:10px;border:2px solid rgba(68,39,25,.34);border-radius:14px;background:rgba(255,249,219,.62)}.bossConfigBody{display:grid;gap:10px;margin-top:10px}.bossSelectField{display:grid;gap:5px;color:#3b2117;font-size:12px;font-weight:1000}.bossSelectField select{height:34px;min-width:0;padding:0 8px 1px;border:2px solid rgba(68,39,25,.34);border-radius:11px;background:rgba(255,255,242,.9);color:#3b2117;font-size:13px;font-family:var(--game-font-ui);font-weight:1000}.bossSpawnHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#3b2117;font-size:12px;font-weight:1000}.bossSpawnHint{margin-bottom:0}.waveConfigOverlay{position:fixed;z-index:80;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:18px;background:rgba(36,24,16,.42)}.waveConfigDialog{display:grid;width:min(1120px,calc(100vw - 36px));max-height:min(760px,calc(100vh - 36px));grid-template-rows:auto minmax(0,1fr);gap:16px;padding:18px;border:4px solid #4c2b1c;border-radius:18px;background:rgba(255,249,219,.98);box-shadow:0 6px #23140fb8}.waveConfigHeader{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}.waveConfigHeader h4{margin:0 0 5px;color:#174d45;font-size:25px;line-height:1}.waveConfigHeader p{margin:0;color:#5d3a22;font-size:13px;font-weight:900;line-height:1.35}.waveConfigHeaderActions{display:flex;align-items:center;gap:8px}.waveConfigList{display:grid;align-content:start;min-height:0;gap:16px;overflow-y:auto;padding:0 4px 8px 0}.waveConfigCard{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px;border-radius:18px}.waveConfigCard .waveActionGroup{grid-template-columns:repeat(4,minmax(88px,1fr));gap:8px}.waveConfigCard .waveActionButton{min-height:34px;font-size:13px}.waveConfigCard .waveCardHeader{grid-template-columns:minmax(0,1fr) minmax(380px,auto);align-items:center;gap:12px}.waveConfigCard .waveCardHeader strong{font-size:21px}.waveConfigCard .numberConfigField{gap:7px}.waveConfigCard .numberConfigLabelRow{gap:7px;font-size:15px}.waveConfigCard .numberConfigInput{height:40px;padding:0 12px 2px;border-radius:13px;font-size:16px}.waveConfigCard .fieldHelpButton{width:23px;height:23px;font-size:14px}.waveConfigCard .fieldHelpBubble{top:calc(100% + 8px);bottom:auto;width:230px;padding:10px 12px;font-size:13px;transform:translate(-50%,-4px)}.waveConfigCard .fieldHelpTooltip:hover .fieldHelpBubble,.waveConfigCard .fieldHelpTooltip:focus-within .fieldHelpBubble{transform:translate(-50%)}.waveConfigCard .waveMonsterPool{gap:12px}.waveConfigCard .waveMonsterPoolHeader{font-size:14px}.waveConfigCard .waveMonsterPoolHeader span:first-child{font-size:16px}.waveConfigCard .waveMonsterSelectorButton{min-height:36px;padding:3px 14px 5px;font-size:14px}.waveConfigCard .selectedWaveMonsterList{gap:10px}.waveConfigCard .selectedWaveMonsterRow{grid-template-areas:"thumb name weight detail";grid-template-columns:64px minmax(150px,220px) minmax(260px,1fr) 42px;gap:12px;min-height:78px;padding:12px;border-radius:15px}.waveConfigCard .selectedWaveMonsterRow .waveMonsterThumb{width:60px;height:60px}.waveConfigCard .selectedWaveMonsterRow .waveMonsterName{font-size:16px;line-height:1.18}.waveConfigCard .selectedWaveMonsterRow .waveMonsterWeightRow{grid-template-columns:minmax(0,1fr) 76px;gap:10px}.waveConfigCard .selectedWaveMonsterRow .waveMonsterWeightRow .numberConfigLabelRow{font-size:13px}.waveConfigCard .selectedWaveMonsterRow .waveMonsterWeightRow .numberConfigInput{height:34px;padding:0 10px;font-size:15px}.waveConfigCard .selectedWaveMonsterRow .waveMonsterRatio{min-height:34px;font-size:14px}.waveConfigCard .selectedWaveMonsterRow .monsterDetailIconButton{width:36px;height:36px;font-size:17px}.waveConfigCard .monsterSelectorPopover{top:44px;width:min(360px,100%);max-height:340px}.waveConfigCard .monsterSelectorItem{grid-template-columns:minmax(0,1fr) 36px;gap:10px;padding:9px}.waveConfigCard .monsterSelectorChoice{grid-template-columns:18px 48px minmax(0,1fr);gap:10px;font-size:14px}.waveConfigCard .monsterSelectorItem .waveMonsterThumb{width:48px;height:48px}.waveConfigCard .monsterSelectorItem .monsterDetailIconButton{width:34px;height:34px;font-size:16px}.waveCardHeader{display:grid;grid-column:1 / -1;grid-template-columns:minmax(0,1fr);gap:7px}.waveCardHeader strong{grid-column:auto}.waveActionGroup{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.waveActionButton{min-height:26px;padding:1px 6px 3px;border:2px solid rgba(68,39,25,.82);border-radius:9px;background:rgba(255,232,138,.92);box-shadow:0 2px #23140f94;color:#3b2117;font-size:10px;font-family:var(--game-font-display);line-height:1;cursor:pointer}.waveActionButtonAdd{min-width:56px;background:rgba(124,234,207,.86)}.waveActionButtonSave{min-width:70px;background:rgba(111,229,126,.86)}.waveActionButtonDanger{background:rgba(242,141,127,.78)}.waveActionButton:disabled{cursor:default;opacity:.45;filter:saturate(.72)}.inspectorPanel .inspectorContent{display:flex;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;padding-bottom:48px;overscroll-behavior:contain;scrollbar-width:thin}.inspectorPanel .waveInspectorSection{display:flex;flex:0 0 auto;flex-direction:column;min-height:0}.inspectorPanel .waveList{min-height:0;overflow-y:auto;padding:0 4px 8px 0}.waveMonsterPool{display:grid;grid-column:1 / -1;gap:8px;margin-top:4px}.waveMonsterPoolHeader{display:flex;align-items:baseline;justify-content:space-between;gap:8px;color:#5d3a22;font-size:10px;font-weight:1000}.waveMonsterPoolHeader span:first-child{color:#174d45;font-size:12px}.waveMonsterCard{display:grid;gap:7px;padding:8px;border:2px solid rgba(68,39,25,.42);border-radius:12px;background:rgba(255,253,237,.62);opacity:.68}.waveMonsterCardEnabled{border-color:#1f695bc7;background:rgba(227,255,242,.66);opacity:1}.waveCard .waveMonsterToggle{display:grid;grid-template-columns:18px 42px minmax(0,1fr);align-items:center;gap:8px;color:#2f2119;font-size:13px}.waveCard .waveMonsterToggle input{width:16px;height:16px;padding:0}.waveMonsterThumb{width:42px;height:42px}.monsterSpriteThumb{display:block;background-repeat:no-repeat;background-position:center;background-size:contain;image-rendering:auto}.monsterSpriteThumbRunOnly{background-size:contain}.waveMonsterName{overflow:hidden;color:#174d45;text-overflow:ellipsis;white-space:nowrap}.waveMonsterStats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0}.waveMonsterStats div{min-width:0;padding:4px 3px;border:1px solid rgba(68,39,25,.24);border-radius:8px;background:rgba(255,249,219,.74);text-align:center}.waveMonsterStats dt,.waveMonsterStats dd{margin:0;line-height:1.05}.waveMonsterStats dt{color:#5d3a22;font-size:9px}.waveMonsterStats dd{color:#23140f;font-size:12px;font-weight:1000}.waveMonsterWeightRow{display:grid;grid-template-columns:minmax(0,1fr) 62px;align-items:end;gap:8px}.waveCard .waveMonsterWeightRow .numberConfigLabelRow{font-size:10px}.waveCard .waveMonsterWeightRow .numberConfigInput{height:25px}.waveMonsterRatio{display:grid;min-height:25px;place-items:center;border:2px solid rgba(68,39,25,.36);border-radius:9px;background:rgba(255,245,200,.86);color:#174d45;font-size:11px;font-weight:1000}.waveMonsterPool{position:relative}.waveMonsterSelectorButton{min-height:28px;padding:2px 10px 4px;border:2px solid rgba(68,39,25,.9);border-radius:999px;background:rgba(124,234,207,.76);box-shadow:0 2px #23140fad;color:#23140f;font-size:11px;font-family:var(--game-font-display);cursor:pointer}.selectedWaveMonsterList{display:grid;gap:7px}.selectedWaveMonsterRow{display:grid;grid-template-areas:"thumb name detail" "thumb weight detail";grid-template-columns:38px minmax(0,1fr) 28px;align-items:center;gap:7px;padding:7px;border:2px solid rgba(31,105,91,.72);border-radius:12px;background:rgba(227,255,242,.62)}.selectedWaveMonsterRow .waveMonsterThumb,.monsterSelectorItem .waveMonsterThumb{width:36px;height:36px}.selectedWaveMonsterRow .waveMonsterName{grid-area:name;display:-webkit-box;overflow:hidden;font-size:12px;font-weight:1000;line-height:1.12;overflow-wrap:anywhere;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.selectedWaveMonsterRow .waveMonsterWeightRow{grid-area:weight;grid-template-columns:minmax(0,1fr) 50px;gap:5px}.selectedWaveMonsterRow .waveMonsterThumb{grid-area:thumb}.selectedWaveMonsterRow .monsterDetailIconButton{grid-area:detail}.selectedWaveMonsterRow .waveMonsterWeightRow .numberConfigLabelRow{font-size:9px}.selectedWaveMonsterRow .waveMonsterWeightRow .numberConfigInput{height:24px;padding:0 5px}.selectedWaveMonsterRow .waveMonsterRatio{min-height:24px;font-size:10px}.monsterDetailIconButton{display:grid;width:26px;height:26px;place-items:center;border:2px solid rgba(68,39,25,.72);border-radius:50%;background:rgba(255,249,219,.95);box-shadow:0 2px #23140f80;color:#174d45;font-size:13px;font-weight:1000;font-family:Georgia,serif;line-height:1;cursor:pointer}.monsterSelectorPopover{position:absolute;z-index:9;top:36px;right:0;display:grid;width:min(260px,100%);max-height:260px;gap:6px;overflow-y:auto;padding:8px;border:3px solid #4c2b1c;border-radius:14px;background:rgba(255,249,219,.98);box-shadow:0 6px #23140f94,0 14px 22px #23140f38}.monsterSelectorItem{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:8px;padding:6px;border:2px solid rgba(68,39,25,.22);border-radius:10px;background:rgba(255,253,237,.74)}.monsterSelectorItemSelected{border-color:#1f695bb8;background:rgba(227,255,242,.68)}.monsterSelectorChoice{display:grid;grid-template-columns:16px 36px minmax(0,1fr);align-items:center;gap:7px;min-width:0;color:#23140f;font-size:12px;font-weight:1000}.monsterSelectorChoice input{width:15px;height:15px}.monsterSelectorChoice span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monsterDetailOverlay{position:fixed;z-index:30;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:18px;background:rgba(36,24,16,.42)}.monsterDetailDialog{width:min(430px,calc(100vw - 36px));padding:14px;border:4px solid #4c2b1c;border-radius:18px;background:rgba(255,249,219,.98);box-shadow:0 6px #23140fb8}.monsterDetailHeader{display:grid;grid-template-columns:74px minmax(0,1fr) 30px;align-items:start;gap:12px;margin-bottom:12px}.monsterDetailAvatar{width:74px;height:74px}.monsterDetailHeader h4{margin:4px 0 5px;color:#174d45;font-size:22px;line-height:1}.monsterDetailHeader p{margin:0;color:#5d3a22;font-size:13px;font-weight:900;line-height:1.35}.monsterDetailCloseButton{display:grid;width:30px;height:30px;place-items:center;border:2px solid rgba(68,39,25,.9);border-radius:50%;background:rgba(255,231,137,.95);color:#4c2b1c;font-size:14px;font-weight:1000;cursor:pointer}.monsterDetailDialog .waveMonsterStats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.monsterDetailDialog .waveMonsterStats div{padding:8px 6px}.monsterDetailDialog .waveMonsterStats dt{font-size:11px}.monsterDetailDialog .waveMonsterStats dd{font-size:15px}.monsterBestiaryOverlay{position:fixed;z-index:30;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:18px;background:rgba(36,24,16,.42)}.monsterBestiaryDialog{display:grid;width:min(760px,calc(100vw - 36px));max-height:min(720px,calc(100vh - 36px));grid-template-rows:auto auto auto minmax(0,1fr);gap:12px;padding:16px;border:4px solid #4c2b1c;border-radius:18px;background:rgba(255,249,219,.98);box-shadow:0 6px #23140fb8}.monsterBestiaryHeader{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:start;gap:12px}.monsterBestiaryHeader h4{margin:0 0 5px;color:#174d45;font-size:25px;line-height:1}.monsterBestiaryHeader p{margin:0;color:#5d3a22;font-size:13px;font-weight:900;line-height:1.35}.monsterBestiaryCloseButton{display:grid;width:32px;height:32px;place-items:center;border:2px solid rgba(68,39,25,.9);border-radius:50%;background:rgba(255,231,137,.95);color:#4c2b1c;font-size:14px;font-weight:1000;cursor:pointer}.monsterBestiarySearch{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:10px;color:#4c2b1c;font-size:13px;font-weight:1000}.monsterBestiarySearch input{min-width:0;height:36px;padding:0 12px 2px;border:2px solid rgba(68,39,25,.42);border-radius:12px;background:rgba(255,255,245,.86);color:#23140f;font:inherit;font-size:13px;font-weight:900}.monsterBestiaryTabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.monsterBestiaryTab{min-height:30px;padding:2px 12px 4px;border:2px solid rgba(68,39,25,.82);border-radius:999px;background:rgba(255,232,138,.86);box-shadow:0 2px #23140f94;color:#3b2117;font-size:12px;font-family:var(--game-font-display);white-space:nowrap;cursor:pointer}.monsterBestiaryTabActive{background:rgba(124,234,207,.9);color:#174d45}.monsterBestiaryBody{display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);min-height:0;gap:14px}.monsterBestiaryList{display:grid;align-content:start;min-height:0;gap:8px;overflow-y:auto;padding-right:4px}.monsterBestiaryListItem{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:9px;min-height:54px;padding:6px 8px;border:2px solid rgba(68,39,25,.28);border-radius:12px;background:rgba(255,253,237,.74);color:#23140f;font:inherit;font-size:13px;font-weight:1000;text-align:left;cursor:pointer}.monsterBestiaryListItemActive{border-color:#1f695bc2;background:rgba(227,255,242,.72)}.monsterBestiaryListThumb{width:42px;height:42px}.monsterBestiaryListItem span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monsterBestiaryEmpty{margin:0;padding:12px;border:2px dashed rgba(68,39,25,.36);border-radius:12px;color:#5d3a22;font-size:13px;font-weight:1000}.monsterBestiaryDetail{display:grid;align-content:start;gap:14px;min-width:0;padding:12px;border:2px solid rgba(68,39,25,.32);border-radius:14px;background:rgba(255,253,237,.62)}.monsterBestiaryDetailHeader{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:start;gap:14px}.monsterBestiaryAvatar{width:92px;height:92px}.monsterBestiaryDetailHeader h5{margin:2px 0 6px;color:#174d45;font-size:24px;line-height:1.05}.monsterBestiaryDetailHeader p{margin:0 0 8px;color:#5d3a22;font-size:13px;font-weight:900;line-height:1.38}.monsterBestiaryDetailHeader span{display:inline-flex;min-height:26px;align-items:center;padding:1px 10px 3px;border:2px solid rgba(31,105,91,.48);border-radius:999px;background:rgba(227,255,242,.78);color:#174d45;font-size:12px;font-weight:1000}.monsterBestiaryStats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}.monsterBestiaryStats div{min-width:0;padding:9px 6px;border:1px solid rgba(68,39,25,.24);border-radius:10px;background:rgba(255,249,219,.78);text-align:center}.monsterBestiaryStats dt,.monsterBestiaryStats dd{margin:0;line-height:1.08}.monsterBestiaryStats dt{color:#5d3a22;font-size:11px}.monsterBestiaryStats dd{color:#23140f;font-size:16px;font-weight:1000}@media (max-width: 720px){.startupLoadingBackdrop{object-position:44% center}.startupLoadingMascotGlow{left:-8%;bottom:12%;width:72vw}.startupLoadingPanel{bottom:18px;width:min(420px,calc(100vw - 24px));min-height:174px;padding:20px 18px 23px;border-width:4px;border-radius:22px}.startupLoadingPanel:before,.startupLoadingPanel:after{top:15px;width:30px;height:18px;border-width:3px}.startupLoadingPanel:before{left:14px}.startupLoadingPanel:after{right:14px}.startupLoadingPanel h1{margin-bottom:16px;font-size:clamp(30px,9vw,40px)}.startupLoadingTrack{height:30px;border-width:3px}.playerActivationDialog{width:min(540px,calc(100vw - 24px));height:min(760px,calc(100vh - 24px));aspect-ratio:auto}.playerActivationContent{top:12%;right:9%;bottom:8%;left:9%;grid-template-rows:auto minmax(0,1fr) auto}.playerActivationHeader h2{font-size:clamp(34px,12vw,44px)}.playerActivationHeader span{display:none}.playerActivationSlots{grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;align-items:center;gap:14px;overflow:auto}.playerActivationSlot{min-height:142px;padding:10px}.playerActivationActions{flex-wrap:wrap}.gameTitle{top:16px;left:50%;width:92vw;font-size:clamp(42px,15vw,72px);transform:translate(-50%) rotate(-4deg)}.menuButtons{right:50%;top:auto;bottom:16px;width:min(330px,84vw);transform:translate(50%);gap:8px}.bestiaryScreen{padding:12px}.bestiaryHeader{grid-template-columns:96px minmax(0,1fr);gap:8px;width:calc(100vw - 24px);margin-bottom:12px}.bestiaryHeaderTitle{grid-column:2;min-width:0;width:100%;padding:9px 14px 12px;border-width:3px;border-radius:18px}.bestiaryHeader h1{font-size:32px}.bestiaryHeader p{font-size:10px}.bestiaryCountPill{grid-column:2;justify-self:end;min-width:70px;min-height:34px;margin-top:-2px;border-width:3px;border-radius:14px;font-size:16px}.bestiaryPanel{width:calc(100vw - 24px);height:calc(100dvh - 126px);gap:12px;padding:14px;border-width:5px;border-radius:26px}.bestiaryPanelHeader{grid-template-columns:1fr;gap:10px}.bestiaryPanelHeader h2{font-size:28px}.bestiaryTabs{justify-content:start;flex-wrap:nowrap;overflow-x:auto;padding:0 2px 4px}.bestiaryTab{min-height:38px;padding-inline:15px;font-size:16px;white-space:nowrap}.bestiarySearch{grid-template-columns:48px minmax(0,1fr);gap:8px;padding:8px;border-width:3px;border-radius:16px;font-size:14px}.bestiarySearch input{height:38px;padding-inline:10px;font-size:13px}.bestiaryCardGrid{grid-template-columns:1fr;gap:12px}.bestiaryCard{grid-template-columns:86px minmax(0,1fr);min-height:150px;padding:11px;border-radius:20px}.bestiaryResourcePreview-card{width:78px;height:78px;border-radius:20px}.bestiaryCardText strong{font-size:22px}.bestiaryCardText small,.bestiaryCardText em{font-size:12px}.bestiaryCardText em{-webkit-line-clamp:2}.bestiaryDetailOverlay{padding:12px}.bestiaryDetailDialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);gap:12px;padding:16px;border-radius:24px}.bestiaryDetailCloseButton{right:12px;top:12px;width:38px;height:38px}.bestiaryDetailHero{grid-template-columns:1fr;justify-items:center;gap:12px;padding-right:0;text-align:center}.bestiaryResourcePreview-detail{width:154px;height:154px;border-radius:24px}.bestiaryDetailTitleBlock h2{font-size:32px}.bestiaryDetailTitleBlock span{font-size:14px}.bestiaryDetailTags{justify-content:center}.bestiaryDetailStats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bestiaryDetailStats div{padding:8px 6px;border-radius:14px}.bestiaryDetailStats dd{font-size:18px}.bestiaryDetailSection{padding:12px;border-radius:18px}.bestiaryAnimationPreview{padding:11px;border-radius:18px}.bestiaryAnimationPreviewHeader{grid-template-columns:1fr;align-items:start}.bestiaryAnimationPreviewHeader h3{font-size:23px}.bestiaryPreviewActions{justify-content:start}.bestiaryPreviewActionButton{min-height:36px;padding-inline:11px;font-size:13px}.bestiaryPreviewStage{min-height:270px}.bestiaryDetailSection dl div{grid-template-columns:1fr;gap:3px}.setupScreen{place-items:start center;padding:12px;overflow-y:auto}.setupDialog{width:calc(100vw - 24px);min-height:calc(100vh - 24px);max-height:none;padding:72px 14px 18px;border-width:5px;border-radius:28px}.setupBackButton{left:16px;top:16px;min-height:48px;padding-inline:18px;font-size:18px}.setupHeader{margin:0 auto 22px;padding:0 74px}.setupHeader h1{font-size:clamp(36px,13vw,48px)}.characterSlotGrid{grid-template-columns:1fr;gap:16px}.characterSlotCard{min-height:0;padding:18px 12px 20px;border-radius:24px}.characterPreviewWrap{grid-template-columns:46px minmax(0,1fr) 46px;gap:6px}.characterArrowButton{width:46px;height:54px;border-width:3px;font-size:36px}.characterPreview{min-height:clamp(172px,42vh,220px);border-width:3px;border-radius:22px}.characterPreviewSprite{width:148px;height:148px}.characterName{font-size:28px}.characterClassPicker{grid-template-columns:38px minmax(0,1fr) 38px;gap:6px}.characterClassArrow{min-height:84px;border-width:3px;border-radius:14px;font-size:28px}.characterClassCard{padding-inline:10px}.archiveScreen,.shopScreen{padding:12px}.archiveScreen{overflow-y:auto}.shopScreen{overflow:hidden}.archiveHeader,.shopHeader{grid-template-columns:96px minmax(0,1fr);gap:8px;width:calc(100vw - 24px);margin-bottom:12px}.archiveHeaderTitle,.shopHeaderTitle{min-width:0;width:100%;padding:9px 14px 12px;border-width:3px;border-radius:18px}.archiveHeaderSpacer,.shopHeaderSpacer{display:none}.archiveHeader h1,.shopHeader h1{font-size:32px}.archiveHeader p,.shopHeader p{font-size:10px}.archiveHeader .levelSelectBackButton,.shopHeader .levelSelectBackButton{min-height:46px;padding-inline:16px;font-size:18px}.archiveLayout{grid-template-columns:1fr;width:calc(100vw - 24px);min-height:calc(100vh - 104px);height:auto}.archivePanel{min-height:0;overflow:visible;padding:16px}.archiveStats{grid-template-columns:1fr 1fr}.archiveTransferPanel{grid-template-rows:auto 220px auto 160px auto}.archiveTransferHeader,.archiveImportRow{align-items:stretch}.shopWallet{position:absolute;right:0;top:calc(100% + 8px);min-height:38px;padding-inline:12px;border-width:3px;font-size:18px}.shopContent{grid-template-columns:1fr;gap:12px;width:calc(100vw - 24px);margin:0 auto;height:calc(100vh - 104px);overflow-y:auto;padding-top:44px}.shopPanelHeader{display:grid;align-items:stretch}.shopPanelLead{text-align:left;font-size:13px}.shopTabs{flex-wrap:nowrap;overflow-x:auto;padding:0 2px 4px}.shopTab{min-height:38px;min-width:88px;padding-inline:15px;font-size:16px;white-space:nowrap}.shopPanel{min-height:0;overflow:visible;padding:16px}.shopOfferGrid{grid-template-columns:1fr}.shopOfferCard{grid-template-columns:86px minmax(0,1fr);min-height:108px;justify-items:start;align-content:center;text-align:left}.shopOfferArt{width:82px}.shopOfferSprite{width:74px;height:74px}.xpHud{top:14px;left:14px;width:calc(100vw - 128px);min-width:0;transform:none}.coinHud{top:14px;right:14px;min-width:82px}}@media (max-width: 760px),(max-height: 650px){.trainingConfigPanel{width:min(980px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:20px;gap:14px}.trainingConfigHero{grid-template-columns:1fr}.trainingStepperCard{min-height:0}.trainingMonsterGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.trainingBossDialog{width:min(700px,calc(100vw - 32px));padding:20px}}@media (max-width: 720px){.trainingConfigPanel{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px;border-width:5px;border-radius:26px}.trainingConfigHeader h1{font-size:34px}.trainingStepperCard{grid-template-columns:44px minmax(0,1fr) 44px;padding:12px}.trainingStepperContent{min-height:84px}.trainingSkinContent{grid-template-columns:1fr;justify-items:center;text-align:center}.trainingSkinMeta{justify-items:center;text-align:center}.trainingRoundArrow,.trainingBossPicker>button{width:44px;height:44px;font-size:30px}.trainingMonsterGrid{grid-template-columns:1fr}.trainingBossPicker{grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}.trainingBossCard{grid-template-columns:1fr;justify-items:center;text-align:center}.trainingBossSprite{width:120px;height:120px}.gamePauseActions{grid-template-columns:repeat(2,minmax(120px,1fr));gap:12px 8px;width:min(360px,100%)}}
