/* One source of truth for the logo, tabs and divider rails on every page. */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.arcade-header {
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 12.5svh !important;
  min-height: 88px !important;
  margin: 0 !important;
  background: transparent !important;
}

.arcade-nav {
  position: absolute !important;
  display: flex !important;
  gap: 14px !important;
  left: 50.7% !important;
  right: auto !important;
  top: 3.9svh !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  translate: 0 0 !important;
  overflow: visible !important;
}

body .arcade-header > .arcade-nav > a {
  --tab: #ffb42c;
  position: relative !important;
  flex: 0 0 auto !important;
  width: clamp(116px, 8.85vw, 170px) !important;
  min-width: 0 !important;
  height: clamp(42px, 5.65svh, 56px) !important;
  min-height: clamp(42px, 5.65svh, 56px) !important;
  max-height: clamp(42px, 5.65svh, 56px) !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #6b81903b !important;
  border-radius: 0 !important;
  background: linear-gradient(#06101c99, #030913cc) !important;
  box-shadow: none !important;
  color: #cbd4e2 !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(12px, .96vw, 15px) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .13em !important;
  transform: none !important;
  translate: 0 0 !important;
}

body .arcade-header > .arcade-nav > a:nth-child(1) { --tab: #ffb42c; }
body .arcade-header > .arcade-nav > a:nth-child(2) { --tab: #a17bff; }
body .arcade-header > .arcade-nav > a:nth-child(3) { --tab: #97e45e; }

body .arcade-header > .arcade-nav > a::before {
  content: "" !important;
  position: absolute !important;
  top: -1px !important;
  bottom: auto !important;
  left: 17% !important;
  width: 66% !important;
  height: 2px !important;
  border: 0 !important;
  background: linear-gradient(90deg, transparent, var(--tab), transparent) !important;
  box-shadow: 0 0 7px color-mix(in srgb, var(--tab) 55%, transparent) !important;
  opacity: 1 !important;
  transform: none !important;
}

body .arcade-header > .arcade-nav > a::after {
  content: none !important;
  display: none !important;
}

/* Current pages deliberately look identical to the homepage tabs. */
body .arcade-header > .arcade-nav > a.active,
body .arcade-header > .arcade-nav > a[aria-current="page"] {
  border-color: #6b81903b !important;
  background: linear-gradient(#06101c99, #030913cc) !important;
  box-shadow: none !important;
  color: #cbd4e2 !important;
  transform: none !important;
  translate: 0 0 !important;
}

body .arcade-header > .arcade-nav > a:hover,
body .arcade-header > .arcade-nav > a:focus-visible {
  border-color: var(--tab) !important;
  background: color-mix(in srgb, var(--tab) 10%, #030b16) !important;
  box-shadow:
    inset 0 0 18px color-mix(in srgb, var(--tab) 12%, transparent),
    0 0 16px color-mix(in srgb, var(--tab) 32%, transparent) !important;
  transform: none !important;
  translate: 0 0 !important;
}

/* The original short, centered rails. */
body .page-frame > .arcade-header::after,
body .page-frame > .arcade-quote-footer::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  width: 73% !important;
  max-width: 964px !important;
  height: 1px !important;
  box-sizing: border-box !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(90deg, transparent, #bcc8d45c 14%, #bcc8d45c 86%, transparent) !important;
  opacity: 1 !important;
}

body .page-frame > .arcade-header::after {
  top: auto !important;
  bottom: 16px !important;
}

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

@media (max-width: 650px) {
  .arcade-header {
    height: 150px !important;
    min-height: 150px !important;
  }

  .arcade-nav {
    top: 90px !important;
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    gap: 9px !important;
  }

  body .arcade-header > .arcade-nav > a {
    flex: 1 1 0 !important;
    width: auto !important;
    height: 43px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
  }

  body .page-frame > .arcade-header::after,
  body .page-frame > .arcade-quote-footer::before {
    width: 92% !important;
    max-width: none !important;
  }

  body .page-frame > .arcade-header::after {
    bottom: 8px !important;
  }
}

/* =========================================================
   NIGHTSHIFT CENTER AXIS
   Tabs exact uitlijnen met footer/banner
   ========================================================= */

.arcade-nav {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

/* footer als complete groep exact op dezelfde middenas */
.arcade-quote-footer__inner {
  width: max-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
}

/* END NIGHTSHIFT CENTER AXIS */

/* === EXACT CENTER + HOMEPAGE ICON ONLY START === */

/* GAMES / LABS / ABOUT exact op het midden van het scherm */
.arcade-nav {
  left: 50vw !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

/* Alleen op de homepage:
   NIGHTSHIFT + AFTER HOURS PLAY linksboven volledig verbergen */
body.nightshift-page .ns-logo-copy {
  display: none !important;
}

/* Logo blijft alleen het eclipse/orbit-symbool */
body.nightshift-page .ns-logo {
  gap: 0 !important;
}

/* === EXACT CENTER + HOMEPAGE ICON ONLY END === */

/* === NIGHTSHIFT LOGO POSITION START === */

@media (min-width: 651px) {

  /* homepage-logo */
  .arcade-header .ns-logo,

  /* Games / Labs / About logo */
  .arcade-header .nightshift-logo {
    left: 1.5% !important;
  }

}

/* === NIGHTSHIFT LOGO POSITION END === */

/* === SUBPAGE FOOTER FINAL START === */

/*
   Micro-tuning:
   - complete banner 3px omhoog t.o.v. vorige versie
   - witte lijn 2px dichter naar de tekst
*/

body .page-frame > .arcade-quote-footer {
  transform: translateY(5px) !important;
  translate: none !important;
}

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

  left: 50% !important;

  width: 73% !important;
  max-width: 964px !important;

  transform: translateX(-50%) !important;
}

/* === SUBPAGE FOOTER FINAL END === */

/* === UNIFIED FOOTER POSITION START === */

/*
   Exact dezelfde goedgekeurde footerpositie op:
   HOME / GAMES / LABS / ABOUT
*/

body .page-frame > .arcade-quote-footer {
  position: relative !important;
  left: 24px !important;
  top: 9px !important;
}

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

/* === UNIFIED FOOTER POSITION END === */
