/* Publisher framing only; the immutable game stylesheet and board remain intact. */
[hidden]{display:none!important}
.nonogra-publisher{display:flow-root}
.nonogra-host .nonogra-loading{visibility:hidden}
.nonogra-publisher .ul-site-header{color:var(--ink);border-color:var(--line);padding-inline:12px}
.nonogra-unavailable{max-width:680px;margin:60px auto;padding:24px;color:var(--ink)}
.nonogra-unavailable a{color:var(--ink);text-decoration:underline}
.nonogra-host .daily-completion-links{margin-top:20px;text-align:left}
.nonogra-host .daily-completion-links h3{font-size:1rem}
body.memorial-presentation #ul-season-decor{display:none}
@media(max-width:350px){
 .nonogra-host .game-intro #helpButton{display:inline-flex}
}
@media(max-width:600px){
 .nonogra-host .game-shell{height:calc(100svh - 67px - env(safe-area-inset-bottom) - var(--nonogra-publisher-height,71px))}
 body.nonogra-host[data-control-mode="precision"] .game-shell{height:calc(100svh - 116px - env(safe-area-inset-bottom) - var(--nonogra-publisher-height,71px))}
 .nonogra-host .orientation-suggestion{top:calc(70px + env(safe-area-inset-top) + var(--nonogra-publisher-height,71px))}
}
/* Anchor the approved floating tools to the game, below the added publisher.
   The immutable game stylesheet and control markup stay unchanged. */
@media(max-height:560px) and (orientation:landscape) and (max-width:950px){
 .nonogra-publisher .ul-site-header{min-height:54px;padding-block:4px;margin-bottom:4px}
 .nonogra-host .game-shell{position:relative;height:calc(100svh - var(--nonogra-publisher-height,71px))}
 .nonogra-host .workspace{height:calc(100svh - 52px - env(safe-area-inset-top) - var(--nonogra-publisher-height,71px))}
 .nonogra-host .mobile-dock{top:auto;max-height:calc(100svh - var(--nonogra-publisher-height,71px) - 60px);overflow-y:auto}
}
