.journal-icon{width:28px;height:28px;display:inline-block;vertical-align:middle;flex:none;color:#a87531}
#wpMastery,#wpSeason{padding:max(10px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));box-sizing:border-box}
#wpMastery .wpm-card,#wpSeason .wpsn-card{box-sizing:border-box;width:min(100%,490px);max-height:100%;border:3px solid #b48951;border-radius:27px;background:linear-gradient(145deg,#fffdf0,#fff1d2);box-shadow:inset 0 0 0 2px #fffbe9,0 12px 25px #31222d44;padding:15px 14px 24px;scroll-padding:15px;overscroll-behavior:contain}
#wpMastery .wpm-close,#wpSeason .wpsn-close{position:sticky;top:0;float:right;margin:0 0 -44px;width:44px;height:44px;z-index:5;border-radius:50%;background:#fff0d4;color:#915b39;border:2px solid #b98956;box-shadow:inset 0 0 0 2px #fff9eb}
.journal-heading{display:flex;gap:9px;align-items:center;padding-right:43px;margin:3px 0 13px}.journal-heading>.journal-icon{width:37px;height:37px}.journal-heading h1{font-size:25px!important;line-height:1.1;margin:0!important;color:#623a25}.journal-heading p{font-size:11px;line-height:1.35;margin:4px 0 0;color:#80664d}
#wpMastery .wpm-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid #dfc18d;border-radius:15px;overflow:hidden;margin:8px 0 12px;background:#fff9e9}.wpm-summary .wpm-stat{border:0;border-radius:0;border-right:1px solid #e5d0aa;padding:9px 3px;background:none}.wpm-summary .wpm-stat:last-child{border:0}.wpm-summary .wpm-stat strong{font-size:17px}.wpm-summary .wpm-stat small{font-size:8px;margin-top:3px}
.journal-next{display:flex;align-items:center;gap:10px;border:1px solid #d6b36e;border-radius:15px;padding:11px;background:linear-gradient(125deg,#fff3c6,#fff9e9);margin:10px 0}.journal-next strong,.journal-next small{display:block}.journal-next strong{font-size:13px}.journal-next small{font-size:11px;margin-top:3px;color:#79613f}
.journal-details{border:1px solid #dcc49b;border-radius:13px;background:#fff9e9;margin:10px 0;overflow:hidden}.journal-details>summary{cursor:pointer;padding:12px;font-size:13px;font-weight:900;min-height:44px;box-sizing:border-box;color:#715033}.journal-details>summary::marker{color:#b48238}.journal-details>div{padding:0 10px 10px}.journal-details p{font-size:11px;line-height:1.45;margin:0;padding:0 10px 12px}.journal-details summary small{font-size:10px;float:right;color:#677f45}
#wpMastery .wpm-grid{gap:7px;margin-top:13px}#wpMastery .wpm-pal{grid-template-columns:56px minmax(0,1fr);gap:8px;padding:8px;border:1px solid #d7bd96;border-radius:15px;background:#fffaf0}.wpm-icon canvas{display:block;width:56px;height:56px}.wpm-pal .wpm-title{align-items:flex-start;gap:5px}.wpm-pal .wpm-title strong{font-size:13px}.wpm-pal .wpm-level{font-size:10px;text-align:right;white-space:nowrap}.wpm-pal .wpm-bar{height:7px;border-width:1px;margin:6px 0 4px}.wpm-pal .wpm-meta{display:flex;justify-content:space-between;gap:6px;font-size:10px}.wpm-pal.is-maxed{background:#f2f8df!important;border-color:#bfce98!important}.wpm-pal.is-maxed .wpm-meta{color:#5a773c}.wpm-pal.locked{opacity:.7!important;filter:none!important}.journal-lock{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#ebe3d5;color:#988c78;font-size:24px}
#modalBody .journal-collection{display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto;max-height:calc(100dvh - 65px);min-height:0;gap:0}#modalBody .journal-collection .ui-head{margin-bottom:8px}#modalBody .journal-collection .collection-tabs{margin:0;padding:4px 0 9px}.journal-book-body{overflow:auto;min-height:0;padding:1px 2px 10px;overscroll-behavior:contain;scrollbar-width:thin}#modalBody .journal-collection .ui-footer{margin:0;padding:9px 0 2px;background:#fff6e0}#modalBody .journal-collection .ui-footer button{min-height:44px}
.journal-discovery{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#eef6da;border:1px solid #c5d49e;border-radius:14px;padding:10px 12px;margin-bottom:11px}.journal-discovery strong{font-size:15px}.journal-discovery small{display:block;font-size:10px;color:#64734b;margin-top:3px}.journal-discovery progress{width:85px;height:9px;accent-color:#8db855}
#modalBody .journal-collection .home-collection-section{padding:10px 8px;margin-bottom:10px}#modalBody .journal-collection .home-collection-section h2{font-size:15px}#modalBody .journal-collection .home-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#modalBody .journal-collection .pal-choice{padding:5px 3px 8px;min-height:105px;gap:2px;border-width:1px;border-radius:14px;box-shadow:0 2px #d6bc91}#modalBody .journal-collection .pal-choice canvas{width:min(100%,84px);height:auto;justify-self:center}#modalBody .journal-collection .pal-choice strong{font-size:11px;line-height:1.2;overflow-wrap:anywhere}#modalBody .journal-collection .pal-choice small{font-size:9px;line-height:1.25}#modalBody .journal-collection .pal-choice .journal-lock{margin:8px auto}
.journal-recipes{display:grid;gap:8px}.journal-recipe{border:1px solid #d8bc91;border-radius:15px;background:#fffaf0;padding:9px}.journal-recipe-head{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:13px}.journal-recipe-head small{font-size:10px;color:#8b6d48;white-space:nowrap}.journal-recipe-art{display:flex;align-items:center;justify-content:center;gap:5px;margin:4px 0}.journal-recipe-art canvas{display:block;width:56px;height:56px}.journal-recipe-art .journal-lock{width:52px;height:52px}.journal-recipe-art>span{font-size:20px;color:#9a7b4b}.journal-recipe-label{font-size:10px;text-align:center;color:#80684c;margin:2px 0 0}.journal-recipe.starter .journal-recipe-art{gap:16px;justify-content:flex-start}.journal-recipe.starter .journal-recipe-art small{font-size:12px;color:#7a694c}.journal-pal-detail{display:block;width:110px;height:110px;margin:8px auto}
#wpSeason .journal-season-head{position:relative;padding:20px 48px 16px 13px;margin:-3px -2px 12px;border-radius:18px;background:linear-gradient(90deg,#fff9e7f0,#fff9e799),url('habitats/scene-meadow.webp?v=1') center 52%/cover;border:1px solid #d3c493}.journal-season-head small{font-size:9px;letter-spacing:1px;color:#71804d;font-weight:900}.journal-season-head h1{font-size:24px!important;margin:4px 0 8px!important;text-wrap:balance}.journal-countdown{display:inline-flex;gap:5px;align-items:center;padding:4px 8px;border:1px solid #d9c496;border-radius:15px;background:#fffbe9;font-size:11px}.journal-countdown .journal-icon{width:17px;height:17px}
.journal-track-badge{display:flex;align-items:center;gap:6px;padding:7px 10px;font-size:11px;color:#5c773c;background:#eef6dc;border:1px solid #cad8a5;border-radius:11px;margin-bottom:9px}.journal-track-badge .journal-icon{width:18px;height:18px;color:#6e914b}
#wpSeason .wpsn-hero{border:2px solid #d8bd82;background:linear-gradient(135deg,#fff9df,#f3f1cf);padding:13px;border-radius:17px;text-align:left}.journal-progress-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.journal-progress-head strong{font-size:22px!important}.journal-progress-head small{font-size:10px;color:#87714b}.journal-next-stars{display:flex;align-items:center;gap:5px;color:#8e6725;font-size:16px;font-weight:900}.journal-next-stars .journal-icon{color:#ddb24b;width:25px;height:25px}#wpSeason .wpsn-bar{height:10px;border-width:1px;margin:11px 0 7px}.journal-progress-foot{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#806b4a}.journal-progress-note{margin:7px 0 0;font-size:10px;line-height:1.35;color:#7f714f}
#wpSeason .wpsn-jump{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.wpsn-jump button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:58px;padding:9px;font-size:12px!important;border:1px solid #cfb48a;border-radius:14px;background:#fff9eb}.wpsn-jump .journal-icon{width:26px;height:26px}.wpsn-jump button small{display:block;font-size:9px;margin-top:2px;color:#668045}
#wpSeason h2{font-size:17px;margin:15px 0 8px}#wpSeason .wpsn-guide{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.journal-earn{margin:0;border:1px solid #ddc8a2;border-radius:12px;background:#fffaf0;overflow:hidden}.journal-earn summary{display:flex;align-items:center;gap:7px;min-height:59px;padding:8px;box-sizing:border-box;cursor:pointer;list-style:none}.journal-earn summary::-webkit-details-marker{display:none}.journal-earn .journal-icon{width:25px;height:25px}.journal-earn strong,.journal-earn small{display:block}.journal-earn strong{font-size:11px;line-height:1.2}.journal-earn small{font-size:10px;margin-top:4px;color:#7b8652}.journal-earn p{font-size:10px;line-height:1.4;margin:0;padding:0 9px 10px;color:#7b684e}.journal-earn[open]{background:#fff4d6}.journal-reward-list .wpsn-grid{padding:2px 9px 12px}.journal-reward-list .wpsn-reward{border-width:1px}.journal-reward-list .wpsn-btn{min-height:44px}.journal-reward-list .wpsn-reward strong{font-size:13px}#wpSeason #wpsnCollection{padding-bottom:max(12px,env(safe-area-inset-bottom));scroll-margin-top:8px}#wpSeason .cosmetic-help{font-size:11px;line-height:1.4}
#modalBody .journal-collection button:focus-visible,.wpm-card button:focus-visible,.wpsn-card button:focus-visible,.journal-details summary:focus-visible,.journal-earn summary:focus-visible{outline:3px solid #9a79cf;outline-offset:2px}
@media(max-width:350px){.journal-heading h1{font-size:22px!important}.journal-heading>.journal-icon{width:29px;height:29px}.wpm-summary .wpm-stat strong{font-size:15px}#wpMastery .wpm-pal{grid-template-columns:47px minmax(0,1fr);padding:7px;gap:6px}.wpm-icon canvas{width:47px;height:47px}.wpm-pal .wpm-title{flex-wrap:wrap;gap:2px}.wpm-pal .wpm-title strong{font-size:12px}.journal-recipe-art canvas{width:48px;height:48px}.journal-recipe-art{gap:3px}.journal-recipe-art .journal-lock{width:44px;height:44px}.journal-earn summary{padding:7px;gap:5px}.journal-earn .journal-icon{width:21px;height:21px}.wpsn-jump button{font-size:11px!important}}
@media(max-height:480px){#modalBody .journal-collection{max-height:calc(100dvh - 35px)}#wpMastery .wpm-card,#wpSeason .wpsn-card{max-height:100%;width:min(96%,600px)}.journal-season-head{padding-top:12px!important;padding-bottom:11px!important}}

/* Local card headers must not inherit the absolute gameplay HUD header. */
.journal-heading,.journal-discovery{position:static;inset:auto;width:auto;height:auto;pointer-events:auto}
.journal-heading{padding:3px 43px 0 0;justify-content:flex-start;align-items:center}
#modalBody .journal-collection .home-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:7px}
#modalBody .journal-collection .home-collection-grid .pal-choice{width:100%;max-width:100%;height:auto;min-height:103px;grid-template-rows:72px auto;align-content:start;padding:4px 3px 8px}
#modalBody .journal-collection .home-collection-grid .pal-choice canvas{width:72px;height:72px;max-width:100%}
#modalBody .journal-collection .home-collection-grid .pal-choice:has(small){grid-template-rows:72px auto auto}

#wpSeason .journal-season-head{display:block;pointer-events:auto;padding-top:15px;padding-bottom:14px}
#wpSeason .journal-countdown{white-space:nowrap}
.journal-earn summary:after{content:'⌄';margin-left:auto;color:#a48b61;font-size:12px}
#wpSeason h2 small{font-size:9px;font-weight:600;color:#967e60;margin-left:7px}

/* The scenic heading replaces the legacy fixed season label. */
#wpSeason .wpsn-card::before{content:none}
#wpSeason .wpsn-card>#wpsnBody{padding-bottom:max(18px,env(safe-area-inset-bottom));scroll-padding-bottom:18px}
