/* 🏞️ 배틀 필드(싸움터) 와 화려한 이펙트 */

.필드 {
  position: relative;
  max-width: 760px;
  margin: 18px auto;
  padding: 20px 10px 0;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #8fd6ff 0%, #cdefff 45%, #ffe9b8 46%, #f5c98a 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  border: 6px solid #ffffff;
}

/* 하늘에 떠다니는 구름 */
.필드 .구름 {
  position: absolute;
  top: 14px;
  font-size: 34px;
  opacity: 0.9;
  animation: 흘러가기 14s linear infinite;
}

.필드 .구름2 { top: 46px; font-size: 26px; animation-duration: 20s; }

@keyframes 흘러가기 {
  0% { left: -60px; }
  100% { left: 105%; }
}

/* 바닥에 자란 풀 */
.필드 .바닥 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54%;
  background: linear-gradient(180deg, #9fdb6a, #67b23f);
  border-top: 6px solid #ffffff88;
}

.필드 .풀 {
  position: absolute;
  bottom: 6px;
  font-size: 26px;
  opacity: 0.85;
}

.필드 .경기장 { position: relative; margin: 0 auto 16px; }

/* 태양 */
.필드 .해 {
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 38px;
  animation: 빙글 12s linear infinite;
}

@keyframes 빙글 {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

/* ===== ⚔️ 공격 이펙트 : 칼자국 ===== */
.칼자국 {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%) rotate(-25deg);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #ffffff 45%, #fff3a8 55%, transparent);
  clip-path: polygon(0 45%, 100% 25%, 100% 40%, 0 60%);
  animation: 베기 0.4s ease-out forwards;
}

@keyframes 베기 {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-55deg) scale(0.5); }
  40% { opacity: 1; transform: translate(-50%, -50%) rotate(-25deg) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-5deg) scale(1.4); }
}

/* 부딪힌 자리에서 튀는 조각들 */
.조각 {
  position: absolute;
  left: 50%;
  top: 45%;
  font-size: 20px;
  pointer-events: none;
  animation: 튀기 0.6s ease-out forwards;
}

@keyframes 튀기 {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(var(--가로), var(--세로)) scale(1.2); }
}

/* ===== ✨ 필살기 연출 ===== */

/* 화면 전체가 번쩍! */
.필살막 {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 214, 110, 0.75), rgba(255, 107, 107, 0.35), rgba(0, 0, 0, 0.55));
  animation: 필살번쩍 1.1s ease-out forwards;
}

.필살막 .필살글 {
  font-size: 44px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 3px 3px 0 #e0567a, 6px 6px 14px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: 글자쿵 1.1s ease-out forwards;
}

@keyframes 필살번쩍 {
  0% { opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes 글자쿵 {
  0% { transform: scale(0.3) rotate(-12deg); opacity: 0; }
  25% { transform: scale(1.25) rotate(3deg); opacity: 1; }
  40% { transform: scale(1) rotate(0); }
  80% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* 필살기 맞을 때 커다란 폭발 */
.대폭발 {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  pointer-events: none;
  z-index: 5;
  animation: 대폭발터짐 0.8s ease-out forwards;
}

@keyframes 대폭발터짐 {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(-20deg); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1.4) rotate(10deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2) rotate(20deg); }
}

/* 화면 흔들기 */
.화면흔들 { animation: 지진 0.5s; }

@keyframes 지진 {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-8px, 4px); }
  40% { transform: translate(7px, -5px); }
  60% { transform: translate(-5px, 6px); }
  80% { transform: translate(6px, -3px); }
}
