/* Homepage navigation only; buttons remain real links, summary and form. */
.home-page .home-forest-header {padding-right:96px;}
.home-page .home-forest-header .home-site-header-left {width:100%;gap:8px;}
.home-page .home-forest-header h1 {font-size:16px;flex:none;}
.home-forest-header .home-account-entry {min-width:0;flex:1;}
.home-forest-header .home-account-desktop {display:flex;gap:8px;align-items:center;white-space:normal;}
.home-forest-header .home-account-menu {display:none;}
.home-forest-header .home-account-direct-nav {display:flex;gap:8px;align-items:center;}
.home-forest-header .forest-brand,.home-forest-header .home-account-identity,.home-forest-header .home-account-direct-nav>a,.home-forest-header .home-account-direct-nav form button {box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:4px 12px;border:2px solid #77857d;border-radius:13px;color:#20333a;font-size:14px;font-weight:800;line-height:1.2;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:inset 0 2px 2px #ffffffa6,0 3px 0 #69756c,0 5px 9px #293c1f30;transition:transform 130ms,filter 130ms;}
.home-forest-header .forest-brand {border-color:#714015;background:repeating-linear-gradient(3deg,#864417 0 9px,#934c1a 10px 11px,#854016 12px 20px);box-shadow:inset 0 2px 2px #ffc37491,0 3px 0 #512b10,0 5px 9px #293c1f30;color:#fff8e7;}
.home-forest-header .forest-brand,.home-forest-header .forest-invite {position:relative;}
.home-forest-header .forest-brand::before,.home-forest-header .forest-invite::before {content:'';position:absolute;top:-8px;left:-5px;width:18px;height:18px;background:url('/static/images/phonics_words/28_leaf-transparent-v1.png') center/contain no-repeat;pointer-events:none;transform:rotate(-35deg);}
.home-forest-header .forest-brand img {width:33px;height:33px;object-fit:contain;}
.home-forest-header .forest-account {position:relative;flex:none;}
.home-forest-header .home-account-identity {max-width:175px;list-style:none;border-color:#c4893a;background:linear-gradient(#ffe5a7,#f3c675);box-shadow:inset 0 2px 2px #fff9dc,0 3px 0 #a76b28,0 5px 9px #293c1f30;color:#55300e;}
.home-forest-header .home-account-identity::-webkit-details-marker {display:none;}
.home-forest-header .home-account-identity img {width:32px;height:32px;flex:0 0 32px;border-radius:50%;object-fit:cover;}
.home-forest-header .home-account-identity span {overflow:hidden;text-overflow:ellipsis;}
.home-forest-header .home-account-identity i {font-style:normal;}
.home-forest-header .forest-account nav {position:absolute;top:calc(100% + 7px);left:0;z-index:20;min-width:140px;padding:7px;border:1px solid #bca47f;border-radius:10px;background:#fff9ea;box-shadow:0 8px 16px #44260e2b;}
.home-forest-header .forest-account nav a {display:block;padding:8px;color:#55300e;text-decoration:none;}
.home-forest-header .home-account-direct-nav>a.forest-stone {background:linear-gradient(#f5f5ed,#c4cbc4);}
.home-forest-header .home-account-direct-nav>a.forest-invite {border-color:#39721c;background:linear-gradient(#8fca3c,#448e20);box-shadow:inset 0 2px 2px #d5f6a7,0 3px 0 #245d16,0 5px 9px #293c1f30;color:#fff;}
.home-forest-header .home-account-direct-nav form {margin:0;}
.home-forest-header .home-account-direct-nav form button.forest-logout {border-color:#c86459;background:linear-gradient(#ffd3c8,#f3a29b);box-shadow:inset 0 2px 2px #fff3ed,0 3px 0 #ae4f44,0 5px 9px #293c1f30;color:#8c2119;}
.home-forest-header .home-account-direct-nav img,.home-forest-header .home-account-direct-nav svg {width:25px;height:25px;flex:0 0 25px;object-fit:contain;}
.home-forest-header .home-account-direct-nav svg {fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.home-forest-header .forest-invite svg {color:#ffdc48;}
.home-forest-header :is(.forest-brand,.home-account-identity,.home-account-direct-nav>a,.home-account-direct-nav button):hover {filter:brightness(1.06);transform:translateY(-1px);}
.home-forest-header :is(.forest-brand,.home-account-identity,.home-account-direct-nav>a,.home-account-direct-nav button):active {transform:translateY(2px);}
.home-forest-header :is(a,summary,button):focus-visible {outline:3px solid #165fbc;outline-offset:3px;}
@media(max-width:1200px) {.home-page .home-forest-header {padding-right:0;} .home-page .home-forest-header .home-site-header-left,.home-forest-header .home-account-desktop,.home-forest-header .home-account-direct-nav {flex-wrap:wrap;} }
@media(max-width:720px) {.home-page .home-forest-header {padding-top:48px;} .home-page .home-forest-header .home-site-header-left {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;gap:7px;} .home-forest-header .home-account-entry,.home-forest-header .home-account-desktop,.home-forest-header .home-account-direct-nav {display:contents;} .home-forest-header .forest-brand,.home-forest-header .home-account-identity,.home-forest-header .home-account-direct-nav>a,.home-forest-header .home-account-direct-nav form button {width:100%;min-width:0;max-width:none;gap:3px;font-size:11px;padding-inline:3px;} .home-forest-header .forest-brand img,.home-forest-header .home-account-identity img {width:23px;height:23px;flex:0 0 23px;} .home-forest-header .home-account-direct-nav img,.home-forest-header .home-account-direct-nav svg {width:18px;height:18px;flex:0 0 18px;} }
@media(max-width:720px) {.home-forest-header .home-account-direct-nav>a.forest-invite {font-size:10px;gap:2px;} .home-forest-header .forest-invite svg {width:15px;height:15px;flex-basis:15px;} }
@media(prefers-reduced-motion:reduce) {.home-forest-header :is(.forest-brand,.home-account-identity,.home-account-direct-nav>a,.home-account-direct-nav button) {transition:none;} .home-forest-header :is(.forest-brand,.home-account-identity,.home-account-direct-nav>a,.home-account-direct-nav button):is(:hover,:active) {transform:none;} }

/* v2.5.863: independent supplied artwork; text in the profile remains live. */
.home-page .home-forest-header :is(.forest-art-link,.home-account-identity) {position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:auto;max-width:none;height:58px;min-height:44px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;line-height:1;}
.home-page .home-forest-header :is(.forest-art-link,.home-account-identity)::before {content:none;}
.home-page .home-forest-header .forest-art-link img {display:block;width:auto;height:58px;max-width:none;object-fit:contain;}
.home-page .home-forest-header .home-account-identity {width:128px;overflow:hidden;}
.home-page .home-forest-header .home-account-identity .forest-profile-bg {position:absolute;inset:0;width:100%;height:100%;border-radius:0;object-fit:contain;}
.home-page .home-forest-header .home-account-identity .forest-profile-avatar {position:absolute;left:18%;top:31%;width:22px;height:22px;border-radius:50%;object-fit:cover;}
.home-page .home-forest-header .home-account-identity span {position:absolute;left:39%;right:19%;overflow:hidden;color:#663000;font-size:12px;font-weight:900;text-align:center;text-overflow:ellipsis;white-space:nowrap;}
.home-page .home-forest-header :is(.forest-art-link,.home-account-identity):hover {filter:brightness(1.06);transform:translateY(-1px);}
.home-page .home-forest-header :is(.forest-art-link,.home-account-identity):active {transform:translateY(2px);}
@media(max-width:720px) {.home-page .home-forest-header .home-site-header-left {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));} .home-page .home-forest-header :is(.forest-art-link,.home-account-identity) {width:100%;height:56px;} .home-page .home-forest-header .forest-art-link img {width:100%;height:56px;object-fit:contain;} .home-page .home-forest-header .home-account-identity .forest-profile-avatar {width:19px;height:19px;} .home-page .home-forest-header .home-account-identity span {font-size:10px;} }
@media(prefers-reduced-motion:reduce) {.home-page .home-forest-header :is(.forest-art-link,.home-account-identity):is(:hover,:active) {transform:none;}}

/* Desktop: distribute the six existing controls across the hero width. */
@media(min-width:721px) {
  .home-page .home-forest-header {padding-right:0;}
  .home-page .home-forest-header .home-site-header-left {width:100%;justify-content:flex-start;gap:clamp(4px,calc((100vw - 1000px)/5),32px);flex-wrap:nowrap;}
  .home-page .home-forest-header h1 {margin-left:clamp(-2.5px,-0.215vw,-1.39px);}
  .home-forest-header .home-account-entry,.home-forest-header .home-account-desktop,.home-forest-header .home-account-direct-nav,.home-forest-header .home-account-direct-nav form {display:contents;}
  .home-page .home-forest-header :is(.forest-art-link,.home-account-identity),.home-page .home-forest-header .forest-art-link img {height:clamp(58px,9vw,105px);}
  .home-page .home-forest-header .home-account-identity {width:clamp(128px,19.8vw,231px);}
  .home-page .home-forest-header .home-account-identity .forest-profile-avatar {width:clamp(22px,3.4vw,39px);height:clamp(22px,3.4vw,39px);}
  .home-page .home-forest-header .home-account-identity span {font-size:clamp(12px,1.8vw,21px);}
}
/* Keep the fixed sound control clear of the rightmost navigation image. */
@media(min-width:721px) and (max-width:1400px) {.home-page .home-forest-header {padding-top:48px;}}

/* Referral artwork and live label: keep the existing link dimensions. */
.home-page .home-forest-header .forest-referral .forest-referral-size {visibility:hidden;}
.home-page .home-forest-header .forest-referral .forest-referral-bg {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
.home-page .home-forest-header .forest-referral .forest-referral-gift {position:absolute;left:18%;top:31%;width:19%;height:39%;object-fit:contain;}
.home-page .home-forest-header .forest-referral .forest-referral-label {position:absolute;left:39%;right:13%;top:50%;transform:translateY(-50%);color:white;font-size:clamp(12px,1.7vw,20px);font-weight:900;white-space:nowrap;text-align:center;-webkit-text-stroke:.5px #19570a;paint-order:stroke fill;text-shadow:0 2px 2px #174007;}
@media(max-width:720px) {.home-page .home-forest-header .forest-referral .forest-referral-label {font-size:clamp(10px,3.1vw,15px);}}

/* Independent artwork and live text; the existing image reserves its original size. */
.home-page .home-forest-header .forest-art-link:has(.forest-live-bg) .forest-live-size {visibility:hidden;}
.home-page .home-forest-header .forest-art-link .forest-live-bg {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
.home-page .home-forest-header .forest-art-link .forest-live-icon {position:absolute;left:16%;top:29%;width:23%;height:42%;object-fit:contain;}
.home-page .home-forest-header .forest-live-label {position:absolute;left:39%;right:10%;top:50%;transform:translateY(-50%);font-size:clamp(11px,1.45vw,19px);line-height:1;font-weight:900;text-align:center;white-space:nowrap;color:#19344a;}
.home-page .home-forest-header .forest-live-brand {color:white;-webkit-text-stroke:.5px #653010;paint-order:stroke fill;text-shadow:0 1px 1px #462000;}
.home-page .home-forest-header .forest-live-logout {color:#a81813;}
@media(max-width:720px) {.home-page .home-forest-header .forest-live-label {font-size:clamp(9px,2.75vw,13px);}}

/* Unified navigation lettering; preserve layout and source artwork. */
.home-page .home-forest-header :is(.forest-live-label,.forest-referral-label,.home-account-identity span) {color:#fff;font-weight:800;paint-order:stroke fill;-webkit-text-stroke:1px #26313a;text-shadow:0 1px 1px #17251c;}
.home-page .home-forest-header :is(.forest-live-brand,.home-account-identity span) {-webkit-text-stroke-color:#542a0c;text-shadow:0 1px 1px #472006;}
.home-page .home-forest-header .forest-referral-label {-webkit-text-stroke-color:#19540a;text-shadow:0 1px 1px #174007;}
.home-page .home-forest-header .forest-live-logout {-webkit-text-stroke-color:#76130e;text-shadow:0 1px 1px #71130e;}
.home-page .home-forest-header .forest-referral .forest-referral-label {color:#fff;font-weight:800;-webkit-text-stroke:1px #19540a;paint-order:stroke fill;text-shadow:0 1px 1px #174007;}

/* Keep labels inside each board, independent of the artwork frame. */
.home-page .home-forest-header :is(.forest-live-label,.forest-referral .forest-referral-label,.home-account-identity span) {font-family:"PingFang SC","Hiragino Sans GB",sans-serif;font-weight:900;}
.home-page .home-forest-header .forest-live-brand {left:39%;right:15%;font-size:clamp(11px,1.25vw,17px);}
.home-page .home-forest-header .forest-live-records {left:40%;right:15%;font-size:clamp(11px,1.25vw,17px);}
.home-page .home-forest-header .forest-live-admin {left:40%;right:16%;font-size:clamp(11px,1.25vw,17px);}
.home-page .home-forest-header .forest-live-logout {left:40%;right:16%;font-size:clamp(11px,1.25vw,17px);}
@media(max-width:720px) {.home-page .home-forest-header :is(.forest-live-brand,.forest-live-records,.forest-live-admin,.forest-live-logout) {font-size:clamp(9px,2.55vw,12px);}}
@media(min-width:721px) {.home-page .home-forest-header .forest-live-logout {font-size:clamp(11px,1.2vw,16px);}}

/* Records button: smaller book, more room for the live label. */
.home-page .home-forest-header .forest-art-link:has(.forest-live-records) .forest-live-icon {left:17%;width:18.4%;height:33.6%;top:33.2%;}
.home-page .home-forest-header .forest-live-records {left:36%;right:14%;font-size:clamp(11px,1.33vw,18px);font-weight:900;}
@media(max-width:720px) {.home-page .home-forest-header .forest-live-records {font-size:clamp(9px,2.8vw,13px);}}

/* Balance visible artwork, preserving original image proportions. */
@media(min-width:721px) {
 .home-page .home-forest-header .home-account-identity {width:clamp(121.6px,14.63vw,171px);height:clamp(55.1px,6.555vw,77.9px);}
 .home-page .home-forest-header .home-account-identity .forest-profile-avatar {width:clamp(22px,2.65vw,30px);height:clamp(22px,2.65vw,30px);}
 .home-page .home-forest-header .home-account-identity span {font-size:clamp(12px,1.35vw,17px);}
 .home-page .home-forest-header .forest-art-link:has(.forest-live-records), .home-page .home-forest-header .forest-art-link:has(.forest-live-records) .forest-live-size {height:clamp(58px,9.8vw,115px);}
}

/* The account artwork is now a direct link with no menu arrow. */
.home-page .home-forest-header .home-account-identity span {left:39%;right:12%;}
