*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  /* overflow: hidden; */
  width: 100%;
  height: 100%;
  /* background: #0a0a0a; */
  font-family: "Courier Prime", monospace;
  color: #f5f5f0;
}

body.intro-playing {
  overflow: hidden;
}

/* ── PLACEHOLDER PAGE ── */
#main-page {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-page p {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #723434;
}

/* ── OVERLAY ── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
}

/* ── WORDS WRAPPER ── */
#words-wrap {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1vw, 14px);
  position: relative;
  z-index: 2;
}

/* ── PERCY ── */
#percy-wrap {
  display: flex;
  align-items: flex-end;
  perspective: 420px;
  perspective-origin: 50% 100%;
}

.percy-letter {
  display: inline-block;
  font-family: "Courier Prime", monospace;
  font-weight: 280;
  font-size: clamp(28px, 5vw, 56px);
  color: #6b1a1a;
  letter-spacing: 0.01em;
  line-height: 1;
  opacity: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── SECONDARY WORD SLOT ── */
#secondary-wrap {
  overflow: hidden;
  opacity: 0;
}

#secondary-inner {
  display: flex;
  flex-direction: column;
}

.secondary-word {
  font-family: "Courier Prime", monospace;
  font-weight: 400;
  font-size: clamp(11px, 2vw, 22px);
  color: #6e2929;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  display: block;
}
