@font-face {
  font-family: 'Haebanche';
  src: url('MUNMAK_HAEBANCHE.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

html, body {
  width: 100%; height: 100%;
  background: #0a0e2e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Haebanche', 'Apple SD Gothic Neo', sans-serif;
}

.scene {
  position: relative;
  width: 100vw;
  height: 56.25vw;
  max-height: 100vh;
  max-width: 177.78vh;
  background: #0a0e2e;
  overflow: hidden;
}

canvas#stars {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.content {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

/* 로고: 중앙 고정, 버튼은 absolute로 오른쪽에 */
.logo-wrap {
  position: relative;
  cursor: pointer;
  display: inline-block;
  animation: fadeUp 1.4s ease both;
}

.logo-wrap img {
  width: 36vw;
  max-width: 520px;
  min-width: 200px;
  display: block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-wrap:hover img {
  transform: scale(1.09);
}

/* 스토리 버튼: 로고 오른쪽에 absolute */
.story-btn {
  position: absolute;
  top: 50%;
  left: calc(100% + 16px);
  transform: translateY(-50%) translateX(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s, color 0.2s;
  background: transparent;
  border: 1.5px solid #7ee8ff;
  color: #7ee8ff;
  font-family: 'Haebanche', sans-serif;
  font-size: clamp(10px, 1.1vw, 14px);
  letter-spacing: 0.12em;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
}

.logo-wrap:hover .story-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.story-btn:hover {
  background: #7ee8ff;
  color: #0a0e2e;
}

.btn-memory {
  animation: fadeUp 1.4s ease 0.6s both;
  background: transparent;
  border: 2.5px solid #f5a623;
  color: #f5a623;
  font-family: 'Haebanche', 'Apple SD Gothic Neo', sans-serif;
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: 0.15em;
  padding: 13px 46px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-memory:hover {
  background: #f5a623;
  color: #0a0e2e;
  transform: scale(1.04);
}

.btn-memory:active { transform: scale(0.97); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}