/* 고블린 키우기 - 이세계 '스테이터스 창' 스타일: 청록색 홀로그램 창 + 금색 장식 + 일러스트풍 배경 */
:root {
  --bg: #070d1c;
  --ink: #eaf6ff;
  --muted: #7f9cc0;
  --cyan: #66e0ff;
  --cyan-d: #2a8fd0;
  --gold: #ffd479;
  --gold-d: #b8801a;
  --red: #ff5a5a;
  --green: #6fe06a;
  --line: rgba(102, 224, 255, 0.35);
  --win-a: rgba(16, 44, 88, 0.86);
  --win-b: rgba(8, 20, 48, 0.9);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 0%, #16264a 0%, var(--bg) 62%) fixed;
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { font-family: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
b { font-variant-numeric: tabular-nums; }
svg { display: block; }
.ic { width: 1.4em; height: 1.4em; flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5)); }
.ic--xl { width: 64px; height: 64px; margin: 0 auto; filter: drop-shadow(0 0 12px rgba(255, 210, 90, 0.7)); }
.gob-svg, .mon-svg { overflow: visible; }
/* 이미지 폴더의 그림(images/)을 쓸 때. 얼굴 전용 그림이 없으면 전신 그림의 윗부분을 정사각형으로 잘라 쓴다 */
.gob-img, .mon-img, .ic-img { object-fit: contain; }
.gob-crop { display: block; aspect-ratio: 1; background-repeat: no-repeat; background-size: 170% auto; background-position: 50% 22%; }

/* ===== 홀로그램 창 ===== */
.win, .card {
  position: relative;
  background: linear-gradient(180deg, var(--win-a), var(--win-b));
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(70, 190, 255, 0.16), inset 0 0 18px rgba(70, 150, 255, 0.12);
}
.win { border-color: rgba(102, 224, 255, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.win::before, .card::before, .win::after, .card::after {
  content: ''; position: absolute; width: 11px; height: 11px; pointer-events: none;
}
.win::before, .card::before { top: -2px; left: -2px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.win::after, .card::after { right: -2px; bottom: -2px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }

.gold-text {
  background: linear-gradient(180deg, #fff6c8, #ffc84a 70%, #e0982a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== 버튼 ===== */
.btn {
  border: 0;
  border-bottom: 4px solid #9a5a06;
  padding: 9px 16px 7px;
  font-weight: 900;
  font-size: 14px;
  color: #3a2200;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, #fff0b4, #ffcf55 55%, #f3a72a);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform 0.05s, filter 0.1s;
}
.btn:not(:disabled):hover { filter: brightness(1.06); }
.btn:not(:disabled):active { transform: translateY(2px); border-bottom-width: 2px; }
.btn:disabled { background: linear-gradient(180deg, #43506a, #2c3650); border-bottom-color: #1a2032; color: #7d8aa6; text-shadow: none; }
.btn--gray { background: linear-gradient(180deg, #6a7c9c, #46567a); border-bottom-color: #1e2840; color: #eaf2ff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
.btn--blue { background: linear-gradient(180deg, #9ce4ff, #45b4f0 55%, #2a8ad0); border-bottom-color: #14507e; color: #04243d; }
.btn--wide { width: 100%; padding: 13px 16px 10px; font-size: 16px; }

/* ===== 앱 틀 ===== */
.app {
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.7);
  position: relative;
}

/* ===== 전투 장면 ===== */
.stage {
  --sky-a: #3a8fe0; --sky-b: #8fd0ff; --sky-c: #ffe9b8; --sun: #fff4c0;
  --cloud: #fff; --cloud-s: #cfe4f8; --far: #6aa0b8; --cap: #fff; --capop: 0; --mid: #3f9a5a; --tree: #1f6b3a;
  --ground: #4cae48; --ground-top: #8ee060; --grass: #2f8a34; --isle-top: #5cc050; --isle-rock: #7a5a44; --fx: #ffef8a;
  position: relative;
  flex: none;
  height: clamp(320px, 50vh, 440px);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  border-bottom: 3px solid var(--gold-d);
}
.stage[data-biome='1'] { --sky-a: #0c0820; --sky-b: #2a1f5a; --sky-c: #6a4aa8; --sun: #cfe0ff; --cloud: #6a5a9a; --cloud-s: #4a3a7a; --far: #3a2f68; --mid: #2a2255; --tree: #1c163e; --ground: #362e66; --ground-top: #7a66d8; --grass: #4a3a9a; --isle-top: #4a3a8a; --isle-rock: #2a2048; --fx: #b8a0ff; }
.stage[data-biome='2'] { --sky-a: #f08a3a; --sky-b: #ffc878; --sky-c: #ffeeb8; --sun: #fff8d0; --cloud: #fff0d0; --cloud-s: #f0c890; --far: #d89a5a; --mid: #d8a04a; --tree: #8a9a3a; --ground: #e6bc66; --ground-top: #fff0a0; --grass: #c89a3a; --isle-top: #d8b060; --isle-rock: #9a6a3a; --fx: #ffe8a0; }
.stage[data-biome='3'] { --sky-a: #5a8ed0; --sky-b: #b8dcf8; --sky-c: #f0faff; --sun: #fff; --cloud: #fff; --cloud-s: #d0e4f8; --far: #9cb8d8; --capop: 1; --mid: #dcecf8; --tree: #3a7a78; --ground: #f4fbff; --ground-top: #fff; --grass: #b8d4ec; --isle-top: #f0f8ff; --isle-rock: #8a9ab0; --fx: #fff; }
.stage[data-biome='4'] { --sky-a: #2a0808; --sky-b: #b02a14; --sky-c: #ff8a3a; --sun: #ffd28a; --cloud: #6a2a2a; --cloud-s: #401414; --far: #5a2a26; --mid: #3a1a18; --tree: #200c0c; --ground: #3a1a16; --ground-top: #ff6a2a; --grass: #7a2a10; --isle-top: #5a2a20; --isle-rock: #2a1210; --fx: #ff9a3a; }
.stage[data-biome='5'] { --sky-a: #150a2a; --sky-b: #5a2a7a; --sky-c: #d878b8; --sun: #f8e0ff; --cloud: #7a4a9a; --cloud-s: #4a2a6a; --far: #3a2456; --mid: #2a1a44; --tree: #1a102e; --ground: #2e2050; --ground-top: #a878e8; --grass: #4a3078; --isle-top: #4a3070; --isle-rock: #221638; --fx: #e0a0ff; }

/* 지역 안 진행(phase)과 회차(round)에 따라 하늘 색조를 바꾼다. 변수로 나눠 두 가지를 겹쳐 쓴다. */
.stage { --phase-f: brightness(1); --round-f: hue-rotate(0deg); }
.stage[data-phase='1'] { --phase-f: brightness(0.86) saturate(1.1); }
.stage[data-phase='boss'] { --phase-f: brightness(0.74) saturate(1.15) contrast(1.05); }
.stage[data-round='1'] { --round-f: hue-rotate(40deg) saturate(1.15); }
.stage[data-round='2'] { --round-f: hue-rotate(-45deg) saturate(1.2); }
.stage[data-round='3'] { --round-f: hue-rotate(95deg) saturate(1.1); }
.stage[data-round='4'] { --round-f: hue-rotate(160deg) saturate(1.25) brightness(0.9); }
.stage__sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 52%, var(--sky-c) 100%); transition: background 0.6s, filter 0.9s; filter: var(--round-f) var(--phase-f); }
.stage__sun {
  position: absolute; left: 76%; top: 15%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 46px 18px color-mix(in srgb, var(--sun) 60%, transparent), 0 0 120px 40px color-mix(in srgb, var(--sun) 25%, transparent);
}
.stage__rays {
  position: absolute; left: 76%; top: 15%; width: 900px; height: 900px; margin: -450px 0 0 -450px; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.16) 0 5deg, transparent 5deg 16deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 55%); mask-image: radial-gradient(circle, #000 0%, transparent 55%);
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.stage__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__art path, .stage__art ellipse, .stage__art use { transition: fill 0.6s; }
.isle { animation: floaty 7s ease-in-out infinite; }
.isle:nth-of-type(2) { animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.isle-top { fill: var(--isle-top); } .isle-rock { fill: var(--isle-rock); }
.c-cloud { fill: var(--cloud); opacity: 0.95; } .c-cloud-s { fill: var(--cloud-s); opacity: 0.9; }
.cloud--a { animation: drift 46s linear infinite; } .cloud--b { animation: drift 62s linear infinite; animation-delay: -30s; }
@keyframes drift { 0% { transform: translateX(-60px); } 100% { transform: translateX(120px); } }
.c-far { fill: var(--far); opacity: 0.9; } .c-cap { fill: var(--cap); opacity: var(--capop); }
.c-mid { fill: var(--mid); } .c-tree { fill: var(--tree); }
.c-ground { fill: var(--ground); } .c-ground-top { stroke: var(--ground-top); stroke-width: 4; stroke-linecap: round; }
.c-grass { fill: var(--grass); }

.stage__fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stage__fx i {
  position: absolute; bottom: 18%; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--fx); box-shadow: 0 0 8px 1px var(--fx); opacity: 0;
  animation: rise var(--d) ease-in-out infinite; animation-delay: var(--dl);
}
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 0.95; } 85% { opacity: 0.5; } 100% { transform: translate(var(--dx), -230px); opacity: 0; } }
.stage--boss::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  box-shadow: 0 0 70px 10px rgba(255, 40, 60, 0.55) inset; animation: bossPulse 1.6s ease-in-out infinite;
}
@keyframes bossPulse { 50% { opacity: 0.4; } }

/* ===== 위쪽 정보 ===== */
.hud { position: absolute; top: 0; left: 0; right: 0; padding: max(8px, env(safe-area-inset-top)) 8px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; z-index: 5; pointer-events: none; }
.hud__hero { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; min-width: 0; flex: 1; max-width: 62%; }
.avatar {
  width: 52px; height: 52px; flex: none; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #b6e884, #3f7a2a);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 0 3px var(--gold);
}
.avatar .gob-svg { width: 100%; height: 100%; }
.hud__info { min-width: 0; flex: 1; }
.hud__title { font-weight: 900; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; text-shadow: 0 1px 3px #000; }
.hud__row { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.lvbadge {
  flex: none; font-weight: 900; font-size: 11px; color: #3a2200; padding: 1px 8px 1px 6px;
  background: linear-gradient(180deg, #ffefb0, #f0b030);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.hud__exp { font-size: 9px; color: var(--muted); font-weight: 700; text-align: right; }
.hud__cur { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.plate {
  display: flex; align-items: center; gap: 6px; min-width: 104px; justify-content: flex-end;
  padding: 3px 12px 3px 8px; font-size: 14px; font-weight: 900;
  background: linear-gradient(90deg, rgba(8, 20, 48, 0.4), rgba(8, 20, 48, 0.86));
  border-right: 3px solid var(--gold);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
  text-shadow: 0 1px 2px #000;
}
.plate .ic { width: 20px; height: 20px; }
.plate--token b { color: var(--gold); }

/* ===== 게이지 ===== */
.bar { position: relative; height: 9px; background: #03070f; border: 1px solid rgba(255, 255, 255, 0.22); overflow: hidden; transform: skewX(-18deg); flex: 1; }
.bar i { display: block; height: 100%; width: 0; transition: width 0.12s linear; position: relative; }
.bar i::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 45%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent); }
.bar i.trail { position: absolute; left: 0; top: 0; background: #ffe9a0; transition: width 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) 0.28s; }
.bar i.trail::after { display: none; }
.bar--hp i { background: linear-gradient(90deg, #35b14a, #7be86a); }
.bar--mon i { background: linear-gradient(90deg, #c22a3a, #ff6a5a); }
.bar--hp i.trail, .bar--mon i.trail { background: #ffe9a0; }
.bar--exp { height: 8px; }
.bar--exp i { background: linear-gradient(90deg, #2a8ae0, #7ad8ff); }

/* ===== 스테이지 띠 ===== */
.ribbon { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); z-index: 4; pointer-events: none; }
.ribbon__in {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 30px 5px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(20, 40, 90, 0.92), rgba(6, 14, 36, 0.94));
  border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
}
.ribbon__biome { font-size: 10px; font-weight: 800; color: var(--cyan); letter-spacing: 0.08em; }
.ribbon__no { font-size: 17px; font-weight: 900; letter-spacing: 0.08em; background: linear-gradient(180deg, #fff6c8, #ffc84a 70%, #e0982a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pips { display: flex; gap: 5px; min-height: 12px; align-items: center; }
.pips i { width: 9px; height: 9px; transform: rotate(45deg); background: #1c2a4a; border: 1.5px solid #0a1224; }
.pips i.on { background: linear-gradient(135deg, #fff6c8, #ffc84a); box-shadow: 0 0 7px rgba(255, 210, 90, 0.9); }
.pips i.boss { width: 16px; height: 16px; transform: none; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 5C16 5 7 17 9 30c1 6 5 8 8 10v11h30V40c3-2 7-4 8-10C57 17 48 5 32 5Z' fill='%23fff' stroke='%231b1533' stroke-width='4' stroke-linejoin='round'/%3E%3Cellipse cx='22' cy='30' rx='7' ry='8' fill='%2320142e'/%3E%3Cellipse cx='42' cy='30' rx='7' ry='8' fill='%2320142e'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ===== 등장인물 ===== */
.actor { position: absolute; bottom: 58px; display: flex; flex-direction: column; align-items: center; width: 46%; pointer-events: none; z-index: 2; }
.actor--hero { left: 2%; }
.actor--enemy { right: 2%; }
.tag { width: 74%; text-align: center; margin-bottom: 5px; position: relative; z-index: 3; }
.actor--hero .tag { margin-bottom: 14px; }
.tag__name { font-size: 12px; font-weight: 900; text-shadow: 0 1px 3px #000, 0 0 8px #000; margin-bottom: 3px; white-space: nowrap; }
.tag .bar { width: 100%; }
.tag__hp { font-size: 10px; font-weight: 800; text-shadow: 0 1px 3px #000; margin-top: 2px; }
.actor--enemy .tag__name { color: #ffb8b0; }
.actor__sprite { display: flex; justify-content: center; align-items: flex-end; }
.actor--hero .actor__sprite { width: 134px; height: 156px; transform-origin: 50% 100%; animation: breathe 1.5s ease-in-out infinite; }
.actor__body { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: flex-end; transform-origin: 50% 100%; will-change: transform; }
.actor--hero .gob-svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35)); transform: scale(var(--s, 1)); transform-origin: 50% 100%; }
.actor--enemy .actor__sprite { width: 128px; height: 120px; transform-origin: 50% 100%; animation: breathe 1.9s ease-in-out infinite; animation-delay: -0.7s; }
.actor--enemy .mon-svg { width: 100%; height: 100%; filter: var(--tint, sepia(0)) drop-shadow(0 3px 3px rgba(0, 0, 0, 0.4)); }
.stage--boss .actor--enemy .actor__sprite { width: 178px; height: 166px; }
.stage--boss .actor--enemy .mon-svg { filter: var(--tint, sepia(0)) drop-shadow(0 0 14px rgba(255, 60, 60, 0.85)) drop-shadow(0 3px 3px rgba(0, 0, 0, 0.4)); }
/* 숨쉬기: 위로 살짝 늘어나고 아래로 눌리는 느낌 (발은 바닥에 붙어 있다) */
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(0.985, 1.025); } }
.actor--hero .actor__sprite { transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1), filter 0.4s; }
.stage.is-down .actor--hero .actor__sprite { animation: none; filter: grayscale(1) brightness(0.7); transform: rotate(-80deg) translate(10px, 8px); }

.float-layer { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.float { position: absolute; font-weight: 900; font-size: 17px; text-shadow: 0 2px 0 #000, 0 0 8px #000; white-space: nowrap; will-change: transform, opacity; }
.float--dmg { color: #fff; }
.float--gold { color: var(--gold); }
.float--big { font-size: 26px; color: #ffe27a; }
.float--hit { font-size: 15px; color: #fff; }
.float--comp { font-size: 12px; color: #b8d8ff; opacity: 0.9; }
.float--tap { font-size: 22px; color: #fff3b0; -webkit-text-stroke: 1px rgba(120, 60, 0, 0.6); }
.float--lv { font-size: 22px; letter-spacing: 0.06em; color: #fff6b0; text-shadow: 0 2px 0 #7a4a00, 0 0 12px #ffb400; }
.float--hurt { color: #ff8a8a; font-size: 14px; }

/* ===== 연출 (움직임은 app.js가 Web Animations로 넣고, 여기는 모양만) ===== */
.flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 55%, transparent 35%, rgba(255, 40, 60, 0.75)); }
.fx { position: absolute; z-index: 6; pointer-events: none; will-change: transform, opacity; }
.fx-coin { width: 11px; height: 11px; margin: -5px 0 0 -5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8c8, #ffc93a 55%, #b8801a); box-shadow: 0 0 6px rgba(255, 200, 60, 0.8); }
.fx-ring { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid rgba(255, 244, 180, 0.9); box-shadow: 0 0 10px rgba(255, 220, 90, 0.7); }
.fx-tap { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); }
.fx-slash { width: 84px; height: 6px; margin: -3px 0 0 -42px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff 25%, #fff 75%, transparent); box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8); }
.fx-spark { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff7c2; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.fx-dying { display: flex; align-items: flex-end; justify-content: center; transform-origin: 50% 100%; }
.fx-dying .mon-svg { width: 100%; height: 100%; object-fit: contain; filter: var(--tint, sepia(0)) drop-shadow(0 3px 3px rgba(0, 0, 0, 0.4)); }
.fx-lv { width: 90px; height: 24px; margin: -12px 0 0 -45px; border-radius: 50%; border: 3px solid rgba(255, 230, 120, 0.95); box-shadow: 0 0 14px rgba(255, 200, 60, 0.85), inset 0 0 10px rgba(255, 220, 90, 0.6); }

.tap-hint {
  position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 4; pointer-events: none;
  display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 2px 12px 2px 6px;
  background: rgba(6, 14, 36, 0.62); color: #dbe8f5; white-space: nowrap; border-radius: 999px;
  animation: hint 1.8s ease-in-out infinite;
}
.tap-hint .ic { width: 16px; height: 16px; }
@keyframes hint { 50% { opacity: 0.45; } }
.down { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); z-index: 7; background: rgba(0, 0, 0, 0.78); border: 2px solid var(--red); padding: 8px 18px; font-weight: 900; font-size: 14px; white-space: nowrap; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }

/* ===== 능력치 줄 ===== */
.statbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 5px 6px; background: linear-gradient(0deg, rgba(4, 8, 22, 0.92), rgba(4, 8, 22, 0.55)); }
.stat { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 2px 6px; background: rgba(20, 50, 100, 0.4); border-left: 2px solid var(--cyan); }
.stat .ic { width: 20px; height: 20px; }
.stat span { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.stat small { font-size: 9px; color: var(--muted); font-weight: 700; }
.stat b { font-size: 12px; font-weight: 900; white-space: nowrap; }
.stat--dps { border-left-color: var(--gold); background: rgba(90, 64, 10, 0.45); }
.stat--dps b { color: var(--gold); }

/* ===== 아래 창 ===== */
.panel { flex: 1; min-height: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 0%, #14285a, #0a1230 70%); position: relative; }
.tabnav { flex: none; display: grid; grid-template-columns: repeat(8, 1fr); background: linear-gradient(180deg, #14224a, #0b1533); border-bottom: 1px solid var(--line); }
.tabnav__btn {
  position: relative; background: none; border: 0; padding: 7px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 11px; font-weight: 800; color: var(--muted);
}
.tabnav__btn .ic { width: 28px; height: 28px; filter: grayscale(0.8) brightness(0.7); transition: transform 0.15s, filter 0.15s; }
.tabnav__btn.is-on { color: var(--gold); background: linear-gradient(180deg, rgba(102, 224, 255, 0.16), transparent); box-shadow: 0 -3px 0 var(--gold) inset; }
.tabnav__btn.is-on .ic { filter: none; transform: translateY(-1px) scale(1.1); }
.dot { position: absolute; top: 4px; right: calc(50% - 26px); width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #0b1533, 0 0 8px var(--red); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.3); } }

.tabs { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 10px calc(16px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.sect { margin: 18px 2px 8px; font-size: 14px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.sect small { color: var(--muted); font-weight: 700; font-size: 11px; margin-left: 2px; }
.sect .ic { width: 22px; height: 22px; }

/* ===== 강화 ===== */
.upgrades { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.buymode { display: flex; align-items: center; gap: 6px; margin: 0 2px 10px; }
.buymode span { flex: 1; font-size: 12px; font-weight: 800; color: var(--muted); }
.buymode button { min-width: 52px; padding: 6px 10px; font-size: 12px; font-weight: 900; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); color: var(--muted); }
.buymode button.is-on { color: #3a2400; background: linear-gradient(180deg, #fff0b8, #ffc84a); border-color: var(--gold-d); }
.up { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; }
.up__tile {
  width: 58px; height: 58px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 28%, var(--tone, #2a5a9a), #0a1a3e 85%);
  border: 2px solid var(--gold); border-radius: 8px; box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5), 0 0 10px var(--tone, transparent);
}
.up__tile .ic { width: 40px; height: 40px; }
.up[data-key='weapon'] { --tone: #b8402e; } .up[data-key='armor'] { --tone: #2a62c8; } .up[data-key='speed'] { --tone: #c8901a; }
.up[data-key='companion'] { --tone: #3a9a2a; } .up[data-key='loot'] { --tone: #a8780a; }
.up__name { font-weight: 900; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lv { font-size: 10px; font-weight: 900; color: #3a2200; padding: 0 7px; background: linear-gradient(180deg, #ffefb0, #f0b030); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.up__desc { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.up__desc em { font-style: normal; color: var(--green); font-weight: 800; }
.mile { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 10px; color: var(--cyan); font-weight: 700; }
.mile .bar { height: 5px; max-width: 90px; }
.mile .bar i { background: linear-gradient(90deg, #2a8ae0, #7ad8ff); }
.up__btn { min-width: 88px; display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.15; padding: 7px 10px 5px; }
.up__btn small { font-size: 9px; font-weight: 800; opacity: 0.75; }
.up__btn span { display: flex; align-items: center; gap: 4px; }
.up__btn .ic { width: 16px; height: 16px; filter: none; }

/* ===== 전직 ===== */
.classcard { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; padding: 10px; }
.classcard--now { border-color: rgba(255, 212, 121, 0.6); }
.classcard__art { height: 108px; display: grid; place-items: center; background: radial-gradient(circle at 50% 75%, rgba(102, 224, 255, 0.22), transparent 70%); }
.classcard__art .gob-svg { height: 108px; width: auto; max-width: 100%; }
.classcard__name { font-size: 18px; font-weight: 900; }
.classcard__desc { font-size: 12px; color: var(--muted); margin: 3px 0 7px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 10px; font-weight: 900; padding: 1px 7px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.15); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.chip--up { color: var(--green); } .chip--down { color: #ff9a8f; }
.choice__title { margin: 16px 2px 8px; font-size: 13px; font-weight: 900; color: var(--gold); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 8px; }
.choice.is-ready { border-color: rgba(255, 212, 121, 0.75); box-shadow: 0 0 16px rgba(255, 212, 121, 0.25), inset 0 0 18px rgba(70, 150, 255, 0.12); }
.choice__art { flex: none; height: 96px; width: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 78%, rgba(102, 224, 255, 0.2), transparent 70%); }
.choice__art .gob-svg { height: 96px; width: auto; max-width: 100%; }
.choice.is-locked .choice__art { filter: brightness(0.35) saturate(0.4); }
.choice__name { font-size: 14px; font-weight: 900; }
.choice__desc { font-size: 11px; color: var(--muted); line-height: 1.4; min-height: 31px; }
.choice .btn { width: 100%; padding: 8px 8px 6px; font-size: 13px; margin-top: 2px; }
.notice { font-size: 12px; color: var(--muted); text-align: center; padding: 12px; margin-top: 10px; line-height: 1.6; border: 1px dashed var(--line); background: rgba(10, 30, 70, 0.4); }
.codex { display: block; }
.achv { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 8px; }
.ach { display: flex; align-items: center; gap: 8px; padding: 8px; min-width: 0; background: rgba(10, 30, 70, 0.5); border: 1px solid var(--line); }
.ach.is-on { border-color: rgba(255, 212, 121, 0.7); background: linear-gradient(180deg, rgba(90, 64, 10, 0.5), rgba(10, 30, 70, 0.5)); }
.ach .ic { width: 26px; height: 26px; filter: grayscale(1) brightness(0.55); }
.ach.is-on .ic { filter: drop-shadow(0 0 4px rgba(255, 212, 121, 0.7)); }
.ach__body { min-width: 0; flex: 1; }
.ach__name { font-size: 12px; font-weight: 800; }
.ach__desc { font-size: 10.5px; color: var(--muted); line-height: 1.35; }
.ach.is-on .ach__desc { color: var(--gold); }
.ach__bar { height: 4px; margin-top: 4px; background: rgba(0, 0, 0, 0.45); }
.ach__bar i { display: block; height: 100%; background: linear-gradient(90deg, #2a8ae0, #7ad8ff); }
.ach__bar i.is-full { background: var(--gold); }

/* ===== 환생 ===== */
.prestige-card { text-align: center; padding: 20px 14px; border-color: rgba(255, 212, 121, 0.55); background: radial-gradient(ellipse at 50% 0%, rgba(120, 84, 10, 0.55), var(--win-b) 70%); }
.prestige-card h3 { margin: 6px 0; font-size: 20px; font-weight: 900; background: linear-gradient(180deg, #fff6c8, #ffc84a 70%, #e0982a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hint { color: #cdd8f0; font-size: 13px; line-height: 1.65; margin: 0 0 14px; }
.prestige-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.prestige-stats div { background: rgba(0, 0, 0, 0.4); padding: 8px 4px; border-top: 2px solid var(--gold); }
.prestige-stats small { display: block; font-size: 10px; color: var(--muted); }
.prestige-stats b { font-size: 16px; font-weight: 900; color: var(--gold); }

/* ===== 기록 ===== */
.log { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.log li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 7px 10px; background: rgba(10, 30, 70, 0.5); border-left: 3px solid rgba(102, 224, 255, 0.4); }
.log li:first-child { color: var(--ink); border-left-color: var(--cyan); }
.log li .ic { width: 22px; height: 22px; }
.log .is-good { color: var(--green); } .log .is-bad { color: #ff9a8f; } .log .is-gold { color: var(--gold); }
.foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-top: 16px; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 12px; padding: 4px; }

/* ===== 창(팝업) ===== */
.modal { position: fixed; inset: 0; background: rgba(2, 4, 14, 0.78); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 20; }
.modal__box { width: 100%; max-width: 360px; padding: 20px 18px 18px; animation: pop 0.18s ease-out; border-color: rgba(255, 212, 121, 0.7); }
@keyframes pop { from { transform: scale(0.92); opacity: 0; } }
.modal__box h2 { margin: 0 0 12px; font-size: 18px; font-weight: 900; text-align: center; background: linear-gradient(180deg, #fff6c8, #ffc84a 70%, #e0982a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal__body { font-size: 14px; line-height: 1.75; text-align: center; }
.modal__body .gob-svg { width: 130px; height: 140px; margin: 0 auto 6px; }
.modal__body .ic { display: inline-block; vertical-align: middle; width: 20px; height: 20px; margin-right: 3px; }
.modal__body small { color: var(--muted); }
.modal__actions { display: flex; gap: 8px; margin-top: 16px; }
.modal__actions .btn { flex: 1; }

/* ===== 던전 미니게임 ===== */
.mg__box { max-width: 380px; text-align: center; }
.mg__desc { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.mg__round { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.mg__round b { color: var(--ink); }
.mg__skip { display: block; margin: 12px auto 0; background: none; border: none; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.mg__tap { width: 100%; padding: 12px; font-size: 15px; margin-top: 4px; }

.mg__timerbar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-bottom: 10px; }
.mg__timerbar i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, var(--gold-d), var(--gold)); border-radius: 4px; }
.mg__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; touch-action: none; }
.mg__hole { position: relative; aspect-ratio: 1; border-radius: 14px; background: radial-gradient(circle at 50% 65%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25)); border: 2px solid var(--line); overflow: hidden; }
.mg__hole-in { position: absolute; inset: 6px; display: flex; align-items: center; justify-content: center; transform: translateY(120%); transition: transform 0.12s ease-out; }
.mg__hole.is-up .mg__hole-in { transform: translateY(0); }
.mg__hole .mon-svg { width: 100%; height: 100%; }
.mg__score { margin-top: 10px; font-size: 13px; color: var(--muted); }
.mg__score b { color: var(--gold); font-size: 16px; }

.mg__track { position: relative; height: 34px; border-radius: 17px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); margin: 6px 6px 14px; }
.mg__zone { position: absolute; top: 3px; bottom: 3px; border-radius: 12px; background: rgba(255, 212, 121, 0.3); }
.mg__zone--crit { background: rgba(111, 224, 106, 0.55); }
.mg__cursor { position: absolute; top: -5px; bottom: -5px; width: 6px; margin-left: -3px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.6); }
.mg__cursor--crit { background: var(--green); box-shadow: 0 0 12px 4px rgba(111, 224, 106, 0.8); }
.mg__cursor--hit { background: var(--gold); box-shadow: 0 0 12px 4px rgba(255, 212, 121, 0.8); }
.mg__cursor--miss { background: var(--red); box-shadow: 0 0 12px 4px rgba(255, 90, 90, 0.8); }

.mg__lane { position: relative; height: 60px; margin: 6px 0 14px; }
.mg__guard, .mg__bolt { position: absolute; top: 0; width: 44px; height: 60px; display: flex; align-items: center; justify-content: center; }
.mg__guard { right: 4%; }
.mg__guard .ic { width: 40px; height: 40px; }
.mg__bolt { left: 4%; transition: filter 0.15s; }
.mg__bolt .ic { width: 34px; height: 34px; }
.mg__bolt.is-parried .ic { filter: drop-shadow(0 0 10px var(--green)); }
.mg__bolt.is-missed .ic { filter: grayscale(1) opacity(0.4); }
.mg__combo--hot { color: var(--gold); text-shadow: 0 0 8px rgba(255, 212, 121, 0.8); }
.mg__spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 6px 1px currentColor; }
@keyframes mgShake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.mg__shake { animation: mgShake 0.26s ease-in-out; }
.mg__stage { transition: box-shadow 0.15s; border-radius: 10px; }
.mg__stage.mg__flash-good { box-shadow: 0 0 0 3px rgba(111, 224, 106, 0.7) inset; }
.mg__stage.mg__flash-bad { box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.7) inset; }

@media (max-width: 380px) {
  .statbar { gap: 3px; padding: 4px; }
  .stat { padding: 2px 4px; gap: 3px; } .stat .ic { width: 16px; height: 16px; } .stat small { display: none; }
  .actor--hero .actor__sprite { width: 112px; height: 132px; }
  .actor--enemy .actor__sprite { width: 108px; height: 102px; }
  .stage--boss .actor--enemy .actor__sprite { width: 148px; height: 138px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .bar i { transition: none; }
}

/* ===== 증표 상점 ===== */
.shophead { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 2px; }
.shophead__tokens { display: flex; align-items: center; gap: 8px; flex: none; }
.shophead__tokens .ic { width: 36px; height: 36px; }
.shophead__tokens span { display: flex; flex-direction: column; line-height: 1.1; }
.shophead__tokens small { font-size: 10px; color: var(--muted); font-weight: 700; }
.shophead__tokens b { font-size: 26px; font-weight: 900; color: var(--gold); }
.shophead p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.tier { margin: 16px 2px 8px; font-size: 12px; font-weight: 900; color: var(--cyan); letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; }
.tier::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.tierbox { display: flex; flex-direction: column; gap: 8px; }
.tierbox--sub { margin-left: 8px; padding-left: 8px; border-left: 2px solid var(--line); }
.perk { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; }
.perk__tile {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px;
  background: radial-gradient(circle at 50% 28%, var(--tone, #2a5a9a), #0a1a3e 85%);
  border: 2px solid var(--gold-d); box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}
.perk__tile .ic { width: 36px; height: 36px; }
.perk[data-id='might'], .perk[data-id='click'], .perk[data-id='headstart'] { --tone: #b8402e; }
.perk[data-id='greed'], .perk[data-id='rest'] { --tone: #a8780a; }
.perk[data-id='luck'] { --tone: #2a9ab8; }
.perk[data-id='vitality'] { --tone: #2a62c8; } .perk[data-id='bond'] { --tone: #3a9a2a; } .perk[data-id='kingly'] { --tone: #8a3ac8; }
.perk.is-locked { opacity: 0.6; }
.perk.is-locked .perk__tile { filter: grayscale(0.85) brightness(0.7); }
.perk.is-maxed { border-color: rgba(255, 212, 121, 0.7); background: linear-gradient(180deg, rgba(90, 64, 10, 0.4), var(--win-b)); }
.perk__name { font-weight: 900; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.perk__desc { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.perk__desc em { font-style: normal; color: var(--green); font-weight: 800; }
.perk__pips { display: flex; gap: 2px; margin-top: 6px; max-width: 150px; }
.perk__pips i { flex: 1; height: 5px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.15); }
.perk__pips i.on { background: linear-gradient(90deg, #ffd479, #ffb020); border-color: var(--gold-d); }
.perk__bar { flex: 1; height: 7px; border-radius: 4px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.15); overflow: hidden; }
.perk__bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd479, #ffb020); }
.perk__need { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 10.5px; font-weight: 800; color: #ff9a8a; }
.perk__need .ic { width: 13px; height: 13px; filter: none; }
.perk__btn { min-width: 74px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding: 7px 8px 5px; }
.perk__btn small { font-size: 9px; font-weight: 800; opacity: 0.75; }
.perk__btn span { display: flex; align-items: center; gap: 3px; }
.perk__btn .ic { width: 16px; height: 16px; filter: none; }
.foot--shop { margin-top: 14px; }

/* ===== 직업 도감 ===== */
.dexrow { margin-bottom: 8px; padding: 8px; background: rgba(10, 30, 70, 0.35); border: 1px solid var(--line); }
.dexrow__head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.dexrow__head .gob-svg { height: 36px; width: auto; }
.dexrow__head .gob-img, .dexrow__head .gob-crop { height: 36px; width: 36px; }
.dexrow__name { font-weight: 900; font-size: 13px; }
.dexrow__stat { font-size: 10.5px; color: var(--muted); margin-left: auto; text-align: right; }
.dexrow__kids { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dexcard { position: relative; text-align: center; padding: 8px 4px 7px; background: rgba(10, 30, 70, 0.55); border: 1px solid var(--line); cursor: pointer; transition: transform 0.12s, border-color 0.12s; -webkit-tap-highlight-color: transparent; }
.dexcard:active { transform: scale(0.97); }
.dexcard.is-on { border-color: rgba(255, 212, 121, 0.7); background: linear-gradient(180deg, rgba(90, 64, 10, 0.5), rgba(10, 30, 70, 0.55)); }
.dexcard__art { height: 64px; display: grid; place-items: center; }
.dexcard__art .gob-svg { height: 64px; width: auto; max-width: 100%; }
.dexcard.is-off .dexcard__art { filter: brightness(0) opacity(0.4); }
.dexcard__name { font-size: 12px; font-weight: 900; margin-top: 3px; }
.dexcard.is-off .dexcard__name { color: var(--muted); }
.dexcard__rec { font-size: 10.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.dexcard__rec b { color: var(--ink); }
.medal { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 900; color: #3a2200; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.medal--0 { background: #26355a; color: #6e7fa0; box-shadow: none; }
.medal--1 { background: radial-gradient(circle at 35% 30%, #ffd2a0, #c47a3a 60%, #8a4a1a); }
.medal--2 { background: radial-gradient(circle at 35% 30%, #ffffff, #b8c4d8 60%, #7a88a0); }
.medal--3 { background: radial-gradient(circle at 35% 30%, #fff8c8, #ffc93a 60%, #b8801a); }
.dexcard .medal { position: absolute; top: 5px; right: 5px; }
.dexd__art { height: 150px; display: grid; place-items: center; margin-bottom: 6px; }
.dexd__art .gob-svg, .dexd__art .gob-img { height: 150px; width: auto; }
.dexd__desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.dexd__rec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.dexd__rec div { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); padding: 6px 2px; }
.dexd__rec small { display: block; font-size: 10px; color: var(--muted); }
.dexd__rec b { font-size: 15px; color: var(--gold); }
.dexd__tiers { text-align: left; display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.dexd__tiers div { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.dexd__tiers div.is-done { color: var(--ink); font-weight: 800; }
.dexd__tiers span:last-child { margin-left: auto; font-size: 11px; }

/* ===== 장비 ===== */
.r0 { --rc: #b9c2d0; } .r1 { --rc: #6fe06a; } .r2 { --rc: #5aa8ff; } .r3 { --rc: #c07aff; } .r4 { --rc: #ffc93a; } .r5 { --rc: #ff5d9a; } .r6 { --rc: #39f0ff; }
.sect__link { margin-left: auto; font-size: 11px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slot, .gitem {
  position: relative; font: inherit; color: var(--ink); cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent;
  background: #0a1a3e;   /* color-mix를 지원하지 않는 브라우저용 */
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc, #26355a) 32%, #0a1a3e), #0a1a3e 85%);
  border: 2px solid var(--rc, rgba(102, 224, 255, 0.3)); transition: transform 0.12s;
}
.slot:active, .gitem:active { transform: scale(0.96); }
.slot { position: relative; padding: 8px 4px 7px; min-height: 118px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.slot.is-empty { --rc: rgba(102, 224, 255, 0.3); background: rgba(10, 30, 70, 0.4); border-style: dashed; cursor: default; }
.slot__cap { font-size: 10px; font-weight: 800; color: var(--muted); }
.slot .ic { width: 38px; height: 38px; }
.slot.is-empty .ic { filter: grayscale(1) brightness(0.5); }
.slot__name { font-size: 11px; font-weight: 900; color: var(--rc); line-height: 1.25; }
.slot__stat { font-size: 11px; font-weight: 800; color: var(--green); }
.slot__lv { font-size: 9.5px; color: var(--muted); }
.gearopts { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 2px 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.gearopts .check { display: flex; align-items: center; gap: 6px; }
.gearopts input[type=checkbox] { width: 18px; height: 18px; accent-color: #ffc84a; }
.gearopts select { margin-left: 4px; padding: 5px 6px; font: inherit; font-size: 12px; color: var(--ink); background: #0a1a3e; border: 1px solid var(--line); }
.bag { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.enh__mats { margin-top: 8px; max-height: 220px; overflow-y: auto; }
.gitem { position: relative; padding: 6px 2px 5px; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.gitem .ic { width: 30px; height: 30px; }
.gitem__stat { font-size: 11px; font-weight: 900; color: var(--rc); }
.gitem__lv { font-size: 9px; color: var(--muted); }
.gitem.is-new::after { content: 'NEW'; position: absolute; top: -1px; right: -1px; font-size: 8px; font-weight: 900; padding: 0 4px; background: var(--red); color: #fff; }
.gitem.is-empty { border: 1px dashed rgba(102, 224, 255, 0.18); background: rgba(10, 30, 70, 0.25); cursor: default; }
.r4.slot, .r4.gitem { animation: shine 2.4s ease-in-out infinite; }
.r3.slot, .r3.gitem { box-shadow: 0 0 8px rgba(192, 122, 255, 0.35); }
@keyframes shine { 50% { box-shadow: 0 0 14px 2px rgba(255, 201, 58, 0.65); } }
/* 유니크·신화: 전설보다 더 강하게 빛난다 */
.r5.slot, .r5.gitem { animation: shineU 1.9s ease-in-out infinite; }
.r6.slot, .r6.gitem { animation: shineM 1.6s ease-in-out infinite; }
@keyframes shineU { 0%, 100% { box-shadow: 0 0 8px 1px rgba(255, 93, 154, 0.5); } 50% { box-shadow: 0 0 18px 4px rgba(255, 93, 154, 0.85); } }
@keyframes shineM { 0% { box-shadow: 0 0 10px 2px rgba(57, 240, 255, 0.7); } 50% { box-shadow: 0 0 22px 5px rgba(190, 120, 255, 0.85); } 100% { box-shadow: 0 0 10px 2px rgba(57, 240, 255, 0.7); } }
.dropinfo { margin-top: 14px; padding: 10px 12px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.dropinfo b { color: var(--ink); }
.droptable { width: 100%; margin-top: 6px; border-collapse: collapse; }
.droptable td, .droptable th { padding: 2px 4px; text-align: right; font-size: 11px; }
.droptable th { color: var(--muted); font-weight: 700; }
.droptable td:first-child, .droptable th:first-child { text-align: left; font-weight: 900; }
.itemd__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; text-align: left; }
.itemd__head .slot { flex: none; width: 74px; min-height: 74px; justify-content: center; cursor: default; }
.itemd__tag { display: inline-block; font-size: 10px; font-weight: 900; padding: 0 7px; color: #10131c; background: var(--rc); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.itemd__main { font-size: 20px; font-weight: 900; color: var(--green); margin: 2px 0; }
.itemd__cmp { font-size: 12px; font-weight: 800; margin-top: 8px; padding: 6px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.cmp-plus { color: var(--green); } .cmp-minus { color: #ff8a8a; }
.float--drop { font-size: 17px; letter-spacing: 0.02em; -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5); }

/* ===== 3·4차 전직 / 도감 탭 ===== */
.classcard__path { font-size: 10.5px; color: var(--cyan); font-weight: 800; margin: 2px 0 3px; }
.dextabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.dextab { padding: 7px 4px; font: inherit; font-size: 13px; font-weight: 900; color: var(--muted); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); cursor: pointer; }
.dextab small { display: block; font-size: 10px; font-weight: 700; margin-top: 1px; }
.dextab.is-on { color: #3a2400; background: linear-gradient(180deg, #fff0b8, #ffc84a); border-color: var(--gold-d); }
.dexrow--compact { padding: 6px; margin-bottom: 6px; }
.dexrow--compact .dexrow__head { margin-bottom: 5px; }
.dexrow--compact .dexrow__head .gob-svg, .dexrow--compact .dexrow__head .gob-img, .dexrow--compact .dexrow__head .gob-crop { height: 28px; width: 28px; }
.dexcard--compact { padding: 6px 3px 5px; }
.dexcard--compact .dexcard__art { height: 46px; }
.dexcard--compact .dexcard__art .gob-svg, .dexcard--compact .dexcard__art .gob-img { height: 46px; width: auto; }
.dexcard--compact .dexcard__name { font-size: 11.5px; }
.dexd__path { font-size: 11px; color: var(--cyan); font-weight: 800; margin-bottom: 6px; }

/* ===== 장비 그림 ===== */
.gear-fallback { display: inline-flex; }
.gear-img { object-fit: contain; }
.gitem .gear-img, .slot .gear-img { filter: drop-shadow(0 0 5px var(--rc)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.slot .gear-img { width: 44px; height: 44px; }
.gitem .gear-img { width: 34px; height: 34px; }

/* ===== 계정·클라우드 저장 ===== */
.acct { padding: 12px; margin-bottom: 4px; }
.acct__title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 900; }
.acct__desc { margin: 4px 0 10px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.acct__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acct__btns .btn { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; padding: 9px 6px 7px; }
.btn--google { background: linear-gradient(180deg, #ffffff, #dfe6ee); color: #26303c; border-bottom-color: #9aa6b4; text-shadow: none; }
.acct__btns--one { grid-template-columns: 1fr; }
.acct__user { display: flex; align-items: center; gap: 10px; }
.acct__photo { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #2a5a9a, #14284e); border: 2px solid var(--gold); display: grid; place-items: center; font-weight: 900; overflow: hidden; flex: none; }
.acct__photo img { width: 100%; height: 100%; object-fit: cover; }
.acct__name { font-size: 14px; font-weight: 900; }
.acct__mail { font-size: 11px; color: var(--muted); word-break: break-all; }
.acct__status { margin: 8px 0 10px; font-size: 11.5px; font-weight: 800; color: var(--green); }
.acct__status.is-busy { color: var(--cyan); }
.acct__status.is-error, .acct__err { color: #ff9a8a; }
.acct__err { font-size: 11.5px; font-weight: 800; margin-top: 8px; line-height: 1.4; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.cmp > div { padding: 8px 6px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); text-align: left; font-size: 12px; line-height: 1.6; }
.cmp > div.is-rec { border-color: rgba(255, 212, 121, 0.8); background: linear-gradient(180deg, rgba(90, 64, 10, 0.4), rgba(0, 0, 0, 0.3)); }
.cmp h4 { margin: 0 0 4px; font-size: 12px; color: var(--cyan); }
.cmp .rec { color: var(--gold); font-size: 10px; font-weight: 900; margin-left: 4px; }

.acct__soon { margin-left: 4px; padding: 0 7px; font-size: 10px; font-weight: 900; color: #3a2400; background: linear-gradient(180deg, #fff0b8, #ffc84a); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.btn.is-soon { opacity: 0.8; }

/* ===== 설정 창 ===== */
.gearbtn { pointer-events: auto; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: #dbe8f5; cursor: pointer;
  background: rgba(10, 30, 70, 0.78); border: 1px solid var(--line); border-radius: 50%; -webkit-tap-highlight-color: transparent; transition: transform 0.15s; }
.gearbtn svg { width: 20px; height: 20px; }
.gearbtn:active { transform: rotate(60deg) scale(0.92); }
.sheet { position: fixed; inset: 0; z-index: 15; display: flex; align-items: flex-end; justify-content: center; background: rgba(2, 4, 14, 0.78); }
.sheet__box { width: 100%; max-width: 460px; max-height: 90vh; display: flex; flex-direction: column; border-radius: 14px 14px 0 0; border-color: rgba(255, 212, 121, 0.7); animation: sheetUp 0.22s ease-out; }
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; }
.sheet__head h2 { margin: 0; font-size: 18px; font-weight: 900; background: linear-gradient(180deg, #fff6c8, #ffc84a 70%, #e0982a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sheet__x { width: 32px; height: 32px; font: inherit; font-size: 16px; font-weight: 900; color: var(--muted); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); cursor: pointer; }
.sheet__body { overflow-y: auto; padding: 0 14px calc(18px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.sheet__body .sect:first-child { margin-top: 8px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; }
.setrow small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.gmgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gmgrid .btn { font-size: 12px; padding: 10px 6px; }
.setrow .btn { flex: none; padding: 8px 12px 6px; font-size: 12px; }

/* ===== 설정: 전투 효과 / 장비 선택·정리 / 계정 안내 ===== */
.seg { display: flex; flex: none; border: 1px solid var(--line); }
.seg button { padding: 8px 10px; font: inherit; font-size: 12px; font-weight: 900; color: var(--muted); background: rgba(0, 0, 0, 0.35); border: 0; cursor: pointer; }
.seg button.is-on { color: #3a2400; background: linear-gradient(180deg, #fff0b8, #ffc84a); }
.sect__btns { margin-left: auto; display: flex; gap: 10px; }
.sect__btns .link { font-size: 12px; }
.sect__btns .link.is-on { color: var(--gold); font-weight: 900; }
.selbar { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 8px 10px; background: rgba(90, 64, 10, 0.4); border: 1px solid rgba(255, 212, 121, 0.6); font-size: 12px; font-weight: 800; }
.selbar #selCount { flex: 1; }
.selbar__sell { flex: none; padding: 7px 12px 5px; font-size: 12px; }
.gitem.is-sel { outline: 3px solid var(--gold); outline-offset: -3px; }
.gitem.is-sel::before { content: '✓'; position: absolute; top: 2px; left: 4px; z-index: 2; width: 16px; height: 16px; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #3a2400; background: var(--gold); border-radius: 50%; }
.tidy { display: flex; flex-direction: column; gap: 6px; text-align: left; margin-bottom: 10px; }
.tidy__opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); cursor: pointer; }
.tidy__opt input { width: 18px; height: 18px; accent-color: #ffc84a; flex: none; }
.tidy__opt span { display: flex; flex-direction: column; line-height: 1.35; }
.tidy__opt small { color: var(--muted); font-size: 11.5px; }
.tidy__opt.is-empty { opacity: 0.45; cursor: default; }
.acct__lock { margin: 10px 0 0; padding: 7px 9px; font-size: 11px; font-weight: 800; line-height: 1.45; color: #ffd9a0; background: rgba(120, 70, 10, 0.3); border: 1px solid rgba(255, 190, 90, 0.4); }

/* ===== 직업별 공격 모션 (투사체·궤적) ===== */
.fx-arc { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 5px solid transparent; border-top-color: #fff; border-right-color: rgba(255, 255, 255, 0.55); filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)); }
.arc--axe { width: 86px; height: 86px; margin: -43px 0 0 -43px; border-width: 9px; border-top-color: #ffb066; border-right-color: rgba(255, 150, 60, 0.6); filter: drop-shadow(0 0 8px rgba(255, 140, 40, 0.9)); }
.arc--holy { border-top-color: #fff2a8; border-right-color: rgba(255, 220, 90, 0.7); filter: drop-shadow(0 0 10px rgba(255, 214, 90, 1)); }
.arc--dagger { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-width: 3px; }
.fx-proj { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.proj--arrow { width: 36px; height: 3px; margin: -1.5px 0 0 -18px; border-radius: 2px; background: linear-gradient(90deg, transparent, #cfa35e 35%, #fff2d0); }
.proj--arrow::after { content: ''; position: absolute; right: -5px; top: -3px; border-left: 8px solid #fff2d0; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.proj--bolt { width: 26px; height: 5px; margin: -2.5px 0 0 -13px; border-radius: 2px; background: linear-gradient(90deg, #5a3a1a, #c9d3e0); }
.proj--bullet { width: 30px; height: 3px; margin: -1.5px 0 0 -15px; border-radius: 2px; background: linear-gradient(90deg, transparent, #ffe27a, #fff); box-shadow: 0 0 8px #ffd54a; }
.proj--orb { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #7ad8ff 45%, rgba(40, 140, 255, 0) 72%); box-shadow: 0 0 12px 3px rgba(102, 224, 255, 0.7); }
.proj--fire { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff6b0, #ffb02a 40%, rgba(255, 80, 20, 0) 74%); box-shadow: 0 0 14px 4px rgba(255, 120, 30, 0.75); }
.proj--dark { border-radius: 50%; background: radial-gradient(circle at 40% 35%, #e6ffd8, #7ae86a 35%, #6a3aa8 62%, rgba(60, 20, 120, 0) 76%); box-shadow: 0 0 12px 3px rgba(130, 90, 200, 0.75); }
.proj--shuriken { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L15 9L23 12L15 15L12 23L9 15L1 12L9 9Z' fill='%234a5468' stroke='%23e8f0ff' stroke-width='1.4' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%23e8f0ff'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6)); }
.proj--coin { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8c8, #ffc93a 55%, #b8801a); box-shadow: 0 0 6px rgba(255, 200, 60, 0.8); }

/* ===== 손에 붙어 몸과 함께 움직이는 무기(#heroWeapon). 원거리는 투사체와 같은 모양을 그대로 쓴다. ===== */
.hero-weapon { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; opacity: 0; pointer-events: none; z-index: 2; }
.hw--arrow { width: 34px; height: 3px; margin: -1.5px 0 0 -6px; border-radius: 2px; background: linear-gradient(90deg, transparent, #cfa35e 35%, #fff2d0); }
.hw--arrow::after { content: ''; position: absolute; right: -5px; top: -3px; border-left: 8px solid #fff2d0; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.hw--bolt { width: 24px; height: 5px; margin: -2.5px 0 0 -4px; border-radius: 2px; background: linear-gradient(90deg, #5a3a1a, #c9d3e0); }
.hw--bullet { width: 34px; height: 6px; margin: -3px 0 0 -6px; border-radius: 2px; background: linear-gradient(90deg, #6a5a4a, #2a2622); box-shadow: 0 0 4px rgba(0, 0, 0, 0.6); }
.hw--orb, .hw--fire, .hw--dark { width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; }
.hw--orb { background: radial-gradient(circle at 35% 30%, #fff, #7ad8ff 45%, rgba(40, 140, 255, 0) 72%); box-shadow: 0 0 12px 3px rgba(102, 224, 255, 0.7); }
.hw--fire { background: radial-gradient(circle at 40% 35%, #fff6b0, #ffb02a 40%, rgba(255, 80, 20, 0) 74%); box-shadow: 0 0 14px 4px rgba(255, 120, 30, 0.75); }
.hw--dark { background: radial-gradient(circle at 40% 35%, #e6ffd8, #7ae86a 35%, #6a3aa8 62%, rgba(60, 20, 120, 0) 76%); box-shadow: 0 0 12px 3px rgba(130, 90, 200, 0.75); }
.hw--shuriken { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L15 9L23 12L15 15L12 23L9 15L1 12L9 9Z' fill='%234a5468' stroke='%23e8f0ff' stroke-width='1.4' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%23e8f0ff'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6)); }
.hw--coin { width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8c8, #ffc93a 55%, #b8801a); box-shadow: 0 0 6px rgba(255, 200, 60, 0.8); }
.hw--slash, .hw--holy { width: 40px; height: 6px; margin: -3px 0 0 -32px; border-radius: 2px 6px 6px 2px; background: linear-gradient(90deg, #8a95a8, #e8f0ff 60%, #fff); box-shadow: 0 0 3px rgba(255, 255, 255, 0.7); }
.hw--holy { background: linear-gradient(90deg, #d8b040, #fff6c0 60%, #fff); box-shadow: 0 0 8px rgba(255, 230, 140, 0.9); }
.hw--axe { width: 26px; height: 22px; margin: -11px 0 0 -22px; clip-path: polygon(0% 45%, 55% 0%, 100% 20%, 70% 50%, 100% 80%, 55% 100%, 0% 55%); background: linear-gradient(135deg, #b8c2d0, #5a6478); box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); }
.hw--hammer { width: 26px; height: 20px; margin: -10px 0 0 -22px; border-radius: 4px; background: linear-gradient(135deg, #9aa4b4, #4a5262); box-shadow: 0 0 4px rgba(0, 0, 0, 0.5); }
.hw--dagger { width: 22px; height: 5px; margin: -2.5px 0 0 -18px; border-radius: 1px 5px 5px 1px; background: linear-gradient(90deg, #8a95a8, #e8f0ff 70%, #fff); box-shadow: 0 0 3px rgba(255, 255, 255, 0.6); }
.fx-minion { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 40% 35%, #fff, #c8a0ff 60%, rgba(160, 110, 255, 0)); box-shadow: 0 0 8px rgba(190, 140, 255, 0.8); }
.fx-plus { margin: -9px 0 0 -5px; font-size: 18px; font-weight: 900; color: #8dff7a; text-shadow: 0 0 6px rgba(80, 220, 60, 0.9), 0 1px 0 #0a3a10; }
.float--skill { font-size: 15px; font-weight: 900; letter-spacing: 0.02em; -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.55); }
.float--heal { font-size: 15px; color: #8dff7a; }

/* ===== 스킬 바 · 스킬 효과 표시 ===== */
.skillbar { position: absolute; left: 50%; bottom: 50px; transform: translateX(-50%); z-index: 5; display: flex; gap: 6px; pointer-events: auto; }
.stage.has-skills .tap-hint { display: none; }
.skill { position: relative; width: 40px; height: 40px; padding: 0; overflow: hidden; cursor: pointer; border-radius: 10px; border: 2px solid var(--gold-d); -webkit-tap-highlight-color: transparent;
  background: radial-gradient(circle at 50% 28%, #2a5a9a, #0a1a3e 85%); display: grid; place-items: center; }
.skill .ic { width: 24px; height: 24px; }
.skill__cd { position: absolute; inset: 0; pointer-events: none; background: conic-gradient(rgba(2, 6, 20, 0.74) calc(var(--p, 0) * 1turn), transparent 0); }
.skill.is-on { border-color: #fff; box-shadow: 0 0 10px 2px rgba(255, 230, 140, 0.9); }
.actor--hero.buff-might .actor__body { filter: drop-shadow(0 0 8px rgba(255, 90, 60, 0.95)); }
.actor--hero.buff-haste .actor__body { filter: drop-shadow(0 0 8px rgba(102, 224, 255, 0.95)); }
.actor--hero.buff-guard .actor__body { filter: drop-shadow(0 0 8px rgba(122, 168, 255, 0.95)); }
.actor--hero.buff-greed .actor__body { filter: drop-shadow(0 0 8px rgba(255, 201, 58, 0.95)); }
.sk-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; margin-bottom: 6px; background: rgba(10, 30, 70, 0.5); border: 1px solid var(--line); }
.sk-row .ic { width: 28px; height: 28px; flex: none; margin-top: 2px; }
.sk-row b { font-size: 13px; } .sk-row small { color: var(--muted); font-size: 10.5px; }
.sk-row__d { font-size: 11.5px; color: var(--ink); line-height: 1.45; margin-top: 2px; }
.choice__skill { margin: 6px 0 4px; padding: 6px 7px; font-size: 11px; line-height: 1.45; text-align: left; color: var(--ink); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.choice__skill b { color: var(--gold); }
.skilld__ic { display: grid; place-items: center; margin-bottom: 4px; }
.skilld__ic .ic { width: 52px; height: 52px; }

/* ===== 화려한 전투 이펙트: 스프라이트·스킬 배너·지속 상태 ===== */
.fx-sprite { background: center / contain no-repeat; }
.skill-banner { display: flex; align-items: center; gap: 6px; padding: 3px 12px 3px 4px; white-space: nowrap; z-index: 8; font-weight: 900; font-size: 14px; letter-spacing: 0.02em;
  background: linear-gradient(90deg, rgba(10, 20, 50, 0.92), rgba(34, 56, 120, 0.9)); border: 1px solid rgba(255, 212, 121, 0.85); border-radius: 999px;
  text-shadow: 0 1px 0 #000, 0 0 8px rgba(0, 0, 0, 0.8); box-shadow: 0 0 12px rgba(255, 200, 80, 0.5); }
.skill-banner .ic, .skill-banner .skill-fallback .ic { width: 28px; height: 28px; border-radius: 50%; }
.skill-banner .skill-fallback { display: inline-flex; }
.fx-drain { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #ff5a8a 55%, rgba(200, 20, 70, 0)); box-shadow: 0 0 8px rgba(255, 60, 110, 0.85); }
.mon-stun { position: absolute; left: 50%; top: -34px; width: 74px; height: 42px; margin-left: -37px; z-index: 4; background: center / contain no-repeat; pointer-events: none;
  animation: stunSpin 1.6s linear infinite; color: #ffe45a; font-size: 16px; font-weight: 900; text-align: center; line-height: 42px; text-shadow: 0 0 6px #ff9a00; }
@keyframes stunSpin { to { transform: rotate(360deg); } }
.hero-barrier { position: absolute; left: 50%; top: 50%; width: 118%; height: 104%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none;   /* 몸이 가려지지 않게 작게 */
  background: center / contain no-repeat; border-radius: 50%; box-shadow: inset 0 0 22px rgba(120, 200, 255, 0.55), 0 0 14px rgba(120, 200, 255, 0.5); animation: barrierPulse 1.4s ease-in-out infinite; }
@keyframes barrierPulse { 50% { filter: brightness(1.25); } }
.actor__sprite { position: relative; }
#monster[data-dot='burn'] .mon-img, #monster[data-dot='sun'] .mon-img { filter: drop-shadow(0 0 8px rgba(255, 130, 30, 0.95)) brightness(1.08); }
#monster[data-dot='poison'] .mon-img { filter: drop-shadow(0 0 8px rgba(110, 230, 70, 0.95)) hue-rotate(35deg); }
#monster[data-dot='void'] .mon-img { filter: drop-shadow(0 0 8px rgba(160, 90, 255, 0.95)) hue-rotate(-30deg); }
.skill-img, .skill-fallback .ic { border-radius: 8px; }
.skill .skill-img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; }
.sk-row .skill-img { width: 34px; height: 34px; border-radius: 8px; margin-top: 0; }
.skilld__ic .skill-img { width: 72px; height: 72px; border-radius: 14px; }
.skill-fallback { display: inline-flex; }

/* ===== 크리스탈 상점 ===== */
.tabnav__btn span { font-size: 10.5px; }
.wallet { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.wallet__bal { display: flex; align-items: center; gap: 8px; }
.wallet__bal .ic { width: 38px; height: 38px; }
.wallet__bal span { display: flex; flex-direction: column; line-height: 1.1; }
.wallet__bal small { font-size: 10px; color: var(--muted); font-weight: 700; }
.wallet__bal b { font-size: 26px; font-weight: 900; color: #8fd8ff; }
.wallet__btn { flex: none; padding: 9px 16px 7px; }
.demonote, .storenote { margin-top: 8px; padding: 8px 10px; font-size: 11px; line-height: 1.5; color: #ffd9a0; background: rgba(120, 70, 10, 0.3); border: 1px solid rgba(255, 190, 90, 0.4); }
.storenote { color: var(--muted); background: rgba(10, 30, 70, 0.4); border: 1px dashed var(--line); }
.prod { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 8px; }
.prod__tile { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; border: 2px solid var(--gold-d); box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
  background: radial-gradient(circle at 50% 28%, var(--tone, #2a5a9a), #0a1a3e 85%); }
.prod__tile .ic { width: 38px; height: 38px; }
.prod__name { font-weight: 900; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prod__desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.prod__odds { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; font-size: 10.5px; font-weight: 800; }
.prod__chip { display: inline-block; margin-left: 2px; padding: 0 7px; font-size: 10px; font-weight: 900; color: #063a10; background: linear-gradient(180deg, #c8ffb8, #6fe06a); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.prod__btn { min-width: 76px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding: 7px 8px 5px; }
.prod__btn small { font-size: 9px; font-weight: 800; opacity: 0.75; }
.prod__tile--boss { padding: 2px; overflow: hidden; }
.prod__tile--boss img, .prod__tile--boss svg { width: 100%; height: 100%; object-fit: contain; }
.dungeon__bossart { width: 120px; height: 112px; margin: 0 auto 8px; }
.dungeon__bossart img, .dungeon__bossart svg { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4)); }
.dwaves { display: flex; gap: 4px; margin-top: 5px; }
.dwave { width: 12px; height: 12px; border-radius: 3px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); }
.dwave.is-on { background: linear-gradient(180deg, #ffe9a8, #ffc93a); border-color: var(--gold-d); }
.dclear { margin-left: 6px; color: var(--green); font-weight: 800; font-size: 10.5px; display: inline-flex; align-items: center; gap: 2px; }
.dclear .ic { width: 13px; height: 13px; }
.prod__btn span { display: flex; align-items: center; gap: 3px; }
.prod__btn .ic { width: 16px; height: 16px; filter: none; }
.pack { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; margin-bottom: 6px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.pack:active { transform: scale(0.98); }
.pack .ic { width: 34px; height: 34px; flex: none; }
.pack__main { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.pack__main b { font-size: 15px; color: #8fd8ff; }
.pack__main small { font-size: 11px; color: var(--muted); }
.pack__price { font-size: 14px; font-weight: 900; color: var(--gold); }
.demoban { margin: 0 0 10px; padding: 7px 9px; font-size: 11.5px; font-weight: 800; line-height: 1.45; color: #ffd9a0; background: rgba(120, 70, 10, 0.35); border: 1px solid rgba(255, 190, 90, 0.5); }
.got { display: flex; align-items: center; gap: 10px; padding: 7px 9px; margin-bottom: 6px; text-align: left; background: rgba(0, 0, 0, 0.3); border: 2px solid var(--rc, var(--line)); }
.got .ic { width: 36px; height: 36px; flex: none; }
.got b { display: block; font-size: 13px; color: var(--rc); }
.got small { color: var(--green); font-size: 11.5px; font-weight: 800; }

/* ===== 물약 표시줄 · 시연 광고 ===== */
.potionbar { position: absolute; left: 8px; top: 82px; z-index: 5; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.pchip { display: flex; align-items: center; gap: 3px; padding: 1px 7px 1px 3px; font-size: 10.5px; font-weight: 900; color: #fff; background: rgba(6, 14, 36, 0.72); border-radius: 999px; border: 1px solid var(--pc, var(--line)); }
.pchip .ic { width: 16px; height: 16px; filter: none; }
.adov { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 4, 14, 0.9); }
.adov__box { width: 100%; max-width: 340px; padding: 16px; text-align: center; background: linear-gradient(180deg, #14224a, #0b1533); border: 2px solid rgba(255, 212, 121, 0.7); }
.adov__tag { display: inline-block; margin-bottom: 10px; padding: 1px 10px; font-size: 11px; font-weight: 900; color: #063a10; background: #ffd479; }
.adov__screen { position: relative; height: 170px; display: grid; place-items: center; overflow: hidden; background: repeating-linear-gradient(45deg, #1a2a5e, #1a2a5e 14px, #22366f 14px, #22366f 28px); border: 1px solid var(--line); }
.adov__logo { font-size: 44px; font-weight: 900; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.35); }
.adov__count { position: absolute; right: 8px; top: 6px; min-width: 28px; padding: 2px 8px; font-size: 16px; font-weight: 900; background: rgba(0, 0, 0, 0.6); border-radius: 999px; }
.adov__note { margin: 10px 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.adov__btns { display: flex; gap: 8px; }
.adov__btns .btn { flex: 1; }

/* ===== 업적 보상 · 유물 ===== */
.achgroup { margin: 12px 0 6px; font-size: 12px; font-weight: 900; color: var(--gold); letter-spacing: 0.04em; display: flex; justify-content: space-between; }
.achgroup small { color: var(--muted); font-weight: 700; }
.ach__row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ach__num { font-size: 10px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.ach__rw { flex: none; min-width: 66px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 900; color: #8fd8ff; }
.ach__rw .ic { width: 16px; height: 16px; filter: none !important; }
.ach__rw span { display: flex; align-items: center; gap: 2px; }
.ach__rw .btn { padding: 4px 10px 2px; font-size: 12px; min-width: 60px; }
.ach__rw em { font-style: normal; font-size: 10px; color: var(--muted); }
.ach.is-claim { border-color: #ffd479; box-shadow: 0 0 10px rgba(255, 212, 121, 0.35); }
.achclaim { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 8px 10px; font-size: 12px; font-weight: 800; background: rgba(90, 64, 10, 0.4); border: 1px solid rgba(255, 212, 121, 0.6); }
.achclaim .btn { flex: none; padding: 6px 14px 4px; }
.relic { border-color: var(--rc, var(--gold-d)); }
.relic .prod__tile { border-color: var(--rc); }
.relic__opts { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.relic__opts b { font-size: 12px; color: var(--rc); }
.relic__opts b::before { content: '★ '; }
.relic.is-on { box-shadow: 0 0 14px -2px var(--rc); }
.relic .prod__btn { min-width: 70px; }
.prod__chip--relic { background: linear-gradient(180deg, #ffe9a8, #ffc93a); color: #4a2a00; }
.relicbar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.rslot { display: flex; align-items: center; gap: 6px; padding: 6px 8px; min-width: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; background: rgba(10, 30, 70, 0.5); border: 1px dashed var(--line); }
.rslot.is-full { border: 1px solid var(--rc); background: linear-gradient(180deg, rgba(60, 40, 90, 0.5), rgba(10, 30, 70, 0.5)); }
.rslot .ic { width: 26px; height: 26px; flex: none; }
.rslot__t { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rslot__t b { font-size: 11.5px; }
.rslot__t small { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnote { margin-top: 8px; font-size: 11.5px; line-height: 1.55; color: var(--muted); text-align: left; }
.pnote b { color: var(--gold); }

/* ===== 장비 상점 · 특별 옵션 장비 ===== */
.gshopnote { margin: 0 0 8px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.gshopnote b { color: var(--gold); }
.gshop { border-color: var(--rc); }
.gshop .prod__tile { width: 54px; height: 54px; padding: 3px; border-color: var(--rc); --tone: color-mix(in srgb, var(--rc) 35%, #0a1a3e); }
.gshop .prod__tile svg, .gshop .prod__tile img { width: 100%; height: 100%; }
.gshop.is-sold { opacity: 0.45; filter: grayscale(0.7); }
.gshop .prod__desc .cmp-plus, .gshop .prod__desc .cmp-minus { margin-left: 4px; font-weight: 800; }
.slot__sp { margin-top: 1px; font-size: 9.5px; font-weight: 800; color: var(--gold); line-height: 1.25; }
.gitem__sp { position: absolute; right: 3px; top: 1px; font-style: normal; font-size: 12px; color: #ffe27a; text-shadow: 0 0 4px #000, 0 0 6px #ffc93a; }
.gitem__enh { position: absolute; left: 3px; top: 1px; font-style: normal; font-size: 9.5px; font-weight: 800; color: #6fe0c0; text-shadow: 0 0 4px #000; }
.slot__enh { position: absolute; left: 6px; top: 4px; font-style: normal; font-size: 10px; font-weight: 800; color: #6fe0c0; text-shadow: 0 0 4px #000; }
.itemd__sp { margin-top: 2px; font-size: 12.5px; font-weight: 900; color: var(--gold); }
#gshopReroll .ic { width: 14px; height: 14px; vertical-align: -2px; filter: none; }

.awaynote { margin: 10px 0 0; padding: 8px 10px; font-size: 11px; line-height: 1.5; color: var(--muted); border: 1px dashed var(--line); }

/* ===== 퀘스트 · 업적 분류 ===== */
.seg--full { width: 100%; margin-bottom: 10px; }
.seg--full button { flex: 1; position: relative; padding: 10px 4px 8px; font-size: 13px; }
.seg__n { position: absolute; top: 1px; right: 3px; min-width: 16px; padding: 0 4px; font-size: 10px; font-weight: 900; line-height: 16px; color: #fff; background: var(--red); border-radius: 999px; }
.qhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 800; color: var(--muted); }
.qhead b { color: var(--ink); font-size: 14px; }
.qbonus { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-top: 4px; }
.qbonus b { color: var(--gold); }
.qbonus small { display: block; color: var(--muted); font-size: 11px; }
.qbonus .btn { flex: none; padding: 8px 14px 6px; }
.qbonus.is-ready { border-color: #ffd479; box-shadow: 0 0 12px rgba(255, 212, 121, 0.4); }
.achgroup { width: 100%; padding: 0; font: inherit; color: var(--gold); background: none; border: 0; cursor: pointer; text-align: left; }
.achgroup i { font-style: normal; margin-right: 4px; display: inline-block; width: 10px; }
.achgroup .seg__n { position: static; margin-left: 6px; }

/* ===== 풍성한 스킬 연출 조각 ===== */
.fx-part { border-radius: 50%; will-change: transform, opacity; }
.fx-part--star { border-radius: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.fx-pillar { border-radius: 4px; mix-blend-mode: screen; will-change: transform, opacity; }
.fx-ground { width: 70px; height: 24px; margin: -12px 0 0 -35px; border: 3px solid #fff; border-radius: 50%; }
.fx-emblem { display: grid; place-items: center; will-change: transform, opacity; }
.fx-emblem .ic { width: 100%; height: 100%; }
.fx-rays { border-radius: 50%; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%); mask-image: radial-gradient(circle, #000 20%, transparent 68%); }
.fx-wing { width: 58px; height: 76px; margin-top: -60px; mix-blend-mode: screen; clip-path: polygon(0 100%, 8% 55%, 30% 30%, 55% 12%, 100% 0, 78% 34%, 90% 44%, 62% 58%, 72% 74%, 38% 80%, 40% 100%); }
.fx-speed { height: 3px; border-radius: 2px; }
.fx-wing--l { clip-path: polygon(100% 100%, 92% 55%, 70% 30%, 45% 12%, 0 0, 22% 34%, 10% 44%, 38% 58%, 28% 74%, 62% 80%, 60% 100%); }

/* ===== 출석 · 랭킹 ===== */
.attend { padding: 10px 12px; margin-bottom: 10px; }
.attend__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 900; }
.attend__head small { font-size: 11px; font-weight: 700; color: var(--muted); }
.attend__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.attend__day { padding: 4px 0 3px; text-align: center; font-size: 10px; font-weight: 800; color: var(--muted); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.attend__day b { display: block; font-size: 12px; color: #8fd8ff; }
.attend__day.is-done { color: #3a2400; background: linear-gradient(180deg, #fff0b8, #ffc84a); border-color: #ffd479; }
.attend__day.is-done b { color: #6a3a00; }
.attend__day.is-today { box-shadow: 0 0 8px rgba(255, 212, 121, 0.8); }
.attend__msg { margin: 6px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.rankinfo { margin-bottom: 8px; padding: 6px 10px; font-size: 11px; line-height: 1.5; color: var(--muted); border: 1px dashed var(--line); }
.rankinfo b { color: var(--gold); }
.rankchips { display: flex; gap: 6px; margin-bottom: 8px; }
.rankchips button { flex: 1; padding: 7px 4px 5px; font: inherit; font-size: 12px; font-weight: 900; color: var(--muted); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); cursor: pointer; }
.rankchips button.is-on { color: #3a2400; background: linear-gradient(180deg, #fff0b8, #ffc84a); }
.rankrow { display: grid; grid-template-columns: 30px 32px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 4px; background: rgba(10, 30, 70, 0.5); border: 1px solid var(--line); }
.rankrow.is-me { border-color: #ffd479; background: linear-gradient(180deg, rgba(90, 64, 10, 0.45), rgba(10, 30, 70, 0.5)); }
.rankrow__n { text-align: center; font-size: 15px; font-weight: 900; color: var(--muted); }
.rankrow:nth-child(-n+3) .rankrow__n { color: #ffd479; }
.rankrow__av { width: 32px; height: 32px; overflow: hidden; }
.rankrow__av svg, .rankrow__av img { width: 100%; height: 100%; object-fit: contain; }
.rankrow__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; }
.rankrow__name small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; }
.rankrow__val { font-size: 14px; font-weight: 900; color: #8fd8ff; }
.rankempty { padding: 16px 8px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.6; }
.rankfoot { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.nickinput { width: 100%; padding: 10px; margin-top: 8px; font: inherit; font-size: 16px; font-weight: 800; color: var(--ink); background: #0a1a3e; border: 1px solid var(--line); text-align: center; }

/* ---- 던전 개선: 두더지 변주 · 예상 표시 · 파동 목록 · 전투 연출 ---- */
.mg__gold { color: var(--gold); }
.mg__bad { color: var(--red); }
.mg__hole.is-gold { border-color: var(--gold); box-shadow: 0 0 12px rgba(255, 201, 58, 0.55) inset; }
.mg__hole.is-gold .mon-svg, .mg__hole.is-gold img { filter: sepia(1) saturate(4) hue-rotate(-10deg) brightness(1.15) drop-shadow(0 0 6px #ffc93a); }
.mg__hole.is-trap { border-color: rgba(255, 90, 90, 0.7); }
.mg__hole.is-trap .ic { width: 70%; height: 70%; }
.mg__pop { position: absolute; left: 50%; top: 20%; font-size: 18px; font-weight: 900; color: var(--green); pointer-events: none; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6); }
.mg__pop--gold { color: var(--gold); font-size: 22px; }
.mg__pop--bad { color: var(--red); }

.dfc { font-weight: 800; display: inline-flex; align-items: center; gap: 3px; }
.dfc .ic { width: 14px; height: 14px; }
.dfc--ok { color: var(--green); }
.dfc--mid { color: var(--gold); }
.dfc--hard { color: var(--red); }

.dwlist { margin: 10px 0 8px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.dwrow { display: grid; grid-template-columns: 30px 1fr auto 52px; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); font-size: 12.5px; }
.dwrow__art { width: 28px; height: 28px; }
.dwrow__art img, .dwrow__art svg { width: 100%; height: 100%; object-fit: contain; }
.dwrow__hp { color: var(--muted); font-variant-numeric: tabular-nums; }
.dwrow__mark { text-align: right; font-size: 11px; font-weight: 800; }
.dwrow__mark em { font-style: normal; }
.dwrow__mark .ic { width: 16px; height: 16px; }
.dwrow--ok .dwrow__mark { color: var(--green); }
.dwrow--mid .dwrow__mark { color: var(--gold); }
.dwrow--hard { opacity: 0.7; }
.dwrow--hard .dwrow__mark { color: var(--red); }
.dwbudget { font-size: 12.5px; margin-bottom: 6px; }
.dwbudget b { color: var(--gold); }
.dres__head { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dres__partial { margin-top: 8px; font-weight: 800; color: var(--gold); display: flex; align-items: center; justify-content: center; gap: 4px; }
.dres__partial .ic { width: 16px; height: 16px; }

.dfight__arena { position: relative; height: 150px; border-radius: 12px; background: radial-gradient(ellipse at 50% 85%, rgba(122, 74, 255, 0.35), rgba(0, 0, 0, 0.35) 70%); overflow: hidden; }
.dfight__boss { position: absolute; left: 50%; top: 8px; width: 140px; height: 134px; margin-left: -70px; }
.dfight__boss img, .dfight__boss svg { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.5)); }
.dfight__boss.is-standing img, .dfight__boss.is-standing svg { filter: drop-shadow(0 0 10px rgba(255, 90, 90, 0.8)); }
.dfight__fx { position: absolute; inset: 0; pointer-events: none; }
.dfight__dmg { position: absolute; font-size: 15px; font-weight: 900; color: #ffe9a8; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.7); white-space: nowrap; }
.dfight__dmg.is-big { font-size: 22px; color: var(--gold); }
.dfight__name { margin: 8px 0 4px; font-weight: 900; }
.dfight__bar { position: relative; height: 14px; border-radius: 7px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); overflow: hidden; }
.dfight__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff5a5a, #ff9a5a); transition: width 0.12s ease-out; }
.dfight__bar span { position: absolute; inset: 0; text-align: center; font-size: 10.5px; line-height: 13px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.dfight__me { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.dfight__bar--me { height: 8px; }
.dfight__bar--me i { background: linear-gradient(90deg, var(--gold-d), var(--gold)); }
.dfight__log { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; min-height: 20px; font-size: 12px; }
.dfight__row { padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.25); }
.dfight__row.is-win { border-left: 3px solid var(--green); }
.dfight__row.is-lose { border-left: 3px solid var(--red); color: var(--muted); }

/* 무한의 탑 */
.tower { margin-top: 14px; border-color: rgba(90, 168, 255, 0.55); }
.tower__daily { margin-top: 6px; padding: 5px 10px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.tower__daily .ic { width: 14px; height: 14px; }

/* 근접 휘두름 궤적 그림 (app.js heroTrail): 회전 없이 휘두르는 방향으로 드러난다 */
.fx-swing { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55)); }

/* 장비 가루 · 레벨 올리기 */
.dust-ic { display: inline-block; width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c7a6ff 40%, #7a4aff 75%); box-shadow: 0 0 5px rgba(170, 130, 255, 0.9); }
.dustbal { margin-left: 6px; color: #c7a6ff; }
.dustbal b { color: #e6d8ff; }
.itemd__tools { display: flex; gap: 6px; margin-top: 10px; }
.itemd__tools .btn { flex: 1; padding: 7px 6px; font-size: 12.5px; }
.lvopts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 8px; }
.lvopt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; border: 1px solid rgba(170, 130, 255, 0.6); background: rgba(122, 74, 255, 0.18); color: var(--ink); cursor: pointer; font: inherit; }
.lvopt b { font-size: 13px; }
.lvopt small { font-size: 11px; color: var(--muted); }
.lvopt.is-off { opacity: 0.45; cursor: default; }

/* 신화 보장 게이지 */
.pity { padding: 10px 12px; margin-bottom: 10px; border-color: rgba(57, 240, 255, 0.5); }
.pity__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 6px; }
.pity__head .ic { width: 14px; height: 14px; }
.pity__bar { height: 10px; border-radius: 5px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); overflow: hidden; margin-bottom: 6px; }
.pity__bar i { display: block; height: 100%; background: linear-gradient(90deg, #39f0ff, #be78ff); box-shadow: 0 0 8px rgba(57, 240, 255, 0.7); }
.pity small { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.pity__hit { font-weight: 900; font-size: 15px; margin-bottom: 8px; background: linear-gradient(90deg, #39f0ff, #be78ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* 장비 초월 */
.gitem__star { position: absolute; right: 3px; bottom: 16px; font-style: normal; font-size: 9.5px; font-weight: 900; color: #ffd66b; text-shadow: 0 0 5px rgba(255, 180, 40, 0.9), 0 0 2px #000; }
.itemd__star { color: #ffd66b; }
.slot__star { color: #ffd66b; font-weight: 900; }

/* 배경음 음량 */
.vol { width: 140px; accent-color: var(--gold); }
/* 장비 잠금 */
.gitem__lock { position: absolute; left: 3px; top: 15px; font-style: normal; font-size: 10px; filter: drop-shadow(0 0 2px #000); }
.slot__lock { position: absolute; right: 5px; top: 18px; font-style: normal; font-size: 11px; filter: drop-shadow(0 0 2px #000); }
.itemd__lock { width: 100%; margin-top: 6px; padding: 7px; font-size: 12.5px; }
.itemd__locknote { display: block; margin-top: 4px; color: var(--muted); font-size: 11.5px; }

/* ---- 미니게임 품질 개선: 카운트다운 · 결과 등급 · 흙더미 구멍 · 판정 ---- */
.mg__stage { position: relative; }
.mg__count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 900; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 212, 121, 0.8); background: rgba(8, 12, 30, 0.55); border-radius: 10px; z-index: 5; pointer-events: none; }
.mg__count.is-go { color: var(--gold); }
.mg__grid--3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mg__hole { background: radial-gradient(ellipse at 50% 88%, #1a0f08 0 30%, rgba(0, 0, 0, 0.25) 62%); border-color: rgba(120, 90, 60, 0.5); }
.mg__mound { position: absolute; left: 6%; right: 6%; bottom: 4%; height: 26%; border-radius: 50% 50% 40% 40%; background: linear-gradient(180deg, #8a5a32, #5a3a1e); box-shadow: inset 0 3px 0 rgba(255, 220, 170, 0.25); z-index: 2; pointer-events: none; }
.mg__hole-in { z-index: 1; }
.mg__combo { margin-left: 8px; font-weight: 900; color: #6fe0c0; }
.mg__combo.is-hot { color: var(--gold); text-shadow: 0 0 8px rgba(255, 212, 121, 0.9); }
.mg__pop { position: absolute; font-weight: 900; font-size: 20px; color: var(--green); pointer-events: none; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6); z-index: 6; }
.mg__pop--good { color: #6fe0c0; }
.mg__judge { margin-left: 8px; font-weight: 900; display: inline-block; }
.mg__judge.is-crit { color: var(--green); } .mg__judge.is-hit { color: var(--gold); } .mg__judge.is-miss { color: var(--red); }
.mg__dots { display: flex; justify-content: center; gap: 6px; margin: -4px 0 10px; }
.mg__dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); }
.mg__dots i.is-crit { background: var(--green); } .mg__dots i.is-hit { background: var(--gold); } .mg__dots i.is-miss { background: var(--red); }
.mg__zone, .mg__zone--crit { transition: left 0.25s ease-out; }
.mg__lane { height: 76px; border-radius: 12px; background: linear-gradient(90deg, rgba(122, 74, 255, 0.25), rgba(0, 0, 0, 0.2)); }
.mg__boss { position: absolute; left: 0; top: 2px; width: 70px; height: 72px; }
.mg__boss img, .mg__boss svg { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5)); }
.mg__bolt { top: 8px; }
.mg__guard { top: 8px; transition: filter 0.1s, transform 0.1s; }
.mg__guard.is-warn { filter: drop-shadow(0 0 12px #6fe0c0) brightness(1.4); transform: scale(1.12); }
.mg__result { text-align: center; padding: 8px 0 2px; position: relative; }
.mg__grade { font-size: 84px; font-weight: 900; line-height: 1; text-shadow: 0 5px 0 rgba(0, 0, 0, 0.45), 0 0 26px currentColor; }
.mg__resline { margin-top: 10px; font-size: 16px; }
.mg__resline b { color: var(--gold); font-size: 20px; }
.mg__resdetail { margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.mg__resdetail b { color: var(--ink); }

/* ---- 옆으로 흐르는 배경 (레전드 오브 슬라임처럼 달려가는 느낌) ----
   배경 그림을 원본·반전본 번갈아 4장 이어 붙이고 -50%(2장 = 한 주기)만큼 끝없이 민다. 앞쪽 풀 띠는 더 빠르게. */
.stage__scroll { position: absolute; top: 0; bottom: 0; left: 0; width: 400%; display: none; will-change: transform; }
.stage__scroll i { flex: 0 0 25%; height: 100%; background: center bottom / cover no-repeat; }
.stage__scroll i:nth-child(even) { transform: scaleX(-1); }
.stage__ground { position: absolute; left: 0; bottom: 0; width: 200%; height: 64px; z-index: 1; pointer-events: none; will-change: transform;
  background-color: var(--strip, rgba(18, 40, 16, 0.5));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='64'%3E%3Cpath d='M0 40 L4 22 L8 40 L12 16 L16 40 L20 28 L24 40 Z M70 44 L73 30 L76 44 L80 24 L84 44 Z M150 42 L154 20 L158 42 L162 30 L166 42 Z M210 46 L213 34 L216 46 L220 26 L224 46 Z' /%3E%3Cellipse cx='110' cy='50' rx='7' ry='3'/%3E%3Cellipse cx='36' cy='56' rx='5' ry='2.4'/%3E%3Cellipse cx='190' cy='56' rx='8' ry='3'/%3E%3Crect x='0' y='58' width='260' height='6'/%3E%3C/svg%3E") repeat-x left bottom / 260px 64px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='64'%3E%3Cpath d='M0 40 L4 22 L8 40 L12 16 L16 40 L20 28 L24 40 Z M70 44 L73 30 L76 44 L80 24 L84 44 Z M150 42 L154 20 L158 42 L162 30 L166 42 Z M210 46 L213 34 L216 46 L220 26 L224 46 Z' /%3E%3Cellipse cx='110' cy='50' rx='7' ry='3'/%3E%3Cellipse cx='36' cy='56' rx='5' ry='2.4'/%3E%3Cellipse cx='190' cy='56' rx='8' ry='3'/%3E%3Crect x='0' y='58' width='260' height='6'/%3E%3C/svg%3E") repeat-x left bottom / 260px 64px; }
.stage[data-biome='1'] { --strip: rgba(40, 24, 80, 0.55); }
.stage[data-biome='2'] { --strip: rgba(120, 80, 30, 0.45); }
.stage[data-biome='3'] { --strip: rgba(230, 245, 255, 0.55); }
.stage[data-biome='4'] { --strip: rgba(60, 14, 8, 0.6); }
.stage[data-biome='5'] { --strip: rgba(30, 14, 50, 0.6); }
/* 달리는 동안: 고블린이 통통 뛴다 (숨쉬기 대신) */
.actor--hero.is-running .actor__sprite { animation: runBob 0.34s ease-in-out infinite; }
@keyframes runBob { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-7px) rotate(-3deg); } 50% { transform: translateY(0) rotate(0deg); } 75% { transform: translateY(-5px) rotate(2deg); } }

/* ---- 층별 배경 (패럴랙스): 멀수록 느리게 흐른다. 층마다 원본·반전본 4장을 이어 붙여 이음새가 없다 ---- */
.plx { position: absolute; inset: 0; display: none; }
.plx__l { position: absolute; left: 0; width: 400%; display: flex; will-change: transform; }
.plx__l i { flex: 0 0 25%; height: 100%; background: center bottom / cover no-repeat; }
.plx__l i:nth-child(even) { transform: scaleX(-1); }
.plx--sky { top: 0; bottom: 0; }
.plx--far { bottom: 26%; height: 62%; filter: saturate(0.85) brightness(1.03); }
.plx--mid { bottom: 9%; height: 58%; }
.plx--near { bottom: -2%; height: 46%; }

/* ---- 캐릭터 생동감: 눈빛·감정 아이콘 (art.js goblin({ live: true })) ---- */
.gob-livebox { display: flex; justify-content: center; align-items: flex-end; }
.gob-live { position: relative; display: block; height: 100%; aspect-ratio: 512 / 616; }
.gob-live .gob-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gob-eye { position: absolute; width: var(--r); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
/* 평소: 눈동자에 작은 빛이 가끔 반짝 */
.gob-eye::after { content: ''; position: absolute; left: 58%; top: 18%; width: 34%; height: 34%; border-radius: 50%; background: #fff; box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.9); opacity: 0; animation: eyeGlint 3.4s ease-in-out infinite; }
.gob-eye + .gob-eye::after { animation-delay: 0.08s; }
@keyframes eyeGlint { 0%, 78%, 100% { opacity: 0; transform: scale(0.4); } 84% { opacity: 1; transform: scale(1.2); } 90% { opacity: 0.6; transform: scale(0.9); } }
/* 보스전: 눈이 계속 붉게 타오르고, 강타할 때 더 번뜩 */
.actor--hero.eyes-boss .gob-eye { box-shadow: 0 0 9px 3px rgba(255, 50, 30, 0.85); background: radial-gradient(circle, rgba(255, 80, 50, 0.7), transparent 72%); animation: bossEyes 1.2s ease-in-out infinite; }
@keyframes bossEyes { 50% { box-shadow: 0 0 13px 5px rgba(255, 40, 20, 0.95); } }
.actor--hero.eyes-angry .gob-eye { box-shadow: 0 0 10px 4px rgba(255, 40, 20, 0.95); background: radial-gradient(circle, rgba(255, 60, 30, 0.8), transparent 70%); }
.actor--hero.eyes-happy .gob-eye { box-shadow: 0 0 12px 5px rgba(255, 215, 70, 1); background: radial-gradient(circle, rgba(255, 245, 170, 0.9), rgba(255, 210, 60, 0.4) 55%, transparent 75%); }
.actor--hero.eyes-angry .gob-eye::after, .actor--hero.eyes-happy .gob-eye::after { animation: none; opacity: 1; }
/* 감정 아이콘: 머리 위 오른쪽에 잠깐 떠오른다 */
.gob-emote { position: absolute; width: 26%; aspect-ratio: 1; background: center / contain no-repeat; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4)); z-index: 3; }
