* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #f7f3ea; color: #34434a; font-family: "Songti SC", "Noto Serif SC", "Microsoft YaHei", serif; }
.scene { position: relative; width: 100%; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
/* Image and hit area share one coordinate plane, including when the image crops. */
.scene-plane { position: absolute; left: 50%; top: 50%; width: max(100vw, 177.6833vh); width: max(100vw, 177.6833svh); aspect-ratio: 1672 / 941; transform: translate(-50%, -50%); }
.scene-plane img { display: block; width: 100%; height: 100%; }
.hotspot { position: absolute; display: block; border-radius: 45%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.creation .hotspot { left: 39%; top: 53%; width: 38%; height: 28%; }
.poetry .hotspot { left: 44%; top: 64%; width: 23%; height: 20%; transform: rotate(-13deg); }
.glimmer { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border: 1px solid rgba(255,253,239,.9); border-radius: 50%; background: rgba(255,253,239,.3); box-shadow: 0 0 16px rgba(255,253,239,.5); transform: translate(-50%, -50%); transition: box-shadow .3s, background .3s; }
.hotspot:hover .glimmer, .hotspot:focus-visible .glimmer { background: #fffbed; box-shadow: 0 0 0 8px #fffbed25, 0 0 26px #fffbed; }
.hotspot:focus-visible { outline: 2px solid #fffbed; outline-offset: 5px; background: #fffbed12; }
.back, .hint { position: absolute; z-index: 2; text-decoration: none; color: inherit; background: rgba(255,253,247,.87); backdrop-filter: blur(8px); border: 1px solid rgba(255,253,247,.45); box-shadow: 0 3px 18px #25383c12; }
.back { top: max(24px, env(safe-area-inset-top)); left: max(24px, env(safe-area-inset-left)); padding: 11px 17px; border-radius: 24px; font-size: 13px; letter-spacing: .08em; }
.hint { bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 13px 22px; border-radius: 26px; font-size: 14px; letter-spacing: .08em; white-space: nowrap; }
.hint span { margin-left: 12px; color: #617d83; }
.back:hover, .hint:hover { background: #fffdf7; }
.back:focus-visible, .hint:focus-visible { outline: 3px solid #527e91; outline-offset: 4px; }
@media (max-aspect-ratio: 1/1) {
  .scene-plane { left: 50%; transform: translate(-56%, -50%); }
  .back { top: max(18px, env(safe-area-inset-top)); left: 18px; }
  .hint { font-size: 12px; padding: 12px 16px; max-width: calc(100% - 24px); white-space: normal; text-align: center; width: max-content; }
}
@media (prefers-reduced-motion: reduce) { .glimmer { transition: none; } }
