/* Home: one canvas size for both guests and registered players. */
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] {
 top:29.5%!important;right:3.2%!important;width:27.5%!important;height:57%!important;
}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > .panel-content:is(.panel-welcome,.auth-form,.guest-warning) {
 inset:14% 19% 13% 20%!important;box-sizing:border-box!important;width:auto!important;height:auto!important;
 min-width:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0 3px!important;
 display:flex!important;flex-direction:column!important;gap:10px!important;overflow-x:hidden!important;overflow-y:auto!important;
 background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > .panel-content:is(.panel-welcome,.auth-form,.guest-warning) :is(.panel-actions,label,input,select,button) {
 box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > .panel-content:is(.panel-welcome,.auth-form,.guest-warning) :is(.panel-actions,button,input:not([type=checkbox]),select) {width:100%!important;}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > .panel-content:is(.panel-welcome,.auth-form,.guest-warning) button {
 position:static!important;transform:none!important;flex-shrink:0!important;white-space:normal!important;
 height:auto!important;min-height:32px!important;padding:9px 5px!important;line-height:1.3!important;font-size:13px!important;letter-spacing:.03em!important;
}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > form.auth-form label {display:flex!important;flex-direction:column!important;gap:4px!important;margin:0!important;font-size:13px!important;line-height:1.35!important;letter-spacing:normal!important;text-transform:none!important;}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > form.auth-form :is(input:not([type=checkbox]),select) {font:14px/1.25 Georgia,serif!important;min-height:32px!important;height:32px!important;padding:6px 8px!important;background:#f0ddbb!important;color:#26190f!important;opacity:1!important;}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > form.auth-form h2 {font-size:20px!important;line-height:1.2!important;margin:0 0 4px!important;}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > form.auth-form .np-registration-fields {display:grid;grid-template-columns:1fr 1fr;gap:8px;border:0;padding:0;margin:0;flex-shrink:0;}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > form.auth-form .np-registration-fields legend {display:none;}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > form.auth-form .np-registration-fields>label:nth-of-type(1) {grid-column:1;grid-row:1;}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > form.auth-form .np-registration-fields>label:nth-of-type(2) {grid-column:2;grid-row:1;}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > form.auth-form .np-registration-fields :is(p,small,.np-consent) {grid-column:1/-1;font-size:11px!important;line-height:1.4!important;letter-spacing:normal!important;text-transform:none!important;}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > form.auth-form label.np-consent {flex-direction:row!important;gap:8px!important;align-items:flex-start!important;}
/* Footer uses natural-width controls; legal links belong to its welcome area. */
/* Authentication focuses the existing canvas, not a scaled camera or a second panel. */
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > .panel-content.auth-form {gap:7px!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form h2 {font-size:23px!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open :is(.main-menu,.shop-orb,.friends-orb,.season-orb,.logo-anchor) {visibility:hidden!important;pointer-events:none!important;}
body:has(.game-home.is-auth-open) > .np-shop-gateway, .game-home.is-auth-open .np-classic-layers {visibility:hidden!important;pointer-events:none!important;}
html body #root .game-home.is-auth-open .np-challenges-home-entry {display:none!important;}
html[data-home-theme="classic"] body #root .game-home .account-parchment .panel-welcome .panel-heading span {color:#ffe7bb!important;text-shadow:0 1px 3px #100800!important;line-height:1.4!important;}
html body #root .game-home .home-footer {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px 12px!important;padding:10px 16px!important;height:auto!important;min-height:62px!important;box-sizing:border-box!important;}
html body #root .game-home .home-footer > * {position:static!important;transform:none!important;min-width:0!important;flex-shrink:0;}
html body #root .game-home .home-footer .home-footer-welcome {flex:1 1 260px!important;gap:3px!important;padding:0!important;}
html body #root .game-home .home-footer .np-legal-links {display:flex!important;flex-wrap:wrap!important;gap:3px!important;font-size:11px!important;line-height:1.4!important;letter-spacing:normal!important;}
html body #root .game-home .home-footer .home-dev-tools {display:flex!important;flex-wrap:wrap!important;gap:5px!important;margin:0!important;}
html body #root .game-home .home-footer > nav {display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:0!important;}
html body #root .game-home .home-footer :is(button,a) {white-space:normal!important;}
.home-footer .np-footer-community .np-community-launch {position:static;transform:none;margin:0;padding:8px 14px;font-size:13px;}
.np-community-dialog [hidden],.np-community-launch[hidden] {display:none!important;}
.np-community-dialog .np-chat-author {font-weight:bold;font-size:16px;padding:0;background:transparent;border:0;text-decoration:underline;text-decoration-color:#80613a;text-underline-offset:3px;}
.np-community-dialog .np-chat-author:hover {color:#ffdc8c;}
.np-moderation-dialog {width:min(480px,94vw);}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > form.auth-form .np-registration-fields :is(p,small,.np-consent) {font-size:13px!important;color:#fff0cc!important;text-shadow:0 1px 3px #120900,0 0 4px #120900!important;}
.np-community-dialog button:focus-visible,.np-profile-write:focus-visible {outline:2px solid #ffdf91;outline-offset:3px;}
.np-profile-write,.np-profile-settings,.np-friend-write {background:#624022;color:#ffe4b0;border:1px solid #ac8044;padding:9px 12px;cursor:pointer;font:600 14px Georgia,serif;border-radius:4px;}
.profile-view-header {flex-wrap:wrap;gap:8px;}
.friends-panel .friend-section article>div:last-child,.np-social-actions {flex-wrap:wrap;gap:6px;}
@media(min-width:761px) and (max-width:1100px) {
 html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] {top:31%!important;right:2%!important;width:34%!important;height:54%!important;}
}
@media(max-width:760px) {
 html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] {top:auto!important;right:1%!important;bottom:23%!important;width:59%!important;height:43%!important;}
 html body #root .game-home .home-footer {padding:7px 10px!important;gap:5px 8px!important;}
 html body #root .game-home .home-footer .home-footer-welcome {flex-basis:180px!important;}
}
@media(max-width:760px) and (orientation:portrait) {
 body:has(.game-home.is-auth-open)::before {display:none!important;content:none!important;}
}
/* v4.6: keep the native animated camera; size text in the zoomed canvas. */
html body #root .game-home {--np-auth-zoom:1.78;}
@media(max-aspect-ratio:4/3),(max-width:760px){html body #root .game-home {--np-auth-zoom:1.06;}}
html[data-home-theme="classic"] body #root .game-home .account-parchment.account-parchment[aria-label] > .panel-content.panel-welcome {justify-content:center!important;text-align:center!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form {gap:calc(9px / var(--np-auth-zoom))!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form h2 {font-size:calc(23px / var(--np-auth-zoom))!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form :is(label,p,small,.np-consent) {font-size:calc(14px / var(--np-auth-zoom))!important;line-height:1.4!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form :is(input:not([type=checkbox]),select,button) {font-size:calc(14px / var(--np-auth-zoom))!important;min-height:calc(36px / var(--np-auth-zoom))!important;height:auto!important;padding:calc(8px / var(--np-auth-zoom))!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form .np-registration-fields :is(p,small,.np-consent) {font-size:calc(13px / var(--np-auth-zoom))!important;}
html body #root .game-home .home-footer {gap:8px!important;padding:10px 14px!important;border-top:1px solid #9e773f!important;background:linear-gradient(180deg,#271b13,#120d09)!important;box-shadow:0 -5px 24px #0007!important;}
html body #root .game-home .home-footer .home-footer-welcome {flex:1 1 210px!important;}
html body #root .game-home .home-footer button {display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;min-width:78px!important;height:auto!important;padding:10px 13px!important;border:1px solid #73532e!important;border-radius:5px!important;background:linear-gradient(#3b291a,#25190f)!important;color:#f4dfb7!important;cursor:pointer!important;pointer-events:auto!important;font-size:13px!important;line-height:1.25!important;box-sizing:border-box!important;}
html body #root .game-home .home-footer button:hover {border-color:#d4a558!important;background:linear-gradient(#553b23,#322213)!important;color:#fff1ce!important;}
html body #root .game-home .home-footer button:focus-visible {outline:2px solid #efd19a!important;outline-offset:2px!important;}
html body #root .game-home .home-footer button[hidden] {display:none!important;}
html body #root .game-home .home-footer .home-dev-tools {margin-left:auto!important;}
/* v4.7: invisible hit areas in the footer; contrast on the original parchment. */
html body #root .game-home .home-footer button,
html body #root .game-home .home-footer button:hover {
 background:transparent!important;border-color:transparent!important;box-shadow:none!important;
}
html body #root .game-home .home-footer button {color:#cfb88c!important;transition:color .16s ease,text-shadow .16s ease!important;}
html body #root .game-home .home-footer button:hover,
html body #root .game-home .home-footer button:focus-visible {color:#fff0c8!important;text-shadow:0 0 12px #e5ac5870!important;}
/* The camera's dimming pseudo-element belongs behind the canvas, not over its form. */
html[data-home-theme="classic"] body #root .game-home.is-auth-open .home-design-stage {z-index:2!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form {color:#fff0cd!important;opacity:1!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form h2 {color:#ffe4a2!important;letter-spacing:.12em!important;text-shadow:0 2px 3px #160c05,0 0 16px #d59b3540!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form label {color:#fff0cc!important;text-shadow:0 1px 3px #160b02!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form :is(input:not([type=checkbox]),select) {background:#fff0cd!important;color:#2c1a0e!important;border:1px solid #b68b49!important;border-radius:4px!important;box-shadow:inset 0 1px 3px #6f461a20!important;text-shadow:none!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form :is(input,select):focus-visible {outline:2px solid #ffd789!important;outline-offset:2px!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form button[type=submit] {background:linear-gradient(#b88642,#805023)!important;border:1px solid #edc277!important;color:#fff8df!important;text-shadow:0 1px 2px #45260e!important;box-shadow:0 3px 10px #160a0560,inset 0 1px #ffe0a570!important;border-radius:4px!important;}
html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] > form.auth-form button[type=submit]:hover {background:linear-gradient(#c99a54,#95612c)!important;}
@media(min-width:761px) and (max-width:1100px){
 html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] {right:5%!important;top:18%!important;height:72%!important;}
}
@media(max-width:760px) and (orientation:portrait){
 html[data-home-theme="classic"] body #root .game-home.is-auth-open .account-parchment.account-parchment[aria-label] {left:50%!important;right:auto!important;top:4%!important;bottom:auto!important;margin:0!important;width:140vw!important;height:90%!important;transform:translateX(-50%)!important;}
}
