/* ===== 배틀그라운드 꾸미기 ===== */

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

body {
  font-family: "Jua", "Segoe UI", sans-serif;
  background: #0d1420;
  color: #fff;
  overflow: hidden;
  user-select: none;
}

.숨김 { display: none !important; }

/* ===== 화면 공통 ===== */
.화면 {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
}

#시작화면, #끝화면 {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,180,60,.18), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(60,160,255,.18), transparent 55%),
    linear-gradient(160deg, #101b2e, #1c2b3f 50%, #0d1420);
  overflow-y: auto;
  padding: 24px;
}

.큰제목 {
  font-size: 66px;
  letter-spacing: 3px;
  color: #ffd34d;
  text-shadow: 0 0 34px rgba(255,190,60,.7), 0 6px 0 #6b3a00;
  animation: 둥실 2.4s ease-in-out infinite;
}
@keyframes 둥실 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.설명 { font-size: 24px; color: #cfe3ff; }

/* ===== 조작법 ===== */
.조작법 {
  background: rgba(255,255,255,.07);
  border: 3px solid rgba(255,211,77,.4);
  border-radius: 20px;
  padding: 16px 28px;
  text-align: center;
}
.조작법 h3 { font-size: 24px; color: #ffd34d; margin-bottom: 8px; }
.조작법 p { font-size: 19px; color: #dbe9ff; margin: 4px 0; }
.조작법 b { color: #7ad8ff; }

/* ===== 난이도 ===== */
.난이도칸 { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.난이도 {
  font-family: inherit;
  font-size: 20px;
  padding: 12px 22px;
  border: 3px solid rgba(255,255,255,.25);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  transition: .15s;
}
.난이도:hover { transform: translateY(-3px); background: rgba(255,255,255,.16); }
.난이도.고름 {
  background: linear-gradient(160deg, #ffb020, #ff7a00);
  border-color: #fff3c4;
  color: #2a1400;
  box-shadow: 0 0 22px rgba(255,170,30,.6);
}

/* ===== 큰 버튼 ===== */
.큰버튼 {
  font-family: inherit;
  font-size: 30px;
  padding: 16px 44px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(160deg, #ff8a3d, #e8452a);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 7px 0 #8e1c10, 0 0 30px rgba(255,90,40,.5);
  text-decoration: none;
  transition: .12s;
}
.큰버튼:hover { transform: translateY(-3px); }
.큰버튼:active { transform: translateY(4px); box-shadow: 0 2px 0 #8e1c10; }
.큰버튼.회색 {
  background: linear-gradient(160deg, #6a7a90, #46536a);
  box-shadow: 0 7px 0 #29323f;
  font-size: 22px;
  padding: 12px 30px;
}

/* ===== 기록 ===== */
.기록칸 {
  background: rgba(0,0,0,.35);
  border: 3px solid rgba(122,216,255,.35);
  border-radius: 18px;
  padding: 14px 26px;
  font-size: 20px;
  color: #cfe3ff;
  text-align: center;
  min-width: 280px;
}
.기록칸 b { color: #ffd34d; font-size: 24px; }

/* ===== 돌아가기 ===== */
.돌아가기 {
  position: fixed; top: 12px; left: 14px;
  z-index: 60;
  font-size: 17px;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,.5);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  text-decoration: none;
}
.돌아가기:hover { background: rgba(0,0,0,.75); }

/* ===== 게임 판 ===== */
#판 { position: fixed; inset: 0; width: 100%; height: 100%; cursor: none; }

/* ===== 위쪽 정보 ===== */
.위정보 {
  position: fixed; top: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 12px;
  z-index: 20;
}
.칩 {
  background: rgba(0,0,0,.6);
  border: 3px solid rgba(255,255,255,.22);
  border-radius: 16px;
  padding: 7px 18px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.칩 span { display: block; font-size: 14px; color: #a8bdd8; }
.칩 b { font-size: 26px; }
.칩.생존 { border-color: rgba(122,216,255,.6); }
.칩.생존 b { color: #7ad8ff; }
.칩.킬 { border-color: rgba(255,90,90,.6); }
.칩.킬 b { color: #ff8080; }
.칩.등수 { border-color: rgba(255,211,77,.6); }
.칩.등수 b { color: #ffd34d; }

/* ===== 자기장 알림 ===== */
.자기장알림 {
  position: fixed; top: 110px; left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  font-size: 30px;
  padding: 10px 30px;
  border-radius: 18px;
  background: rgba(140,20,180,.85);
  border: 3px solid #e89aff;
  color: #fff;
  text-shadow: 0 0 14px #ff8aff;
  animation: 깜빡 .7s ease-in-out infinite;
}
@keyframes 깜빡 { 0%,100% { opacity:1; } 50% { opacity:.35; } }

/* ===== 아래쪽 상태 ===== */
.아래정보 {
  position: fixed; bottom: 16px; left: 20px;
  z-index: 20;
  display: flex; flex-direction: column; gap: 8px;
}
.바칸 { display: flex; align-items: center; gap: 10px; }
.바틀 {
  width: 260px; height: 24px;
  background: rgba(0,0,0,.65);
  border: 3px solid rgba(255,255,255,.25);
  border-radius: 14px;
  overflow: hidden;
}
.바 { height: 100%; width: 100%; transition: width .18s; border-radius: 10px; }
.체력바 { background: linear-gradient(90deg, #ff5a5a, #ff9a3d); }
.기력바 { background: linear-gradient(90deg, #3ddc84, #7ad8ff); }
.바글 { font-size: 20px; }
.바글 b { color: #fff; }

.총정보 {
  margin-top: 4px;
  background: rgba(0,0,0,.6);
  border: 3px solid rgba(255,211,77,.5);
  border-radius: 16px;
  padding: 8px 20px;
  font-size: 24px;
  display: flex; gap: 20px; align-items: center;
  width: fit-content;
}
#총알 { color: #ffd34d; font-size: 28px; }
#총알.없음 { color: #ff6a6a; animation: 깜빡 .5s infinite; }

/* ===== 미니맵 ===== */
.미니맵 {
  position: fixed; top: 92px; right: 16px;
  width: 190px; height: 190px;
  z-index: 20;
  background: rgba(0,0,0,.6);
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 16px;
}

/* ===== 줍기 안내 ===== */
.줍기안내 {
  position: fixed; bottom: 46%; left: 50%;
  transform: translateX(-50%);
  z-index: 22;
  font-size: 24px;
  padding: 8px 22px;
  border-radius: 16px;
  background: rgba(0,0,0,.72);
  border: 3px solid #ffd34d;
  color: #ffd34d;
}

/* ===== 알림 ===== */
.알림칸 {
  position: fixed; top: 92px; left: 16px;
  z-index: 22;
  display: flex; flex-direction: column; gap: 6px;
}
.알림 {
  font-size: 19px;
  padding: 7px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,.66);
  border-left: 6px solid #ffd34d;
  animation: 스윽 .3s ease-out;
}
@keyframes 스윽 {
  from { transform: translateX(-40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== 조준점 ===== */
.조준점 {
  position: fixed;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  z-index: 30;
  pointer-events: none;
  border: 3px solid rgba(255,90,90,.9);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,60,60,.8);
}
.조준점::before, .조준점::after {
  content: ""; position: absolute;
  background: rgba(255,90,90,.9);
}
.조준점::before { left: 50%; top: -12px; width: 3px; height: 9px; margin-left: -1.5px; }
.조준점::after { left: 50%; bottom: -12px; width: 3px; height: 9px; margin-left: -1.5px; }

/* ===== 결과판 ===== */
.결과판 {
  background: rgba(0,0,0,.45);
  border: 4px solid rgba(255,211,77,.5);
  border-radius: 22px;
  padding: 20px 40px;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 340px;
}
.결과줄 {
  display: flex; justify-content: space-between;
  font-size: 24px; color: #cfe3ff;
}
.결과줄 b { color: #ffd34d; font-size: 30px; }

@media (max-width: 720px) {
  .큰제목 { font-size: 40px; }
  .미니맵 { width: 120px; height: 120px; }
  .바틀 { width: 160px; }
}
