.menu-profile{position:relative}
.menu-pet{position:absolute;right:12px;top:54px;border:0;background:none;width:62px;height:62px;z-index:2;padding:0}
.menu-pet .pet-art{width:62px;height:62px}
.exp-menu-card{display:flex;align-items:center;gap:14px;width:100%;padding:16px 20px;margin:12px 0;border:1px solid #c6aa78;border-radius:20px;color:inherit;background:linear-gradient(125deg,#e7f3dc,#f9edcb);text-align:left;box-shadow:0 4px 0 #62805222}
.dark .exp-menu-card{background:linear-gradient(125deg,#223b37,#403329);border-color:#6d8060}
.exp-menu-card>span:nth-child(2){display:grid;gap:5px;flex:1}
.exp-menu-card b{font-size:20px}
.exp-menu-card small{opacity:.75;font-size:12px}
.exp-menu-map{font-size:36px}
.exp-sheet{max-width:520px;width:min(520px,calc(100vw - 24px))}
.exp-content{text-align:center}
.exp-content h2{font-size:24px;margin:12px 0 16px}
.exp-content h3{margin:8px 0}
.exp-status{font-size:12px;min-height:16px;margin:7px 0;color:#ad6435}
.dark .exp-status{color:#ffc482}
.exp-sheet .go-bar{display:flex;gap:10px}
.exp-sheet .go-bar>*{flex:1;min-height:44px}
.exp-team{display:flex;align-items:center;justify-content:center;gap:10px;min-height:100px}
.exp-team .af,.exp-team img{width:100%;height:100%;object-fit:contain}
.exp-leader{width:83px;height:83px;position:relative}
.exp-arms{position:absolute;display:flex;justify-content:space-between;bottom:-5px;left:-9px;right:-9px}
.exp-arms svg{width:30px;height:40px}
.exp-ally{display:grid;grid-template-rows:40px auto auto;width:58px;justify-items:center}
.exp-ally>.af,.exp-ally>img{width:40px;height:40px}
.exp-ally small{font-size:10px;max-width:58px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.exp-ally b{font-size:10px;opacity:.65}
.exp-team .pet-art{width:62px;height:62px;align-self:flex-end}
.pet-art{display:inline-flex;align-items:center;justify-content:center;width:130px;height:130px;vertical-align:middle}
.pet-art img{width:100%;height:100%;object-fit:contain}
.pet-home>.pet-art,.pet-public>.pet-art,.exp-discovery>.pet-art{width:min(230px,48vw);height:min(230px,48vw)}
.pet-home h3{margin:0}
.pet-home p{margin:8px}
.pet-feed{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:18px 0}
.pet-feed button{display:grid;gap:5px;padding:10px 3px;border:1px solid #b8ad9255;border-radius:14px;background:#a5a17f12;color:inherit}
.pet-feed span{font-size:26px}
.pet-feed small{font-size:10px;white-space:nowrap}
.pet-tools,.exp-ready-tools{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.pet-name{border:0;background:none;color:inherit;font-size:18px}
.pet-home .secondary,.exp-ready-tools .secondary{font-size:13px}
.exp-intro-steps{display:flex;justify-content:center;gap:12px;margin:22px 0}
.exp-intro-steps b{font-size:30px;display:grid;gap:8px;flex:1}
.exp-intro-steps small{font-size:12px;white-space:nowrap}
.exp-intro>span{font-size:70px}
.exp-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.exp-candidates button{display:grid;justify-items:center;gap:5px;border:1px solid #9d9b8e55;border-radius:16px;padding:12px 5px;background:#8881;color:inherit}
.exp-candidates img,.exp-candidates .af{width:58px;height:58px}
.exp-candidates b{font-size:14px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.exp-candidates small{font-size:11px}
.exp-candidate-arms{display:flex;height:30px}
.exp-candidate-arms svg{width:28px;height:30px}
.exp-content button.on,.pet-collection button.on{border:2px solid #7c9d55;background:#99b56c28}
.exp-map{list-style:none;padding:0;display:flex;justify-content:space-between;gap:5px;margin:8px 0 17px}
.exp-map li{position:relative;display:grid;justify-items:center;flex:1;border-bottom:3px solid #aaa4;padding-bottom:4px;color:inherit;opacity:.55}
.exp-map li.here{opacity:1;border-color:#d99d49}
.exp-map li.passed{opacity:1;border-color:#7da665}
.exp-map li>span{font-size:22px}
.exp-map li small{font-size:10px}
.exp-map li>.af,.exp-map li>img{position:absolute;width:25px;height:25px;top:12px;right:-8px}
.exp-room-title{font-size:16px}
.exp-hp{display:flex;gap:6px;align-items:center;font-size:11px;margin:8px 0}
.exp-hp meter{flex:1;min-width:40px}
.exp-blessings{display:flex;justify-content:center;gap:7px;min-height:17px;font-size:10px}
.exp-blessings span{white-space:nowrap}
.exp-arena{display:flex;align-items:center;justify-content:space-between;position:relative;gap:6px}
.exp-arena .exp-team{gap:4px;min-height:90px;flex:1;justify-content:start}
.exp-arena .exp-leader{width:55px;height:55px}
.exp-arena .exp-ally{width:32px;grid-template-rows:28px auto}
.exp-arena .exp-ally img,.exp-arena .exp-ally .af{width:28px;height:28px}
.exp-arena .exp-ally small{display:none}
.exp-arena .exp-team .pet-art{width:37px;height:37px}
.exp-arena .exp-arms svg{width:23px;height:30px}
.exp-enemy{display:grid;justify-items:center;gap:3px;width:95px;flex-shrink:0}
.exp-enemy img{width:53px;height:53px;filter:drop-shadow(0 0 10px #8d6d5755)}
.exp-enemy b{font-size:11px}
.exp-enemy meter{width:85px}
.exp-numbers{position:absolute;right:25px;top:8px;pointer-events:none;font-size:28px;font-weight:900;color:#f28544;text-shadow:0 2px 0 #281f2755;z-index:3}
.exp-numbers.heal{color:#72ad53}
.exp-numbers.shield{color:#67aee0}
.exp-numbers.hurt{left:10px;right:auto;color:#e25c67}
.exp-numbers.crit{font-size:35px;color:#e99b25}
.exp-boss-rule{font-size:11px;min-height:18px;color:#bc7044}
.exp-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;padding:7px;background:#1b2b3630;border-radius:16px;touch-action:none;max-width:350px;margin:0 auto}
.exp-grid button{aspect-ratio:1;border:1px solid #b7b4af44;border-radius:10px;background:#fff5;padding:1px;position:relative;min-width:0;touch-action:none;color:inherit}
.exp-grid button.selected{outline:3px solid #f6be55;z-index:1}
.exp-grid img{width:100%;height:100%;display:block}
.exp-grid small{position:absolute;bottom:0;right:2px;font-size:11px;color:#18152a;text-shadow:0 0 3px white}
.exp-color-key{font-size:12px;letter-spacing:7px;margin-top:7px}
.exp-route{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.exp-route button{display:grid;gap:12px;justify-items:center;align-content:center;min-height:155px;padding:12px 5px;border:1px solid #a4977855;border-radius:20px;color:inherit;background:linear-gradient(150deg,#b4c88d22,#d2ad7622)}
.exp-route span{font-size:45px}
.exp-route b{font-size:16px}
.exp-route small{font-size:11px}
.exp-blessing-choices{display:grid;gap:8px;margin:14px 0}
.exp-blessing-choices button{display:grid;grid-template-columns:40px 1fr;text-align:left;align-items:center;gap:5px 9px;padding:12px;border:1px solid #b0a48855;border-radius:17px;background:#ad9e6d0d;color:inherit}
.exp-blessing-choices span{font-size:30px;grid-row:span 2}
.exp-blessing-choices b{font-size:15px}
.exp-blessing-choices small{font-size:11px;line-height:1.4}
.exp-replace{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}
.exp-replace button{font-size:11px;border:1px solid #aaa8;border-radius:10px;background:none;color:inherit;padding:7px}
.exp-camp-icon{font-size:60px}
.exp-loot{display:flex;justify-content:center;gap:16px;font-weight:800;margin:12px 0}
.exp-bank{padding:14px;background:#b3aa8822;border-radius:16px;margin:12px 0}
.exp-bank small{opacity:.7}
.exp-quit{border:0;color:inherit;background:none;font-size:12px;max-width:65px}
.exp-ending p{font-size:13px;line-height:1.6}
.exp-open-chest{width:110px;margin:10px auto}
.exp-ending .wpn{display:inline-block;width:65px;height:65px}
.exp-ending .wpn svg{width:100%;height:100%}
.pet-collection fieldset{border:0;padding:5px 0;text-align:left}
.pet-look-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.pet-collection button{border:1px solid #aaa5;border-radius:14px;padding:5px;background:none;color:inherit;min-width:0}
.pet-collection .pet-art{width:80px;height:80px;max-width:100%}
.pet-collection>button{margin:4px}
.pet-look-list small{display:block;text-align:center;font-size:11px}
.pcard-pet{border:0;background:none;color:inherit;display:inline-grid;justify-items:center}
.pcard-pet .pet-art{width:85px;height:85px}
.pcard-pet small{font-size:12px}
.pet-public{text-align:center}
.pet-public p{font-size:25px}
.pet-idle,.pet-follow{animation:pet-breathe 3s ease-in-out infinite}
.pet-eat{animation:pet-eating .7s ease-in-out 3}
.pet-happy{animation:pet-happy .7s ease-in-out 2}
.pet-sleep{animation:pet-sleep 4s ease-in-out infinite}
.exp-ally.acting{animation:exp-assist .5s ease-out}
.exp-ending.won .exp-open-chest{animation:pet-happy 1s ease-in-out}
.pet-look-list .pet-art,.exp-candidates .pet-art{animation:none}
@keyframes pet-breathe{50%{transform:translateY(-3px) scaleY(1.02)}
}
@keyframes pet-eating{50%{transform:rotate(-7deg) scaleY(.9)}
}
@keyframes pet-happy{50%{transform:translateY(-12px) rotate(5deg)}
}
@keyframes pet-sleep{50%{transform:scaleY(.92) rotate(-3deg)}
}
@keyframes exp-assist{50%{transform:translateX(20px) translateY(-10px)}
}
@media(max-width:360px){.exp-sheet{width:calc(100vw - 12px)}
.exp-content h2{font-size:21px;margin:7px 0}
.exp-map{margin:4px 0 10px}
.exp-map li>span{font-size:19px}
.exp-grid{max-width:275px;padding:5px}
.exp-arena .exp-team{min-height:72px}
.exp-team{gap:5px}
.exp-leader{width:65px;height:65px}
.exp-team .pet-art{width:45px;height:45px}
.exp-ally{width:48px}
.pet-home>.pet-art{width:150px;height:150px}
.exp-route button{min-height:135px}
.exp-content .exp-status{margin:3px 0}
.exp-blessing-choices button{padding:9px}
.exp-hp{margin:4px 0}
.exp-sheet .sheet-body{padding-bottom:5px}
.exp-team .exp-ally small{max-width:46px}
.exp-arena .exp-ally{width:27px}
.exp-arena .exp-team .pet-art{width:30px;height:30px}
}
@media(prefers-reduced-motion:reduce){.pet-art,.exp-ally.acting,.exp-ending.won .exp-open-chest{animation:none!important;transition:none!important}
}

.exp-sheet .go-bar{flex-direction:row;align-items:center;padding:14px 20px;min-height:72px}
.exp-sheet .go-bar .exp-quit{flex:0 0 55px}
.exp-sheet .go-bar button{margin:0}
.exp-sheet .pet-public{text-align:center}

.exp-sheet{width:min(100%,520px)}
.exp-sheet .sheet-body{padding:22px 16px 8px}
.exp-sheet .go-bar{padding:12px 16px;min-height:68px}
.exp-sheet .go-bar button{width:auto}
.exp-sheet .go-bar .exp-quit{min-width:45px;flex-basis:45px}
.exp-sheet .pet-home h3{text-align:center}
.exp-sheet .exp-status{font-size:12px}
.exp-sheet .exp-content h2{margin:8px 0 12px}
.exp-sheet .exp-content .muted{font-size:13px}
@media(max-height:700px){.exp-sheet .sheet-body{padding:14px 12px 5px}
.exp-sheet .exp-content h2{font-size:19px;line-height:28px;margin:7px 0 9px}
.exp-sheet .exp-map{margin:3px 0 5px}
.exp-sheet .exp-map li>span{font-size:17px}
.exp-sheet .exp-map li small{font-size:9px}
.exp-sheet .exp-room-title{font-size:12px;margin:4px 0}
.exp-sheet .exp-hp{margin:3px 0}
.exp-sheet .exp-arena .exp-team{min-height:65px}
.exp-sheet .exp-blessings{min-height:12px;font-size:9px}
.exp-sheet .exp-grid{max-width:min(100%,calc(100dvh - 375px))}
.exp-sheet .exp-status:empty{display:none}
.exp-sheet .exp-color-key{display:none}
.exp-sheet .exp-boss-rule{font-size:10px}
.exp-sheet .go-bar{min-height:64px}
.exp-sheet .exp-intro-steps{margin:15px 0}
}

.menu-pet{left:34px;top:82px;right:auto;width:46px;height:46px}
.menu-pet .pet-art{width:46px;height:46px}

.exp-sheet .exp-arena{display:block;border:1px solid #8cae9c44;border-radius:17px;overflow:hidden;margin:8px 0;background:#19313b}
.exp-scene{display:block;width:100%;height:auto;aspect-ratio:700/240}
.exp-battle-team{position:absolute;left:0;bottom:0;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.exp-sheet .exp-arena .exp-enemy{position:absolute;right:10px;bottom:5px;width:105px;gap:1px}
.exp-sheet .exp-arena .exp-enemy>img{display:none}
.exp-sheet .exp-arena .exp-enemy b{font-size:9px;color:#f0f0d9;text-shadow:0 1px 2px #000}
.exp-sheet .exp-arena .exp-enemy meter{height:8px;width:95px}
.exp-sheet .exp-numbers{font-size:0!important;opacity:0}
.exp-clearing{animation:exp-clear .18s ease-in-out infinite!important;box-shadow:0 0 16px #fff4ae!important}
@keyframes exp-clear{50%{transform:scale(.75);filter:brightness(1.8)}
}
@media(max-height:700px){.exp-sheet .exp-grid{max-width:min(100%,calc(100dvh - 400px))}
.exp-sheet .exp-arena{margin:5px 0}
}
@media(prefers-reduced-motion:reduce){.exp-clearing{animation:none!important;outline:2px solid #fff4ae}
}

.exp-bestiary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.exp-bestiary figure{margin:0;padding:10px 5px;border:1px solid var(--hair);border-radius:16px;background:radial-gradient(ellipse at center,#688d8d22,transparent 70%)}
.exp-bestiary img{width:100%;height:125px;object-fit:contain}
.exp-bestiary figcaption{font-size:12px;font-weight:700}
.exp-sheet .exp-enemy b{display:grid;justify-items:center;gap:0;font-size:10px!important}
.exp-sheet .exp-enemy b small{font-size:8px}
.exp-sheet .exp-arena .exp-enemy{bottom:3px}

@media(min-width:700px){.sheet:has(.exp-bestiary){width:min(960px,100%)}
.exp-bestiary{grid-template-columns:repeat(5,minmax(0,1fr))}
.exp-bestiary img{height:135px}
}

.exp-sheet .go-bar .exp-skip{flex:0 0 30px;min-width:30px;border:0;background:none;color:var(--muted);font-size:20px;padding:3px}
.exp-grid button{transition:transform .12s,filter .12s}
.exp-grid button.selected{transform:scale(1.07)}


.exp-sheet,.exp-sheet .sheet-body{overscroll-behavior:none;touch-action:pan-y}.exp-sheet button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.exp-sheet .go-bar{padding-bottom:max(8px,env(safe-area-inset-bottom))}.exp-menu-card .pk-trial-tag{font-size:10px;flex:none}.exp-sheet .exp-camp-icon{display:block}

.exp-lab-label{display:block;text-align:center;color:var(--muted);font-size:10px;margin:-8px 0 12px}.exp-menu-card[hidden]{display:none}
