/* Scoped so the guide cannot alter gameplay or existing sheets. */
.guideEntry{display:inline-flex;align-items:center;gap:4px;border:1px solid #96c9e1;border-radius:20px;background:#f1faff;color:#225f7f;font-family:inherit;font-size:11px;font-weight:700;line-height:1.3;padding:5px 9px;cursor:pointer}
.guideSettings{display:flex!important;align-items:center;justify-content:center;gap:6px;text-align:center;margin-top:10px}
.guideEntryIcon{width:14px;height:14px;flex:none}
#homeNotice:has(.guideEntry){display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px}
#danbiGuide{position:fixed;inset:0;z-index:98;background:rgba(20,50,70,.55);display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box}
#danbiGuide *{box-sizing:border-box}
#danbiGuide .guideCard{width:min(390px,100%);height:min(680px,calc(100vh - 24px));height:min(680px,calc(100dvh - 24px));display:flex;flex-direction:column;background:#fff;border-radius:24px;padding:18px;box-shadow:0 14px 45px #163e5c4d;color:#245775;overflow:hidden}
#danbiGuide .guideHeader{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;flex:none}
#danbiGuide .guideCount{color:#51788e;font-size:12px;white-space:nowrap}
#danbiGuide .guideLang{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0;font-size:11px;color:#51788e;flex:none}
#danbiGuide select{font:inherit;font-size:12px;max-width:50%;min-width:0;padding:7px;border:1px solid #a7cfe3;border-radius:9px;background:#f1faff;color:#245775}
#danbiGuide .guideBody{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#danbiGuide .guidePicture{height:90px;display:flex;align-items:center;justify-content:center;background:linear-gradient(#e5f5ff,#f4fbff);border-radius:18px;margin:0 0 15px}
#danbiGuide .guideArt{width:64px;height:64px}
#danbiGuide .guideLanguages{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px;width:100%;font-size:12px;font-weight:800}
#danbiGuide .guideLanguages span:not([aria-hidden]){flex:1;min-width:0;border-radius:10px;padding:10px 8px;overflow-wrap:anywhere;text-align:center}
#danbiGuide .guideMe{background:#fff1df;color:#854510;border:1px solid #d79b55}
#danbiGuide .guideLearn{background:#e8f5ff;color:#165b83;border:1px solid #62a8d3}
#danbiGuide h2{font-size:22px;line-height:1.35;margin:0 0 14px;color:#195b80;overflow-wrap:anywhere}
#danbiGuide p{font-size:14px;line-height:1.75;margin:0 0 15px;overflow-wrap:anywhere}
#danbiGuide .guideTip{background:#fff6e7;border-radius:14px;padding:12px;color:#755126;font-size:13px}
#danbiGuide .guideSteps{display:flex;gap:3px;flex:none;margin:12px 0}
#danbiGuide .guideSteps button{flex:1;min-width:0;min-height:36px;border:0;border-radius:12px;background:#edf6fb;color:#51788e;font:700 12px sans-serif;cursor:pointer;padding:0}
#danbiGuide .guideSteps [aria-current]{background:#258fbd;color:#fff}
#danbiGuide footer{flex:none}
#danbiGuide .guideActions{display:flex;gap:8px}
#danbiGuide .guideActions .btn{flex:1;text-align:center;min-width:0;padding:12px 6px;font-size:14px;margin:0;overflow-wrap:anywhere}
#danbiGuide button:disabled{opacity:.35;cursor:default}
#danbiGuide .guideSkip{display:block;width:100%;border:0;background:none;color:#51788e;padding:12px 4px 0;font:inherit;font-size:12px;cursor:pointer}
#danbiGuide :focus-visible{outline:3px solid #176b96;outline-offset:2px}
#danbiGuide h2:focus{outline:none}
@media(max-height:600px){#danbiGuide .guideCard{padding:12px}#danbiGuide .guidePicture{height:62px;margin-bottom:10px}#danbiGuide .guideArt{width:48px;height:48px}#danbiGuide .guideLang{margin:8px 0}#danbiGuide h2{font-size:19px;margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){#danbiGuide *{animation:none!important;transition:none!important}}

/* Home utility cards share the illustration palette and rounded home-card shape. */
#homeNotice{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:10px;padding-top:4px}
#homeNotice .homeToolButton,#homeNotice .guideEntry{display:flex;flex:1;min-width:0;min-height:40px;justify-content:center;align-items:center;gap:6px;padding:4px 10px;border:1px solid #fff;border-radius:14px;background:rgba(255,255,255,.86);box-shadow:0 3px 10px #5bb6d018;color:#286b8a;font-family:inherit;font-size:12px;font-weight:700;line-height:1.35;cursor:pointer}
#homeNotice .homeToolIcon{width:26px;height:26px;flex:none}
#homeNotice button:focus-visible{outline:3px solid #247da7;outline-offset:2px}
#danbiGuide .guideHide{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:6px;font-size:12px;color:#426d85;cursor:pointer}
#danbiGuide .guideHide input{width:18px;height:18px;margin:0;accent-color:#258fbd}
#danbiGuide .guideSkip{padding-top:4px;padding-bottom:4px}

/* Large action scenes and concise numbered directions. */
#danbiGuide .guidePicture{height:188px;min-height:188px;position:relative;overflow:hidden;margin-bottom:18px;background:linear-gradient(145deg,#dff4ff,#f2fbff);border:1px solid #dbf0fa}
#danbiGuide .guideBody h2{font-size:23px;margin-bottom:8px}
#danbiGuide .guideLead{font-size:14px;font-weight:700;color:#3c7896;margin-bottom:14px;line-height:1.6}
#danbiGuide .guideInstructions{padding:0;margin:0;list-style:none;counter-reset:guideAction}
#danbiGuide .guideInstructions li{counter-increment:guideAction;display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.65;margin-bottom:9px;color:#436980}
#danbiGuide .guideInstructions li::before{content:counter(guideAction);display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:8px;background:#eaf5fb;color:#3184aa;font-weight:800;font-size:11px;margin-top:1px}
#danbiGuide .sceneIcon{width:62px;height:62px}
#danbiGuide .sceneFlow{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:100%;z-index:1}
#danbiGuide .sceneTile{position:relative;display:grid;place-items:center;background:#fff;width:82px;height:88px;border-radius:20px;box-shadow:0 5px 0 #bfdfea66,0 8px 15px #509aba15}
#danbiGuide .sceneNumber{position:absolute;top:-8px;left:-5px;background:#fff0ca;color:#b07820;border:2px solid #fff;border-radius:50%;width:23px;height:23px;display:grid;place-items:center;font-size:11px;font-weight:800}
#danbiGuide .sceneArrow{color:#74b3cf;font-size:22px;font-weight:800}
#danbiGuide .sceneHand{position:absolute;width:43px;height:43px;right:30px;bottom:12px;transform:rotate(-15deg);filter:drop-shadow(0 3px 2px #9c794b22);z-index:3}
#danbiGuide .sceneLang{width:100%;padding:20px;position:relative;height:100%}
#danbiGuide .sceneLanguagePill{display:flex;justify-content:center;gap:12px;background:linear-gradient(110deg,#4fb8df,#2a93c2);color:#fff;border-radius:22px;padding:12px;font-size:14px;font-weight:800;box-shadow:0 4px 0 #81c8e455}
#danbiGuide .sceneLanguagePair{display:flex;align-items:center;gap:8px;margin-top:18px;font-size:12px;font-weight:800}
#danbiGuide .sceneLanguagePair>div{flex:1;min-width:0;text-align:center;padding:12px 6px;border-radius:12px;overflow-wrap:anywhere}
#danbiGuide .sceneGame{width:100%;height:100%;padding:10px 22px}
#danbiGuide .sceneGameTop{display:flex;align-items:center;gap:10px;color:#3888ac;font-size:12px;font-weight:800;height:35px}
#danbiGuide .sceneGameTop .sceneIcon{width:32px;height:32px}
#danbiGuide .sceneRain{height:92px;position:relative;border-bottom:2px dashed #b4dded}
#danbiGuide .sceneDrop{position:absolute;background:white;padding:7px 17px;border-radius:12px;font-size:16px;font-weight:800;color:#3b7e9e;box-shadow:0 3px 0 #c1e4ef}
#danbiGuide .sceneDrop.one{left:10px;top:6px}#danbiGuide .sceneDrop.two{left:105px;top:30px;border:2px solid #62b7d8}#danbiGuide .sceneDrop.three{right:7px;top:0}
#danbiGuide .sceneAnswer{position:absolute;bottom:0;left:106px;background:#5eaf8a;color:white;padding:4px 13px;border-radius:9px;font-size:13px;font-weight:800}
#danbiGuide .sceneRain .sceneHand{right:55px;bottom:2px;width:35px;height:35px}
#danbiGuide .sceneModes{display:flex;justify-content:center;gap:12px;margin-top:9px}.sceneModes span{background:#fff;padding:3px 12px;border-radius:10px;font-size:15px}
#danbiGuide .sceneStars{text-align:center;color:#eab44b;font-size:25px;line-height:1.1}.sceneStars span{font-size:17px}
#danbiGuide .sceneConstellation{width:82px;background:#fff;border-radius:18px;padding:6px;box-shadow:0 5px 12px #9fd2e433}
#danbiGuide .sceneNotebook{height:100%;width:100%;position:relative;padding:12px 30px}.sceneNotebook .sceneFlow{height:95px}
#danbiGuide .sceneNotebook .sceneTile{height:74px;width:82px}.sceneNotebook .sceneIcon{width:54px!important;height:54px!important}
#danbiGuide .sceneWordRow{display:flex;gap:7px;align-items:center;margin-top:9px;border-radius:12px;background:#fff;padding:8px 12px;font-size:13px;color:#5598b6}.sceneWordRow>span:first-child{flex:1}.sceneSmallButton{background:#e9f6fb;border-radius:6px;padding:2px 5px}
#danbiGuide .sceneReviewMarks{position:absolute;right:47px;bottom:22px;display:flex;gap:11px;background:#fff;border-radius:8px;color:#4d9c7b;font-size:14px}
#danbiGuide .sceneCalendar{background:#fff;border-radius:16px;padding:12px;box-shadow:0 5px 0 #c1e1ed;color:#50a2bf;font-size:18px;line-height:1.6;letter-spacing:4px}.sceneCalendar b{color:#eeb540}
#danbiGuide .sceneGarden{position:relative;width:100%;height:100%;background:linear-gradient(#c7eeff,#edfbff)}.sceneGarden .sceneFlow{gap:8px}.sceneGarden .sceneTile{background:#ffffffcf}
#danbiGuide .sceneSun{position:absolute;right:15px;top:15px;width:23px;height:23px;background:#ffd568;border:4px solid #ffe9aa;border-radius:50%}.sceneWater{font-size:35px}.sceneFlowers{font-size:24px;text-align:center}.sceneGround{position:absolute;bottom:-20px;left:-10%;width:120%;height:65px;background:#bce3ad;border-radius:50%}
#danbiGuide .sceneRanking{background:#fff;border-radius:16px;padding:12px;width:132px;box-shadow:0 4px 0 #c3e0ec}.sceneRanking>div{display:flex;align-items:center;gap:8px;height:28px;color:#f2bd52;font-size:15px}.sceneRanking b{color:#5d9bbb;font-size:12px}.sceneRanking i{display:block;width:59px;height:6px;border-radius:3px;background:#e0f1f8}
#danbiGuide .sceneFriends{position:relative;background:white;border-radius:18px;padding:15px 10px;color:#a8c9e0;white-space:nowrap}.sceneFriends>span{color:#64b4db;font-size:31px}.sceneFriends>span:last-of-type{color:#ecbb60}.sceneFriends>b{font-size:17px}.sceneFriends small{position:absolute;bottom:-12px;left:35%;background:#74b995;border:3px solid #fff;border-radius:50%;padding:2px 7px;color:#fff;font-size:15px}
#danbiGuide .sceneHomeMini{width:240px;height:160px;margin-top:8px;border:3px solid white;border-radius:19px;background:#cceefa;position:relative;padding:10px;box-shadow:0 4px 15px #4c96b41a}.sceneMiniLogo{text-align:center;font-size:22px}.sceneMiniCards{display:flex;justify-content:center;gap:10px;margin-top:10px}.sceneMiniCards .sceneIcon{width:44px!important;height:44px!important;background:white;border-radius:10px;padding:5px}.sceneUtilityRow{display:flex;gap:8px;margin:9px 12px 0}.sceneUtilityRow>div{flex:1;background:#fff;border:2px solid #77bfdb;border-radius:10px;text-align:center;height:34px}.sceneUtilityRow .homeToolIcon{width:29px;height:29px}.sceneHomeMini .sceneHand{bottom:-10px;right:28px}
@media(max-height:700px){#danbiGuide .guidePicture{height:146px;min-height:146px;margin-bottom:12px}#danbiGuide .guideBody h2{font-size:20px}#danbiGuide .guideLead{margin-bottom:10px}#danbiGuide .guidePicture>div{transform:scale(.84);transform-origin:center}#danbiGuide .guideCard{padding:14px}}

#danbiGuide .sceneSmallButton svg{width:17px;height:17px;display:block;fill:#d6eef8;stroke:#5598b6;stroke-width:1.7;stroke-linejoin:round}
#danbiGuide .sceneNotebook .sceneWordRow{position:absolute;left:28px;right:28px;bottom:24px;height:36px;margin:0}
#danbiGuide .sceneReviewMarks{display:none}

/* One preference and one close action, on a shared line. */
#danbiGuide .guideFooterOptions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;min-height:44px}
#danbiGuide .guideFooterOptions .guideHide{flex:1;min-width:0;justify-content:flex-start;margin:0;font-size:11px;line-height:1.4;gap:6px}
#danbiGuide .guideFooterOptions .guideSkip{flex:none;width:auto;min-height:40px;margin:0;padding:8px 12px;border:1px solid #d5eaf4;border-radius:12px;background:#f3faff;font-size:11px;line-height:1.4;max-width:38%;overflow-wrap:anywhere}
#danbiGuide .sceneGarden .sceneFlow{height:112px}
#danbiGuide .sceneGarden .sceneTile{width:67px;height:72px}
#danbiGuide .sceneGarden .sceneIcon{width:53px;height:53px}
#danbiGuide .sceneGarden .sceneGround{height:83px}
#danbiGuide .sceneFruitShop{position:absolute;bottom:8px;left:36px;right:36px;height:52px;border:1px solid #fff;background:#ffffffdb;border-radius:16px;display:flex;align-items:center;justify-content:center;gap:16px;z-index:2;box-shadow:0 3px 5px #7eb49416}
#danbiGuide .sceneFruit{width:37px;height:37px}
#danbiGuide .scenePurchase{width:92px;height:46px}
#danbiGuide .hasGradeHelp .guidePicture{height:110px;min-height:110px;margin-bottom:12px;overflow:hidden}
#danbiGuide .hasGradeHelp .sceneGame{transform:scale(.63)}
#danbiGuide .hasGradeHelp h2{margin-bottom:10px}
#danbiGuide .guideGradeHelp{background:#eff8fd;border:1px solid #d5eaf5;border-radius:15px;padding:11px 14px;margin:10px 0 0}
#danbiGuide .guideGradeHelp strong{display:block;font-size:14px;margin-bottom:6px;color:#286b8a}
#danbiGuide .guideGradeHelp p{font-size:12px;line-height:1.7;margin:0 0 9px;color:#648b9f;white-space:pre-line}
#danbiGuide .guideGradeHelp button{display:block;width:100%;min-height:36px;background:#fff;color:#2e87ac;border:1px solid #c7e3f0;border-radius:10px;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}
#danbiGuide .sceneGarden .sceneHand{right:14px;bottom:4px;width:34px;height:34px}

/* Shared inset keeps all eight diagrams clear of every edge. */
#danbiGuide .guidePicture,#danbiGuide .hasGradeHelp .guidePicture{height:176px;min-height:176px;padding:14px;box-sizing:border-box;margin-bottom:14px}
#danbiGuide .guideScene{display:block;width:100%;height:100%;flex:none;overflow:hidden;font-family:inherit}
#danbiGuide .guideSceneIcon,#danbiGuide .guideSceneIcon svg{width:100%!important;height:100%!important;display:block}
#danbiGuide #guideLanguage{position:relative;display:flex;align-items:center;justify-content:center;width:174px;max-width:65%;min-height:38px;padding:7px 26px 7px 12px;border:1px solid #c9e3f0;border-radius:12px;background:#f2faff;color:#407a97;font:700 12px inherit;cursor:pointer}
#danbiGuide #guideLanguage span{width:100%;text-align:center;overflow-wrap:anywhere}
#danbiGuide #guideLanguage i{position:absolute;right:10px;font-style:normal}
.guideLanguagePicker{position:absolute;inset:0;z-index:3;background:#23445470;display:flex;align-items:center;justify-content:center;padding:14px}
.guidePickerCard{width:min(330px,100%);height:min(640px,86dvh);padding:16px;background:#fff;border-radius:22px;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;color:#426174;box-shadow:0 12px 40px #142f4940}
.guidePickerCard>strong{text-align:center;padding:5px}
.guidePickerList{flex:1;min-height:0;overflow:auto;border:1px solid #e5c194;border-radius:14px;overscroll-behavior:contain}
.guidePickerList button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:46px;padding:12px 16px;background:#fff;border:0;border-bottom:1px solid #eef3f7;color:#426174;font-family:inherit;font-size:15px;text-align:start;cursor:pointer}
.guidePickerList button[aria-pressed=true]{background:#fff1df;color:#854510;font-weight:700}
.guidePickerClose{flex:none;min-height:44px;border:1px solid #cce5ef;border-radius:13px;background:#f1faff;color:#397d9e;font:inherit;cursor:pointer}
@media(max-height:700px){#danbiGuide .guidePicture,#danbiGuide .hasGradeHelp .guidePicture{height:146px;min-height:146px;padding:12px}}

#danbiGuide .hasGradeHelp .guidePicture{height:136px;min-height:136px}
#danbiGuide #guideLanguage{font-family:inherit;font-size:12px;font-weight:700}
@media(max-height:700px){#danbiGuide .hasGradeHelp .guidePicture{height:124px;min-height:124px}}
