/* Fi Studios page: the spotlight tour (assets/js/studios-spotlight.js), on the page's own comic paper with red halftone dots */

/* each section in the tour */
.spot{position:relative;transition:filter .5s ease,opacity .5s ease,transform .5s ease;transform-origin:50% 50%}
/* resting state is full colour: a section away from the middle of the screen keeps its colour, with at most a very slight dim;
   the section in the middle (and anything hovered or focused) glows brighter instead */
.spot:not(.is-on){filter:saturate(.94)}
.spot.is-on{z-index:2}
.spot-ring{position:absolute;inset:-10px;pointer-events:none;border:3px solid var(--neon);border-radius:4px;
  box-shadow:0 0 0 2px var(--fs-ink,#111),inset 0 0 0 1px var(--fs-ink,#111),0 0 28px 8px color-mix(in srgb,var(--neon) 75%,transparent);opacity:0;transition:opacity .5s ease;z-index:3}   /* ink outline keeps the neon crisp on cream */
.spot.is-on .spot-ring{opacity:1}
/* the sign: tilted yellow comic sign at the top right, gently bobbing */
.spot-sign{position:absolute;top:-24px;right:6px;z-index:4;pointer-events:none;background:#FFE500;color:var(--fs-ink,#111);border:3px solid var(--fs-ink,#111);box-shadow:4px 4px 0 var(--fs-ink,#111);
  font-size:18px;letter-spacing:.06em;line-height:1.1;padding:4px 10px;max-width:calc(100% - 12px);text-align:center;
  transform:rotate(3deg);opacity:0;transition:opacity .4s ease}
.spot.is-on .spot-sign{opacity:1;animation:spot-bob 1.8s ease-in-out infinite}
@keyframes spot-bob{0%,100%{transform:rotate(3deg) translateY(0)}50%{transform:rotate(3deg) translateY(-6px)}}
/* the teaser's figure gets room for its ring */
.spot.hero-media{padding:6px}
@media(prefers-reduced-motion:reduce){
  .spot,.spot-ring,.spot-sign{transition:none}
  .spot.is-on .spot-sign{animation:none}
}
@media(max-width:420px){.spot-sign{font-size:16px;top:-22px}}
/* text on light chips inside the page keeps its dark ink */
.spot-tour .tag,.spot-tour .tag span,.spot-tour .bubble,.spot-tour .world{color:var(--fs-ink,#111)}

/* never dim what the visitor is using: hover, keyboard focus, tap, a playing video */
.spot.is-lit:not(.is-on),.spot.is-focus:not(.is-on),.spot.is-playing:not(.is-on){filter:none;opacity:1;transform:none}
.spot.is-lit .spot-ring,.spot.is-focus .spot-ring,.spot.is-playing .spot-ring{opacity:1}
.spot.is-lit,.spot.is-focus,.spot.is-playing{z-index:2}
/* desktop hero row: the game panel holds the light and its sign pulses gently */
.spot-hero-row .hero-text.is-on .spot-sign{animation:spot-pulse 1.6s ease-in-out infinite}
@keyframes spot-pulse{0%,100%{transform:rotate(3deg) scale(1);box-shadow:4px 4px 0 var(--fs-ink,#111),0 0 0 rgba(255,229,0,0)}50%{transform:rotate(3deg) scale(1.07);box-shadow:4px 4px 0 var(--fs-ink,#111),0 0 18px rgba(255,229,0,.65)}}
@media(prefers-reduced-motion:reduce){.spot-hero-row .hero-text.is-on .spot-sign{animation:none}}
/* desktop hero row: the teaser's sign reads WATCH 40 SECONDS while it is hovered or playing */
.spot-sign .s-alt{display:none}
.spot-hero-row .hero-media .spot-sign .s-main{display:none}
.spot-hero-row .hero-media .spot-sign .s-alt{display:inline}
.spot-hero-row .hero-media.is-lit .spot-sign,.spot-hero-row .hero-media.is-playing .spot-sign{opacity:1;animation:spot-bob 1.8s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.spot-hero-row .hero-media.is-lit .spot-sign,.spot-hero-row .hero-media.is-playing .spot-sign{animation:none}}

/* the teaser: rests at full brightness with no ring or glow; cyan ring, glow and its sign only on hover, tap or while playing */
.spot-tour .hero-media.spot:not(.is-on){filter:none;opacity:1;transform:none}
.spot-tour .hero-media .spot-sign .s-main{display:none}
.spot-tour .hero-media .spot-sign .s-alt{display:inline}
.spot-tour .hero-media.is-lit .spot-sign,.spot-tour .hero-media.is-playing .spot-sign{opacity:1;animation:spot-bob 1.8s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.spot-tour .hero-media.is-lit .spot-sign,.spot-tour .hero-media.is-playing .spot-sign{animation:none}}
