/* =========================
   Base Reset
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  touch-action: none;
  overflow: hidden;
  background: #000;
}

/* =========================
   App
========================= */
#app {
  position: relative;
  height: 100%;
  font-family: "Montserrat", serif;
}

#app a {
  text-decoration: none;
  color: #fff;
}

/* =========================
   Canvas
========================= */
#canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* =========================
   Hero (Perfect Center)
========================= */
.hero {
  position: relative;
  z-index: 1;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* 완전 중앙 시각 보정 */
  transform: translateY(-1.5%);

  text-align: center;

  padding:
    calc(24px + env(safe-area-inset-top))
    calc(16px + env(safe-area-inset-right))
    calc(24px + env(safe-area-inset-bottom))
    calc(16px + env(safe-area-inset-left));

  gap: clamp(12px, 2.8vh, 22px);
}

/* =========================
   Typography
========================= */
h1,
h2 {
  margin: 0;
  padding: 0;
  color: #fff;
  user-select: none;

  text-shadow: 0 0 22px rgba(0, 0, 0, 1);

  /* 시각적 중심 정렬에 중요 */
  line-height: 1.05;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-weight: 700;
  text-transform: uppercase;

  /* 🔼 전반적으로 키운 값 */
  font-size: clamp(52px, 11.5vw, 92px);
  letter-spacing: clamp(0.6px, 0.3vw, 2.4px);
}

h2 {
  font-weight: 500;
  text-transform: uppercase;

  font-size: clamp(34px, 8.5vw, 72px);
  letter-spacing: clamp(0.5px, 0.25vw, 1.8px);
  opacity: 0.96;
}

/* =========================
   Very Small Devices
========================= */
@media (max-width: 360px) {
  .hero {
    transform: translateY(-1%);
    gap: 14px;
  }

  h1 {
    font-size: clamp(46px, 13vw, 86px);
  }

  h2 {
    font-size: clamp(30px, 9.8vw, 64px);
  }
}

/* =========================
   Landscape Mobile
========================= */
@media (max-height: 420px) and (orientation: landscape) {
  .hero {
    transform: translateY(-2%);
    gap: 10px;
  }

  h1 {
    font-size: clamp(42px, 9.5vw, 78px);
  }

  h2 {
    font-size: clamp(28px, 7vw, 58px);
  }
}