/* Glimmer's Lanterns: painted lanterns hanging in a dusk garden, Glimmer flying between them. A lantern is dim until it is lit. */
.og-glimmer-lanterns #play { background-image: url("art/play.webp"); }
.og-glimmer-lanterns .og-end { background-image: url("art/play.webp"); }
.gl-stage { position: relative; width: min(100%, 520px, max(250px, calc((100svh - 330px) * .72))); margin: 0 auto; padding: 46px 0 6px; }
.gl-grid { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 4px 6px; }
.gl-lan { --glow: #FFD45A; appearance: none; -webkit-appearance: none; position: relative; padding: 0; border: 0; background: transparent; cursor: pointer; aspect-ratio: .8; min-height: 44px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.gl-lan img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; transform-origin: 50% 0; filter: brightness(.66) saturate(.8) drop-shadow(0 4px 4px rgba(20, 16, 50, .4)); transition: filter .15s; }
.gl-lan.is-lit img { filter: brightness(1.18) saturate(1.15) drop-shadow(0 0 12px var(--glow)) drop-shadow(0 0 26px var(--glow)); animation: glSwing .9s ease-in-out; }
.gl-lan.is-dim img { animation: glWob .5s ease-in-out; }
.gl-lan.is-hint::after { content: ""; position: absolute; inset: 2% 6%; border-radius: 40%; border: 3px dashed #FFF6C8; opacity: .85; animation: glHint 1.6s ease-in-out infinite; pointer-events: none; }
.gl-grid.is-busy .gl-lan { cursor: default; }
.gl-fly { position: absolute; left: 0; top: 0; width: 62px; height: auto; z-index: 30; pointer-events: none; transition: transform .5s cubic-bezier(.4, 0, .3, 1); filter: drop-shadow(0 0 10px rgba(255, 224, 120, .8)); }
.gl-act { margin-top: 14px; }
.og-glimmer-lanterns .og-bubble--plain { display: block; width: fit-content; margin: 0 auto 4px; }
@keyframes glSwing { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(5deg); } 70% { transform: rotate(-4deg); } }
@keyframes glWob { 0%, 100% { transform: none; } 25% { transform: translateX(-4px) rotate(-3deg); } 75% { transform: translateX(4px) rotate(3deg); } }
@keyframes glHint { 50% { opacity: .25; } }
@media (max-height: 520px) and (orientation: landscape) {
  #play { display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: 6px 18px; align-items: start; }
  #play > .og-hud, #play > .og-bubble { grid-column: 1; margin-left: 0; }
  #play > .gl-stage { grid-column: 2; grid-row: 1 / span 3; width: min(100%, 330px, calc((100svh - 110px) * .8)); padding-top: 34px; }
  #play > .gl-act { grid-column: 1; justify-content: flex-start; margin-top: 2px; }
  .gl-fly { width: 44px; }
  #play[hidden] { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-lan.is-lit img, .gl-lan.is-dim img { animation: none; }
  .gl-lan.is-dim { outline: 3px dotted #FFF6C8; outline-offset: -4px; }
  .gl-lan.is-hint::after { animation: none; }
}
