/* Small visual corrections requested for the mobile game screen. */
.reference-home .ref-next{
 left:59.2%!important;top:39.6%!important;width:37.7%!important;height:7.4%!important;
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;
 box-sizing:border-box;padding:2.1% 3.1%!important;overflow:hidden;z-index:5;
 color:#f0cf98!important;text-align:left;font:inherit!important;line-height:1.15!important;
 background:linear-gradient(110deg,#130d08ed,#110b07ed),url('assets/panel-original.png') center 70%/cover!important;
 border:4px solid transparent!important;border-image:url('assets/frame-reference.svg') 24 36 20 36 stretch!important;
 box-shadow:inset 0 0 16px #0009,0 2px 7px #0008;cursor:pointer;
}
.reference-home .ref-next strong{font:4.1cqw/1 Georgia;color:#f0c381;text-transform:uppercase;letter-spacing:.08em}
.reference-home .ref-next small{font:2.55cqw/1.2 Georgia;color:#d2b58c;white-space:nowrap}
.reference-home .ref-next>span{position:absolute;right:5%;top:50%;transform:translateY(-50%);font:6cqw Georgia;color:#c99751}
.reference-home .ref-class-avatar{
 background-image:linear-gradient(180deg,#09070424,#0907040a 56%,#09060477),url('assets/castillo-sombrio.png')!important;
 background-position:center,center 52%!important;background-size:cover,cover!important;
 border:1px solid #987044;box-shadow:inset 0 0 32px 8px #080604bb,0 0 9px #0009;overflow:hidden;
}
.reference-home .ref-class-avatar:before{background:linear-gradient(180deg,#08060336,#08060305 42%,#070503aa)!important}
.home-chest-rewards.compact-gifts{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px));}
.home-chest-rewards.compact-gifts .home-chest-banner{min-height:108px}
.care-sleep .care-number{left:23%!important;width:66%!important}
.campaign-path .path-glyph{display:grid;place-items:center;min-height:27px}
.campaign-path .path-glyph svg{width:23px;height:23px;display:block;color:#d0a15c}
.epic-challenge-section{margin-top:22px;padding:18px 13px;border:1px solid #8b6333;background:linear-gradient(145deg,#171009f2,#0b0806f5);box-shadow:inset 0 0 0 3px #100b07}
.epic-challenge-section>header h2{font:27px/1.15 Georgia;color:#edc78e;margin:8px 0}
.epic-challenge-section>header p,.epic-challenge-note{font:12px/1.6 Georgia;color:#bda887;margin:8px 0 15px}
.epic-challenge-list{display:grid;gap:9px}
.epic-challenge{border:1px solid #72512d;background:linear-gradient(110deg,#1c130b,#0e0a07)}
.epic-challenge>summary{min-height:73px;padding:8px 9px;display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none}
.epic-challenge>summary::-webkit-details-marker{display:none}
.epic-mark{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border:1px solid #a57a40;background:#130d08;border-radius:50%;color:#e2b96f}
.epic-mark svg{width:22px;height:22px}
.epic-summary-copy{min-width:0;flex:1}
.epic-summary-copy strong{display:block;font:17px/1.2 Georgia;color:#e9cb98}
.epic-summary-copy small{display:block;margin-top:5px;font:10px/1.3 Georgia;color:#b39d7e}
.epic-grade{flex:0 0 auto;padding:5px 6px;border:1px solid #8868a0;color:#d4b4eb;font:8px Georgia;letter-spacing:.5px}
.epic-challenge[open]>summary{border-bottom:1px solid #71512c}
.epic-challenge-body{padding:8px 10px 12px}
.epic-challenge-body>p{font:12px/1.6 Georgia;color:#c2ad8b;margin:3px 0 8px}
.epic-challenge-body>.bar{height:6px;margin:10px 0}
.epic-prize{min-height:62px;display:flex;align-items:center;gap:9px;padding:6px 8px;margin:10px 0;background:#090706;border:1px solid #624b32}
.epic-prize>.gear-art{width:54px;height:54px;flex:0 0 54px}
.epic-prize>span strong,.epic-prize>span small{display:block}
.epic-prize>span strong{font:15px/1.25 Georgia;color:#e2c294}
.epic-prize>span small{margin-top:4px;font:9px/1.3 Georgia;color:#bd9e75}
.epic-challenge-body>button{width:100%;min-height:42px;font-size:13px}
.epic-challenge-body>button:disabled{opacity:.78;cursor:default}
.epic-challenge-note{margin:13px 0 0;font-size:10px}
.achievement-gallery .achievement .medal,.achievement-preview .medal,.guild-message .medal{
 width:98px!important;height:98px!important;max-width:98px!important;aspect-ratio:1/1;box-sizing:border-box;
 margin:0 auto 12px!important;background-size:300% 300%!important;background-repeat:no-repeat;
 border:1px solid #9b713d;border-radius:50%;box-shadow:0 4px 15px #0009,0 0 9px #d1933322;
}
.achievement-gallery .achievement .medal{background-color:#0d0806}
.achievement-preview .medal{width:118px!important;height:118px!important;max-width:118px!important}
.guild-message .medal{width:88px!important;height:88px!important;max-width:88px!important}
.guild-avatar{width:50px!important;height:50px!important;flex:0 0 50px!important;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--guild-color) 35%,#100b07),#0b0806 72%)!important;overflow:hidden;box-shadow:0 2px 9px #000b,inset 0 0 0 2px #130d08}
.guild-avatar img{width:100%!important;height:100%!important;display:block;object-fit:cover!important;object-position:center 18%!important;border-radius:50%;transform:none!important}
@media(max-width:390px){
 .reference-home .ref-next{padding-left:2.5%!important}
 .reference-home .ref-next strong{font-size:3.8cqw}
 .reference-home .ref-next small{font-size:2.35cqw}
 .epic-challenge-section{padding:15px 10px}
 .epic-summary-copy strong{font-size:15px}
 .epic-grade{font-size:7px;padding:5px 4px}
}
