/* 好二熊之家 — the night version of the scene (dark mode, every page): a deep-blue sky with twinkling stars and a
   crescent moon; the bears' grass stays, in moonlight. Pages set html.dark when dark mode is on. */
html.dark::after{content:"";position:fixed;left:0;right:0;top:0;height:62vh;z-index:-3;pointer-events:none;
  background:url(/night-moon.svg) no-repeat right max(4vw,18px) top 54px/118px 118px, url(/night-stars.svg) repeat 0 0/600px 420px;
  -webkit-mask-image:linear-gradient(180deg,#000 0,#000 55%,transparent 100%);mask-image:linear-gradient(180deg,#000 0,#000 55%,transparent 100%)}
@media (max-width:760px){html.dark::after{background-position:right 14px top 18px,0 0;background-size:86px 86px,600px 420px;height:56vh}}
/* inner pages: the cards cover the right side, so the moon rises in the open space of the title bar */
html.dark.inner::after{background-position:left 62% top 34px,0 0;background-size:72px 72px,600px 420px}
@media (max-width:760px){html.dark.inner::after{background-position:left 58% top 30px,0 0;background-size:56px 56px,600px 420px}}
@media (prefers-reduced-motion:reduce){html.dark::after{background-image:url(/night-moon.svg),url(/night-stars.svg)}}
@media print{html.dark::after{display:none}}
/* a faint, soft glow along the horizon, as if the town lights or the last of the dusk were just behind the hill */
html.dark::before{content:"";position:fixed;left:0;right:0;bottom:0;height:72vh;z-index:-3;pointer-events:none;
  background:linear-gradient(0deg,rgba(165,192,240,.34) 0%,rgba(165,192,240,.28) 42%,rgba(150,180,235,.12) 62%,rgba(140,170,230,0) 100%)}
@media print{html.dark::before{display:none}}
