/*
 * GP Digital Polska · v19
 * Directed neon from the current LED frames. Paint only: the existing photos,
 * camera, text, navigation positions and physical screen dimensions stay intact.
 */
:root {
  --gpdp-nav-neon: 125 219 255;
  --gpdp-nav-core: 207 249 255;
}
:root[data-section-active="technologie"] { --gpdp-nav-neon: 103 240 193; --gpdp-nav-core: 200 255 232; }
:root[data-section-active="media"] { --gpdp-nav-neon: 255 173 98; --gpdp-nav-core: 255 237 192; }
:root[data-section-active="wspolpraca"] { --gpdp-nav-neon: 231 153 176; --gpdp-nav-core: 255 225 234; }
:root[data-camera="panorama"] { --gpdp-nav-neon: 148 179 198; --gpdp-nav-core: 213 233 247; }

.screen-hit[data-screen] {
  --gpdp-neon: 79 207 255;
  --gpdp-neon-core: 205 247 255;
  --gpdp-neon-weight: .56;
  --gpdp-neon-stroke: 3px;
  --gpdp-glow-top: 68px;
  --gpdp-glow-right: 55px;
  --gpdp-glow-bottom: 125px;
  --gpdp-glow-left: 35px;
}
.screen-hit[data-screen="marki"] { --gpdp-neon: 108 188 249; --gpdp-neon-core: 210 243 255; }
.screen-hit[data-screen="technologie"] { --gpdp-neon: 84 238 175; --gpdp-neon-core: 199 255 230; }
.screen-hit[data-screen="media"] { --gpdp-neon: 251 158 70; --gpdp-neon-core: 255 236 191; }
.screen-hit[data-screen="wspolpraca"] { --gpdp-neon: 214 121 152; --gpdp-neon-core: 255 226 237; }

.screen-hit[data-screen]:is(:hover,:focus-visible) { --gpdp-neon-weight: .91; }
[data-section-active="start"] .screen-hit[data-screen="start"],
[data-section-active="marki"] .screen-hit[data-screen="marki"],
[data-section-active="technologie"] .screen-hit[data-screen="technologie"],
[data-section-active="media"] .screen-hit[data-screen="media"],
[data-section-active="wspolpraca"] .screen-hit[data-screen="wspolpraca"] { --gpdp-neon-weight: 1; }

/* Three sources grounded in the existing steelwork: rear rail and two short vents.
   The larger pools are behind the billboard and fall off before adjacent elements. */
.screen-hit[data-screen]:not([inert])::before {
  inset: calc(-1 * var(--gpdp-glow-top)) calc(-1 * var(--gpdp-glow-right)) calc(-1 * var(--gpdp-glow-bottom)) calc(-1 * var(--gpdp-glow-left));
  background:
    linear-gradient(90deg, transparent 1%, rgb(var(--gpdp-neon) / .64) 14%, rgb(var(--gpdp-neon-core) / .90) 33% 75%, rgb(var(--gpdp-neon) / .49) 90%, transparent) right calc(var(--gpdp-glow-right) + 32px) bottom calc(var(--gpdp-glow-bottom) - 7px) / 42% 3px no-repeat,
    linear-gradient(180deg, transparent, rgb(var(--gpdp-neon) / .77) 19%, rgb(var(--gpdp-neon-core) / .90) 34% 72%, rgb(var(--gpdp-neon) / .65) 86%, transparent) right calc(var(--gpdp-glow-right) - 13px) center / 3px 26% no-repeat,
    linear-gradient(180deg, transparent, rgb(var(--gpdp-neon-core) / .60) 25% 78%, transparent) left calc(var(--gpdp-glow-left) - 8px) top 26% / 2px 13% no-repeat,
    radial-gradient(ellipse 46% 108px at 62% calc(100% - var(--gpdp-glow-bottom) + 18px), rgb(var(--gpdp-neon) / .55), rgb(var(--gpdp-neon) / .28) 32%, rgb(var(--gpdp-neon) / .095) 69%, transparent),
    radial-gradient(ellipse 23% 53px at 66% calc(100% - var(--gpdp-glow-bottom) + 7px), rgb(var(--gpdp-neon-core) / .38), rgb(var(--gpdp-neon) / .20) 32%, transparent 94%),
    radial-gradient(ellipse 52px 32% at calc(100% - var(--gpdp-glow-right) + 12px) 48%, rgb(var(--gpdp-neon) / .49), rgb(var(--gpdp-neon) / .18) 49%, transparent 95%),
    radial-gradient(ellipse 42px 25% at calc(var(--gpdp-glow-left) - 7px) 35%, rgb(var(--gpdp-neon) / .28), transparent 91%),
    radial-gradient(ellipse 30% 46px at 34% var(--gpdp-glow-top), rgb(var(--gpdp-neon) / .20), transparent 94%);
  opacity: var(--gpdp-neon-weight);
  transition: opacity .32s ease;
}

/* A bright, narrow emitter and optical bloom, under the copy layer. */
:root .screen-hit[data-screen]:not([inert])::after {
  inset: 9px 11px;
  background:
    linear-gradient(90deg, transparent, rgb(var(--gpdp-neon) / .79) 13%, rgb(var(--gpdp-neon-core)) 33% 74%, rgb(var(--gpdp-neon) / .80) 89%, transparent) right 5.2% bottom 0 / 55% var(--gpdp-neon-stroke) no-repeat,
    linear-gradient(90deg, transparent, rgb(var(--gpdp-neon-core) / .93) 28% 71%, transparent) left 13% top 0 / 28% var(--gpdp-neon-stroke) no-repeat,
    radial-gradient(ellipse 37% 42px at 70% 100%, rgb(var(--gpdp-neon) / .58), rgb(var(--gpdp-neon) / .22) 36%, transparent 94%),
    radial-gradient(ellipse 24% 31px at 24% 0, rgb(var(--gpdp-neon) / .36), rgb(var(--gpdp-neon) / .13) 39%, transparent 94%),
    radial-gradient(ellipse 3px 3px at 96% 14px, rgb(var(--gpdp-neon-core)), transparent 100%),
    radial-gradient(ellipse 13px 10px at 96% 14px, rgb(var(--gpdp-neon) / .64), transparent 96%);
  opacity: var(--gpdp-neon-weight);
}

/* Broken highlights keep the existing mask and aspect of the street reflection. */
.puddle-reflection::before,
.puddle-reflection::after {
  background:
    repeating-linear-gradient(3deg, transparent 0 2px, #0307098a 3px 5px, transparent 6px 9px),
    radial-gradient(ellipse 38% 34% at 64% 57%, var(--reflection-color), transparent 89%),
    radial-gradient(ellipse 49% 35% at 41% 47%, var(--reflection-color), transparent 96%);
}
.puddle-reflection::before { --reflection-color: #85d9ff; }
.puddle-reflection::after { --reflection-color: #64d2a7; }
[data-media-slide="media"] .puddle-reflection::before { --reflection-color: #efad62; }
[data-media-slide="wspolpraca"] .puddle-reflection::before { --reflection-color: #d78da7; }
[data-lower-slide="technologie"] .puddle-reflection,
[data-media-slide="media"] .puddle-reflection,
[data-media-slide="wspolpraca"] .puddle-reflection { opacity: .58; }
[data-end] .puddle-reflection { opacity: .31; }

/* The existing navigation follows the active board colour, without moving. */
.floor-nav::before {
  background: linear-gradient(to bottom, #71838b52 0%, rgb(var(--gpdp-nav-neon) / .27) 35% 72%, #71838b52);
}
.floor-nav a[aria-current] { color: rgb(var(--gpdp-nav-core)); }
.floor-nav a[aria-current]::before {
  border-color: rgb(var(--gpdp-nav-core));
  background: rgb(var(--gpdp-nav-neon));
  box-shadow: 0 0 0 2px #0f1822, 0 0 0 3px rgb(var(--gpdp-nav-neon) / .53), 0 0 12px rgb(var(--gpdp-nav-neon) / .83);
}
.floor-nav a:is(:hover,:focus-visible)::before { border-color: rgb(var(--gpdp-nav-core)); }
.main-nav a[aria-current="location"],
.mobile-menu nav a[aria-current="location"] {
  color: rgb(var(--gpdp-nav-core));
  text-shadow: 0 0 7px rgb(var(--gpdp-nav-neon) / .28);
}
.main-nav a[aria-current="location"] { box-shadow: inset 0 -1px rgb(var(--gpdp-nav-neon) / .52); }
.scroll-cue .scroll-mouse, .scroll-cue .scroll-chevron { border-color: rgb(var(--gpdp-nav-core) / .77); }
.scroll-cue .scroll-mouse::before { background: rgb(var(--gpdp-nav-core)); }
.screen-hit .screen-action:is(:hover,:focus-visible) {
  border-color: rgb(var(--gpdp-neon-core) / .85);
  box-shadow: inset 0 0 8px rgb(var(--gpdp-neon) / .15), 0 0 13px rgb(var(--gpdp-neon) / .26);
}
.screen-hit :is(.screen-action,.screen-jump) .arrow-icon { color: rgb(var(--gpdp-neon-core) / .83); }

/* Light-only dip and recovery. No blinking on panels, text or controls. */
@keyframes gpdp-neon-tube {
  0%, 2.4%, 9.5%, 100% { opacity: var(--gpdp-neon-weight); }
  4.2% { opacity: calc(var(--gpdp-neon-weight) * .59); }
}
@keyframes gpdp-neon-spill {
  0%, 2.4%, 11%, 100% { opacity: var(--gpdp-neon-weight); }
  4.7% { opacity: calc(var(--gpdp-neon-weight) * .79); }
}
@media (prefers-reduced-motion: no-preference) {
  :root .screen-hit[data-screen]:not([inert])::after { animation-name: gpdp-neon-tube; }
  .screen-hit[data-screen]:not([inert])::before { animation-name: gpdp-neon-spill; }
}
@media (max-width: 720px) {
  .screen-hit[data-screen] {
    --gpdp-neon-stroke: 4px;
    --gpdp-glow-top: 45px;
    --gpdp-glow-right: 35px;
    --gpdp-glow-bottom: 90px;
    --gpdp-glow-left: 24px;
  }
  .screen-hit[data-screen]:not([inert])::before {
    inset: calc(-1 * var(--gpdp-glow-top)) calc(-1 * var(--gpdp-glow-right)) calc(-1 * var(--gpdp-glow-bottom)) calc(-1 * var(--gpdp-glow-left));
  }
}
@media (prefers-reduced-motion: reduce) {
  .screen-hit[data-screen]:not([inert])::before,
  :root .screen-hit[data-screen]:not([inert])::after,
  .floor-nav a::before, .main-nav a, .puddle-reflection { transition: none; }
}
