/* ============================== */
/* FORTRESS (요새) CSS            */
/* Turn-based artillery game      */
/* ============================== */

#fortressGame.active {
  --fort-sky-top: #1a3a6e;
  --fort-sky-bot: #87CEEB;
  --fort-ground: #4a8c3f;
  --fort-fire: #ff4500;
  --fort-gold: #ffd700;

  padding: 0;
  gap: 0;
  background: #1a3a6e;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  touch-action: none; /* block browser scroll/zoom while in game */
}

/* ===== Canvas Container — full screen ===== */
.fort-canvas-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a3a6e;
}

#fortressCanvas {
  display: block;
  touch-action: none;
}

/* ===== Header — minimal floating overlay, no background bar ===== */
.fort-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 8px;
  z-index: 10;
  pointer-events: none; /* pass touches through empty areas */
}

.fort-header .back-btn {
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  pointer-events: all;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.fort-header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.fort-round-badge {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--fort-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.6);
}

.fort-turn-name {
  font-size: 10px;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.7);
}

/* ===== Turn Timer ===== */
.fort-turn-timer {
  font-family: 'Oswald', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 2px 8px;
  border-radius: 8px;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  min-width: 32px;
  text-align: center;
  transition: color 0.3s, background 0.3s;
}
.fort-turn-timer.fort-timer-warn {
  color: #ffab00;
  background: rgba(255,171,0,0.2);
}
.fort-turn-timer.fort-timer-danger {
  color: #ff1744;
  background: rgba(255,23,68,0.25);
  animation: fortTimerPulse 0.5s ease infinite;
}
@keyframes fortTimerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.fort-wind-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,0.45);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

#fortWindArrow {
  font-size: 11px;
  transition: transform 0.3s;
}

/* ===== Players Bar — 좌측 세로 턴 순서 패널 ===== */
.fort-players-bar {
  position: absolute;
  top: 52px;
  left: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  z-index: 5;
  pointer-events: none;
  max-height: calc(100% - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}
.fort-players-bar::-webkit-scrollbar { display: none; }

.fort-player-hp-item {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(0,0,0,0.55);
  min-width: 70px;
  max-width: 120px;
  flex-shrink: 0;
  transition: transform 0.4s ease, background 0.3s, box-shadow 0.3s, opacity 0.3s;
  position: relative;
}

.fort-player-hp-item.active-turn {
  background: rgba(0,0,0,0.7);
  box-shadow: 0 0 0 1.5px rgba(255,215,0,0.7), 0 0 8px rgba(255,215,0,0.3);
  transform: translateX(4px);
}

.fort-player-hp-item.dead {
  opacity: 0.3;
}

.fort-turn-order-num {
  font-size: 9px;
  font-weight: 800;
  color: var(--fort-gold, #ffd700);
  min-width: 12px;
  text-align: center;
  flex-shrink: 0;
}

.fort-player-avatar {
  font-size: 13px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fort-player-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.fort-player-name {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fort-hp-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.fort-hp-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
  background: linear-gradient(90deg, #00e676, #69f0ae);
}

.fort-hp-fill.low {
  background: linear-gradient(90deg, #ff1744, #ff5252);
}

.fort-hp-fill.mid {
  background: linear-gradient(90deg, #ffab00, #ffd740);
}

.fort-hp-text {
  font-size: 8px;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

.fort-delay-text {
  font-size: 7px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

/* ===== Controls — floating overlay bottom ===== */
.fort-controls {
  position: absolute;
  bottom: env(safe-area-inset-bottom, 0px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  z-index: 10;
  flex-wrap: wrap;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.fort-controls.fort-disabled .fort-ctrl-btn,
.fort-controls.fort-disabled .fort-fire-btn {
  opacity: 0.3;
  pointer-events: none;
}
/* 각도 버튼은 다른 플레이어 턴에서도 조작 가능 */
.fort-controls.fort-disabled .fort-angle-btn {
  opacity: 0.8;
  pointer-events: all;
}
.fort-controls.fort-disabled .fort-angle-grp .fort-val {
  opacity: 0.8;
}

.fort-ctrl-grp {
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  padding: 3px;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.fort-ctrl-sep {
  display: none; /* separators no longer needed with grouped backgrounds */
}

.fort-ctrl-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 9px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transition: background 0.1s;
}

.fort-ctrl-btn:active {
  background: rgba(255,255,255,0.28);
}

.fort-zoom-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 9px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  line-height: 1;
}
.fort-zoom-btn:active { background: rgba(255,255,255,0.25); }

.fort-fuel-mini {
  width: 4px;
  height: 22px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
}

.fort-fuel-fill {
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(0deg, #4fc3f7, #81d4fa);
  transition: height 0.2s ease;
}

.fort-val {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 28px;
}

.fort-val-lbl {
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  line-height: 1;
}

.fort-val-num {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
}

.fort-fire-btn {
  min-width: 68px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4500, #ff6b35);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(255,69,0,0.5), 0 0 0 1px rgba(255,100,0,0.3);
  transition: transform 0.1s, opacity 0.2s;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.fort-fire-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.fort-fire-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== Game Over Overlay ===== */
.fort-gameover {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fort-gameover-box {
  background: var(--bg-card, #14142a);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.fort-gameover-title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 28px;
  color: var(--fort-gold);
}

.fort-rankings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fort-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
}

.fort-rank-item.rank-1 {
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.3);
}

.fort-rank-item.rank-2 {
  background: rgba(192,192,192,0.1);
  border: 1px solid rgba(192,192,192,0.2);
}

.fort-rank-item.rank-3 {
  background: rgba(205,127,50,0.1);
  border: 1px solid rgba(205,127,50,0.2);
}

.fort-rank-medal {
  font-size: 22px;
  width: 30px;
  text-align: center;
}

.fort-rank-name {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #e8e8f0);
  text-align: left;
}

.fort-rank-gold {
  font-size: 13px;
  font-weight: 700;
  color: var(--fort-gold);
}

/* ===== Damage popup (canvas-based but fallback) ===== */
.fort-dmg-popup {
  position: absolute;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ff4444;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
  pointer-events: none;
  animation: fortDmgFloat 1s ease-out forwards;
  z-index: 50;
}

@keyframes fortDmgFloat {
  0% { opacity: 1; transform: translateY(0) scale(1.2); }
  100% { opacity: 0; transform: translateY(-40px) scale(0.8); }
}

/* ============================================== */
/* RESPONSIVE MEDIA QUERIES                       */
/* 모든 미디어쿼리는 기본 스타일 아래에 배치       */
/* ============================================== */

/* ===== 768px 이하 — 태블릿/큰 폰 ===== */
@media (max-width: 768px) {
  .fort-players-bar {
    max-width: 110px;
  }
  .fort-player-hp-item {
    max-width: 110px;
  }
}

/* ===== 480px 이하 — 일반 스마트폰 ===== */
@media (max-width: 480px) {
  .fort-header {
    padding: 4px 6px;
  }
  .fort-controls {
    gap: 4px;
    padding: 5px 4px;
  }
  .fort-ctrl-grp {
    padding: 2px;
    gap: 2px;
  }
  /* 44px 터치 타겟 유지 */
  .fort-ctrl-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  .fort-zoom-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .fort-fire-btn {
    min-width: 62px;
    height: 44px;
    font-size: 12px;
  }
  .fort-val {
    min-width: 26px;
  }
  .fort-val-num {
    font-size: 12px;
  }
  .fort-players-bar {
    top: 48px;
    max-width: 100px;
  }
  .fort-player-hp-item {
    max-width: 100px;
    padding: 2px 4px;
    gap: 2px;
  }
  .fort-player-name {
    font-size: 8px;
  }
  .fort-player-avatar {
    font-size: 11px;
    width: 14px;
    height: 14px;
  }
}

/* ===== 430px 이하 — 작은 스마트폰 ===== */
@media (max-width: 430px) {
  .fort-controls {
    gap: 3px;
    padding: 4px 3px;
  }
  .fort-ctrl-grp {
    padding: 2px;
    gap: 1px;
  }
  /* 44px 터치 타겟 유지, 간격만 조정 */
  .fort-ctrl-btn {
    width: 44px;
    height: 44px;
    font-size: 15px;
    border-radius: 8px;
  }
  .fort-zoom-btn {
    width: 40px;
    height: 40px;
    font-size: 17px;
    border-radius: 8px;
  }
  .fort-fire-btn {
    min-width: 58px;
    height: 44px;
    font-size: 11px;
    border-radius: 10px;
  }
  .fort-val {
    min-width: 22px;
  }
  .fort-val-num {
    font-size: 11px;
  }
  .fort-val-lbl {
    font-size: 8px;
  }
  .fort-fuel-mini {
    width: 3px;
    height: 18px;
  }
  .fort-players-bar {
    max-width: 90px;
  }
  .fort-player-hp-item {
    max-width: 90px;
  }
}

/* ===== 380px 이하 — 매우 작은 폰 ===== */
@media (max-width: 380px) {
  .fort-header .back-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .fort-controls {
    gap: 2px;
    padding: 3px 2px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .fort-ctrl-grp {
    padding: 2px;
    gap: 1px;
  }
  /* 380px 이하에서도 최소 40px 터치 타겟 확보 (기존 30px/26px에서 크게 개선) */
  .fort-ctrl-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .fort-zoom-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .fort-fire-btn {
    min-width: 54px;
    height: 40px;
    font-size: 11px;
  }
  .fort-val {
    min-width: 20px;
  }
  .fort-val-num {
    font-size: 10px;
  }
  .fort-val-lbl {
    font-size: 7px;
  }
  .fort-fuel-mini {
    width: 3px;
    height: 16px;
  }
  .fort-players-bar {
    max-width: 80px;
    top: 44px;
  }
  .fort-player-hp-item {
    max-width: 80px;
    padding: 2px 3px;
  }
  .fort-player-name {
    font-size: 7px;
  }
  .fort-turn-order-num {
    font-size: 8px;
    min-width: 10px;
  }
  .fort-hp-bar {
    height: 2px;
  }
}

/* ===== 가로 모드 + 낮은 높이 — 화면 높이가 부족한 경우 ===== */
@media (max-height: 450px) and (orientation: landscape) {
  .fort-header {
    padding: 2px 6px;
  }
  .fort-header .back-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .fort-round-badge {
    font-size: 10px;
  }
  .fort-turn-name {
    font-size: 9px;
  }
  .fort-turn-timer {
    font-size: 12px;
    padding: 1px 6px;
  }
  .fort-controls {
    padding: 3px 6px;
    gap: 4px;
  }
  .fort-ctrl-grp {
    padding: 2px;
  }
  .fort-ctrl-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .fort-zoom-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .fort-fire-btn {
    min-width: 56px;
    height: 38px;
    font-size: 11px;
  }
  .fort-val-num {
    font-size: 11px;
  }
  .fort-players-bar {
    top: 32px;
    max-width: 90px;
  }
  .fort-player-hp-item {
    padding: 2px 4px;
  }
}

/* ================================================ */
/* ===== PvE MODE STYLES ========================== */
/* ================================================ */

/* ===== PvE Overlay (전체 화면 덮기) ===== */
.pve-overlay {
  position: absolute;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  animation: pveFadeIn 0.4s ease;
}
@keyframes pveFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== PvE 공통 버튼 ===== */
.pve-btn {
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.pve-btn:active { transform: scale(0.96); }
.pve-btn-primary {
  background: linear-gradient(135deg, #ff6b35, #ff2d78);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 45, 120, 0.35);
}
.pve-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Stage Intro ===== */
.pve-intro-box {
  text-align: center;
  color: #fff;
  max-width: 360px;
  padding: 32px 24px;
}
.pve-intro-stage {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ff6b35;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.pve-intro-biome {
  font-size: 56px;
  margin: 8px 0 12px;
  animation: pveBounce 1.5s ease infinite;
}
@keyframes pveBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.pve-intro-name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: 'Black Han Sans', sans-serif;
}
.pve-intro-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.5;
}
.pve-intro-info {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}
.pve-dot { opacity: 0.4; }
.pve-intro-player-hp {
  font-size: 13px;
  color: #69f0ae;
  margin-bottom: 16px;
}

/* ===== Stage Banner (게임 중 표시) ===== */
.pve-stage-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 14px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 53, 0.4);
  pointer-events: none;
}
.pve-banner-stage {
  font-size: 13px;
  font-weight: 800;
  color: #ff6b35;
  letter-spacing: 2px;
}
.pve-banner-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: 'Black Han Sans', sans-serif;
}
.pve-banner-enter {
  animation: pveBannerIn 0.5s ease;
}
.pve-banner-exit {
  animation: pveBannerOut 0.5s ease forwards;
}
@keyframes pveBannerIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes pveBannerOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
}

/* ===== Event Cutscene ===== */
.pve-event-box {
  text-align: center;
  color: #fff;
  max-width: 400px;
  padding: 28px 20px;
}
.pve-event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
}
.pve-event-stage {
  font-size: 12px;
  font-weight: 700;
  color: #69f0ae;
  letter-spacing: 1px;
}
.pve-event-hp {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.pve-hp-value { color: #69f0ae; font-weight: 700; }
.pve-event-emoji {
  font-size: 64px;
  margin: 8px 0 16px;
  animation: pveBounce 2s ease infinite;
}
.pve-event-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: 'Black Han Sans', sans-serif;
}
.pve-event-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 1.6;
}
.pve-event-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== Choice Button ===== */
.pve-choice-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font-family: inherit;
}
.pve-choice-btn:hover {
  background: rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.4);
}
.pve-choice-btn:active { transform: scale(0.97); }
.pve-choice-label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.pve-choice-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== Debuff Applied Result ===== */
.pve-debuff-result-box {
  text-align: center;
  color: #fff;
  max-width: 380px;
  padding: 28px 20px;
}
.pve-debuff-result-text {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.pve-heal .pve-debuff-result-text { color: #69f0ae; }
.pve-debuff .pve-debuff-result-text { color: #ff6b35; }
.pve-debuff-cpu-list {
  margin-bottom: 24px;
}
.pve-cpu-debuff-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 6px;
}
.pve-cpu-avatar { font-size: 20px; }
.pve-cpu-name {
  font-size: 13px;
  font-weight: 600;
  min-width: 70px;
  text-align: left;
}
.pve-cpu-debuffs {
  font-size: 12px;
  color: #ff8a80;
  flex: 1;
  text-align: right;
}
.pve-no-debuffs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Position Selection ===== */
.pve-position-box {
  text-align: center;
  color: #fff;
  max-width: 400px;
  padding: 28px 20px;
}
.pve-position-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: 'Black Han Sans', sans-serif;
}
.pve-position-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}
.pve-position-choices {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.pve-position-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 20px 16px;
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  min-width: 90px;
  font-family: inherit;
}
.pve-position-btn:hover {
  background: rgba(100, 255, 218, 0.12);
  border-color: rgba(100, 255, 218, 0.4);
}
.pve-position-btn:active { transform: scale(0.95); }
.pve-pos-icon { font-size: 28px; margin-bottom: 6px; }
.pve-pos-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.pve-pos-detail {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Teleport Animation ===== */
.pve-teleport-box {
  text-align: center;
  color: #fff;
}
.pve-teleport-emoji {
  font-size: 72px;
  animation: pveTeleportPulse 0.6s ease infinite alternate;
}
@keyframes pveTeleportPulse {
  from { transform: scale(1); filter: brightness(1); }
  to   { transform: scale(1.15); filter: brightness(1.4); }
}
.pve-teleport-text {
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Victory / Defeat ===== */
.pve-result-box {
  text-align: center;
  color: #fff;
  max-width: 360px;
  padding: 32px 24px;
}
.pve-result-emoji {
  font-size: 72px;
  margin-bottom: 16px;
}
.pve-victory-box .pve-result-emoji { animation: pveBounce 1.5s ease infinite; }
.pve-result-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: 'Black Han Sans', sans-serif;
}
.pve-victory-box .pve-result-title { color: #ffd700; }
.pve-defeat-box .pve-result-title { color: #ff5252; }
.pve-result-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}
.pve-result-stats {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
  line-height: 1.8;
}
.pve-result-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* ===== Debuff Indicators (플레이어 바에 표시) ===== */
.pve-debuff-icons {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}
.pve-debuff-icon {
  font-size: 10px;
  opacity: 0.85;
  filter: drop-shadow(0 0 2px rgba(255, 0, 0, 0.4));
}
