/* Initial human gesture for browsers that disallow cold-start Web Audio. No GOLD changes. */
#gweb-entrance-library{color:#a5f0c8;font-size:14px;text-underline-offset:3px}
.gweb-play #menu,.gweb-play #recommend .book,.gweb-play #finish [data-t="another"]{display:none!important}

/* PLAY first paint: keep the footer below the viewport while HAME and the
   selected chapter initialize. No GOLD camera, scene, or audio behavior changes. */
.gweb-play #main{
  position:relative;
  min-height:calc(100vh - var(--gweb-site-nav-height,60px) + 2rem);
  min-height:calc(100svh - var(--gweb-site-nav-height,60px) + 2rem);
}
/* Loading/recovery notices are overlays, so hiding them cannot shift the game. */
.gweb-play #gweb-load-status,
.gweb-play #gweb-load-recovery{
  position:absolute;
  inset-inline-start:0;
  z-index:2;
  margin:0;
}
.gweb-play #gweb-load-status{top:0}
.gweb-play #gweb-load-recovery{top:3.75rem}

/* GOLD character emphasis only: the stationary ghost outline never blinks.
   Full cycle 1.27s, gold visible 0.635s, absent 0.635s. */
.gweb-play #game:not(.is-reading) .char.active:not(.space){
  animation:gweb-gold-character-blink 1.27s steps(1,end) infinite;
}
.gweb-play #game:not(.is-reading) .char.space.active{
  animation:gweb-gold-space-blink 1.27s steps(1,end) infinite;
}
@keyframes gweb-gold-character-blink{
  0%,49.999%{background-color:#fee6a7;color:#102a24;outline-color:#fee6a7}
  50%,100%{background-color:transparent;color:#d7e9e2;outline-color:transparent}
}
@keyframes gweb-gold-space-blink{
  0%,49.999%{background-color:#f9d89137;outline-color:#ffdda0;box-shadow:inset 0 -3px 0 #ffdda0}
  50%,100%{background-color:transparent;outline-color:transparent;box-shadow:none}
}
/* Corridor spaces have separate GOLD !important styling. Fade only their gold
   decoration, without hiding the glyph or modifying the static ghost. */
.gweb-play #game:not(.is-reading) .corridor-glyph.space.active{
  animation:gweb-gold-corridor-space-blink 1.27s steps(1,end) infinite;
}
@keyframes gweb-gold-corridor-space-blink{
  0%,49.999%{background:#f9d8913d;outline:1px solid #ffdda0;box-shadow:inset 0 -2px 0 #ffdda0}
  50%,100%{background:transparent;outline:1px solid transparent;box-shadow:none}
}
.gweb-play.gweb-cursor-typing #game:not(.is-reading) .corridor-glyph.space.active{animation:none!important}
/* Every typed key keeps the GOLD active letter solid until typing pauses. */
.gweb-play.gweb-cursor-typing #game:not(.is-reading) .char.active{animation:none!important}
@media(prefers-reduced-motion:reduce){
  .gweb-play #game:not(.is-reading) .char.active{animation:none!important}
}
