/* ==========================================================
   NIGHTSHIFT HOMEPAGE — CLEAN RUNWAY MASTER
   2026-09-28
   ========================================================== */

:root {
  color-scheme: dark;
  --gold: #ffc653;
  --green: #87ff51;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #f0f3fa;
  background: #040c16;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 0;
  background: #040c16;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #fff0b2;
  outline-offset: 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* ==========================================================
   PAGE + SCENE
   ========================================================== */

.page-frame {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: clip;
}

.ns-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  overflow: hidden;

  background:
    #040c16
    url("assets/nightshift-scene-floor-clean-v5-20260928.png")
    center top / 100% 100%
    no-repeat;
}

/* subtiele donkere filmische balans links */
.ns-atmosphere::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(1, 5, 10, .29) 0%,
      rgba(2, 7, 13, .20) 13%,
      rgba(3, 9, 16, .07) 27%,
      transparent 39%
    );
}


/* ==========================================================
   STARS
   ========================================================== */

.ns-stars {
  position: absolute;
  inset: 0;
}

.ns-stars::before {
  content: "";
  position: absolute;

  left: 16%;
  top: 20%;

  width: 2px;
  height: 2px;

  border-radius: 50%;
  background: #ffdb7e;

  box-shadow:
    3vw 13vh 4px #ffcb5a,
    27vw 2vh 3px #e9b140,
    56vw 18vh 3px #f1c658,
    72vw -8vh 4px #ffc976,
    7vw 62vh 3px #ffc35d,
    60vw 50vh 4px #eaa142;

  animation: ns-star-breathe 7s ease-in-out infinite alternate;
}

.ns-stars--near {
  opacity: .72;
}

.ns-stars--far {
  opacity: .24;
  transform: translate(7%, -6%);
}

.ns-stars--far::before {
  animation-delay: -4s;
}


/* ==========================================================
   HEADER SHELL
   navigatie zelf wordt centraal beheerd door nightshift-shell.css
   ========================================================== */

.arcade-header {
  position: relative;
  height: 12.5svh;
  min-height: 88px;
}


/* ==========================================================
   HERO
   ========================================================== */

.nightshift-home {
  position: relative;
  height: 81.7svh;
  min-height: 535px;
}

.ns-hero {
  position: absolute;

  left: 17.5%;
  top: 13.4svh;

  width: 46.2%;
}


/* PLAYER DETECTED */

.ns-detected {
  display: flex;
  align-items: center;

  gap: 0;

  margin:
    0
    0
    calc(4.6svh + 8px)
    12px;

  color: #ffe097;

  font-size:
    clamp(12px, 1.1vw, 20px);

  font-weight: 700;
  line-height: 1;

  white-space: nowrap;

  text-shadow:
    0 0 7px rgba(255, 163, 32, .23);
}

.ns-detected i {
  display: block;

  width: 9px;
  height: 9px;

  margin-left: 6px;
  margin-right: 14px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: #77ff36;

  box-shadow:
    0 0 5px #75ff31,
    0 0 14px rgba(121, 255, 56, .47);

  animation:
    ns-detected-pulse 1.35s ease-in-out infinite;
}


/* ==========================================================
   NIGHTSHIFT WORDMARK
   ========================================================== */

.ns-title {
  margin: 0 0 0 7px;
  padding: 0;

  width: 76%;
  line-height: 0;
}

.ns-title img {
  display: block;

  width: 100%;
  height: auto;

  filter:
    drop-shadow(0 0 5px rgba(255,255,255,.16))
    drop-shadow(3px 6px 10px rgba(255,156,38,.28));
}


/* rail onder NIGHTSHIFT */

.ns-title-rail {
  position: relative;

  width: 64%;
  height: 3px;

  margin:
    10px
    0
    5.15svh
    6px;

  background:
    linear-gradient(
      90deg,
      rgba(255,182,50,.10),
      #ffdd8d 14%,
      #e49028 47%,
      #ffdf85 86%,
      transparent 100%
    );

  filter:
    drop-shadow(0 0 5px rgba(255,158,38,.50));
}

.ns-title-rail::before {
  content: "";

  position: absolute;

  width: 70px;
  height: 8px;

  top: -3px;
  left: 9%;

  background:
    radial-gradient(
      ellipse,
      #fff8d4,
      rgba(255,180,38,.33) 32%,
      transparent 72%
    );
}

.ns-title-rail span {
  position: absolute;

  right: -1%;
  top: -1px;

  width: 18%;
  height: 8px;

  transform: skewX(-40deg);

  background:
    linear-gradient(
      90deg,
      #ffe782 0 20%,
      transparent 20% 27%,
      #f8b33c 27% 47%,
      transparent 47% 54%,
      #976021 54% 74%,
      transparent 74% 81%,
      #17212b 81%
    );
}


/* ==========================================================
   HUD / INFO PANEL
   ========================================================== */

.ns-hud {
  position: relative;

  width: 64%;
  min-height: 55px;

  padding:
    10px
    15px
    9px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 8px;

  background:
    linear-gradient(
      110deg,
      rgba(104,67,27,.40),
      rgba(4,11,19,.85) 17%,
      rgba(5,12,20,.73)
    );

  clip-path:
    polygon(
      0 0,
      97.3% 0,
      100% 24%,
      100% 100%,
      2% 100%,
      0 82%
    );
}

.ns-hud::before {
  content: "";

  position: absolute;
  inset: 0;

  border:
    1px solid rgba(104,120,135,.53);

  border-left:
    4px solid #ffc349;

  border-right:
    2px solid #ffc349;

  clip-path: inherit;

  pointer-events: none;
}

.ns-hud p {
  margin: 0;
}

.ns-hud-kicker {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  gap: 8px;

  white-space: nowrap;
}

.ns-hud-kicker strong {
  font-size:
    clamp(8px, .58vw, 11px);

  font-weight: 800;

  letter-spacing:
    .045em;
}

.ns-hud-kicker i {
  color: #ffba35;

  font-size:
    clamp(10px, .78vw, 14px);

  font-style: italic;
  font-weight: 900;
}

.ns-hud > p:last-child {
  color: #b9c7d6;

  font-size:
    clamp(8px, .54vw, 10px);

  letter-spacing:
    .11em;

  line-height: 1.35;

  white-space: nowrap;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.arcade-quote-footer {
  position: relative;

  min-height: 5.8svh;

  padding:
    9px
    16px
    8px;

  transform:
    translateY(12px);
}

.arcade-quote-footer__inner {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 30px;

  margin:
    0 auto;
}

.arcade-quote-copy {
  font-size: 12px;

  white-space: nowrap;

  opacity: .72;
}

.arcade-quote-copy:first-child {
  color: #d3a43d;
}

.arcade-quote-copy:nth-child(3) {
  color: #a080ce;
}

.arcade-quote-copy:last-child {
  color: #85bf6b;
}

.arcade-quote-separator {
  color: #ff9d2f;

  font-size: 18px;

  letter-spacing: 2px;
  font-weight: 800;

  text-shadow:
    0 0 8px rgba(255,142,38,.30);
}


/* ==========================================================
   ANIMATIONS
   ========================================================== */

@keyframes ns-star-breathe {
  from {
    opacity: .22;
  }

  to {
    opacity: .70;
  }
}

@keyframes ns-detected-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1.05);
  }

  45% {
    opacity: 1;
    transform: scale(1);
  }

  55% {
    opacity: .28;
    transform: scale(.84);
    filter: brightness(.72);
  }

  66% {
    opacity: 1;
    transform: scale(1.05);
    filter: brightness(1.18);
  }
}


/* ==========================================================
   SHORT DESKTOP / LAPTOP
   ========================================================== */

@media (min-width: 1051px) and (max-height: 710px) {

  .nightshift-home {
    min-height: 450px;
  }

  .ns-hero {
    top: 10svh;
  }

  .ns-detected {
    margin-bottom: 3svh;
  }

  .ns-title-rail {
    margin-bottom: 3svh;
  }
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1050px) {

  .arcade-header {
    height: 110px;
  }

  .nightshift-home {
    height: auto;
    min-height: 0;

    padding:
      75px
      9%
      70px
      18%;

    display: grid;

    gap: 52px;
  }

  .ns-hero {
    position: relative;

    left: auto;
    top: auto;

    width: 100%;
  }

  .ns-detected {
    font-size: 13px;

    margin-bottom: 32px;
  }

  .ns-title {
    width: 89%;
  }

  .ns-title-rail {
    width: 82%;

    margin-bottom: 32px;
  }

  .ns-hud {
    width: 100%;
  }

  .ns-hud-kicker strong {
    font-size: 11px;
  }

  .ns-hud > p:last-child {
    font-size: 10px;

    letter-spacing: .12em;
  }

  .ns-atmosphere {
    background-size: auto 100%;

    background-position:
      20% center;
  }

  .arcade-quote-footer__inner {
    gap: 16px;
  }

  .arcade-quote-copy {
    font-size: 10px;
  }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 650px) {

  .arcade-header {
    height: 150px;
  }

  .nightshift-home {
    padding:
      50px
      21px
      50px;

    gap: 44px;
  }

  .ns-detected {
    gap: 0;

    font-size: 10px;

    margin:
      0
      0
      25px
      3px;
  }

  .ns-detected i {
    width: 7px;
    height: 7px;

    margin-left: 5px;
    margin-right: 9px;
  }

  .ns-title {
    width: 92%;
  }

  .ns-title-rail {
    width: 84%;
    height: 2px;

    margin-top: 9px;
    margin-bottom: 27px;
  }

  .ns-title-rail span {
    height: 5px;
  }

  .ns-hud {
    width: 94%;
    min-height: 92px;

    padding:
      15px
      14px;
  }

  .ns-hud-kicker {
    justify-content: flex-start;

    flex-wrap: wrap;

    gap:
      4px
      8px;

    white-space: normal;
  }

  .ns-hud-kicker strong {
    font-size: 9px;
  }

  .ns-hud-kicker i {
    font-size: 12px;
  }

  .ns-hud > p:last-child {
    font-size: 10px;

    white-space: normal;

    letter-spacing: .10em;
  }

  .ns-atmosphere {
    background-size: auto 1100px;

    background-position:
      17% top;
  }

  .arcade-quote-footer {
    padding:
      18px
      20px;

    transform: none;
  }

  .arcade-quote-footer__inner {
    flex-wrap: wrap;

    gap:
      8px
      12px;
  }

  .arcade-quote-copy {
    font-size: 9px;
  }

  .arcade-quote-separator {
    font-size: 13px;
  }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* === HOME footer banner fine-tune === */
body.home .arcade-quote-footer,
.home .arcade-quote-footer,
body[data-page="home"] .arcade-quote-footer,
.arcade-home .arcade-quote-footer {
  transform: translateX(44px);
  bottom: 12px;
}

body.home .arcade-quote-footer .arcade-quote-footer__inner,
.home .arcade-quote-footer .arcade-quote-footer__inner,
body[data-page="home"] .arcade-quote-footer .arcade-quote-footer__inner,
.arcade-home .arcade-quote-footer .arcade-quote-footer__inner {
  justify-content: center;
}


/* === HOME FOOTER POSITION FINAL START === */

/* Homepage footer laatste micro-tuning */
body.nightshift-page .page-frame > .arcade-quote-footer {
  position: relative !important;
  left: 24px !important;
  top: 9px !important;
}

body.nightshift-page .page-frame > .arcade-quote-footer::before {
  top: 7px !important;
  bottom: auto !important;
}

/* === HOME FOOTER POSITION FINAL END === */

