/* Orientation cues stay outside the scrolling content and never capture gestures. */
.scroll-cue, .swipe-hint {
  color: #66fca0; font-family: var(--font); border: 0;
  background: linear-gradient(135deg, #e5fff21c, #112c321f);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.scroll-cue[hidden], .swipe-hint[hidden] { display: none; }
.scroll-cue {
  position: fixed; z-index: 101;
  right: max(16px, calc((100vw - 1224px) / 2));
  bottom: calc(var(--dial-height) - var(--dial-drop) + var(--safe-bottom) + 20px);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 10px;
  border-radius: 50%; background: #66fca0; color: #082b1d;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 4px 20px #04180f33,0 0 22px #66fca040; cursor: pointer;
  transition: box-shadow .2s ease,background .2s ease;
}
.scroll-cue svg { width: 18px; height: 24px; animation: cue-down 2.2s ease-in-out infinite; }
.scroll-cue:focus-visible { outline: 2px solid #c8ffdc; outline-offset: 4px; box-shadow: 0 0 28px #66fca080; }
@media (hover:hover) and (pointer:fine) {
  .scroll-cue:hover { background: #85ffb4; box-shadow: 0 0 28px #66fca080; }
}
.is-sliding .scroll-cue { visibility: hidden; }
.swipe-hint {
  position: fixed; z-index: 120; inset: 0; transform: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100dvh; padding: 24px 24px calc(24px + 8dvh); text-align: center;
  border: 0; border-radius: 0; box-shadow: none; pointer-events: none;
  /* A light glass veil spans the viewport; a second, feathered layer
     makes the instruction's center softer without a visible panel edge. */
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.swipe-hint::before,.swipe-hint::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%,#07191f26 0%,#07191f14 52%,#07191f08 100%);
  backdrop-filter: blur(3px) saturate(110%); -webkit-backdrop-filter: blur(3px) saturate(110%);
  animation: cue-appear .45s ease-out both;
}
.swipe-hint::after {
  background: #d8fff005; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  mask-image: radial-gradient(ellipse 78vw 70dvh at 50% 46%,#000c 0%,#000b 16%,#0006 48%,#0002 76%,transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78vw 70dvh at 50% 46%,#000c 0%,#000b 16%,#0006 48%,#0002 76%,transparent 100%);
}
.swipe-hint .gesture-track,.swipe-hint p { animation: cue-appear .45s ease-out both; }
.swipe-hint .gesture-track { display: flex; justify-content: center; align-items: center; gap: 27px; position: relative; z-index: 1; color: #66fca0; }
.swipe-hint .gesture-track > svg { width: 19px; height: 19px; opacity: .65; }
.swipe-hint .gesture-track .gesture-hand { width: 42px; height: 46px; opacity: 1; animation: cue-swipe 2.1s ease-in-out infinite; filter: drop-shadow(0 0 12px #66fca035); }
.swipe-hint p { position: relative; z-index: 1; margin: 17px 0 0; color: #66fca0; font-size: clamp(17px,2.1vw,22px); line-height: 1.5; font-weight: 400; text-shadow: 0 0 18px #66fca030; }
.swipe-hint small { position: relative; z-index: 1; display: block; margin-top: 4px; color: #c4d8dc; font-size: 13px; font-weight: 400; }
.view .portrait { padding: 0; border: 0; background: transparent; clip-path: none; overflow: hidden; aspect-ratio: 1; border-radius: 12px; transform: perspective(900px) rotateX(var(--portrait-x, 0deg)) rotateY(var(--portrait-y, 0deg)); transition: transform .35s ease-out,box-shadow .24s ease; }
.view .portrait::before, .view .portrait::after { display: none; }
.portrait > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.portrait.is-tilting { transition: transform .08s linear,box-shadow .24s ease; }
@media (min-width: 960px) { .scroll-cue, .swipe-hint { --text-scale: 1; } }
@keyframes cue-down { 0%, 100% { transform: translateY(-2px); opacity: .9; } 50% { transform: translateY(3px); opacity: 1; } }
@keyframes cue-swipe { 0%, 100% { transform: translateX(-12px) rotate(-8deg); } 50% { transform: translateX(12px) rotate(8deg); } }
@keyframes cue-appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg, .swipe-hint::before, .swipe-hint::after, .swipe-hint .gesture-track, .swipe-hint p, .swipe-hint .gesture-track .gesture-hand { animation: none; }
  .scroll-cue { transition: none; }
  .view .portrait { transform: none; transition: none; }
}
