#naruka-bookshop-immersive .bk-counter-art,
#naruka-bookshop-immersive .bk-counter-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#naruka-bookshop-immersive .bk-counter-art img { object-fit: cover; }

#naruka-bookshop-immersive .bk-still {
  /* The original illustration has the same offset in the animated scene. */
  transform: translateY(calc(14px * var(--scene-scale)));
}

#naruka-bookshop-immersive .bk-view-controls {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
#naruka-bookshop-immersive .bk-view-controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #e4d4b07d;
  border-radius: 4px;
  background: #211a17ed;
  color: #fff1d6;
  font-size: .875rem;
  text-decoration: none;
  white-space: nowrap;
}
#naruka-bookshop-immersive .bk-view-controls a:hover { background: #543e2a; }
#naruka-bookshop-immersive .bk-view-controls a:focus-visible {
  outline: 2px solid #ffe2a4;
  outline-offset: 2px;
}
@media (max-width: 700px) and (orientation: portrait) {
  #naruka-bookshop-immersive .bk-view-controls {
    top: auto;
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 80px));
    left: max(8px, env(safe-area-inset-left));
    transform: none;
  }
  #naruka-bookshop-immersive .bk-magazine-copy {
    left: 70%;
    top: 87%;
  }
  body:has(#naruka-bookshop-immersive) > .street-postal-entry {
    left: auto;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 80px));
    max-width: none;
  }
  #naruka-bookshop-immersive .bk-shelves {
    top: max(8px, env(safe-area-inset-top));
    bottom: auto;
  }
  #naruka-bookshop-immersive .bk-dialogue:not([data-scene="true"]) {
    top: max(7px, env(safe-area-inset-top));
    bottom: auto;
  }
  #naruka-bookshop-immersive .bk-dialogue:not([data-scene="true"]) .bk-dialogue-content {
    max-height: var(--bk-dialogue-space, 36dvh);
    overflow-y: auto;
  }
  #naruka-bookshop-immersive .bk-dialogue .bk-requests,
  #naruka-bookshop-immersive .bk-dialogue:not([data-scene="true"]) .bk-talk-choices:has(> button:nth-child(3):last-child) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
  }
}
