/* ==========================================================================
   타이틀 화면: 화면을 누르면 게임 시작 (로그인 버튼은 임시/가짜)
   ========================================================================== */
.title-screen {
  position: absolute;
  inset: 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 11% 24px 9%;
  background: #05070b url('../assets/main.png') center 62% / cover no-repeat;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.title-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.55) 0%, rgba(5, 7, 11, 0) 34%),
    linear-gradient(0deg, rgba(5, 7, 11, 0.78) 0%, rgba(5, 7, 11, 0) 38%);
  pointer-events: none;
}
.title-screen.leaving {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.title-logo {
  position: relative;
  text-align: center;
  animation: titleFloat 3.2s ease-in-out infinite alternate;
}
.title-logo-main {
  display: block;
  font-size: 4.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  color: #fde68a;
  -webkit-text-stroke: 2px #92400e;
  paint-order: stroke fill;
  text-shadow:
    0 3px 0 #b45309,
    0 6px 0 #78350f,
    0 10px 18px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(250, 204, 21, 0.75);
}
.title-logo-sub {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 14px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.55);
  border-radius: 9999px;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}
@keyframes titleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.title-bottom {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.title-login-btn {
  width: min(78%, 260px);
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%);
  border: 2px solid #b45309;
  border-radius: 12px;
  box-shadow: 0 4px 0 #92400e, 0 8px 18px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
.title-login-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #92400e, 0 3px 8px rgba(0, 0, 0, 0.55);
}
.title-touch-hint {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  animation: titleBlink 1.3s ease-in-out infinite;
}
@keyframes titleBlink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.title-version {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}
