@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;600&display=swap');

* { margin:0; padding:0; box-sizing:border-box; font-family:'Pretendard',sans-serif; }
body { color:#222; background:#f5f5f5; overflow-x:hidden; }

.navbar {
  position:fixed; top:0; width:100%; height:70px;
  display:flex; justify-content:space-between; align-items:center;
  padding:0 30px;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(6px);
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
  z-index:10;
}
.logo { font-weight:700; font-size:1.3rem; cursor:pointer; }
.logo-img {
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  /* hover 시 살짝 반짝임 */
  .logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.7));
  }


.menu a { margin-left:30px; text-decoration:none; color:#333; font-weight:500; transition:color 0.3s; }
.menu a.active, .menu a:hover { color:#007bff; }

main { margin-top:70px; min-height:calc(100vh - 120px); transition:opacity 0.3s; }
footer { text-align:center; padding:20px 0; background:#f1f1f1; color:#555; }

/* Home */
.home {
  height:calc(100vh - 70px);
  background:url('snow-flower-6878.gif') center/cover no-repeat;
  position:relative; overflow:hidden;
}
.home::before {
  content:""; position:absolute; top:var(--y,0); left:var(--x,0);
  width:120%; height:120%;
  background:inherit; background-position:center; background-size:cover;
  transform:translate(calc(var(--x,0)*-0.05), calc(var(--y,0)*-0.05));
  z-index:-1; transition:transform 0.1s ease-out;
}
.home .overlay {
  position:absolute; top:0; left:0; width:100%; height:100%;
  background:rgba(0,0,0,0.40);
  color:#fff; display:flex; flex-direction:column;
  justify-content:center; align-items:center; text-align:center;
}

/* 텍스트 + shine line 묶음 */
.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

/* ✅ 게임제목 */
.title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    color: #fff;
    position: relative; /* after 기준 */
    padding-bottom: 25px; /* 밑줄 여백 */
    text-shadow: 0 0 12px rgba(255,255,255,0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease forwards;
  }

  /* ✅ 밑줄 + shine 왕복 효과 */
  .title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 3px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.9),
      transparent
    );
    border-radius: 2px;
    opacity: 0;
    animation: shineBounce 4s ease-in-out 1.5s infinite alternate;
  }
  
  /* ✅ 왕복형 애니메이션 */
  @keyframes shineBounce {
    0%   { transform: translateX(calc(-50% - 200px)); opacity: 0.1; }
    50%  { transform: translateX(calc(-50% + 150px)); opacity: 1; }
    100% { transform: translateX(calc(-50% - 200px)); opacity: 0.1; }
  }
  
  /* 기존 페이드인 유지 */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  
.home .btn {
  display:inline-block; padding:16px 36px; background:linear-gradient(90deg, #a174ff, #ff8ccf);
  color:white; border-radius:50px; font-weight:600; text-decoration:none;
  transition:background 0.3s;
  margin-top: 100px;
}
.home .btn:hover { background:linear-gradient(90deg, #6f4cb9, #b63f84);}

/* Play */
.play {     text-align:center; padding:10px; }

.play img,
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 10px auto 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

  aspect-ratio: 16 / 9;     /* ✅ 비율을 직접 고정 */
}



.pv-title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0 30px;
    color: #222;
  }
  
  .pv-title-line::before {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc);
    margin: 0 16px;
  }
  
  .pv-title-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent, #ccc); /* ✅ 방향 반대 */
    margin: 0 16px;
  }
  
  .pv-title-line span {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
  }

  .video-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 10px auto 60px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  
    aspect-ratio: 16 / 9;     /* ✅ 비율을 직접 고정 */
  }
  
  /* ✅ iframe은 부모를 꽉 채움 */
  
  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  

  .play-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 50px auto 50px;;
  }
  
  /* 버튼 기본 디자인 */
  .btn {
    width: 220px;                 /* ✅ 버튼 너비 통일 */
    height: 60px;                 /* ✅ 버튼 높이 통일 */
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s ease, background 0.3s;
  }
  
  .btn-green {
    background: #28a745;
  }
  .btn-green:hover {
    background: #218838;
    transform: translateY(-2px);
  }
  
.btn-gray {
    background: #6c757d;
  }
  .btn-gray:hover {
    background: #5a6268;
    transform: translateY(-2px);
  }
  
  /* "Coming Soon" 플로팅 텍스트 */
  .btn-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .coming-soon {
    position: absolute;
    top: -28px; /* 버튼 위로 띄움 */
    font-size: 0.9rem;
    color: #ff4081; /* 포인트 컬러 (핑크빛 강조) */
    font-weight: 700;
    animation: floatText 2s ease-in-out infinite;
    text-shadow: 0 0 6px rgba(255, 64, 129, 0.4);
  }
  
  /* 살짝 떠오르는 듯한 이펙트 */
  @keyframes floatText {
    0%, 100% {
      transform: translateY(0);
      opacity: 0.8;
    }
    50% {
      transform: translateY(-6px);
      opacity: 1;
    }
  }
  
  /* 모바일 대응 */
  @media (max-width: 768px) {
    .btn {
      width: 180px;
      height: 52px;
      font-size: 1rem;
    }
    .coming-soon {
      top: -24px;
      font-size: 0.85rem;
    }
  }
  
/* About */
.about { text-align:center; padding:120px 20px; background:#f8f9fa; }
.about p { font-size:1.1rem; margin-top:20px; line-height:1.6; }

