/* ===== 🏰 올스타 롤 꾸미기 ===== */

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

body {
  font-family: "Jua", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(60,140,255,.18), transparent 50%),
    radial-gradient(circle at 88% 88%, rgba(255,70,70,.18), transparent 50%),
    #0a0f18;
  color: #fff;
  min-height: 100vh;
  padding: 62px 14px 30px;
}

.숨김 { display: none !important; }

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

.화면 { max-width: 1000px; margin: 0 auto; }

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

.설명 { text-align: center; font-size: 20px; color: #cfe3ff; margin: 10px 0 18px; line-height: 1.6; }
.설명 b { color: #ffd34d; }
.줄제목 { text-align: center; font-size: 25px; color: #ffd34d; margin: 22px 0 10px; }
.빈말 { text-align: center; font-size: 20px; color: #8fa4c0; padding: 30px; line-height: 1.7; }
.빈말 a { color: #7ad8ff; }

/* ===== 조작 안내 ===== */
.조작안내 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px; max-width: 760px; margin: 0 auto;
}
.안내칸 {
  background: rgba(0,0,0,.42);
  border: 3px solid rgba(122,216,255,.35);
  border-radius: 16px; padding: 12px;
  text-align: center; font-size: 16px; color: #cfe3ff; line-height: 1.6;
}
.안내칸 b { color: #ffd34d; font-size: 18px; }
/* 🆕 새로 생긴 기능 칸 — 초록빛 */
.안내칸.새것 {
  border-color: rgba(61,220,132,.45);
  background: rgba(61,220,132,.1);
}
.안내칸.새것 b { color: #7dffb0; }

/* ===== 🏆 팀 버프 표시 ===== */
.버프막 {
  position: absolute; top: 74px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
  pointer-events: none; z-index: 8;
}
.버프딱 {
  font-size: 13px; padding: 4px 10px; border-radius: 10px;
  background: rgba(0,0,0,.7); color: #ffd34d;
  border: 2px solid rgba(255,211,77,.5);
  animation: 스윽왼 .3s ease-out;
}
.버프딱.적버프 { color: #ff9a8a; border-color: rgba(255,120,90,.5); }
@keyframes 스윽왼 { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; } }

/* ===== 💀 연속 킬 ===== */
.연속킬 {
  position: absolute; top: 26%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 54px; font-weight: bold;
  color: #fff; text-align: center;
  text-shadow: 0 0 30px #ff2a6a, 0 0 60px #ff2a6a, 0 5px 0 #6b0020;
  pointer-events: none; z-index: 15;
  animation: 킬쾅 .5s cubic-bezier(.2,1.8,.4,1);
}
@keyframes 킬쾅 {
  0% { transform: translate(-50%,-50%) scale(.2) rotate(-14deg); opacity: 0; }
  60% { transform: translate(-50%,-50%) scale(1.25) rotate(4deg); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1) rotate(0); }
}

/* ===== 🌿 숨는 중 ===== */
.숨음표시 {
  position: absolute; bottom: 120px; left: 50%;
  transform: translateX(-50%);
  font-size: 19px; padding: 7px 20px; border-radius: 16px;
  background: rgba(20,60,30,.85);
  border: 3px solid #3ddc84; color: #a8ffc8;
  pointer-events: none; z-index: 9;
  animation: 숨쉼 1.4s ease-in-out infinite;
}
@keyframes 숨쉼 { 0%,100% { opacity: .75; } 50% { opacity: 1; } }

/* 보스 딱지 */
.정보딱.보스 {
  color: #ffb8f0; border-color: rgba(255,130,220,.6); font-size: 14px;
}

/* ===== 고르기 줄 ===== */
.고름줄 { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.고름칸 {
  font-family: inherit; font-size: 19px;
  padding: 11px 22px; border-radius: 16px;
  border: 3px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07);
  color: #fff; cursor: pointer; transition: .14s;
}
.고름칸:hover { transform: translateY(-3px); }
.고름칸.고름 {
  background: linear-gradient(160deg, #4a9aff, #2a5ad8);
  border-color: #c4e4ff; color: #fff; font-weight: bold;
  box-shadow: 0 0 22px rgba(60,150,255,.6);
}

/* ===== 내 챔피언 ===== */
.내캐릭칸 {
  background: rgba(0,0,0,.35);
  border: 4px solid rgba(255,211,77,.45);
  border-radius: 24px; padding: 16px; margin: 18px 0;
  text-align: center;
}
.내캐릭칸 h3 { font-size: 23px; color: #ffd34d; margin-bottom: 12px; }
.고른슬롯 {
  width: 150px; height: 180px; margin: 0 auto;
  border: 4px dashed rgba(255,255,255,.28); border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 46px; color: rgba(255,255,255,.3);
}
.고른슬롯.채움 {
  border-style: solid; border-color: var(--등급색);
  background: linear-gradient(165deg, rgba(255,255,255,.12), rgba(0,0,0,.3));
  box-shadow: 0 0 26px var(--등급색);
}
.고른슬롯 .얼굴 {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--옷색); font-size: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(255,255,255,.35);
}
.고른슬롯 .이름 { font-size: 19px; margin-top: 8px; color: #fff; }
.고른슬롯 .레벨 { font-size: 14px; color: #ffd34d; }
.고른슬롯 .스킬글 { font-size: 13px; color: #b8a8e8; margin-top: 3px; }

/* ===== 큰 버튼 ===== */
.큰버튼 {
  display: block; margin: 0 auto;
  font-family: inherit; font-size: 26px;
  padding: 14px 40px; border: none; border-radius: 22px;
  background: linear-gradient(160deg, #ffb020, #e8722a);
  color: #2a1400; font-weight: bold; cursor: pointer;
  text-decoration: none; text-align: center;
  box-shadow: 0 6px 0 #8e4210, 0 0 26px rgba(255,150,40,.5);
  transition: .12s;
}
.큰버튼:hover { transform: translateY(-3px); }
.큰버튼:active { transform: translateY(4px); box-shadow: 0 2px 0 #8e4210; }
.큰버튼:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.큰버튼.회색 {
  margin-top: 12px; font-size: 20px; padding: 11px 28px; color: #fff;
  background: linear-gradient(160deg, #6a7a90, #46536a);
  box-shadow: 0 6px 0 #29323f;
}
.작은버튼 {
  font-family: inherit; font-size: 17px;
  padding: 8px 20px; border: none; border-radius: 12px;
  background: #46536a; color: #fff; cursor: pointer;
}

/* ===== 고를 판 ===== */
.고를판 { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.고를카드 {
  position: relative;
  background: linear-gradient(165deg, rgba(255,255,255,.1), rgba(0,0,0,.35));
  border: 4px solid var(--등급색); border-radius: 20px;
  padding: 12px 8px; text-align: center; cursor: pointer; transition: .14s;
}
.고를카드:hover { transform: translateY(-5px); box-shadow: 0 8px 24px var(--등급색); }
.고를카드.뽑힘 { outline: 4px solid #4a9aff; outline-offset: 2px; box-shadow: 0 0 26px #4a9aff; }
.고를카드 .얼굴 {
  width: 60px; height: 60px; margin: 0 auto 6px;
  border-radius: 50%; font-size: 31px;
  display: flex; align-items: center; justify-content: center;
  background: var(--옷색); border: 3px solid rgba(255,255,255,.35);
}
.고를카드 h4 { font-size: 17px; }
.고를카드 .작은글 { font-size: 13px; color: #b8c8e0; }
.고를카드 .유형딱 { position: absolute; top: 6px; right: 8px; font-size: 16px; }
.고를카드 .레벨딱 {
  position: absolute; top: 6px; left: 8px; font-size: 12px; color: #ffd34d;
  background: rgba(0,0,0,.5); border-radius: 8px; padding: 1px 6px;
}

/* =========================================================
   협곡
   ========================================================= */
.협곡틀 {
  position: relative; max-width: 900px; margin: 0 auto;
  border: 5px solid rgba(255,211,77,.45); border-radius: 22px;
  overflow: hidden; box-shadow: 0 0 44px rgba(0,0,0,.7);
  touch-action: none;
}
#판 { display: block; width: 100%; height: auto; background: #16301e; cursor: crosshair; }

/* 위쪽 정보막 */
.머리막 {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; gap: 7px; justify-content: center; flex-wrap: wrap;
  padding: 7px; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.7), transparent);
}
.정보딱 {
  font-size: 16px; padding: 4px 12px; border-radius: 12px;
  background: rgba(0,0,0,.65); border: 2px solid rgba(255,255,255,.28); color: #fff;
}
.정보딱 b { font-size: 20px; }
.정보딱.파랑 { border-color: rgba(90,160,255,.6); }
.정보딱.파랑 b { color: #7ab8ff; }
.정보딱.빨강 { border-color: rgba(255,90,90,.6); }
.정보딱.빨강 b { color: #ff8a8a; }
.정보딱.골드 { border-color: rgba(255,211,77,.6); }
.정보딱.골드 b { color: #ffd34d; }
.정보딱.웨이브 { color: #a8e8b8; border-color: rgba(120,220,150,.5); font-size: 14px; }

/* 본진 체력 */
.본진막 {
  position: absolute; top: 42px; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 10px;
  pointer-events: none;
}
.본진칸 {
  background: rgba(0,0,0,.6); border-radius: 12px;
  padding: 5px 11px; font-size: 13px; min-width: 150px;
}
.본진칸.파랑 { border: 2px solid rgba(90,160,255,.6); color: #bcd8ff; }
.본진칸.빨강 { border: 2px solid rgba(255,90,90,.6); color: #ffc8c8; }
.작은틀 {
  height: 9px; background: rgba(0,0,0,.7); border-radius: 5px;
  overflow: hidden; margin: 3px 0;
}
.작은바 { height: 100%; width: 100%; transition: width .25s; }
.파랑바 { background: linear-gradient(90deg, #4a9aff, #8ac8ff); }
.빨강바 { background: linear-gradient(90deg, #ff4a4a, #ff9a6a); }
.탑글 { font-size: 12px; opacity: .85; }

/* 아래쪽 내 상태 */
.발막 {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 12px 10px; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
}
.상태칸 { display: flex; gap: 10px; align-items: center; max-width: 430px; }
.얼굴칸 {
  width: 50px; height: 50px; border-radius: 50%; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); border: 3px solid #4a9aff; flex-shrink: 0;
}
.바들 { flex: 1; }
.긴틀 {
  position: relative; height: 19px; margin-bottom: 4px;
  background: rgba(0,0,0,.7); border: 2px solid rgba(255,255,255,.25);
  border-radius: 10px; overflow: hidden;
}
.긴틀.짧음 { height: 14px; }
.긴바 { height: 100%; width: 100%; transition: width .18s; }
.체력바 { background: linear-gradient(90deg, #3ddc84, #a8ffc8); }
.마나바 { background: linear-gradient(90deg, #4a7aff, #a0c8ff); }
.경험바 { background: linear-gradient(90deg, #ffb020, #ffd88a); }
.긴글 {
  position: absolute; inset: 0; font-size: 12px; line-height: 15px;
  text-align: center; color: #fff; text-shadow: 0 1px 3px #000;
}
.아이템줄 { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.아이템딱 {
  font-size: 14px; padding: 3px 10px; border-radius: 10px;
  background: rgba(0,0,0,.6); border: 2px solid #ffd34d; color: #ffd34d;
}

/* 싸움 로그 */
.싸움로그 {
  position: absolute; top: 78px; right: 10px;
  width: 235px; pointer-events: none;
  display: flex; flex-direction: column; gap: 4px;
}
.로그줄 {
  font-size: 13px; padding: 4px 10px; border-radius: 10px;
  background: rgba(0,0,0,.68); border-left: 4px solid #4a9aff;
  color: #d8e8ff; animation: 스윽 .3s ease-out;
}
.로그줄.적 { border-left-color: #ff6a4a; color: #ffd8c8; }
.로그줄.금 { border-left-color: #ffd34d; color: #fff0b8; }
@keyframes 스윽 { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; } }

/* 큰 알림 */
.큰알림 {
  position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%);
  font-size: 42px; font-weight: bold; color: #ffd34d;
  text-shadow: 0 0 26px #000, 0 4px 0 #6b3a00;
  pointer-events: none; text-align: center; line-height: 1.3;
  animation: 알림뿅 .4s cubic-bezier(.3,1.7,.5,1);
}
@keyframes 알림뿅 { from { transform: translate(-50%,-50%) scale(.4); opacity: 0; } }

/* 부활 막 */
.부활막 {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(10,0,20,.75);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.부활글 { font-size: 40px; color: #ff8a8a; text-shadow: 0 0 20px #000; }
.부활초 {
  font-size: 88px; color: #ffd34d; font-weight: bold;
  text-shadow: 0 0 30px #000;
  animation: 초깜빡 1s ease-in-out infinite;
}
@keyframes 초깜빡 { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.부활작은글 { font-size: 19px; color: #cfe3ff; }

/* 🛒 상점 */
.상점막 {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(8,14,26,.94);
  padding: 18px; overflow-y: auto;
}
.상점막 h2 {
  text-align: center; font-size: 32px; color: #ffd34d; margin-bottom: 4px;
}
.상점골드 { font-size: 22px; color: #fff; }
.상점골드 b { color: #ffd34d; }
.상점판 {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 9px; margin: 6px 0 14px;
}
/* 상점 종류 제목 */
.상점제목 {
  font-size: 20px; color: #ffd34d;
  margin: 12px 0 2px; padding-bottom: 4px;
  border-bottom: 2px dashed rgba(255,211,77,.35);
}
.상점칸 {
  background: linear-gradient(165deg, rgba(255,255,255,.1), rgba(0,0,0,.4));
  border: 3px solid rgba(255,211,77,.4); border-radius: 16px;
  padding: 10px; text-align: center; cursor: pointer; transition: .14s;
}
.상점칸:hover { transform: translateY(-4px); border-color: #ffd34d; }
.상점칸.못삼 { opacity: .4; cursor: not-allowed; }
.상점칸.가짐 { border-color: #3ddc84; background: rgba(61,220,132,.16); }
.상점칸 .그림 { font-size: 34px; }
.상점칸 h4 { font-size: 16px; color: #fff; margin: 3px 0; }
.상점칸 .효과 { font-size: 12px; color: #a8c8e8; line-height: 1.4; }
.상점칸 .값 { font-size: 16px; color: #ffd34d; margin-top: 4px; }
.상점막 .작은버튼 { display: block; margin: 0 auto; }

/* ===== 모바일 조작 ===== */
.모바일조작 {
  display: none; max-width: 900px; margin: 12px auto 0;
  justify-content: space-between; align-items: center; padding: 0 10px;
}
.조이스틱 {
  position: relative; width: 125px; height: 125px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 4px solid rgba(255,255,255,.25);
  touch-action: none;
}
.막대 {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(122,184,255,.75); border: 3px solid #fff;
}
.버튼묶음 { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 180px; }
.둥근버튼 {
  width: 70px; height: 70px; border-radius: 50%;
  font-size: 29px; border: 4px solid rgba(255,255,255,.35);
  cursor: pointer; touch-action: none;
}
.둥근버튼.공격 { background: rgba(255,90,60,.7); }
.둥근버튼.스킬 { background: rgba(90,120,255,.7); }
.둥근버튼.점멸 { background: rgba(60,220,140,.7); }
.둥근버튼.귀환 { background: rgba(200,140,255,.7); }

@media (max-width: 880px), (pointer: coarse) {
  .모바일조작 { display: flex; }
}

/* ===== 결과 ===== */
.결과판 {
  max-width: 440px; margin: 18px auto;
  background: rgba(0,0,0,.45);
  border: 4px solid rgba(255,211,77,.5); border-radius: 24px;
  padding: 20px 28px;
}
.결과줄 { display: flex; justify-content: space-between; font-size: 19px; color: #cfe3ff; margin: 7px 0; }
.결과줄 b { color: #ffd34d; font-size: 22px; }
.레벨업알림 {
  max-width: 460px; margin: 0 auto 16px;
  text-align: center; font-size: 19px; color: #3ddc84; line-height: 1.6;
}

@media (max-width: 600px) {
  .큰제목 { font-size: 32px; }
  .고를판 { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .싸움로그 { width: 160px; }
  .로그줄 { font-size: 11px; }
  .큰알림 { font-size: 28px; }
  .본진칸 { min-width: 110px; font-size: 11px; }
}
