/* Minimalist landing for Naikai Studios */
:root {
  --fg: #ffffff;
  --accent: #39ff14;
  --overlay: rgba(0, 0, 0, 0.45);
  --wave: #9a9a9a;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  color: var(--fg);
}

body {
  /* artistic waveform background (SVG) with the old logo image as fallback */
  background-color: #525252;
  color: #ffffff;
    /* neutral gray for testing */
}


.bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--overlay);
  mix-blend-mode: overlay;
  /* existing subtle scanlines */
  background-image:
    repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.018) 0px,
      rgba(255, 255, 255, 0.018) 1px,
      rgba(0, 0, 0, 0.02) 1px,
      rgba(0, 0, 0, 0.02) 4px),
    url('bg.png');
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: soft-light;
  opacity: 0.75;
}

header {
  width: 100%;
  padding-top: 28px
}

.logo {
  display: block;
  margin: 0 auto;
  max-width: 40%;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6));
  position: relative;
  z-index: 2
}

/* header relative so the svg waveform can be absolutely positioned behind the logo */
header {
  position: relative
}

/* Keep header and wave area in the same centered column as main */
header,
.wave-wrap {
  width: 80vw;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.wave-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 12px;
  position: relative
}

.wave-baseline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.03);
  z-index: 0
}

.logoWave {
  width: 60%;
  height: 86px;
  pointer-events: none;
  z-index: 1
}

.logoWave path {
  fill: none
}

.logoWave #wavePath {
  stroke: var(--wave);
  stroke-width: 2.6;
  opacity: 0.48
}

.logoWave #wavePath2 {
  stroke: var(--wave);
  stroke-width: 2.0;
  opacity: 0.34
}

.logoWave #wavePath3 {
  stroke: var(--wave);
  stroke-width: 1.2;
  opacity: 0.22
}

.main,
main {
  flex: 1;
  display: flex;
  align-items: center; /* ⬅ changed from flex-start */
  justify-content: center;
  flex-direction: column; /* ⬅ ensure vertical stack under logo */
  width: 50vw;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}


.console {
  background: rgba(0, 0, 0, 0.500);
  border: 16px solid rgba(255, 255, 255, 0.5);
  color: var(--fg);
  font-size: 14px;
  padding: 0px 24px;
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.3;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  /* stable width to prevent horizontal shift while typing */
  width: min(75ch, 100%);
  max-width: 1200px;
  text-align: left;

  /* ensure block-level typed lines can animate */

  /* CRT-style glow (reduced intensity) */
  text-shadow:
    0 0 0.6px rgba(255, 255, 255, 0.28),
    0 0 1.6px rgba(255, 255, 255, 0.18),
    0 0 3px rgba(57, 255, 20, 0.02);
}

/* Each typed line is a block that fades in when it first receives content */
.typed-line {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease
}

.typed-line.hidden {
  opacity: 0;
  transform: translateY(6px)
}

/* Reserve vertical space strategy: .console-reserve holds the full text invisibly so layout
  stays fixed; .console.visible is absolutely positioned on top to show typing. */
.console-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
}

.console-reserve {
  color: transparent;
  max-width: 1200px;
  pointer-events: none;
  user-select: none
}

.console.visible {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  background: transparent
}

.console-wrap {
  position: relative;
  max-width: 1200px;
  width: 100%;
  min-height: 3rem
  
}

.cursor {
  display: inline-block;
  width: .6ch;
  animation: blink 1s steps(2, end) infinite;
  color: var(--fg);
  background: transparent;
  text-shadow: 0 0 0.6px rgba(255, 255, 255, 0.28), 0 0 2px rgba(255, 255, 255, 0.18);
}

@keyframes blink {
  from {
    opacity: 1
  }

  to {
    opacity: 0
  }
}

/* Make sure small screens look fine */
@media (max-width:600px) {
  .logo {
    max-width: 70%
  }

  .console {
    font-size: 13px;
    padding: 0px 8px;
  }

  main {
    width: 95vw;
  }

  header,
  .wave-wrap {
    width: 95vw;
  }
}

/* Partners / badges row */
.partners {
  width: 80vw;
  max-width: 1200px;
  margin: 8px auto 24px;
  box-sizing: border-box;
  display: flex;
  justify-content: center
}

.partner-list {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--fg);
  opacity: 0.72;
  transition: opacity 180ms ease, transform 160ms ease
}

.partner:hover {
  opacity: 1;
  transform: translateY(-4px)
}

/* anchor-style polish */
.partner[href] {
  text-decoration: none
}

.partner[role="listitem"] {
  cursor: pointer
}

.partner:focus {
  outline: 2px solid rgba(255, 255, 255, 0.06);
  outline-offset: 3px
}

.badge {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12)
}

.label {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.9
}

/* Ensure SVG logos fit inside badges and inherit monochrome color */
.badge {
  position: relative
}

.badge .initials {
  position: relative;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center
}

/* Highlight for the studio name */
.highlight {
  color: rgb(68, 128, 166);
  font-weight: 700;
}

/* Utility bold classes */
.bold1 {
  color: rgb(68, 128, 166);
  font-weight: 700
}

.bold2 {
  color: var(--fg);
  font-weight: 800
}