* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background: url("vectorcore_images/menu_background.png") center / cover no-repeat fixed;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
}

.studio-brand {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f6f8e8;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  font-stretch: condensed;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow:
    0 0 3px rgba(246, 248, 232, 0.75),
    0 0 14px rgba(47, 140, 255, 0.45);
}

.pw-logo {
  width: 26.4px;
  height: auto;
}

.youtube-link,
.clyde-link {
  position: absolute;
  top: 24px;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(47, 140, 255, 0.45);
  border-radius: 50%;
  background: rgba(0, 12, 34, 0.58);
  box-shadow:
    0 0 10px rgba(0, 170, 255, 0.38),
    inset 0 0 12px rgba(0, 170, 255, 0.08);
}

.clyde-link {
  right: max(32px, calc((100vw - 1180px) / 2));
}

.youtube-link {
  right: max(77px, calc((100vw - 1180px) / 2 + 45px));
}

.youtube-link img,
.clyde-link img {
  width: 22.5px;
  height: auto;
  display: block;
}

.vectorcore-logo {
  width: min(368px, 38.4vw);
  height: auto;
}

.layout-wrap {
  width: min(1180px, calc(100vw - 64px));
  position: fixed;
  top: 156px;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
}

.main-panel {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  overflow: hidden;
  border: 2px solid #2f8cff;
  background: rgba(1, 8, 24, 0.58);
  box-shadow:
    0 0 18px rgba(47, 140, 255, 0.72),
    inset 0 0 24px rgba(47, 140, 255, 0.18);
}

.left-column {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.navigation-panel {
  height: 100%;
  padding: 10px;
}

.nav-heading-wrap {
  margin-bottom: 12px;
}

.nav-heading {
  margin: 0;
  color: #d9e6ff;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(47, 140, 255, 0.55);
}

.menu-button {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  height: 42px;
  border: 2px solid #00aaff;
  border-radius: 6px;
  background: rgba(0, 12, 34, 0.58);
  color: #d9e6ff;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 0 14px rgba(0, 170, 255, 0.46),
    inset 0 0 18px rgba(0, 170, 255, 0.08);
}

.menu-button.active {
  border-color: rgba(38, 255, 177, 0.58);
  background: rgba(0, 72, 45, 0.78);
  color: #35ffbc;
  box-shadow:
    0 0 14px rgba(53, 255, 159, 0.46),
    inset 0 0 18px rgba(53, 255, 159, 0.10);
}

.content-panel,
.navigation-panel {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border: 2px solid #2f8cff;
  background: rgba(0, 12, 34, 0.45);
  box-shadow:
    0 0 14px rgba(47, 140, 255, 0.58),
    inset 0 0 18px rgba(47, 140, 255, 0.14);
}

.content-panel {
  padding: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #00d8ff rgba(0, 20, 48, 0.45);
}

.content-panel::-webkit-scrollbar {
  width: 6px;
}

.content-panel::-webkit-scrollbar-track {
  background: rgba(0, 20, 48, 0.45);
  box-shadow: inset 0 0 8px rgba(0, 216, 255, 0.14);
}

.content-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #00d8ff;
  box-shadow: 0 0 10px rgba(0, 216, 255, 0.9);
}

.media-viewer {
  width: min(100%, 720px);
  margin: 0 auto;
}

.media-viewer.compact {
  width: min(50%, 360px);
  min-width: 280px;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid #2f8cff;
  background:
    linear-gradient(rgba(47, 140, 255, 0.12), rgba(47, 140, 255, 0.12)),
    rgba(0, 8, 22, 0.7);
  box-shadow:
    0 0 18px rgba(47, 140, 255, 0.62),
    inset 0 0 28px rgba(47, 140, 255, 0.14);
}

.media-viewer.compact .video-frame {
  aspect-ratio: 1 / 1;
}

.gameplay-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 8, 22, 0.78);
}

.media-strip {
  width: 100%;
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 2px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #00d8ff rgba(0, 20, 48, 0.45);
}

.media-strip::-webkit-scrollbar {
  height: 6px;
}

.media-strip::-webkit-scrollbar-track {
  background: rgba(0, 20, 48, 0.45);
}

.media-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #00d8ff;
  box-shadow: 0 0 10px rgba(0, 216, 255, 0.9);
}

.media-thumb {
  width: 112px;
  height: 64px;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(47, 140, 255, 0.5);
  border-radius: 4px;
  background: rgba(0, 8, 22, 0.84);
  color: #d9e6ff;
  cursor: pointer;
}

.media-viewer.compact .media-thumb {
  width: 72px;
  height: 72px;
}

.media-thumb.active {
  border-color: #00d8ff;
  box-shadow:
    0 0 12px rgba(0, 216, 255, 0.8),
    inset 0 0 14px rgba(0, 216, 255, 0.16);
}

.media-thumb img,
.media-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.media-thumb-video-badge {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #00d8ff;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 8, 22, 0.92);
}

.media-thumb span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px;
  background: linear-gradient(transparent, rgba(0, 8, 22, 0.95));
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.content-copy {
  max-width: 720px;
  margin: 16px 0 0;
  color: #9fbee8;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.neon-blue {
  color: #00d8ff;
  text-shadow:
    0 0 5px rgba(0, 216, 255, 0.85),
    0 0 16px rgba(47, 140, 255, 0.75);
}

.neon-red {
  color: #ff3158;
  text-shadow:
    0 0 5px rgba(255, 49, 88, 0.85),
    0 0 16px rgba(255, 49, 88, 0.65);
}

.neon-green {
  color: #35ff9f;
  text-shadow:
    0 0 5px rgba(53, 255, 159, 0.85),
    0 0 16px rgba(53, 255, 159, 0.65);
}

.resource-section {
  max-width: 760px;
  margin: 0 auto 22px;
  padding: 18px;
  border: 1px solid rgba(47, 140, 255, 0.45);
  background: rgba(0, 12, 34, 0.36);
  box-shadow:
    0 0 12px rgba(47, 140, 255, 0.28),
    inset 0 0 18px rgba(47, 140, 255, 0.08);
}

.resource-section h1 {
  margin: 0 0 14px;
  color: #00d8ff;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow:
    0 0 5px rgba(0, 216, 255, 0.85),
    0 0 16px rgba(47, 140, 255, 0.75);
}

.resource-section p {
  margin: 0 0 12px;
  color: #9fbee8;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.cores-intro {
  margin-top: 22px;
}

.cores-intro-kicker {
  margin: 0 0 8px;
  color: #c4cedc;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cores-intro-title {
  margin: 0 0 14px;
  color: #00d8ff;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow:
    0 0 5px rgba(0, 216, 255, 0.85),
    0 0 16px rgba(47, 140, 255, 0.75);
}

.modes-section > .modes-section-intro {
  margin: 0 0 16px;
}

.modes-section > .modes-sub-container {
  display: block;
  margin: 14px 0 0;
  max-width: none;
  padding: 14px 16px;
  border: 2px solid rgba(47, 140, 255, 0.55);
  border-radius: 4px;
  background: rgba(0, 12, 34, 0.85);
  box-shadow:
    inset 0 0 14px rgba(47, 140, 255, 0.08),
    0 0 8px rgba(47, 140, 255, 0.2);
}

.modes-section > .modes-sub-container p {
  margin: 0 0 12px;
  color: #9fbee8;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.modes-section > .modes-sub-container p:last-child {
  margin-bottom: 0;
}

.modes-subsection-title {
  margin: 0 0 12px;
  color: #00d8ff;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow:
    0 0 5px rgba(0, 216, 255, 0.85),
    0 0 16px rgba(47, 140, 255, 0.75);
}

.resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 38px;
  margin-top: 4px;
  border: 1px solid rgba(38, 255, 177, 0.58);
  border-radius: 6px;
  background: rgba(0, 72, 45, 0.78);
  color: #35ffbc;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    0 0 12px rgba(53, 255, 159, 0.42),
    inset 0 0 14px rgba(53, 255, 159, 0.10);
}

.inline-link {
  color: #35ff9f;
  text-decoration: none;
  text-shadow:
    0 0 5px rgba(53, 255, 159, 0.85),
    0 0 16px rgba(53, 255, 159, 0.65);
}

.devlog-post {
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
}

.devlog-date {
  display: block;
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.devlog-post h1 {
  font-family: inherit;
}

.devlog-post p,
.devlog-post ul,
.devlog-post li,
.devlog-post .devlog-text {
  color: #9fbee8;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.devlog-post p,
.devlog-post ul {
  margin: 0 0 12px;
}

.devlog-post .devlog-text {
  margin: 0;
  white-space: pre-line;
}

.devlog-post .modes-subsection-title {
  margin-top: 18px;
  font-family: inherit;
}

.devlog-post ul {
  padding-left: 20px;
}

.devlog-post li {
  margin: 0 0 6px;
}

.devlog-post li:last-child {
  margin-bottom: 0;
}

.devlog-media {
  margin: 18px 0;
}

.devlog-media img,
.devlog-media video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 2px solid #2f8cff;
  background: rgba(0, 8, 22, 0.78);
  box-shadow:
    0 0 18px rgba(47, 140, 255, 0.62),
    inset 0 0 28px rgba(47, 140, 255, 0.14);
}

.devlog-media figcaption {
  margin-top: 8px;
  color: #c4cedc;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.nav-card {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(47, 140, 255, 0.55);
  border-radius: 6px;
  background: rgba(3, 10, 24, 0.76);
  color: #0fbfff;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  margin-bottom: 10px;
}

.nav-card.active {
  border-color: rgba(38, 255, 177, 0.58);
  background: rgba(0, 72, 45, 0.78);
  color: #35ffbc;
}

.nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 600;
}

.nav-copy {
  min-width: 0;
  overflow: hidden;
}

.nav-copy strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-copy small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #c4cedc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-arrow {
  font-size: 18px;
  font-weight: 700;
}

.site-background-music {
  display: none;
}

/* Mobile / tablet — desktop layout unchanged above 900px width */
@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .layout-wrap {
    width: calc(100vw - 24px);
    top: 118px;
    bottom: 8px;
  }

  .site-header {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .vectorcore-logo {
    width: min(260px, 76vw);
  }

  .studio-brand {
    top: 12px;
    left: 12px;
  }

  .youtube-link,
  .clyde-link {
    top: 12px;
  }

  .clyde-link {
    right: 12px;
  }

  .youtube-link {
    right: 52px;
  }

  .main-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 12px;
    gap: 12px;
  }

  .left-column {
    max-height: min(40vh, 300px);
    overflow-y: auto;
  }

  .navigation-panel {
    height: auto;
  }

  .menu-button {
    width: 132px;
    height: 36px;
    font-size: 13px;
  }

  .media-viewer.compact {
    width: 100%;
    min-width: 0;
  }

  .resource-section {
    max-width: none;
  }

}

@media (max-width: 900px), (max-height: 520px) {
  .video-frame {
    position: relative;
  }

  .video-frame-tappable {
    cursor: pointer;
  }

  .video-frame-tappable::after {
    content: "Tap for fullscreen";
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 8px;
    border: 1px solid rgba(47, 140, 255, 0.55);
    border-radius: 4px;
    background: rgba(0, 12, 34, 0.82);
    color: #9fbee8;
    font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
  }

}

body.mobile-lightbox-open {
  overflow: hidden;
}

.mobile-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 12px;
  background: rgba(1, 8, 24, 0.96);
}

.mobile-media-lightbox[hidden] {
  display: none;
}

.mobile-media-lightbox-close,
.mobile-media-lightbox-prev,
.mobile-media-lightbox-next {
  border: 1px solid rgba(47, 140, 255, 0.55);
  border-radius: 6px;
  background: rgba(0, 12, 34, 0.88);
  color: #d9e6ff;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.mobile-media-lightbox-close {
  justify-self: start;
  min-width: 72px;
  height: 36px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-media-lightbox-prev,
.mobile-media-lightbox-next {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.mobile-media-lightbox-prev {
  left: 10px;
}

.mobile-media-lightbox-next {
  right: 10px;
}

.mobile-media-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  touch-action: pan-y;
}

.mobile-media-lightbox-stage img,
.mobile-media-lightbox-stage video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.mobile-media-lightbox-label {
  margin: 10px 0 0;
  color: #9fbee8;
  font-family: "Bahnschrift", "Agency FB", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
}

/* Phone landscape — shrink header so content is not pushed off-screen */
@media (max-height: 520px) and (orientation: landscape) {
  .site-header {
    padding-top: 6px;
    padding-bottom: 4px;
  }

  .vectorcore-logo {
    width: min(168px, 32vw);
  }

  .pw-logo {
    width: 20px;
  }

  .studio-brand {
    top: 8px;
    left: 8px;
    font-size: 8px;
  }

  .studio-brand span {
    display: none;
  }

  .youtube-link,
  .clyde-link {
    top: 8px;
    width: 28px;
    height: 28px;
  }

  .youtube-link img,
  .clyde-link img {
    width: 18px;
  }

  .clyde-link {
    right: 10px;
  }

  .youtube-link {
    right: 44px;
  }

  .layout-wrap {
    top: 64px;
    bottom: 6px;
  }

  .main-panel {
    grid-template-columns: minmax(168px, 34vw) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    padding: 8px;
    gap: 8px;
  }

  .left-column {
    max-height: none;
    overflow: hidden;
  }

  .navigation-panel {
    height: 100%;
    padding: 6px;
  }

  .nav-card {
    min-height: 42px;
    margin-bottom: 6px;
    padding: 6px;
  }

  .nav-heading {
    font-size: 11px;
  }

  .nav-copy strong {
    font-size: 13px;
  }

  .menu-button {
    width: 120px;
    height: 32px;
    font-size: 12px;
  }
}
